Backup data before flashing ROM - Android Software/Hacking General [Developers Only]

Hello. I have Vodafone 845 with Mr. Edition ROM (1.6.x version) and I would like to switch to the newest one and/or to try other ROM.
I don't want to lose my data on the phone, but I don't know how to backup them.
I've heard about Titanium backup, but I think it will not backup all (SMS, wifi settings, ...).
I have seen Backup/Restore in recovery mode. Can something from that menu help me? I want to backup to SD card, not to my computer (running Linux and there were some problems with flashing phone after I bought it - PC hadn't seen it, but I could flash recovery menu to it...).
I need to backup all data mainly (backup of apps is not needed, but can be done within process).
Clearly I want: Backup -> wipe -> flash -> restore -> use my phone just like before flash
Any help appreciated

Related

[Q] Backups and restore. Titanium and Nandroid.

I have few questions about backups:
Nandroid:
1) So when I restore from a nandroid backup what do I exactly restore. I restore the rom this means any .zip mods I installed are gone. Do I restore radio, kernel, firmware, hboot?
2) When I do nandroid backup what happens to applications and data?
Titanium
3) What exactly system data backup (batch) backups? If I want to backup my my settings and WI-fi pairings and sms and phone call history and maybe some other 2-3 little things. If I do system data backup I will backup these things but when I restore if my previous configurations had lots of bloatware would I get unwanted things on my new configuration and slow down my phone?
4) Backing all user apps backups only .apks it means it installs the applications again?
5)User apps+ data means it will reinstall the apps and include saves and settings and etc right?
6) I've heard when backing up apps it's better to skip data why?
Thank you!
1. If you restore a previous backup then your mods will be gone (if they were not in that backup). kernel & firmware restored; hboot & radio not.
2.They get backed up (but not the data from the SD Card - just internal memory).
3. What you select (in Batch you can select). You just delete bloatware using TB after restore.
4. Correct, for settings and data you need the APPS+DATA option
5. Right
6. To avoid any complication with newer/older firmware - I always restored with data, and had no issues.
Thank you!
I just didn't understand completly about nandroid backup and apps.
If I use my phone for 5 days and install 5 aps and do a backup then use it 6 more days and install 6 more aps. After I do a nandroid restore the 6 aps installed after backup are lost and from the 5 installed before backup the ones that are not on SD will be restored. Correct? And if this is correct the restored apps will be only apk or apk + data?
Nandriod backup is the backup of Whole System the things u flashed the boot animation the theme every bit of ur phone
while just titnaum backup just backups ur apps+data nothing Else
janarioo said:
Nandriod backup is the backup of Whole System the things u flashed the boot animation the theme every bit of ur phone
Click to expand...
Click to collapse
Except radio and hboot.
Sent from my HTC Pyramid using xda premium

[Q] Flashing ROM & Restoring Apps ect

