[TUT] Fix WIFI without wiping /data

Search This thread

E4est

Senior Member
Dec 23, 2010
58
24
I hope, this is developent-related enough... :D

Some people don't switch from paul's MiniCM7Pro v21 to nobodyAtall's MiniCM7, because they don't want to Backup/Restore Apps, SMS a.s.o. only to make Wifi work.

After some testing arround, I found out that it's because of the file /data/misc/wifi/wpa_supplicant.conf
The wifi module in paul's ROM is handled different to that in nAa's, so you need a new version of this file.
After posting my results in nAa's thread Carpe-Dimi told me, that this file will be regenerated on boot, if it's missing.
So you only need to delete/move/rename the file, like I described here.

Summarized:
a)
- start an adb shell (there are enough tutorials in this forum, expaining this)
- type "mv /data/misc/wifi/wpa_supplicant.conf /sdcard/wpa_supplicant.conf" (without the ")
- reboot
You will notice, that there is the file "wpa_supplicant.conf" on your sdcard. If you saved some hotspots in the "old" ROM, there will be saved your SSIDs and passwords.

b)
If you don't really like adb shell, you can also use any Root Explorer:
- navigate to /data/misc/wifi/
- delete/move/rename wpa_supplicant.conf (you are a free human being, do what you want to)
- reboot
Enjoy your wifi!^^


Some people already confirmed that it worked for them. ;)
Just trying to help. :)

Greez E4est


I recommend on doing this only if wifi doesn't work for you. If it connects and a.s.o. there's no need for this.
 
Last edited:

scook94

Senior Member
Dec 28, 2010
654
124
Stirling, UK
Summarized:

- start an adb shell (there are enough tutorials in this forum, expaining this)
- type "mv /data/misc/wifi/wpa_supplicant.conf /sdcard/wpa_supplicant.conf" (without the ")
- reboot

Enjoy your wifi!^^



Just trying to help. :)

Greez E4est


I assume Root Explorer would accomplish the same thing?
 

Tommylee567

Senior Member
Jan 14, 2011
366
49
Bangalore
Xiaomi Poco F3
What will it do if i delete that conf file? Will there be an improvement or connection will be better? please add that in your first post.
It will be better to know that

Thank you!
Tim
 

Snoopo

Senior Member
Oct 19, 2010
793
240
Heh? Can you approve that method?
I don't believe this helps because I thought I did this and it did not work.

@tommylee: It will erase your configured hotspots you have to reconfigure them. alternatively you can read the configfile and reconfigure some spots...
 

FrenchKoR

Senior Member
Jan 18, 2011
96
36
Heh? Can you approve that method?
I don't believe this helps because I thought I did this and it did not work.

@tommylee: It will erase your configured hotspots you have to reconfigure them. alternatively you can read the configfile and reconfigure some spots...

I already tried this method and it worked for me. ^^
 

E4est

Senior Member
Dec 23, 2010
58
24
What will it do if i delete that conf file? Will there be an improvement or connection will be better? please add that in your first post.
It will be better to know that

Thank you!
Tim

I added, that I recommend on doing this only if wifi doesn't work. ;)

Before deleting it's possible that the file is incompatible with your ROM. The file will be regenerated after reboot so you will have a new wpa_supplicant.conf that's compatible with your ROM.

Wifi device in paul's ROM is called wlan0 and in nAa's ROM it's tiwlan0, that's one reason why it's incompatible.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    I hope, this is developent-related enough... :D

    Some people don't switch from paul's MiniCM7Pro v21 to nobodyAtall's MiniCM7, because they don't want to Backup/Restore Apps, SMS a.s.o. only to make Wifi work.

    After some testing arround, I found out that it's because of the file /data/misc/wifi/wpa_supplicant.conf
    The wifi module in paul's ROM is handled different to that in nAa's, so you need a new version of this file.
    After posting my results in nAa's thread Carpe-Dimi told me, that this file will be regenerated on boot, if it's missing.
    So you only need to delete/move/rename the file, like I described here.

    Summarized:
    a)
    - start an adb shell (there are enough tutorials in this forum, expaining this)
    - type "mv /data/misc/wifi/wpa_supplicant.conf /sdcard/wpa_supplicant.conf" (without the ")
    - reboot
    You will notice, that there is the file "wpa_supplicant.conf" on your sdcard. If you saved some hotspots in the "old" ROM, there will be saved your SSIDs and passwords.

    b)
    If you don't really like adb shell, you can also use any Root Explorer:
    - navigate to /data/misc/wifi/
    - delete/move/rename wpa_supplicant.conf (you are a free human being, do what you want to)
    - reboot
    Enjoy your wifi!^^


    Some people already confirmed that it worked for them. ;)
    Just trying to help. :)

    Greez E4est


    I recommend on doing this only if wifi doesn't work for you. If it connects and a.s.o. there's no need for this.
    1
    What will it do if i delete that conf file? Will there be an improvement or connection will be better? please add that in your first post.
    It will be better to know that

    Thank you!
    Tim

    This conf file just contain all data information about wifi (access point, WEP key etc.).