Detailed explanation of Android setting wifi password by modifying configuration files
Preface:
On some unconventional Android devices, such as glasses/watches, entering a wifi password is like a disaster. At this time, you can set the wifi ssid and password by modifying the configuration file.
Wifi password configuration file
First of all, you must ensure that the device has rooted and the wifi configuration file is in /data/misc/wifi/wpa_supplicant.conf. You can pull it out first, and then add the part at the beginning of the network below. It will be OK. Then import it in. Here is my configuration file:
##### wpa_supplicant configuration file template ##### update_config=1 ctrl_interface=DIR=/data/system/wpa_supplicant GROUP=wifi eapol_version=1 ap_scan=1 fast_reauth=1 network={ ss psk="*****" key_mgmt=WPA-PSK priority=241 }
The above ssid is the name of wifi, and psk is the wifi password. What is the password, it is nothing to encrypt.
Things to note
The contents above the network are different and cannot be modified randomly.
There can be multiple network blocks.
Thank you for reading, I hope it can help you. Thank you for your support for this site!