mnalis / android-wifi-upgrade

convert WiFi passwords from old Android wpa_supplicant.conf to newer (post-Oreo) WifiConfigStore.xml
Apache License 2.0
17 stars 8 forks source link
android wifi

android-wifi-upgrade

convert WiFi passwords from old Android wpa_supplicant.conf to newer (post-Oreo) WifiConfigStore.xml

This perl script reads old wpa_supplicant.conf on STDIN, and outputs new WifiConfigStore.xml to STDOUT

Description

For me, upgrading LG G3 from LineageOS 14.1 (Android 7.1.2 "Nougat") to LineageOS 16.0 (Android 9 "Pie") resulted in all my wifi password being lost. The reason is the information is no longer kept in /data/misc/wifi/wpa_supplicant.conf but instead in /data/misc/wifi/WifiConfigStore.xml

This script is a quick hack to convert (most of the) passwords to new format so I don't have to remember and type them all again.

All of the project is released under Apache 2.0 license (see LICENSE file).

Usage

Note that location of WifiConfigStore.xml on your device might be something other than /data/misc/wifi (like /data/misc/apexdata/com.android.wifi), so you need to verify that first (and update the commands above accordingly).

Troubleshooting

TODO