From 2e0b0140ef9d334ff980460fcb97bcc8a5363c3a Mon Sep 17 00:00:00 2001 From: Mygod Date: Tue, 7 Jul 2020 03:20:29 +0800 Subject: [PATCH] Add FT-PSK as WPA Thanks Xiaomi! --- README.md | 1 + .../be/mygod/vpnhotspot/net/wifi/SoftApConfigurationCompat.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 1fc94dcc..49dbf2fb 100644 --- a/README.md +++ b/README.md @@ -153,6 +153,7 @@ Greylisted/blacklisted APIs or internal constants: (some constants are hardcoded * [`Landroid/net/ConnectivityManager;->getLastTetherError(Ljava/lang/String;)I,greylist`](https://android.googlesource.com/platform/prebuilts/runtime/+/4601d91/appcompat/hiddenapi-flags.csv#144306) * (since API 30) [`Landroid/net/TetheringManager$TetheringEventCallback;->onTetherableInterfaceRegexpsChanged(Landroid/net/TetheringManager$TetheringInterfaceRegexps;)V,blacklist`](https://android.googlesource.com/platform/prebuilts/runtime/+/4601d91/appcompat/hiddenapi-flags.csv#148899) * (since API 30) `Landroid/net/TetheringManager;->TETHERING_WIGIG:I` +* (prior to API 30) [`Landroid/net/wifi/WifiConfiguration$KeyMgmt;->FT_PSK:I,greylist-max-o`](https://android.googlesource.com/platform/prebuilts/runtime/+/4601d91/appcompat/hiddenapi-flags.csv#153923) * (prior to API 30) [`Landroid/net/wifi/WifiConfiguration$KeyMgmt;->WPA_PSK_SHA256:I,blacklist`](https://android.googlesource.com/platform/prebuilts/runtime/+/4601d91/appcompat/hiddenapi-flags.csv#153936) * (since API 23, prior to API 30) [`Landroid/net/wifi/WifiConfiguration;->AP_BAND_2GHZ:I,greylist-max-o`](https://android.googlesource.com/platform/prebuilts/runtime/+/4601d91/appcompat/hiddenapi-flags.csv#154057) * (since API 23, prior to API 30) [`Landroid/net/wifi/WifiConfiguration;->AP_BAND_5GHZ:I,greylist-max-o`](https://android.googlesource.com/platform/prebuilts/runtime/+/4601d91/appcompat/hiddenapi-flags.csv#154058) diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/net/wifi/SoftApConfigurationCompat.kt b/mobile/src/main/java/be/mygod/vpnhotspot/net/wifi/SoftApConfigurationCompat.kt index 460a3dd3..93f913b3 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/net/wifi/SoftApConfigurationCompat.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/net/wifi/SoftApConfigurationCompat.kt @@ -214,6 +214,7 @@ data class SoftApConfigurationCompat( android.net.wifi.WifiConfiguration.KeyMgmt.NONE -> SoftApConfiguration.SECURITY_TYPE_OPEN android.net.wifi.WifiConfiguration.KeyMgmt.WPA_PSK, LEGACY_WPA2_PSK, + 6, // FT_PSK 11 -> { // WPA_PSK_SHA256 SoftApConfiguration.SECURITY_TYPE_WPA2_PSK }