If I flash a ROM and then want to restore all my apps and data, why should I use Titanium?
1. So I see that my google "Backup account" can backup my data and restore apps and there settings and data. So why use Titanium?
2. whats the difference between googles backup and Titanium's?
3. Can I use both together when restoring? I assume google will restore first and then I will restore from Titanium... Is there any reason to restore from google account?
4. And then there's TWRP and its backup: what I understand about this is if I do a backup before I flash Viper Rom then I can flash my backup if I want to return to my old ROM and it will restore the ROM and apps and all data (so I wouldn't need to restore from Titanium and/or google in this scenario?). Is this correct?
Thanks, smoka
the app data that is being talked about is rarely 3rd party app data.
http://www.howtogeek.com/140376/htg-explains-what-android-data-is-backed-up-automatically/
titanium lets you back up apps whenever you please it even lets you keep old copies around if for some reason there is something in an update you don't like.
your assumptions on TWRP are spot on however if you make a backup today and a month down the road you decide to flash back all your apps have data from a month ago and you loose all your new stuff.
Titanium also lets you extract data from a TWRP or CWM backup. at least on an M8 I've only gotten it to work if the backup is on the "internal sd card"
Titanium pro has a lot of additional features scheduled backups. you can sync to a google drive, dropbox, or box account. backing up only data/apps that have changed.
http://matrixrewriter.com/android/
also if you have backups of everything and all you have is a metered net connection you can reinstall the apps without dipping into whatever data pool you have.
n0ne980 said:
the app data that is being talked about is rarely 3rd party app data.
http://www.howtogeek.com/140376/htg-explains-what-android-data-is-backed-up-automatically/
titanium lets you back up apps whenever you please it even lets you keep old copies around if for some reason there is something in an update you don't like.
your assumptions on TWRP are spot on however if you make a backup today and a month down the road you decide to flash back all your apps have data from a month ago and you loose all your new stuff.
Titanium also lets you extract data from a TWRP or CWM backup. at least on an M8 I've only gotten it to work if the backup is on the "internal sd card"
Titanium pro has a lot of additional features scheduled backups. you can sync to a google drive, dropbox, or box account. backing up only data/apps that have changed.
http://matrixrewriter.com/android/
also if you have backups of everything and all you have is a metered net connection you can reinstall the apps without dipping into whatever data pool you have.
Click to expand...
Click to collapse
ok, so what if I do a Titanium backup and then use TWRP to restore from a backup "a month ago" and then will I still have my most resent Titanium backup to restore or will restoring the TWRP backup erase all my current data (titanium backup) on my phone?
thanks for you response
TWRP will not remove your Titanium backups unless you specifically tell it to wipe your sd card (sdcard2) or your personal data partition(sdcard1) depending on where you have it set to back things up to.
smokawhat said:
ok, so what if I do a Titanium backup and then use TWRP to restore from a backup "a month ago" and then will I still have my most resent Titanium backup to restore or will restoring the TWRP backup erase all my current data (titanium backup) on my phone?
thanks for you response
Click to expand...
Click to collapse
TWRP takes a snapshot of your system in time. I you do a TWRP nandroid, by default it will copy your /boot, /system, /recovery and /data partitions. Think of it like a restore point in Windows Restore - except better
Titanium Backup is more specific (and also or more limited): You use it for your apps and their data.
It becomes useful if you do a clean install as in: wiping your data partition.
Yes, you can also do a partial restore from TWRP and just restore the data partition of any given nandroid after a clean install, but since it's an image of your /data before the wipe it will also restore potential problems. Restoring with TiBu is somewhat "cleaner" since it re-installs your apps from a backup.
I make a nandroid of my system when I want to flash something new - a new rom or new mod - but I want to keep my option to return to my last working setup.
I use TiBu to reinstall my apps after a clean install.
Anyway - you can never have too many backups :laugh:
berndblb said:
TWRP takes a snapshot of your system in time. I you do a TWRP nandroid, by default it will copy your /boot, /system, /recovery and /data partitions. Think of it like a restore point in Windows Restore - except better
Titanium Backup is more specific (and also or more limited): You use it for your apps and their data.
It becomes useful if you do a clean install as in: wiping your data partition.
Yes, you can also do a partial restore from TWRP and just restore the data partition of any given nandroid after a clean install, but since it's an image of your /data before the wipe it will also restore potential problems. Restoring with TiBu is somewhat "cleaner" since it re-installs your apps from a backup.
I make a nandroid of my system when I want to flash something new - a new rom or new mod - but I want to keep my option to return to my last working setup.
I use TiBu to reinstall my apps after a clean install.
Anyway - you can never have too many backups :laugh:
Click to expand...
Click to collapse
What is TiBu?
Titanium backup.lol.
Sent from my Xperia Arc using XDA Free mobile app

[Q] Rom flashing help

I have a rooted Galaxy tab 3 running the stock rom. I would like to flash a custom rom, but would like to know if I can do this without losing all of my data and settings. I have access to my corporate email and calendar via Maas 360 app. Currently, one of the requirements is not having a rooted device, but I was able to fool it using root cloak.
I have Titanium Pro installed and have everything backed up. I also have TWRP recovery installed. Is it possible to flash a new ROM and reinstall all of my apps (data, settings) without messing up the Maas 360 account?
Thanks!
Hi,
If you install a custom ROM on your device, all data will be lost (excluding the SD card).
If you backup and restore your apps/data using titanium backup all the apps will be the same as before. But some apps may not work.
I advise to make a full nandroid backup using TWRP to recover your phone if anything goes wrong.

