Somehow Wi-Fi stopped connecting on my phone. It is not a hardware issue, as it does work when I perform a reset.
What files do I need to delete to get Wi-Fi back working? I don’t want to reset my phone.
If relevant, model is Sony Arc S, using CM9.
Somehow Wi-Fi stopped connecting on my phone. It is not a hardware issue, as it does work when I perform a reset.
What files do I need to delete to get Wi-Fi back working? I don’t want to reset my phone.
If relevant, model is Sony Arc S, using CM9.
This has happened to me on several occasions, mostly when backing up/restoring Wifi settings using an app such as TitaniumBackup. Here's what I recommend, starting with the safest solutions:
First try going into the wifi settings and removing the problematic network. While you're there you might as well remove any other unused networks:
https://support.google.com/android-one/answer/2819519 > Change, add, or remove saved networks > Remove
If that doesn't work, the only remaining option that doesn't require root access is to delete all of your saved networks.
If you don't want to delete all of your saved networks and you have root access, the wifi network settings are kept in a text file (/data/misc/wifi/wpa_supplicant.conf), which can become corrupted. I've been able to fix problems by manually editing the file:
/data/misc/wifi/wpa_supplicant.conf/data/misc/wifi/wpa_supplicant.conf and remove any problematic networks.If you've made it this far and you're still having problems, turn off your wifi and delete /data/misc/wifi/wpa_supplicant.conf. Of course this will delete all of your saved networks. The file will be recreated the next time you turn on your wifi.
As a last resort, you can delete /data/misc/wifi, but I don't recommend it. If you do decide to do this, make sure you back it up first. The folder should be recreated on reboot with default settings, then you'll need to set your networks up again.
/data/misc/wifi and reboot, your phone should restore default files. Then you'll need to add your wireless networks back one by one.
– bmaupin
Sep 06 '15 at 22:03
/data folder does require root, at least on my phone.
– bmaupin
Sep 08 '15 at 13:18
adb shell ls /data returns opendir failed, Permission denied
– Blackbelt
Sep 08 '15 at 13:31
/data folder requires root
– bmaupin
Sep 08 '15 at 13:39
I removed /data/etc/wifi, /data/misc/dhcp and /data/misc/wifi and it worked.