diff --git a/README.md b/README.md index c2d5e8d0..6bf36999 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,9 @@ Default settings are picked to suit general use cases and maximize compatibility An example use case is when a voice connection needs to be kept active even after the device screen goes off. Using this mode may improve the call quality. Requires support from the hardware. + Deprecated in Android 14 and is automatically replaced with "Low latency mode". + Deprecation is due to the impact of it on power dissipation. + The "Low latency mode" provides much of the same desired functionality with less impact on power dissipation. - (since Android 10) Choose "Low latency mode" to optimize for reduced packet latency, and this might result in: 1. Reduced battery life. 2. Reduced throughput. diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/net/wifi/WifiDoubleLock.kt b/mobile/src/main/java/be/mygod/vpnhotspot/net/wifi/WifiDoubleLock.kt index b019ff43..fbd0bb5c 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/net/wifi/WifiDoubleLock.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/net/wifi/WifiDoubleLock.kt @@ -64,6 +64,7 @@ class WifiDoubleLock(lockType: Int) : AutoCloseable { @Deprecated("This constant was deprecated in API level Q.\n" + "This API is non-functional and will have no impact.") Full(WifiManager.WIFI_MODE_FULL), + @Suppress("DEPRECATION") HighPerf(WifiManager.WIFI_MODE_FULL_HIGH_PERF), @RequiresApi(29) LowLatency(WifiManager.WIFI_MODE_FULL_LOW_LATENCY, true),