[GUIDE] Restore saved WiFi when flashing a new Rom - One (M7) General

Greetings,
first of all, since this is my first guide, please be kind and for another thing, english is not my mother tongue so pardon eventual spelling errors.
I'am sort of a "flash-o-holic" and one thing that drives me nuts is everytime i flash a new rom, i have to reenter my saved WiFi-networks including their passwords. And since these passwords are really long, about 16 to 26 characters, it's a very tedious process.
But a found a solution or workaround, that i want to share with you.
First, grab your wpa_supplicant.conf file, usually it's saved under /system/etc/wifi/ (you can either pull it via adb or copy it with a root explorer to your sdcard) a save this file on your PC.
Now download your desired rom (if you haven't already), open it with a zip tool (i use 7zip and so should you ), navigate to /system/etc/wifi/ and replace the wpa_supplicant.conf file.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
And that's it!
You can just flash it like normal via custom recovery.
Worked for me everytime. (=

Nice, I never thought about that. I usually restore this using Titanium Backup, but that requires getting TB onto the phone first. With your method wi-fi will be available imediately after booting.
EDIT: Except... that file is mostly empty. For me the file with my wifi data is /data/misc/wifi/wpa_supplicant.conf

...or you can just backup your data using Google. it restores your WiFi passwords

Chezbel said:
Nice, I never thought about that. I usually restore this using Titanium Backup, but that requires getting TB onto the phone first. With your method wi-fi will be available imediately after booting.
EDIT: Except... that file is mostly empty. For me the file with my wifi data is /data/misc/wifi/wpa_supplicant.conf
Click to expand...
Click to collapse
Thanks for the information. As soon as i got home i'll update the guide.
IINexusII said:
...or you can just backup your data using Google. it restores your WiFi passwords
Click to expand...
Click to collapse
I could do that, but i don't want to save my WiFi-Settings & passwords on a google server. It's silly i know but i'am kinda paranoid.

MrCrunch said:
I could do that, but i don't want to save my WiFi-Settings & passwords on a google server. It's silly i know but i'am kinda paranoid.
Click to expand...
Click to collapse
Same for me

Well, i guess the Main Argument against that would be:
When you need to restore from Google, you have to connect to wifi first, right?
Sent from my HTC One using xda app-developers app

Thanks for the info! I have a ton of logins for various businesses. PITA to manually redo all of them.

Hallucinogen775 said:
Well, i guess the Main Argument against that would be:
When you need to restore from Google, you have to connect to wifi first, right?
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
No, you have a phone so use your 3g/4g connection to go through the setup process

more easy , venom tweaks )

Related

WIFI Router will NOT work

Hey guys, i cannot get wifi router working no matter what i've tried. i just updated to the latest experimental version of the app and STILL it fails every time.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
when i first start the app it asks for superuser permissions i allow and check the allow always button. so i'm 98% sure i'm good there. i have no idea why this will not work. any ideas??
Ive never had this problem, only when my phone was not rooted..
Hmm.. have u tried the regular stuff? Uninstall, reinstall, reboot, etc?
*This was posted from my Evo 4G using Tapatalkpro! Great app, if you want to browse and post through many dfferent forums*
Are you sure that you uninstalled the previous versions before you installed new ones? And if you installed a rom with it already installed, then used something like Titanium Backup and it restored Wireless tether, that can cause issues
yessir, i've uninstalled/installed every version of wifi router from oldest to current. i've also tried reloading my ROM 3 times with a different release each time.
the bizarre part is when i first got my evo i used unrevoked until i learned about full rooting and until then, my wifi router worked flawlessly. it's when i did the full root and nand unlock and installed OMJ's rom(with wifi built in) that the app quit working.
try this......
If you have root permissions, but still cannot start tethering, it may be an issue with either the tethering binaries or your tethering settings. From the main tether screen, try going to Menu->Setup->Menu->Reinstall binaries/configs.
when i hit menu from the main tether screen i get Settings, Access Control, Show Log and About.
So menu, then setup, once setup is open hit menu again and the option will pop up.let me know if it works.
Sent on my cursed EVO
Update your SuperUser Permissions app. ROM Manager has that, and you can find it on here.
skantman69 said:
So menu, then setup, once setup is open hit menu again and the option will pop up.let me know if it works.
Sent on my cursed EVO
Click to expand...
Click to collapse
this did the trick! I have working wifi for the first time since i fully rooted my phone! THANK YOU so much! you are awesome!!!
Your welcome. Have fun buddy.
Sent on my cursed EVO

Very odd TWRP Issue

Right, this is very weird...
I made a Nandroid backup (compressed) on TWRP for this first time, it completed successfully and then I powered off and turned the Nexus 4 back on. However to my surprise, I could not find the backup on my SD card. I checked everywhere (data/media...TWRP folder...etc). I even checked the entire phone (with root explorer enabled), nothing. However the backup was successful because my Available Space has fallen by roughly 1gb, the size of my backup. Does anyone know whats going on here?
Thanks in advance, really appreciate your support.
esskayy said:
Right, this is very weird...
I made a Nandroid backup (compressed) on TWRP for this first time, it completed successfully and then I powered off and turned the Nexus 4 back on. However to my surprise, I could not find the backup on my SD card. I checked everywhere (data/media...TWRP folder...etc). I even checked the entire phone (with root explorer enabled), nothing. However the backup was successful because my Available Space has fallen by roughly 1gb, the size of my backup. Does anyone know whats going on here?
Thanks in advance, really appreciate your support.
Click to expand...
Click to collapse
it should be in the twrp folder, backups..
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hmm, unfortunately I don't get that. This is what I see.
Could it be because I am using a theme on my TWRP (the Holo one btw, which no one else has reported a problem on)...
Edit: Okay, I think I solved it...I went onto the root of the phone again this time, searched the data folder and was able to find Media -> Backups (see below). Why is that it appears here rather on the SD card data folder?
esskayy said:
Hmm, unfortunately I don't get that. This is what I see.
Could it be because I am using a theme on my TWRP (the Holo one btw, which no one else has reported a problem on)...
Edit: Okay, I think I solved it...I went onto the root of the phone again this time, searched the data folder and was able to find Media -> Backups (see below). Why is that it appears here rather on the SD card data folder?
Click to expand...
Click to collapse
maybe because you compressed it? i dont compress mine.
Thanks for the help Simms, but after digging around on XDA forums, I found the cause and the solution (posted here):
jasonwc said:
There was a weird bug with TWRP that put the FIRST backup in /data/media/TWRP/backups (read: wrong). After rebooting the recovery, all future backups will go into /mnt/sdcard/TWRP/backups, which is where you want them.
Here's what I think happened:
1) Your first backup was stored in /data/media/TWRP which is not where TWRP looks for backups. So, TWRP showed no backups.
2) You ran a second backup which showed up correctly in TWRP, and was stored in /mnt/sdcard/TWRP/backups.
3) You renamed the most recent backup, and then checked /mnt/sdcard/TWRP/backups, and assumed the renaming actually moved the folder. I don't think it did.
Click to expand...
Click to collapse

Sooo What am I doing wrong?

I've downloaded 4 different roms and when I try to flash them I get this
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I've been rooting and stuff for a few years but I usually did it on my windows PC and not my MBP, anyone care to point me into the direction of what I can do to fix this? I`m thinking it has something to do with CWM.
CashmereEsquire said:
I've downloaded 4 different roms and when I try to flash them I get this
I've been rooting and stuff for a few years but I usually did it on my windows PC and not my MBP, anyone care to point me into the direction of what I can do to fix this? I`m thinking it has something to do with CWM.
Click to expand...
Click to collapse
Had same problems I had been dragging and dropping folder locations into command line. Was told duplicates folder root permissions. Also realized was using wrong CWM. Some peoples external websites are posting faults CWM's. I don't think they really own a nexus 4. Well good luck!
---------- Post added at 10:37 PM ---------- Previous post was at 10:32 PM ----------
Found it you need 6.0.2.3 img not 6.0.3.0! Good luck!
Is there a way to me to revert back to the original recovery mode? I set it to use CWM as default when I first did the root or something like that.
CashmereEsquire said:
Is there a way to me to revert back to the original recovery mode? I set it to use CWM as default when I first did the root or something like that.
Click to expand...
Click to collapse
Need to use adb debugging push correct image over current image. Would do all tasks from unlocking boot loader to root device again make sure no duplicate permissions. Search forums for adb commands for nexus 4.
heres what I`m getting
CashmereEsquire said:
heres what I`m getting
Click to expand...
Click to collapse
are you sure the file you downloaded is for the nexus 4 (mako)
because if you go to this---> http://get.cm/?device=mako
non of those files are named just cm-10.1 download from there and you shouldnt have a problem flashing
paul_viado said:
are you sure the file you downloaded is for the nexus 4 (mako)
because if you go to this---> http://get.cm/?device=mako
non of those files are named just cm-10.1 download from there and you shouldnt have a problem flashing
Click to expand...
Click to collapse
I`m on a Mac and it unzips the file and I end up re zipping then sending to Phone. Someone just advised I download straight from device so I am trying that now. I downloaded straight from CM site, so its prob my computer shortening the file names.
CashmereEsquire said:
I`m on a Mac and it unzips the file and I end up re zipping then sending to Phone. Someone just advised I download straight from device so I am trying that now. I downloaded straight from CM site, so its prob my computer shortening the file names.
Click to expand...
Click to collapse
thats the problem. open up the safari preferences and on the bottom of general, uncheck automatically open. Then it won't unzip. or just use chrome. re zipping doesn't sign the file, and it won't work
gimme a thanks if I helped!

