FORUMS
Remove All Ads from XDA

Tip of the day: restoring WiFi settings after a factory reset

3,372 posts
Thanks Meter: 4,730
 
Post Reply Email Thread
For some reason you may want to perform a clean install but don't want to waste all your spare time setting your complicated WiFi setup ?
Sadly you forgot to backup the WiFi settings but performed a Nandroid backup?

all the following steps can be performed directly on device, tested on Falcon running CM12

If you used TWRP, then things will be quite easy:
Take your backup, seek for data.f2fs.win copy it to a dedicated folder and rename it to data.tar.gz

Assuming the backup is on your USB otg:
  1. Open terminal and type:
    Code:
    cd  /storage/usbdisk/TWRP/backup/
  2. Make sure the file is there:
    Code:
    ls
  3. Untar:
    Code:
    tar -xvzf data.tar.gz
  4. After the unarchiving is completed you can search for ./misc/wifi/wpa_supplicant.conf
  5. Rename the existant one (/data/misc/wifi/wpa_supplicant.conf to wpa_supplicant.conf.bak)
  6. Paste the new one there and give proper permissions/owner/group (-rw-rw----, owner 1000-system, group 1010-wifi).

Your WiFi settings are back and you can now focus on more interesting things.

More tips can be found on my blog, but forums are better for discussion, so if you have any advices or questions, feel free to answer here
 
 
Post Reply Subscribe to Thread

Tags
wifi; tip_of_the_day; wpa_supplicant.conf

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes