Fix your broken WiFi!
After having lots of trouble myself with broken WiFi on my device (especially on custom ROMs), I have identified some of the issues and made an app to automate the process of fixing the problems automatically.
Currently the app supports two fixing methods:
Method 1 (Clearing DHCP Lease)
Sometimes, the DHCP lease of Android gets corrupted. In this case, you are not able to connect to any WiFi network - it keeps displaying "Obtaining IP address...". If that is the case, the functionality of WiFi can easily be restored by deleting two files contained in /data/misc/dhcp - dhcpcd-wlan0.lease and dhcpcd-wlan0.pid. They will automatically get recreated once WiFi is enabled again.
Method 2 (Deleting wpa_supplicant)
The file wpa_supplicant.conf (located in /data/misc/wifi) stores all the WiFi passwords of Android. However, for some reason this file gets corrupted easily. Deleting it will force Android to recreate it and WiFi will work again. WARNING: This method will delete your WiFi passwords. Refer to below for instructions on how to backup them.
How to read the WiFi passwords:
PLEASE NOTE: You need ROOT ACCESS for this app to work.
If you don't trust me, you can always check the source on GitHub and build the app yourself. Just in case ^^
XDA:DevDB Information
WiFi Fix, App for all devices (see above for details)
Contributors
Aenadon
Source Code: [url]https://github.com/Aenadon/WiFi-Fix[/URL]
Version Information
Status: Stable
Created 2016-05-22
Last Updated 2017-11-06
After having lots of trouble myself with broken WiFi on my device (especially on custom ROMs), I have identified some of the issues and made an app to automate the process of fixing the problems automatically.
Currently the app supports two fixing methods:
Method 1 (Clearing DHCP Lease)
Sometimes, the DHCP lease of Android gets corrupted. In this case, you are not able to connect to any WiFi network - it keeps displaying "Obtaining IP address...". If that is the case, the functionality of WiFi can easily be restored by deleting two files contained in /data/misc/dhcp - dhcpcd-wlan0.lease and dhcpcd-wlan0.pid. They will automatically get recreated once WiFi is enabled again.
Method 2 (Deleting wpa_supplicant)
The file wpa_supplicant.conf (located in /data/misc/wifi) stores all the WiFi passwords of Android. However, for some reason this file gets corrupted easily. Deleting it will force Android to recreate it and WiFi will work again. WARNING: This method will delete your WiFi passwords. Refer to below for instructions on how to backup them.
How to read the WiFi passwords:
- Install a file manager with root access (e.g. Root Browser)
- Go to /data/misc/wifi and open the file wpa_supplicant.conf
- Write down the passwords on a piece of paper (Do NOT backup the file!!!)
PLEASE NOTE: You need ROOT ACCESS for this app to work.
If you don't trust me, you can always check the source on GitHub and build the app yourself. Just in case ^^
XDA:DevDB Information
WiFi Fix, App for all devices (see above for details)
Contributors
Aenadon
Source Code: [url]https://github.com/Aenadon/WiFi-Fix[/URL]
Version Information
Status: Stable
Created 2016-05-22
Last Updated 2017-11-06
Last edited:
