[Q] Post-Lollipop flash, all backups on SD erased? - General Questions and Answers

Hello,
I'm a Nexus 4 user and recently flashed Lollipop on my phone.
I had rooted my device and was running a SlimKat ROM previously. So before I flashed to 5.0, i made an online nandroid backup of my phone. I then proceeded to download the 5.0 files and flash them to my device. I was not able to just upgrade like some users, so I knew that the flash would erase all of my files. But thats why I made the backup.
In short, I want to know if the Flash erased even my root location (/0) zip backup files. I can be a total idiot and not have realized that after you back up your device, you need to copy the .zip into a different location. Is this the case?
Is there anyway to get my ZIP backups from previous ROM's back?

thetimes said:
In short, I want to know if the Flash erased even my root location (/0) zip backup files. I can be a total idiot and not have realized that after you back up your device, you need to copy the .zip into a different location. Is this the case?
Click to expand...
Click to collapse
if you have flashed the factory image on your phone then you lost everything. You must backup your files on a pc before flashing a factory image, unlike an ota update.
https://developers.google.com/android/nexus/images

Related

[Q] nandroid to zip...

Is there a way to convert a nandroid backup into a flashable zip file? I would like to have the possibility of returning to my rooted rom if ever I decide in the mean time to go back to stock rom and don't like it.
The question has been asked a few times but has never, to my knowledge, received a clear answer.
NoUseToRush said:
Is there a way to convert a nandroid backup into a flashable zip file? I would like to have the possibility of returning to my rooted rom if ever I decide in the mean time to go back to stock rom and don't like it.
The question has been asked a few times but has never, to my knowledge, received a clear answer.
Click to expand...
Click to collapse
A nandroid back up takes a snap shot of your entire OS. All of the /system files, all of the /data files. All the apps in their current state. I mean EVERYTHING is store in the nandroid back up. When you preform that there is a "backup/restore" option in the Clockwork ROM recovery image. You would just select "restore" then select the back up you want to store. I will advise you not to change the name of the file as the MD5SUMs will not match and it will not be able to load it. It's a flash-able .zip my nature. but it will verify it's own MD5SUM prior to flashing it.
which brings me to this point.
but to restore you nandroid you need to be a) rooted b)have clockwork installed.
Yup, you can do it, but you need a few things:
1) system.img and boot.img to flash
2) you'll also need a non-stock recovery, so if you return to stock, just go back to a rooted stock system, and keep the non-stock/cwm recovery so that you can apply the zip. This begs neidlinger's point above about just restoring your backup via recovery.
3) if you want to really cross your eyes and dot your tees, then you should also get the EBT partition from the stock firmware so that you can update the bootloader. Most people are fine using what ever old bootloader they had when they rooted, but I think it can cause bootloops with certain combinations.
So yes it can be done, but it's more an exercise in android-fu. You'll have to search around and take apart a few zips to figure it out.
what about this (just to see if I understand the approach): I make a cwm recovery of my present non-stock rom and I somehow manage to go back to a stock rom. If I miss my custom rom, I root , install cwm recovery and restore the backup stored on my external sd card...How is that?
NoUseToRush said:
what about this (just to see if I understand the approach): I make a cwm recovery of my present non-stock rom and I somehow manage to go back to a stock rom. If I miss my custom rom, I root , install cwm recovery and restore the backup stored on my external sd card...How is that?
Click to expand...
Click to collapse
That is correct
You are on a custom OS, you make a nandroid backup Via CRW (ClockWork Recovery) (it will store to the SDcard)
you go back to OE not rooted OS with stock recovery.
you don't like it, it's slow or ugly, what ever.
you re-root. Reinstall CWR
you wipe the device
select "backup/restore"
Then restore
and it will restore the Nandroid completely.
you boot the device to the exact point in which you left it.

Re-installing OS after deleting everything in TWRP

Let me start out by saying your help is very much appreciated. I was on stock rom 4.4.2 and really never bothered with updating. I'm rooted(w/unlocked bootloader) and have made backups in TWRP and restored them without issue in the past.
I wanted to try installing the Chroma ROM, but I think i made a mistake by ticking off all the boxes and deleting everything first. I have 2 full backups on my USB-OTG drive along with the Chroma ROM. At the moment, I can't flash the ROM and I cant restore the backups I have on my USB-OTG drive. I try to restore them and it just goes back to the TWRP homescreen after one second. There's no OS, but I can boot into TWRP version 2.6.3.4. I suppose I shouldn't have wiped system before flashing the ROM? Did this happen because I tried flashing the ROM from my USB-OTG that it didn't flash? Should I have kept it on the root my SD Card?
What's the easiest way to get my backup up and running? Do I have to get a factory image back on the device? I'm so lost with what to do next.
Thank you all for your assistance.
Just fastboot the android system img of your choice
Sent from my Android M Nexus 5 yo!

Need help extracting backup file.

I made a backup with the stock "android recovery 3e". Anyway to extract it? It's a ".backup" file and I can't open it whatever i try. It's not a nandroid backup, but with an "backup" extension. I've been searching for three days now and so far haven't found anything. There were some other threads with the same topic too but no solution was posted. Any help would be greatly appreciated, thanks.
How big is the file?
orangekid said:
How big is the file?
Click to expand...
Click to collapse
It's about 3gb.
Blufloyd said:
It's about 3gb.
Click to expand...
Click to collapse
Can you use the same recovery to restore this nandroid file or is that not an option?
I am not finding anything on actually extracting it..
orangekid said:
Can you use the same recovery to restore this nandroid file or is that not an option?
I am not finding anything on actually extracting it..
Click to expand...
Click to collapse
It's not a nandroid file. I can restore it but it's not much of a help cause I forgot my lock pattern with wifi and data off. Debugging was not enabled and it's a new phone didn't even root it yet. I thought i'll just backup everything, factory reset and then extract my data from the backup file.
Now back to the point, i know there doesn't seem to be any way to extract it. Never made a backup with the stock android recovery before. I just needed to recover some imp photographs. Xda was my last resort lol.
Blufloyd said:
It's not a nandroid file. I can restore it but it's not much of a help cause I forgot my lock pattern with wifi and data off. Debugging was not enabled and it's a new phone didn't even root it yet. I thought i'll just backup everything, factory reset and then extract my data from the backup file.
Now back to the point, i know there doesn't seem to be any way to extract it. Never made a backup with the stock android recovery before. I just needed to recover some imp photographs. Xda was my last resort lol.
Click to expand...
Click to collapse
Is there any way at all to root it once you restore it? If it's a full system backup then it's a "nandroid" (which means a ROM backup whether stock or custom).
But yeah can't seem to find any way to extract it, only hope is to restore it and try to do something with the ROM.
orangekid said:
Is there any way at all to root it once you restore it? If it's a full system backup then it's a "nandroid" (which means a ROM backup whether stock or custom).
But yeah can't seem to find any way to extract it, only hope is to restore it and try to do something with the ROM.
Click to expand...
Click to collapse
Idk, aren't nandroid files .tar or .zip? I was thinking of doing that. But i had some doubts. Like will the custom recovery be able to restore this file? Because I'm pretty sure i've never seen a .backup file in cwm or twrp.
Blufloyd said:
Idk, aren't nandroid files .tar or .zip? I was thinking of doing that. But i had some doubts. Like will the custom recovery be able to restore this file? Because I'm pretty sure i've never seen a .backup file in cwm or twrp.
Click to expand...
Click to collapse
"nandroid" just means a ROM backup, doesn't matter which recovery or what the extension is.
I mean anything is worth a try at this point. I doubt any recovery will recognize it, but I am thinking use the recovery that made the file to restore it, THEN root that ROM if you can somehow. What phone do you have? Most older Samsung phones can be rooted in Odin regardless of the actual ROM state etc...
edit: moved to Android Q&A forum too...
orangekid said:
"nandroid" just means a ROM backup, doesn't matter which recovery or what the extension is.
I mean anything is worth a try at this point. I doubt any recovery will recognize it, but I am thinking use the recovery that made the file to restore it, THEN root that ROM if you can somehow. What phone do you have? Most older Samsung phones can be rooted in Odin regardless of the actual ROM state etc...
edit: moved to Android Q&A forum too...
Click to expand...
Click to collapse
No I can't root it after restoring. I'm locked out and there's nothing I can do about it. It's HTC desire 816g.

install twrp without losing data

