questions about using TWRP to update a ROM without losing information - Sprint HTC EVO 4G LTE

I know it's possible do restore apps and such using Titanium backup but I'm wondering if it's possible to restore using the TWRP backup?
I'm not sure what the different things do that TWRP backs up. System, cache, recovery, boot, data, (and something else). If it's possible to restore apps and such restoring from some of those, which ones?
Thanks

ItsTommyGun said:
I know it's possible do restore apps and such using Titanium backup but I'm wondering if it's possible to restore using the TWRP backup?
I'm not sure what the different things do that TWRP backs up. System, cache, recovery, boot, data, (and something else). If it's possible to restore apps and such restoring from some of those, which ones?
Thanks
Click to expand...
Click to collapse
Make sure you do a nand backup then after you flash a rom go to your nand backup and restore only the data,
This has worked for me
Sent from my EVO using xda premium

ItsTommyGun said:
I know it's possible do restore apps and such using Titanium backup but I'm wondering if it's possible to restore using the TWRP backup?
I'm not sure what the different things do that TWRP backs up. System, cache, recovery, boot, data, (and something else). If it's possible to restore apps and such restoring from some of those, which ones?
Thanks
Click to expand...
Click to collapse
josh030181 said:
Make sure you do a nand backup then after you flash a rom go to your nand backup and restore only the data,
This has worked for me
Sent from my EVO using xda premium
Click to expand...
Click to collapse
Yes, restoring only the data partition will restore both the application .apk files themselves as well as the application's data files (settings, etc). The issue is when restoring data from a different ROM, the uid/gid could mismatch and cause a boot loop. This is one of the main reasons people suggest to wipe the data before loading a new ROM. Sometimes this issue can be fixed using the script, fix_permissions, in the custom recovery.
I think using Titanium Backup might work around this permissions uid/gid issue and might be one of the reasons people chose this over a nandroid restore of just the data partition.
In regards to your other question of what the different partitions "do" which TWRP backs up, here is a rough list off the top of my head:
system (holds all the Android OS files and stock apps)
data (holds all settings and 3rd party apps)
cache (temp partition usually used to store downloaded OTAs before they are loaded)
recovery (stores the custom recovery)
boot (stores the kernel)
Hope that helps fill in some of the missing details!

joeykrim said:
In regards to your other question of what the different partitions "do" which TWRP backs up, here is a rough list off the top of my head:
system (holds all the Android OS files and stock apps)
data (holds all settings and 3rd party apps)
cache (temp partition usually used to store downloaded OTAs before they are loaded)
recovery (stores the custom recovery)
boot (stores the kernel)
Hope that helps fill in some of the missing details!
Click to expand...
Click to collapse
That does help. Thanks!

Related

Easiest way to backup data to survive super wipe?

Hello,
This has been discussed in the past but a) it a long time time ago, so maybe newer tools are out and b) no definite conclusion was drawn, so please can I ask again, what's the easiest way to back up all apps, data and settings (idealy including home screen settings, ringtones, everything) to survive a superwipe (i.e. restore it after a super wipe and new ROM version installation)?
Thanks in advance.
Use CWM Recovery to do a complete backup. Very easy to backup and restore.
saheb117 said:
Use CWM Recovery to do a complete backup. Very easy to backup and restore.
Click to expand...
Click to collapse
But restoring a CWM backup will overwrite the new system with the old one. What I want is backup all data, apps and settings but not the system data. And then restore them after I install the new ROM.

[Q] CWM Recovery did not restore previous state, apps missing

Been having some issues with my SGS3 and charging, using JellyBam (v7, fairly old, so thought I would start fresh on latest version).
Using CWM5, I did a backup. Factory reset + wipe cache + wipe dalvik cache, then flashed the new ROM. Figured out what I needed to for the charging issues, but forgot I didn't to a titanium backup with all my apps, and more importantly the app data.
I can confirm looking in the CWM data.ext4.tar that the data I want is in there.
So I backed up my new flash setup, restored the previous backup, thinking I would do a titanium backup and get everything setup in my newly flashed ROM. After restore (I did another factory reset + cache + dalvik wipe first), it presents me with the google login wizard, and it seems to have remembered some of my apps but not others. So the restore seems to not have worked.
If I try reinstalling the app it gives me the 'Unknown error code during application install: "-24"' error
Any ideas how I can get the restore to work correctly?
OR some way from the fresh install (providing that restore works too) to grab the app data from my data.ext4.tar and move it into my working install? I tried just copying the file into /data/data but that didnt seem to do the trick
Old CWM
Flash the firmware you made a cwm backup of restore via CWM .
Flash Philz recovery and make a new backup .
Now get 'error while restoring /data'. Seems to be an issue on CWM5 for >2GB backups.
Going to try flashing Philz recovery and try again
Nope no joy. Is there any way I can extract data from a nandroid backup?
As I'm only really fussed about a handful of apps so could do it manually
5 355586
poppahorse said:
Nope no joy. Is there any way I can extract data from a nandroid backup?
As I'm only really fussed about a handful of apps so could do it manually
Click to expand...
Click to collapse
maybe there is the way, but is better if you make a update of your CWM,... 6.0.3 or 0.4 touch... by the way I always use two mores apps for backing up data from my SIII ... one for sms, contacts ecc.. to extSDcard "Super backup pro" and the other app for backup data apps "Ultimate backup pro"

[Q] Advanced Restore of Kernels

Noob question again Sir/s...
In advance restore in recovery of different kernels...
What will be restore if I restore the ff...
1. Restore boot - ???
2. Restore System and Preload - ???
3. Restore data - ??? (i thinks apps that has been downloaded from Playstore)
4. Restore cache - ???
Additional question also...If I want to restore my text messages and call logs, which one should I restore from the choices above?...
I hope somebody will answer my questions...Newbie here in restoring, coz I always want fresh Installation of Roms without doing a Back-up...
Thanks in advance Sir/s...
Resore boot - restores kernel and recovery
Restore system and preload - restores whole system with all of its apk lib so files blah blah
Restore data - restores whole installed apps and its data including system datas
Restore cache restores what is stored in /cache partition, usualy dex files used by dalvik cache
You cant restore sms with cwm, only with titanium backup of something similar
Sent from my GT-I9100 using XDA Premium 4 mobile app
krazy1101 said:
Resore boot - restores kernel and recovery
Restore system and preload - restores whole system with all of its apk lib so files blah blah
Restore data - restores whole installed apps and its data including system datas
Restore cache restores what is stored in /cache partition, usualy dex files used by dalvik cache
You cant restore sms with cwm, only with titanium backup of something similar
Sent from my GT-I9100 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Hhmmnn it is now clear with me...thank you so much Sir @krazy1101...all I need to restore for me then is the Data...it will save time installing again the apps I installed specialy those from play store...
Sent from my GT-I9100 using XDA Premium 4 mobile app
You can easily make a CWM flashable of your apps/data with TiBu Pro.
MistahBungle said:
You can easily make a CWM flashable of your apps/data with TiBu Pro.
Click to expand...
Click to collapse
Is it not just enough to restore may apps from recovery mode?...
You can do exactly that with a CWM flashable made with TI. Put all your non-system apps/data (if you want) into a flashable zip, get your new rom clean installed/phone re-rooted/whatever, flash the zip, done. No need to muck around restoring whole partitions which can cause problems particularly if you're changing to completely different rom/TW to AOSP & VV/or a different base (say 4.2 to 4.3, etc).

Switching ROMS and keeping app data

Now I know this is a boob question but I've read so many conflicting answers.
If I switch roms and want to keep all data, eg game saves, app data, WiFi settings, launcher settings etc, what is the best practice to do so?
In the past I've used ROM toolbox pro to backup apps and then restore in new ROM?
But I've read that this isn't recommended?
What is recommended? Backup via recovery?
If so how is it done?
Assuming I'm switching ROMS completely? Eg CM11 to cloudy?
Valiceemo said:
Now I know this is a boob question but I've read so many conflicting answers.
If I switch roms and want to keep all data, eg game saves, app data, WiFi settings, launcher settings etc, what is the best practice to do so?
In the past I've used ROM toolbox pro to backup apps and then restore in new ROM?
But I've read that this isn't recommended?
What is recommended? Backup via recovery?
If so how is it done?
Assuming I'm switching ROMS completely? Eg CM11 to cloudy?
Click to expand...
Click to collapse
Where did your read that? Its not a good idea to restore system settings but restoring user apps and their data is perfectly fine. If by WiFi settings you mean access point passwords then that should be fine too.
If your individual apps have a built in backup function I would also use that to backup your data just in case.
jr67 said:
Where did your read that? Its not a good idea to restore system settings but restoring user apps and their data is perfectly fine. If by WiFi settings you mean access point passwords then that should be fine too.
If your individual apps have a built in backup function I would also use that to backup your data just in case.
Click to expand...
Click to collapse
Ah ok. Thanks.
Read it in a few threads.
So I'll just use ROM toolbox pro then.
So it can't be done via twrp backup of 'system'
Valiceemo said:
Ah ok. Thanks.
Read it in a few threads.
So I'll just use ROM toolbox pro then.
So it can't be done via twrp backup of 'system'
Click to expand...
Click to collapse
A nandroid backup (backing up via recovery) is a backup of your entire system, not only apps but also your ROM--so basically if you restore a nandroid backup you're phone will be entirely restored to the way it ways when you did the backup.
jr67 said:
A nandroid backup (backing up via recovery) is a backup of your entire system, not only apps but also your ROM--so basically if you restore a nandroid backup you're phone will be entirely restored to the way it ways when you did the backup.
Click to expand...
Click to collapse
Yes I know.
Just wondered if it was possible to back up only app data.
Valiceemo said:
Yes I know.
Just wondered if it was possible to back up only app data.
Click to expand...
Click to collapse
I don't think you can do a backup of just your app data in recovery.
If you wanted to restore your user apps & data it's the data partition not system you would need to restore but the data partition is where recovery backs up to. How can recovery write to/read the very same partition that it's simultaneously backing up/restoring.

How to exclude sensitive data from nandroid backup using twrp recovery

Hello everyone,
Can I ask how do I exclude all sensitive data when I perform nandroid backup of the system and data partition of my phone using the latest TWRP recovery v3.1.1-0?
[email protected] said:
Hello everyone,
Can I ask how do I exclude all sensitive data when I perform nandroid backup of the system and data partition of my phone using the latest TWRP recovery v3.1.1-0?
Click to expand...
Click to collapse
There really isn't a way... What I would do is backup system and data, then copy all data apps you want included to the sdcard. Then factory reset. (To remove sensitive info) Skip thru the setup wizard, enable unknown sources, then backdoor the apps. (Still with no google account tied to the phone)
Next make a new backup of system and data for whoever you're sharing this with...then restore your original backup so everything is back the way you had it.
Sent from my XT1609 using Tapatalk
If you plan on sharing it. Don't. Nandroid backups also back up stuff that is device dependent. Many devices have been bricked because they restored a Nandroid from another device. Even if it is the same model.

Categories

Resources