Loosing storage capacity..anyone have an explanation?

Can anyone figure where the missing 2GB or so is gone? Tried pushing files from PC but it failed and the files don't show up but the missing 2GB is about the size of the pushed files that are nowhere to be found...
P.S. tried to push the same files to my Nexus 7 2013 and have the same problem there...anyone know how I could find and delete these files without resetting my device (I've already tried the search function on ES File Explorer and the same storage discrepancy can also be observed from the storage tab in android settings).
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
BrutalGreen said:
Can anyone figure where the missing 2GB or so is gone? Tried pushing files from PC but it failed and the files don't show up but the missing 2GB is about the size of the pushed files that are nowhere to be found...
P.S. tried to push the same files to my Nexus 7 2013 and have the same problem there...anyone know how I could find and delete these files without resetting my device (I've already tried the search function on ES File Explorer and the same storage discrepancy can also be observed from the storage tab in android settings).
Click to expand...
Click to collapse
Easiest way is just to flash the factory images and reset the partition
Sent from my Nexus 4 TMO @1.836 GHz on PSX v4.1 4.3
12.92gb total, thats what its supposed to be. you dont get a full 15gb to use, some goes to the system. if thats what youre talking about.
or, you are talking about the 2.43gb in the android folder?
simms22 said:
12.92gb total, thats what its supposed to be. you dont get a full 15gb to use, some goes to the system. if thats what youre talking about.
or, you are talking about the 2.43gb in the android folder?
Click to expand...
Click to collapse
that's not the point, the point is there isn't 4.97GB of data there. It should be 3GB at most...and pretty sure it used to be before I tried to unsuccessful push file to the devices.
BTW I was using wugfresh's toolkit when I tried to push the files if that is of importance
BrutalGreen said:
that's not the point, the point is there isn't 4.97GB of data there. It should be 3GB at most...and pretty sure it used to be before I tried to unsuccessful push file to the devices.
BTW I was using wugfresh's toolkit when I tried to push the files if that is of importance
Click to expand...
Click to collapse
did you ever make a nandroid backup in your recovery?
and yea, dont use toolkits. you think they make things easier, but they dont. plus they can cause their own issues too.

Backup google authenticator database

How can i restore backup google authenticator database to move to another device ? i found few tutorials but 0 vides on this and i still don't know how to do it, my phone is rooted bu even when i go to that map with my file manager i get " access denied" in map so i don't know how to do it
Casper9696 said:
How can i restore backup google authenticator database to move to another device ? i found few tutorials but 0 vides on this and i still don't know how to do it, my phone is rooted bu even when i go to that map with my file manager i get " access denied" in map so i don't know how to do it
Click to expand...
Click to collapse
I don't think there is away to back it up completely. For each account you add into the Google Authenticator, you are usually given a recovery key at setup. You need to keep the key safely and use it for recovery whenever you need it. Once you have configured it, you will usually not have the option to review the key again due to security reasons.
fylim said:
I don't think there is away to back it up completely. For each account you add into the Google Authenticator, you are usually given a recovery key at setup. You need to keep the key safely and use it for recovery whenever you need it. Once you have configured it, you will usually not have the option to review the key again due to security reasons.
Click to expand...
Click to collapse
I founded on some website that i can get database out and with sqelite 3( or something like that) i can find for each account same code that i already used and can use again. But i got database out but i cant open it with that program ☹
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I switched to Authy some years back after having to manually disable and re-enable 2FA on like fifteen accounts following a phone migration.
Now my codes easily move to a new device. No complaints.
Aganar said:
I switched to Authy some years back after having to manually disable and re-enable 2FA on like fifteen accounts following a phone migration.
Now my codes easily move to a new device. No complaints.
Click to expand...
Click to collapse
Damm i have more than 25 2FA accounts i will need 1 day just for that haha
You can transfer your google authenticator accounts from one phone to another, using this method

Categories

Resources