Good evening, I saw some questions similar to this one in the forum, but none had my kind of doubt.
When a new ROM comes out for both S7 and S8, I install via ODIN using the CSC HOME option, so as not to lose the data.
The problem is in the installation of TWRP whenever I install the same by ODIN, when entering the app and trying to install example no-verity ja start I get the message that the DATA folder has been corrupted and can not be mounted.
This way it only works once again doing WIPE DATA, but then I lose my data and I have to start from scratch.
Is there a way this does not happen or will it always be like this when updating a ROM?
Thank you.
costafabiof said:
Good evening, I saw some questions similar to this one in the forum, but none had my kind of doubt.
When a new ROM comes out for both S7 and S8, I install via ODIN using the CSC HOME option, so as not to lose the data.
The problem is in the installation of TWRP whenever I install the same by ODIN, when entering the app and trying to install example no-verity ja start I get the message that the DATA folder has been corrupted and can not be mounted.
This way it only works once again doing WIPE DATA, but then I lose my data and I have to start from scratch.
Is there a way this does not happen or will it always be like this when updating a ROM?
Thank you.
Click to expand...
Click to collapse
Have you tried backing up data with twrp before you wipe and copying it to your pc so you can do a full wipe then put the backup onto the phone and flash It? You can back up data folder only
godkingofcanada said:
Have you tried backing up data with twrp before you wipe and copying it to your pc so you can do a full wipe then put the backup onto the phone and flash It? You can back up data folder only
Click to expand...
Click to collapse
Good afternoon,
Thanks for the reply.
So from what I mentioned above, I do a full backup as I normally do, and I also do a separate from the DATA folder.
Then I install the ROM and TWRP, will it corrupt the DATA folder so I restore only it? Would it be this?
If so, will it work out, in relation to being a ROM different from the other?
costafabiof said:
Good afternoon,
Thanks for the reply.
So from what I mentioned above, I do a full backup as I normally do, and I also do a separate from the DATA folder.
Then I install the ROM and TWRP, will it corrupt the DATA folder so I restore only it? Would it be this?
If so, will it work out, in relation to being a ROM different from the other?
Click to expand...
Click to collapse
The main rom info needed is contained in the system folder. The data folder is application data and whatnot. Reboot into twrp and use the backup option, then copy to pc. Do a full wipe of all, pit backup of data folder and new rom on internal or sd. Go into terp and flash the rom and data folder. Do not flaah system or it will overwrite the new rom. u will restore everything even if you don't have the APK installed in your system. It will return the data, you may need to reinstall the APK. Gmail for example will return will email addresses and messages, contacts and texts will come back to what they were at backup. You should back up modem and efs and boot as well and keep them safe. What I do is I get my phone set up fully, all apps I need and any games and data and then back it up again so any issues and I restore it to a fully functional state and don't need to install tons of things
godkingofcanada said:
The main rom info needed is contained in the system folder. The data folder is application data and whatnot. Reboot into twrp and use the backup option, then copy to pc. Do a full wipe of all, pit backup of data folder and new rom on internal or sd. Go into terp and flash the rom and data folder. Do not flaah system or it will overwrite the new rom. u will restore everything even if you don't have the APK installed in your system. It will return the data, you may need to reinstall the APK. Gmail for example will return will email addresses and messages, contacts and texts will come back to what they were at backup. You should back up modem and efs and boot as well and keep them safe. What I do is I get my phone set up fully, all apps I need and any games and data and then back it up again so any issues and I restore it to a fully functional state and don't need to install tons of things
Click to expand...
Click to collapse
Good afternoon,
I'm sorry for the text I'm using Google Translate.
I believe that I did not understand correctly, because the error happens in the following way, I install a ROM, reinstall the TWRP, yes yes it corrupts the folder DATA!
If I understood mistake, I apologize.
costafabiof said:
Good afternoon,
I'm sorry for the text I'm using Google Translate.
I believe that I did not understand correctly, because the error happens in the following way, I install a ROM, reinstall the TWRP, yes yes it corrupts the folder DATA!
If I understood mistake, I apologize.
Click to expand...
Click to collapse
Is it a custom Rom or a stock rom? Also you can backup via ADB
https://forum.xda-developers.com/an...oid-sdk-adb-backup-apps-t3467560#edit68829721
godkingofcanada said:
Is it a custom Rom or a stock rom? Also you can backup via ADB
https://forum.xda-developers.com/an...oid-sdk-adb-backup-apps-t3467560#edit68829721
Click to expand...
Click to collapse
The ROM I use is provided by Samsung, with no modifications, when I install it I use the CSC option the HOME file, in order not to lose the data, and of course, I do not lose anything I only update the ROM.
The problem is that I need to reinstall TWRP after installing ROM, and when I access TWRP it has corrupted the DATA folder.
costafabiof said:
The ROM I use is provided by Samsung, with no modifications, when I install it I use the CSC option the HOME file, in order not to lose the data, and of course, I do not lose anything I only update the ROM.
The problem is that I need to reinstall TWRP after installing ROM, and when I access TWRP it has corrupted the DATA folder.
Click to expand...
Click to collapse
You can extract the samsung md5 and repack it as a zip with superrs kitchen and then flash it from twrp. Just remove the recovery.img from the extracted files before zipping it up. Then you can simply flash twrp. Then the rom and not have to worry about the fact that you are stuck in a loop of being locked out because you don't need odin for the rom and it won't overwrite your recovery. If that's too much work try using a custom Rom from xda
godkingofcanada said:
You can extract the samsung md5 and repack it as a zip with superrs kitchen and then flash it from twrp. Just remove the recovery.img from the extracted files before zipping it up. Then you can simply flash twrp. Then the rom and not have to worry about the fact that you are stuck in a loop of being locked out because you don't need odin for the rom and it won't overwrite your recovery. If that's too much work try using a custom Rom from xda
Click to expand...
Click to collapse
Thank you very much for your patience. But I'm not clear, or you do not understand.
The problem is not in the ROM, but in the TWRP installation. If I install the ROM with the option CSC HOME I do not lose anything, everything is working correctly.
When I install TWRP it corrupts the DATA folder. The problem is there!
costafabiof said:
Thank you very much for your patience. But I'm not clear, or you do not understand.
The problem is not in the ROM, but in the TWRP installation. If I install the ROM with the option CSC HOME I do not lose anything, everything is working correctly.
When I install TWRP it corrupts the DATA folder. The problem is there!
Click to expand...
Click to collapse
I was saying to use a zip rom because then you can reflash the rom without reflashing twrp. So you flash twrp, it says data error and then you flash rom from zip, which reinstall system and data but will not copy stock recovery over twrp. So you will not have to reinstall it and be stuck. Or try a different version of twrp might also help. Stock firmware overwrites recovery and the rom. You need to modify it to remove recovery from the firmware, or use a custom Rom to stop it from erasing twrp
godkingofcanada said:
I was saying to use a zip rom because then you can reflash the rom without reflashing twrp. So you flash twrp, it says data error and then you flash rom from zip, which reinstall system and data but will not copy stock recovery over twrp. So you will not have to reinstall it and be stuck. Or try a different version of twrp might also help. Stock firmware overwrites recovery and the rom. You need to modify it to remove recovery from the firmware, or use a custom Rom to stop it from erasing twrp
Click to expand...
Click to collapse
I think I understood, more or less, since I translate for Google.
But assuming I want to use normal ROM, you have to back up the DATA folder before installing the ROM and after installing the new ROM and TWRP, restore only the DATA?
Thank you again.
Yes a new rom will overwrite data, you need a backup before. You should be able to connect your phone to a linux operating system and use adb to connect and back it up, if twrp will not let you take a back up.
godkingofcanada said:
Yes a new rom will overwrite data, you need a backup before. You should be able to connect your phone to a linux operating system and use adb to connect and back it up, if twrp will not let you take a back up.
Click to expand...
Click to collapse
In my case I can back up the DATA folder by TWRP. Is there doubt, if I back up the DATA folder in one version of Android and then restore in another version, will it be compatible?
costafabiof said:
In my case I can back up the DATA folder by TWRP. Is there doubt, if I back up the DATA folder in one version of Android and then restore in another version, will it be compatible?
Click to expand...
Click to collapse
Yes it will be, marshmallow and nougat are completely compatible from the boot loader up. You can also turn your stock samsung md5 into a zip file so you do not need odin to install it. You will be able to flash it from twrp
godkingofcanada said:
Yes it will be, marshmallow and nougat are completely compatible from the boot loader up. You can also turn your stock samsung md5 into a zip file so you do not need odin to install it. You will be able to flash it from twrp
Click to expand...
Click to collapse
Again thank you very much.
I'll test it and put it here.
Note: The Thank you button is not working.
costafabiof said:
Again thank you very much.
I'll test it and put it here.
Note: The Thank you button is not working.
Click to expand...
Click to collapse
You are welcome. If you want to have a stock zip file instead of the md5 use this link.
https://forum.xda-developers.com/showthread.php?t=2387941
...
costafabiof said:
...
Click to expand...
Click to collapse
Can you not read the website?
I know what you mean. Twrp can't access the data folder because it's encrypted. But you do have to format it to gain proper access. You have to copy the files out or back them up
godkingofcanada said:
Can you not read the website?
Click to expand...
Click to collapse
I believe that because I am a new user I can not exclude publications, I already tested in CHROME and IE. In the same way I can not give THANK YOU.