[GUIDE] [NOOB FRIENDLY] How to backup your phone.

HOW TO BACKUP YOUR PHONE
Hey guys!
I've seen a lot of people being confused about how to backup your phone before a custom rom install or a firmware upgrade.
People here mostly use Titanium backup or Helium to use backup their phones, still the new users/noobs dont know how to operate them.
ao I am making a detailed guide for both, Rooted Phones and Non Rooted phones.
Thanks.
COMMON WAYS FOR ROOTED AND NON ROOTED :
CONTACTS : Simple. Android has given us the unique feature of backing up using the phone itself.
-Open the Contacts app
-Press the Menu Button
-Press Import/Export
-Export to SDCard
and youre done. The phone will make a *.vcf file in your system which can be used on any android phone.
IMAGES : Two Alternatives. Using an App or Manually
-App : Use Quick Backup to SD by Linever corporation from the playstore. It backups in the SD card by making a folder for each album that you've transferred.
MANUALLY :
-Copy the DCIM folder.
-Copy the Pictures folder
-Paste it somewhere safe
CALL LOGS : Use Easy Backup frim the playstore
SPECIFIC for NON ROOTED vs. ROOTED.
NON ROOTED PHONES
APPLICATIONS: TWO WORDS. APK EXTRACT from the playstore. IT saves your apps on the Internal SD card and then you can safely copy all your apps
APP DATA : The MOST IMPORTANT backup after contacts
Nobody likes to lose their HighScores or the points earned and start from the beginning.
-Download Helium App from the Playstore
-Download Helium App for the PC (it prompts)
-Enable USB Debugging from developer options
-Backup on the INTERNAL SD first.
-Copy the folder named CARBON from the internal SD to anywhere safe.
You can restore by the same app on some other phone by just pressing restore. Somehow for me I copy the carbon folder to the INTERNAL SD again and then restore as a direct restore from sd does not work.
ROOTED PHONES
We guys have a lot of options.
Ohh yes we do.
APPLICATIONS and APP DATA
Two APPS. TITANIUM BACKUP & HELIUM
-Open Tiranium Backup
-Tap Backup/Restore
-If you want to backup just one app, tap on it and select backup or;
to backup all the apps, use the tick mark in the app on the backup/restore tab.
Restoring Via TIB.
This is one issue many face. But it is simple.
-Just open TiB
-Press Menu button
-Press Batch Actions
-See for restore
-Press on Restore Apps with Missing Data.
HELIUM
The same process as non rooted users, but then we dont want USB debugging on or the Desktop app.
Just give root permissions and start backing up.
I find helium better than TiB for App and App data.
Again. Opinions differ
This is a basic guides for the "Important Things" in our phone.
If you want me to add about anything specific, Just leave a reply.
Or if you have any other ways or backing up, Ill add it here.
I'll make sure I keep this updated.
Thank you
PRECAUTIONS :
Never Backup system apps and try to push them on other roms.
Dont even try pushing them into system/app or system/priv-apps.
Each system app is made according to a relevant framework.
This can lead to a possible funny behaviour of the phone and many unexpected crashes and weird bootloops.
Its always advised to backup and restore the general utility apps that can be downloaded from the playstore to save data and download time
Do update backups once a week. This helps your backup not to get obsolete with time
Thanks @malybru for the help
[B]Guide for a NANDROID a.k.a. NAND backup.[/B]
Nandroid backups are a life saviour if you dont want to flash the whole stock rom then again do the process of custom recoveries etc. just because you had a "bootloop"
Like c'mon! A bootloop/random ui crashing and you flash a full stock rom. Sounds funny.
But yes, people have to do it if they dont have a handy nandroid backup.
Pre requisite:
-A Custom Recovery.
The best and widely used ones being Philz Recovery
TWRP Recovery
CWM recovery
(Will update links after sometime)
-Knowledge of how to flash things via odin.
-Some common sense on selecting what to flash
How to Install a Custom Recovery
Should I tell that?
in brief
1.Boot into download mode
2.Connect phone to odin and wait for odin to recognise
3.Select the recovery in AP/PDA
4.Press start and let it do its work.
How to enter into a custom recovery
a. Press Volume up + Home Button + Power Button. As soon as you see The GalaxyS4 screen, leave all three and in a jiffy press Volume Up + Home Button.
b. Use quickboot/any other mod that you run that boots your phone in recovery.
Nand Backup
a. When youre in the recovery, press on backup/restore
b. Press on backup and do a full system backup.
It usually takes 30 minutes for a bloated firmware backup. Restore takes the same time.
Do have atleast 40% battery.
Remember, backups can be selective too (Only Data/Only System etc etc.)
Same is for the restore.
A nand backup will always restore you to your last backup position (obvious). So do keep manual backups too.
Good guide.
Added to sticky roll-up thread.
thank you!
What about a basic nandroid backup?
Removed. Backup of messages is not available in stock sms app after all. Sorry for any problems my error may have caused...
jonahtriangle said:
What about a basic nandroid backup?
Click to expand...
Click to collapse
@jonahtriangle added the nandroid backup. Tell me if you want me to add more to it
"If someone helps, never forget to hit thanks ? "
@bobfrantic not an issue buddy
"If someone helps, never forget to hit thanks ? "
Anyone know how to backup bluetooth pairings? That causes me most pain when updating roms. Titanium has the feature but does not work
DeepankarS said:
HOW TO BACKUP YOUR PHONE
Hey guys!
I've seen a lot of people being confused about how to backup your phone before a custom rom install or a firmware upgrade.
People here mostly use Titanium backup or Helium to use backup their phones, still the new users/noobs dont know how to operate them.
ao I am making a detailed guide for both, Rooted Phones and Non Rooted phones.
Thanks.
COMMON WAYS FOR ROOTED AND NON ROOTED :
CONTACTS : Simple. Android has given us the unique feature of backing up using the phone itself.
-Open the Contacts app
-Press the Menu Button
-Press Import/Export
-Export to SDCard
and youre done. The phone will make a *.vcf file in your system which can be used on any android phone.
IMAGES : Two Alternatives. Using an App or Manually
-App : Use Quick Backup to SD by Linever corporation from the playstore. It backups in the SD card by making a folder for each album that you've transferred.
MANUALLY :
-Copy the DCIM folder.
-Copy the Pictures folder
-Paste it somewhere safe
CALL LOGS : Use Easy Backup frim the playstore
SPECIFIC for NON ROOTED vs. ROOTED.
NON ROOTED PHONES
APPLICATIONS: TWO WORDS. APK EXTRACT from the playstore. IT saves your apps on the Internal SD card and then you can safely copy all your apps
APP DATA : The MOST IMPORTANT backup after contacts
Nobody likes to lose their HighScores or the points earned and start from the beginning.
-Download Helium App from the Playstore
-Download Helium App for the PC (it prompts)
-Enable USB Debugging from developer options
-Backup on the INTERNAL SD first.
-Copy the folder named CARBON from the internal SD to anywhere safe.
You can restore by the same app on some other phone by just pressing restore. Somehow for me I copy the carbon folder to the INTERNAL SD again and then restore as a direct restore from sd does not work.
ROOTED PHONES
We guys have a lot of options.
Ohh yes we do.
APPLICATIONS and APP DATA
Two APPS. TITANIUM BACKUP & HELIUM
-Open Tiranium Backup
-Tap Backup/Restore
-If you want to backup just one app, tap on it and select backup or;
to backup all the apps, use the tick mark in the app on the backup/restore tab.
Restoring Via TIB.
This is one issue many face. But it is simple.
-Just open TiB
-Press Menu button
-Press Batch Actions
-See for restore
-Press on Restore Apps with Missing Data.
HELIUM
The same process as non rooted users, but then we dont want USB debugging on or the Desktop app.
Just give root permissions and start backing up.
I find helium better than TiB for App and App data.
Again. Opinions differ
This is a basic guides for the "Important Things" in our phone.
If you want me to add about anything specific, Just leave a reply.
Or if you have any other ways or backing up, Ill add it here.
I'll make sure I keep this updated.
Thank you
Click to expand...
Click to collapse
Mr. @deepankerS,
This guide makes life easy!
You mentioned to back up data and apps through APK Extract, Helium, TiB on the internal SD.
Can I do it on the external SD instead? Would that affect the restore process if i was to restore data and apps backed up on the external SD Memory card?
Ehabb1 said:
Mr. @deepankerS,
This guide makes life easy!
You mentioned to back up data and apps through APK Extract, Helium, TiB on the internal SD.
Can I do it on the external SD instead? Would that affect the restore process if i was to restore data and apps backed up on the external SD Memory card?
Click to expand...
Click to collapse
Lol first edit your comment and shorten the op thread
And yeah..if everything is on the internal sd, copy these folder manually from the internal to external. By default these apps will save info on the internal sd card.
Thus you have settings in the apks to select where to backup.
Just Helium doesnt work on extsd, be it backup/restore.
-TitaniumBackup
-Carbon (contauns helium data)
-ApkExtract/Extracted
Need some help, i have been making backups with recoverys TWRP and Phliz both. I did a full backup of my stock rom 4.4.2 and with TWRP when restore i was unable to write to internel sdcard. And ita was really a annoyn situation. And with the new Philz when i did the restore after boot all apps keep fc could not use it at all.
Any idea why this happens is it due to rong way of wipe (data, system, cashe) when i flash custom roms? Or way that i backup the stock rom? This only happens with the stock rom
Sent from my GT-I9505
DeepankarS said:
Lol first edit your comment and shorten the op thread
And yeah..if everything is on the internal sd, copy these folder manually from the internal to external. By default these apps will save info on the internal sd card.
Thus you have settings in the apks to select where to backup.
Just Helium doesnt work on extsd, be it backup/restore.
-TitaniumBackup
-Carbon (contauns helium data)
-ApkExtract/Extracted
Click to expand...
Click to collapse
Hello there @deepankers
I have rooted my phone and everything was going absolutely smooth until today I can't do anything to my external SD card (delete, create folder, etc...). I have already done the SD fix using the app "next app* when I first rooted the phone. I tried Uninstalling then reinstalling es explorer however the problem still exists! I'm sure that es explorer has root access. I tried using the stock "my files" app to do any modifications to my external SD however with no luck!
I appreciate your help in resolving this issue.
Kn!ght L!fe said:
Need some help, i have been making backups with recoverys TWRP and Phliz both. I did a full backup of my stock rom 4.4.2 and with TWRP when restore i was unable to write to internel sdcard. And ita was really a annoyn situation. And with the new Philz when i did the restore after boot all apps keep fc could not use it at all.
Any idea why this happens is it due to rong way of wipe (data, system, cashe) when i flash custom roms? Or way that i backup the stock rom? This only happens with the stock rom
Sent from my GT-I9505
Click to expand...
Click to collapse
i am facing the same issue using cwm 6.0.64 when i restore my stock rom backup and reboot lot of apps fc such as gapps but after some research in this forum i realize that only the latest philz recovery could backup and restore a stock rom properly
melekbarca said:
i am facing the same issue using cwm 6.0.64 when i restore my stock rom backup and reboot lot of apps fc such as gapps but after some research in this forum i realize that only the latest philz recovery could backup and restore a stock rom properly
Click to expand...
Click to collapse
I think the isuue is stock rom do a format to its partions which is why it do many isuues. Coz in reovery it do its own wipe before resotre. Which makes problems to stock.
Even in new philz i had the issue but what i did was wipe full (not internalsd) restore only system and boot once after that i restore data. In that way no isuue at all. All work good.
Sent from my GT-I9505
Kn!ght L!fe said:
I think the isuue is stock rom do a format to its partions which is why it do many isuues. Coz in reovery it do its own wipe before resotre. Which makes problems to stock.
Even in new philz i had the issue but what i did was wipe full (not internalsd) restore only system and boot once after that i restore data. In that way no isuue at all. All work good.
Sent from my GT-I9505
Click to expand...
Click to collapse
great idea i think that cwm 6.0.46 could get the job done using your method
Thanks
This was extremely helpful, i learned it super quickly.
Hi,
I'd like to recommend this app to backup SMS. I've used it a lot of times when changing ROMs, work pretty well. Also you can upload your backup to Dropbox, Google Drive, etc. and save it on External Storage. Quite useful .
~Lord
Hi there
Just need to backup the Efs partition easily... There is any method? Thanks so much
--
Believes in Christ and you and your family will be safe of the Great day of Jehovah's wrath
I9505 Powered with Phoenix Rom v9.4 - Tamirda
GoogyMax Kernel v1.1.5 - Googy_anas
Philz touch Recovery - Philz
S5's S-view Cover service - Karkasss
Jehovah's Thunder Bootanimation - Pas2001
Bootanimation sound - Me
A lot of mods and stuff - Xda community
Thanks to all of you...

Saving settings and data while updating LineageOS

So I've read that regular LineageOS updates work with "dirty flashes" but the bigger updates (between majoe Android versions) require "clean flash".
Is it possible to somehow save all the system and application settings and data between the big upgrades requiring clean flash?
Thanks and sincerely
heybaybee said:
So I've read that regular LineageOS updates work with "dirty flashes" but the bigger updates (between majoe Android versions) require "clean flash".
Is it possible to somehow save all the system and application settings and data between the big upgrades requiring clean flash?
Thanks and sincerely
Click to expand...
Click to collapse
Boot into TWRP, select the Backup option, then select "advanced", select the data partition but do not select any other partition, swipe the slider to start the backup. When the backup finished, move the backup file to external sdcard or PC if you don't have external sdcard.
When you flash your ROM(do not store your ROM and gapps in your internal storage, store it on external, if you, don't have external, store it in your internal but don't wipe your internal when you do your wipes), wipe system, data, cache and dalvik cache then flash your ROM. After the ROM finishes, while still in TWRP, you can either go ahead and restore the data backup that you created or you can reboot into system to let the ROM do its initial load then immediately power off, reboot into TWRP, select Restore, then restore the backup of your data partition and reboot the device. I would let the ROM boot then go back to TWRP and then restore the data.
Thank you sir!
Is there any downside of restoring from backup instead if setting up everything manually?
Are there any downsides of choosing one if the two options proposed by you over the other?
Sincerely
heybaybee said:
Thank you sir!
Is there any downside of restoring from backup instead if setting up everything manually?
Are there any downsides of choosing one if the two options proposed by you over the other?
Sincerely
Click to expand...
Click to collapse
1) no downside, it restores all settings, apps and app data to exactly what you had before flashing the update.
2) no downsides, it is just that letting the ROM boot first then going back and restoring the backup reduces chances of things being buggy after the update.
I recommend that you boot into TWRP, select Backup and make a full backup of everything except for internal storage. Then, when you flash your ROM then let it boot then go back to TWRP, select Restore, then select "advanced restore" then select only the data partition and none of the others(this will restore only the data partition from the backup and not the others), then swipe the slider to start the restore process then reboot the device.
The reason I say to create a full backup of everything is so that you have a working backup to restore if something goes wrong with the update process. It gives you a restore point to go back to so you can troubleshoot what went wrong then try again. And if everything goes right with the update, you won't need to restore the whole backup, you can just do the advanced restore and restore only the data partition and then you should be where you want to be.
I don't know if this will backup and restore your SMS/MMS text messages, you may need to backup/restore those via one of the SMS backup and restore apps in the PlayStore, there are several that can do this.
Thank you again.
Does this backup work for migration between any custom ROMs let's say from LineageOS to PixelExperience or only between versions of the same ROM like from Lineage 18 to 19?
Is it possible to migrate the same set of settings and data from stock ROM with locked bootloader to a custom ROM?
Sincerely

Categories

Resources