Store and retrieve wifi password without installing an app So I do a lot of development for Android these days and a lot of it involves reformatting my phone repeatedly, and then that leads to me re-entering my wifi password each time. This, over the course of a lot of time, is adding up to quite a lot of time spent entering my wifi password.

So what I am looking for is a way to get past that without having to download an app. Is there a way to get internet to my device on boot, without entering my wifi credentials. I'll take any way that's much faster, if I can transmit my password via NFC, if I can share it from another device, if I can wire my internet through USB directly. I have not found a way to do any of these things without installing additional apps. Also, I need to consider security still, so getting rid of the wifi password is also not an option, sadly.
Android's debugging bridge adb supports backup/restore:


  adb backup -f wifisettings.bak


presents you a message on screen which you need to confirm (and maybe enter a passphrase) to create the backup.


  adb restore wifisettings.bak


restores it. Just set up your phone to a very simple initial state (nothing else besides the wifi settings, or so). Then backup. adb also supports partial backups (adb -f backup.bak com.app.name), but the wifi settings are not part of a particular app, at least I haven't figured out which package to backup to catch the wifi settings.

Another way: Is your phone rooted? Then "adb push stored_wpa_supplicant.conf /data/misc/wifi/wpa_supplicant.conf" will restore your password file.