raspberry-vanilla / android_local_manifest

136 stars 54 forks source link

Wifi doesn't connect to protected networks on AOSP14 and AOSP15 #29

Open KonstaT opened 11 months ago

KonstaT commented 11 months ago

Connecting to WPA2/WPA3 networks doesn't work on Android 14. Connecting to open networks works as expected. There is nothing apparent in logcat output that would indicate the exact issue. Behavior is similar to inputting a wrong password for the wifi network. There is also no issue with creating a WPA2 protected wifi hotspot on the device.

This would likely indicate some issue with WPA2/WPA3 authentication or wifi keystore that was changed in Android 14.

Connecting to WPA2/WPA3 networks is successful when wpa_supplicant and wifi supplicant HAL from Android 13 are used instead. There's a package with the binaries available here.

KonstaT commented 10 months ago

I've included patched AOSP 13 external/wpa_supplicant_8 in android-14.0 branch to workaround this issue.

You might also need following patch on system/libhild for the fancier authentication features (WPA Enterprise, etc):

--- a/vintfdata/manifest.xml
+++ b/vintfdata/manifest.xml
@@ -54,7 +54,7 @@
             <instance>default</instance>
         </interface>
     </hal>
-    <hal format="hidl" max-level="7">
+    <hal format="hidl" max-level="8">
         <name>android.system.wifi.keystore</name>
         <transport>hwbinder</transport>
         <version>1.0</version>

I'll leave this issue open for discussion as I would rather find proper solution for this.

KonstaT commented 1 month ago

Unsurprisingly did not magically fix itself in AOSP15.

Comment above still stands and I've provided patched external/wpa_supplicant_8 in android-15.0 branch to workaround this issue.