All EMUI backups are unbootable when restored to

Throughout my phone's lifetime, I've made a lot of backups, most of which have ended up saved on my hard drive. I recently wanted to go back to stock from a custom rom, so I copied one of the emui backups over and restored to it. Everything seemed to go smoothly, no error messages, but attempting to boot only got stuck on the blue honor boot animation. Tried several other backups, some rooted and heavily customized, some fresh unmodded installs, but all of them did the same thing. Meanwhile, all my custom rom backups work just fine. What gives?
I tried it too and it doesn't work. I think its because to install a custom ROM we format the data using twrp which also removes the encryption of some sorts, when we restore the backup that encryption is lost so it stays stuck at the blue Honor logo. That's my two sense on this. I don't know the real details.
asaditya379 said:
I tried it too and it doesn't work. I think its because to install a custom ROM we format the data using twrp which also removes the encryption of some sorts, when we restore the backup that encryption is lost so it stays stuck at the blue Honor logo. That's my two sense on this. I don't know the real details.
Click to expand...
Click to collapse
That does make more sense than anything I've thought of so far. So to restore from one of these backups, would I just have to reinstall emui from scratch first to get that encryption back? Is there another way to restore them without first having emui? Or are they just useless now?
Gannondalf said:
That does make more sense than anything I've thought of so far. So to restore from one of these backups, would I just have to reinstall emui from scratch first to get that encryption back? Is there another way to restore them without first having emui? Or are they just useless now?
Click to expand...
Click to collapse
I haven't been able to find a solution to this. What I do is use firmware finder to download the firmware+region zip and then install them together in any order via twrp. By this process you lose the data and twrp too as it is replaces by stock recovery. Before booting you must try to get into the stock recover and hit factory reset. You'll get EMUI back but no matter what you do you won't get your data back. Twrp backup is helpless I think because I've tried all sorts of things to get my data back.
asaditya379 said:
I haven't been able to find a solution to this. What I do is use firmware finder to download the firmware+region zip and then install them together in any order via twrp. By this process you lose the data and twrp too as it is replaces by stock recovery. Before booting you must try to get into the stock recover and hit factory reset. You'll get EMUI back but no matter what you do you won't get your data back. Twrp backup is helpless I think because I've tried all sorts of things to get my data back.
Click to expand...
Click to collapse
I've tried flashing emui firmware through twrp before and the region zip always works, but I've never gotten it to load the update.zip (using adb sideload for everything). But I'll try a few different things and see if I can get that to work. Getting back to emui is my primary focus since most of my data is backed up somewhere else, but if I find a way to successfully restore data from backups I'll let you know.
Gannondalf said:
I've tried flashing emui firmware through twrp before and the region zip always works, but I've never gotten it to load the update.zip (using adb sideload for everything). But I'll try a few different things and see if I can get that to work. Getting back to emui is my primary focus since most of my data is backed up somewhere else, but if I find a way to successfully restore data from backups I'll let you know.
Click to expand...
Click to collapse
What I'm telling is probably the easiest way let me break it down for you again.
1. Download firmware+region zip file from firmware finder.
2. Go to twrp, clear everything (format data).
3. Install the two downloaded zip I usually flash firmware and then the region zip.
4. After installation is over don't reboot go back to twrp home screen and reboot to recovery, which will be stock.
5. Format data using stock recover and then clear cache.
6. Restart and everything should work.
And if you find a way to get the twrp backups do post here.

Categories

Resources