Hello, is anyone ever restored a miui back up from twrp after lineage os installation? If so what did you back up (system,boot,data,efs..)and what process did you use to restore?
mysa50 said:
Hello, is anyone ever restored a miui back up from twrp after lineage os installation? If so what did you back up (system,boot,data,efs..)and what process did you use to restore?
Click to expand...
Click to collapse
Edit: my bad post this in the wrong section
Could a mod move this?
Standard back up, standard restore
just system and data
just system and data
Backup advice
When you do the backup choose "sysimage" instead of "system" this will give you a byte-per-byte copy of the system (the cloning of every byte, even the empty ones); the "system" is a copy of only the occupied space. The sysimage will be a larger file then the other one (system); but a far better one backup-wise.
For a complete information go to the faq of the twrp offical site: https://twrp.me/FAQ/
The last two questions of that list are of direct interest to your question, but also the rest of that list is very useful.
Related
Hi all,
Comeing from PC development, I would normally take an image of a system before overwriting with a new one. I'm interested in trying a new ROM, especially WM 6.5.
Is there a way to to an image dump of the Phone before I install a new ROM/OS?
Cheers
http://www.spritesoftware.com/products/sprite-backup-htc-special
It'll cost you $20 but it's probably worth it.
What do you want to backup?
Your current ROM (OS) or your current installed applications?
To back up the ROM, you need to dump your ROM, have it converted to *nbh file. Only then you can restore the original ROM.
To back up your applications I use Sprite Backup, the same that andyturner proposed.
BeeGee_Tokyo said:
What do you want to backup?
Your current ROM (OS) or your current installed applications?
To back up the ROM, you need to dump your ROM, have it converted to *nbh file. Only then you can restore the original ROM.
To back up your applications I use Sprite Backup, the same that andyturner proposed.
Click to expand...
Click to collapse
Ah ha, now we come the first limit to my knowledge of such devices. Are not the ROM and installed apps one in the same? Can I not take an image of the whole phone system as a whole so I can get back to exactly where I was - i.e altered settings, reg tweaks, and installed apps etc - just like creating an image clone of a PC system (i.e. ghost etc)
swinster said:
Ah ha, now we come the first limit to my knowledge of such devices. Are not the ROM and installed apps one in the same? Can I not take an image of the whole phone system as a whole so I can get back to exactly where I was - i.e altered settings, reg tweaks, and installed apps etc - just like creating an image clone of a PC system (i.e. ghost etc)
Click to expand...
Click to collapse
The OS is in (ROM) Flash memory, the applications are in RAM or on your memory card.
Backup programs like Sprite save only what is in RAM and/or on your memory card, not the OS which is in the Flash memory.
I do not know an application that is backing up both.
Hey all,
Are nandroid restores specific to one particular device or can they be interchanged between two G1's? I have a spare G1 that I play around with that has root while my other G1 doesn't have root. I am thinking about rooting the other one and wanted to know if I could just go through the rooting process, (radio, spl, cyanogen recovery etc) throw on a cyanogenmod or JF, then do a nandroid restore from the spare device with all my settings on it. I know that nandroid creates a unique numerical folder that has your latest backup in it so I wasn't sure if this folder would be seen by nandroid on a different phone.
Any thoughts?
EDIT:
Just wanted to update this thread in case anyone else wanted/needed to do this. As I suspected, I ran into folder name problems when trying to copy one nandroid restore to my spare phone and trying a restore. There is a simple fix however....
1) Perform a nandroid backup on the phone you WANT to backup.
2) Copy that nandroid folder from the phone to your PC.
3) Perform a nandroid backup on the phone you DON'T WANT to backup.
4) Copy that nandroid folder from the phone to your PC.
5) Compare the nandroid subfolder name (should be alpha-numeric starting with HT) of the backup you want to the name of the one you don't.
6) Change the name of the nandroid subfolder on the backup you want to restore to the same name of the folder you don't want. This way you fool nandroid into thinking that the backup was originally done on that phone.
7) Copy the entire nandroid folder (with the newly changed subfolder name) to the sdcard of the phone you want to restore.
8) Boot into recovery (power+home) and perform the nandroid restore. If the restore fails, you probably don't have the correct subfolder name. Return to step 5 and 6.
9) If the restore is successful, reboot and you should be all set!
Good question. I wouldn't have thought there would be issues with it bar of course your settings etc but then a wipe before would resolve that. Just make sure to do what you've said though (upgrade radio, SPL, recovery etc) first.
DirectMatrix said:
Hey all,
Are nandroid restores specific to one particular device or can they be interchanged between two G1's? I have a spare G1 that I play around with that has root while my other G1 doesn't have root. I am thinking about rooting the other one and wanted to know if I could just go through the rooting process, (radio, spl, cyanogen recovery etc) throw on a cyanogenmod or JF, then do a nandroid restore from the spare device with all my settings on it. I know that nandroid creates a unique numerical folder that has your latest backup in it so I wasn't sure if this folder would be seen by nandroid on a different phone.
Any thoughts?
Click to expand...
Click to collapse
It won't upgrade your SPL, radio, and recovery. If you look in the nandroid folder, you'll see exactly what is backed up. I think its the /system folder and the /data folder as well as something else. But if you have another phone that is already rooted and has the correct SPL, radio, and recovery, this will work.
Should be fine then as he's planning on doing the usual steps up until flashing the desired ROM of choice. Tell us how it goes DirectMatrix and if it works, please change your thread title to include [SOLVED] so we all know ^_^
NeoBlade said:
Should be fine then as he's planning on doing the usual steps up until flashing the desired ROM of choice. Tell us how it goes DirectMatrix and if it works, please change your thread title to include [SOLVED] so we all know ^_^
Click to expand...
Click to collapse
Gonna start rooting the other phone now so I'll keep this thread updated with whether nandroid backups are swappable between phones. I hope so as that will save me quite a bit of settings/data calibrations.
@h.nocturna... LOL, you have been dealing with n00bs too long in the Q&A section....of course nandroid won't upgrade my radio, SPL, and recovery, but I had a good laugh anyways. Thanks all for the advice
I have an "almost perfect" stock Nandroid build of 4.06.1540.3. Right now, I have not installed any of my own data, except for Contacts and preferences at the Google Play Store. I have also installed a custom recovery (TWRP 2.6.3.3) and rooted the device.
I think my previous backups may have contain corrupted data, as I got multiple error messages when trying to connect to Google and restore contacts. So, I went back to an earlier backup and restored from there. Everything is working now, and I don't want to "screw up"!
What I would like to learn how to do is to make a reliable - i.e. "no corrupted data"- stock backup with a stock recovery so that I may restore it if necessary. Also, would like to be able to take this Nandroid backup and save to a PC so that I can restore from it later.
Please tell me how to do this! Also, will I need to know how to save the file to the computer - as a zip file or as an image file. Right now, I don't know how to do either of those things! TWRP saves the backups as multiple archives rather than as a single zip file or image. Also, which is the preferable method to save the backup as - zip or image file? I would very much like to make this file available to the Developers on this forum as I know that they do not have this particular OTA Nandroid backup posted and I want to help them out! But I think that they would prefer the zip format of the file with the stock recovery.
Please advise! I would be most appreciative, truly!
gingerlindsey said:
I have an "almost perfect" stock Nandroid build of 4.06.1540.3. Right now, I have not installed any of my own data, except for Contacts and preferences at the Google Play Store. I have also installed a custom recovery (TWRP 2.6.3.3) and rooted the device.
I think my previous backups may have contain corrupted data, as I got multiple error messages when trying to connect to Google and restore contacts. So, I went back to an earlier backup and restored from there. Everything is working now, and I don't want to "screw up"!
how to do is to make a reliable - i.e. "no corrupted data"- stock backup with a stock recovery so that I may restore it if necessary. Also, would like to be able to take this Nandroid backup and save to a PC so that I can restore from it later.
Please tell me how to do this! Also, will I need to know how to save the file to the computer - as a zip file or as an image file. Right now, I don't know how to do either of those things! TWRP saves the backups as multiple archives rather than as a single zip file or image. Also, which is the preferable method to save the backup as - zip or image file? I would very much like to make this file available to the Developers on this forum as I know that they do not have this particular OTA Nandroid backup posted and I want to help them out! But I think that they would prefer the zip format of the file with the stock recovery.
Please advise! I would be most appreciative, truly!
Click to expand...
Click to collapse
your too late the developers already have it
InsertCoin 7.0-6 | Stable | Mods | Performance | Sense 5.5 | Android 4.4 | KUSTOMIZER 1.2.2 | 4.06.1540.3
The Next Chapter! v1.0[4.06.1540.3][APM][HEQS]
SkyDragon v 4.0 4.06.1540.3 ANDROID 4.4 KIT KAT-Live Support!-OTA-SDHUB
if you just want a copy of it for yourself for later just hook to the PC and copy it from TWRP/Backup/HTxxxxxxx/2013-12-xx to your PC
Thank you, very much for the reply, cisA! I really wanted to help out, here! As for backing it up to my computer, how do I save as a zip file? Recompile it into a single image from the multiple archived files and then zip it? Sorry, for being such a noob!
Hey Everyone,
I am new to XDA forums,(have used it for troubleshooting in the past but just registered today)
I am also new to android and linux, personally i don't use my phone for anything other than calls or games(i mostly do pc's), however my wife does a lot, she has written her own code, does mods, etc...., and we are both stumped. I am asking this on her behalf, due to a terminal illness she has lost the ability to do several things. On April 30th the lollipop update was pushed to her Note 4 (T-mobile US branded) and it wiped out all of her app data as well as her entire SD card. My question is in 2 parts one regarding the TWRP backup for this phone, and another regarding recovering the SD data from this phone(please let me know if i need to break this out into multiple sections of the site).
We have a TWRP backup that was compressed and loaded onto her cloud storage on 4/27/15, and we are unable to figure out how to get TWRP to recognize it without giving an error about the binary code or just not working period. Here is what we have tried(On advice not just from other XDA posts but various android forums as well)
Using TWRP(7zip for unpacking and repacking)
1. Downloaded the TWRP back up into windows
2. Renamed all files of the back up to be .tar, with the exception of boot which was converted to .img
3. Added Meta-Inf file from what was suppose to be stock ROM( she was not running a custom on this phone)
4. Re-archived everything back into Zip and sideloaded.
result : Error in binary code
Using Odin
1. Converted recovery (file only from backup) to md5 using Cygwin
2. Flashed using Odin
Result: Gained back a few programs but no app data or text histories
We have also tried varying versions of this, i.e. converting extra files or renaming extra files and receive the same issue. I am wondering if it is just an issue with the cloud stored compressed backup(or more likely i dont know what im doing)?
Second question comes from above, I was able to recovery all of the data from the SD card(everything was stored here, app data, recovery files, imgs, everything). When recovering the data it split everything up so all the sub peices of each recovery file are spread out is there a way to combine the individual file parts that were recovered from the SD card into functional android files again?
As i mentioned before i have never really dealt with this type of thing before but i want to try and fix this for her as between the 2 issues she has lost 5 years of data.
Thank you so much for your responses.
Hi, what you need to do is put the backup back into the exact same form it was before, an uncompressed, unzipped folder, then put it into the exact directory where TWRP puts backups when it makes them, and then in TWRP choose the option to restore. If you put the backup in the correct directory, TWRP will see it and allow you to choose it to restore it. Basically you just wanna put the backup back where it was before and then restore it in TWRP.
I wasn't sure if you had done this or not. If you have the backup folder with all the contents in their original form, it should work. I've even moved a backup from one phone onto another phone, exact same model of course, and then restored that backup onto the new phone!
I've never converted a backup into another form to be flashed another way, like Odin or as a zip in TWRP. Although I guess it could be possible it seems like it could be pretty messy.
Also if the TWRP backup was for a kit at build it will not restore on the lollipop baseband. You will need to Odin back to the kitkat NK4 build them you should be able to take the data.
Sent from my SM-N910T using XDA Free mobile app
ShrekOpher said:
Also if the TWRP backup was for a kit at build it will not restore on the lollipop baseband. You will need to Odin back to the kitkat NK4 build them you should be able to take the data.
Sent from my SM-N910T using XDA Free mobile app
Click to expand...
Click to collapse
YrrchSebor said:
Hi, what you need to do is put the backup back into the exact same form it was before, an uncompressed, unzipped folder, then put it into the exact directory where TWRP puts backups when it makes them, and then in TWRP choose the option to restore. If you put the backup in the correct directory, TWRP will see it and allow you to choose it to restore it. Basically you just wanna put the backup back where it was before and then restore it in TWRP.
I wasn't sure if you had done this or not. If you have the backup folder with all the contents in their original form, it should work. I've even moved a backup from one phone onto another phone, exact same model of course, and then restored that backup onto the new phone!
I've never converted a backup into another form to be flashed another way, like Odin or as a zip in TWRP. Although I guess it could be possible it seems like it could be pretty messy.
Click to expand...
Click to collapse
Thank you both for the suggestions i will give them a try shortly and i will provide an update on how things go.
Yeah, if you put the backup folder in the right directory, which is either internal or external sdxard/TWRP/BACKUPS/serial #/, you could restore just the data at least and it ought to be mostly ok. You ,might need to clear data in an app here or there if they force close.... or if it's too much then yeah, Odin back to KitKat and restore the desired components of the backup.
YrrchSebor said:
Yeah, if you put the backup folder in the right directory, which is either internal or external sdxard/TWRP/BACKUPS/serial #/, you could restore just the data at least and it ought to be mostly ok. You ,might need to clear data in an app here or there if they force close.... or if it's too much then yeah, Odin back to KitKat and restore the desired components of the backup.
Click to expand...
Click to collapse
Thank you for this, i double checked we had it in the right directory, but it still failed. At first it said something about a missing md5, but i tried again and i was able to get the log for the failure though. (attached below)
Hmm, I looked at the logs trying to make sure you chose to Restore in TWRP and not Install. If so it's possible the backup could have gotten altered or corrupted in the transferring back and forth. If you get it intact as it was, it SHOULD work, but I'm but sure what else to do at the moment. I hope you get it working
Sorry for the delay
Hey Everyone,
Sorry for the delay its been a long week, bad thing after bad thing kept happening. I was able to try your suggestions and i put together some additional information in hope this might help us try and figure it out.
*I must figure out how to recover, texts, contacts, call locks. My default texting app was google messenger.
So I figured I would start with the phone
I am using a Samsung SM-910T on 4.4.4 (build *ANK4) It was pretty Vanilla -> rooted, but running the stock ROM
1. The phone was set to do a full internal backup nightly using the online nandroid backup (by H3r3T1L)
2. Backups were set to be in TWRP backup format and to save to an external SD card, then to compress before being uploaded to google drive
3. Backups were set to delete from SD card after the upload was finished.
What happened
1. When stock 5.0.1 firmware OTA came out i was trying to dismiss the notification but apparently hit "accept" by mistake, causing the system to crash.
2. While restoring the phone, i attempted to download the most recent backup from the google drive and flash the zip to restore my data.
3. This Zip would not install, and i noticed all of the backups uploaded had the same anomally-a few of the files were 0 bytes
4. I downgraded the phone to ANK4 based on the above recommendation but it has made no difference.
5. I still get updated binary error and each time i flash the zip, my OS gets wiped.
6. I have tried instructions to just unzip and flash , to put zips in twrp backup folder, to build new file with meta-inf, etc. and nothing seems to work.
When the SD card got deleted I was able to retrieve some data from the deleted SD card, but don't know where the text messages are located or how to combine them back into a usable format. Or at the very least be able to extract the SMS/MMS history.
I hope this extra information helps. In any way im am desperate to try and fix this for my wife.
I believe you can use Titanium Backup to extract files from a TWRP image. If you can't extract anything from the backup it's either corrupted, in the wrong place, or in the wrong form - that is due to the compression decompression not being compatible (all zip programs are not equal). Best of luck.
BTW, you must restore TWRP files not install them.
Sent from my SM-N910T using XDA Free mobile app
Please delete
nimicitor said:
Updated from 15.1 to 16 using the official guide but didn't read the reddit post saying the file is broken until afterwards.
I did a full backup using TWRP beforehand but restoring it does nothing, device still just loops. Do I have to wipe a partition or something? Or should I wait for them to fix 16 and try again?
I really don't want to lose anything.
Click to expand...
Click to collapse
First of all: make sure your twrp version is NOT 3.2.3-1.
Install this one instead
https://androidfilehost.com/?fid=11410963190603866112
The original post:
https://forum.xda-developers.com/showpost.php?p=78332159&postcount=373
Then I wiped the data, system and cache partition. Be careful do not erase Internal Storage because that part is not backed up by twrp if you did the full backup.
After that, I only restored the data partition. The I installed LineageOS 15.1 (the last build without bugs) and GApps.
I had some problems because it did not recognize my pattern so I had to rename locksettings.db in /system/data/ to locksettings.db.bak so that the system disables the lock screen. To edit the name I used the file explorer that twrp has in 'Advanced'.
That's all.
nimicitor said:
Please delete
Click to expand...
Click to collapse
Why did your delete your post? This is bad forum etiquette. If you answered your own question, then post the solution for the possible benefit of others.
Thread closed due to deletion of OP.
I just want to get in on a thread that doesn't want to be here.