Sunday, November 3, 2019






I have a rooted nexus 5 (lollipop 5.1) which just decided to restart itself and clear out my saved wifi passwords! luckily i make regular manual backups of the wpa_supplicant.conf file from /data/misc/wifi to /sdcard.. however i am trying to restore this file so that the networks appear again under wifi > saved networks but i am having no luck!. On an android device i would like to modify /data/misc/wifi/wpa_supplicant.conf with as minimal side effects to the rest of the device as possible.. Once i resolve that issue i will edit my answer here. note before testing it, make a backup file for your wpa_supplicant.conf file in case errors happen. step 1: reading the file = check this solution: executing a process in android to read a file.












How does wpa_supplicant.conf end up at either of those locations on the android filesystem? in the blog link that i showed above, it says that the wpa_supplicant.conf file needs to be copied by the androidboard.mk file to /system/etc/wifi. Then enable wpa_supplicant on your network interface device, say iwn0, by editing /etc/rc.conf to add wpa_supplicant=yes wpa_supplicant_flags="-i iwn0 -c /etc/wpa_supplicant.conf" if your lan is configured with dhcp, you will likely also want dhcpcd=yes in /etc/rc.conf to run dhcpcd .. Also wpa_supplicant.conf should belong to wifi user/group because wpa_supplicant will want to modify this file. how to enable debug for wpa_supplicant. by default wpa_supplicant is set to msg_info that doesn't tell much..



android edit wpa_supplicant

visit link reference



5:48 AM   Posted by gaget with No comments

0 comments:

Post a Comment

Search