Question Question About Backing Up - Redmi Note 10 Pro

Hi all, this forum has been great for providing answers, so ive got 1 last question before i do anything to my phone.
Obliviously installing a custom recovery like TWRP requires bootloader unlocking which wipes data. I want to perform a backup of my phone, a complete backup, system, apps the works so if anything is wrong i can restore the backup, no when i say backup i mean almost like a Nandroid backup you can perform with a custom recovery, is this possible?, or ate very least is there any 3rd party apps that will perform a backup of everything inc Apps and App data, so for instance, passwords etc are backed up as well for each app which saves a ton of time having to reinstall them and remember all the passwords. Nandroid backup were easy on previous phones because on some bootloader unlock wasnt required just to install TWRP. Can anyone help with this issue, id really like to have a full backup for peace of mind. Many thanks in advance.

Swift backup is the closest I have come across

gazza35 said:
Hi all, this forum has been great for providing answers, so ive got 1 last question before i do anything to my phone.
Obliviously installing a custom recovery like TWRP requires bootloader unlocking which wipes data. I want to perform a backup of my phone, a complete backup, system, apps the works so if anything is wrong i can restore the backup, no when i say backup i mean almost like a Nandroid backup you can perform with a custom recovery, is this possible?, or ate very least is there any 3rd party apps that will perform a backup of everything inc Apps and App data, so for instance, passwords etc are backed up as well for each app which saves a ton of time having to reinstall them and remember all the passwords. Nandroid backup were easy on previous phones because on some bootloader unlock wasnt required just to install TWRP. Can anyone help with this issue, id really like to have a full backup for peace of mind. Many thanks in advance.
Click to expand...
Click to collapse
Unfortunately with a lock bootloader, you can't really create a full backup of data of apps. You can only back the APK file and some data. Even if you somehow did, restoring backups is also a problem as some backups aren't compatible with a different rom. Nandroid backups aren't an option too as restoring those from a different rom will cause issue due to incompatibly (someone tried before and caused destroyed system).
What I did in my preparation before is backed up important files through drive or cloud storages. I also rely on password managers for log-ins. I also created a separate Google Account solely for storage for my backup too. If you have, I highly advise backing up using SD Cards. They're quite an essential especially for phone modding and backup restores. Also before unlocking, make sure to have a plan on what to do after, do you stay on MIUI or try some mods or custom roms etc... So that you can switch afterwards before restoring your backup.
Lastly, if anything goes wrong, you can always reflash the stock MIUI ROM using MiFlash.

BigChungus321 said:
Unfortunately with a lock bootloader, you can't really create a full backup of data of apps. You can only back the APK file and some data. Even if you somehow did, restoring backups is also a problem as some backups aren't compatible with a different rom. Nandroid backups aren't an option too as restoring those from a different rom will cause issue due to incompatibly (someone tried before and caused destroyed system).
What I did in my preparation before is backed up important files through drive or cloud storages. I also rely on password managers for log-ins. I also created a separate Google Account solely for storage for my backup too. If you have, I highly advise backing up using SD Cards. They're quite an essential especially for phone modding and backup restores. Also before unlocking, make sure to have a plan on what to do after, do you stay on MIUI or try some mods or custom roms etc... So that you can switch afterwards before restoring your backup.
Lastly, if anything goes wrong, you can always reflash the stock MIUI ROM using MiFlash.
Click to expand...
Click to collapse
Thanks for all that useful info. I do have a 128gb sd card in the phone as well as the inbuilt 128gb, so plenty storage. Im just so used to other phones where backups where simple of bl unlock wasnt required to flash twrp etc, i did try the phones inbuilt backup system to backup the apps, it seemed to backup some info but not the apps which is odd, google backup ive never used so im unsure. ill try and look for a password manager and see if i can find a way to backup passwords at least. From what ive read everything with this phone seems impossible without first unlocking the BL, i just wish i didnt have to wait 7 days or wipe the phone to do it lol. My main aim is to downgrade back to Android 11 stock Miui, im not convinced custom roms available for this device are at a daily driver stage yet, as for mods, i may end up rooting at some point and get magisk, i think most mods i used would be mainly aesthetic, like changing splash screens etc etc, simple stuff. Anyway i have drivers installed, i have Miflash unlock installed. i shall start getting my passwords and some apps saved off etc and go from there. As always, thankyou once again for the detailed reply, youve been great help

Found Wondershare MobileTrans. Thankfully it backs up most stuff inc apps, havent found any other way as yet. Thanks again.

gazza35 said:
Thanks for all that useful info. I do have a 128gb sd card in the phone as well as the inbuilt 128gb, so plenty storage. Im just so used to other phones where backups where simple of bl unlock wasnt required to flash twrp etc, i did try the phones inbuilt backup system to backup the apps, it seemed to backup some info but not the apps which is odd, google backup ive never used so im unsure. ill try and look for a password manager and see if i can find a way to backup passwords at least. From what ive read everything with this phone seems impossible without first unlocking the BL, i just wish i didnt have to wait 7 days or wipe the phone to do it lol. My main aim is to downgrade back to Android 11 stock Miui, im not convinced custom roms available for this device are at a daily driver stage yet, as for mods, i may end up rooting at some point and get magisk, i think most mods i used would be mainly aesthetic, like changing splash screens etc etc, simple stuff. Anyway i have drivers installed, i have Miflash unlock installed. i shall start getting my passwords and some apps saved off etc and go from there. As always, thankyou once again for the detailed reply, youve been great help
Click to expand...
Click to collapse
Alright. Also some points that I would like to add, since like you said, you're staying at A11 Miui which for the most part is now forgotten (or at least have the minority using it), you'll have to use the official twrp instead of the newer unofficial ones due to compatibility and it's the only recovery in a11 which can decrypt the storage (newer ones can only decrypt a12-a13, not a11...weird). Also, this is just a suggestion but obviously unlocking bootloader results in failing integrity API test (formerly safety net) so you'll have to really root and spoof the device to pass integrity API test and use banking apps etc... Good luck though and yeah you can't skip that 7 day wait, it's a good time to backup and prepare.

BigChungus321 said:
Alright. Also some points that I would like to add, since like you said, you're staying at A11 Miui which for the most part is now forgotten (or at least have the minority using it), you'll have to use the official twrp instead of the newer unofficial ones due to compatibility and it's the only recovery in a11 which can decrypt the storage (newer ones can only decrypt a12-a13, not a11...weird). Also, this is just a suggestion but obviously unlocking bootloader results in failing integrity API test (formerly safety net) so you'll have to really root and spoof the device to pass integrity API test and use banking apps etc... Good luck though and yeah you can't skip that 7 day wait, it's a good time to backup and prepare.
Click to expand...
Click to collapse
Ok, sounds like a lot of Work, Another question for you, if i stay on A12, 12.0.3.0 which worked amazing until it upgraded, will i have to do the whole same spoofing thing?, i did forget about my banking apps. And where can i find Disable Dmverity and will that sort out the banking apps, i know itll let me keep cust recovery, I see reference to it but i cant find it anywhere, is there like a certain website or something where people download their mods and stuff.

gazza35 said:
Ok, sounds like a lot of Work, Another question for you, if i stay on A12, 12.0.3.0 which worked amazing until it upgraded, will i have to do the whole same spoofing thing?, i did forget about my banking apps. And where can i find Disable Dmverity and will that sort out the banking apps, i know itll let me keep cust recovery, I see reference to it but i cant find it anywhere, is there like a certain website or something where people download their mods and stuff.
Click to expand...
Click to collapse
Yes, unlocking your bootloader will cause you to fail integrity test so you'll have no choice but to root and spoof if you're going to use banking apps. I can help you with this process if you want.
You can get the DM Verity file I used here:
https://zackptg5.com/android.php , it also includes some of my favorite mods like JamesDSP. You'll probably get something like DisableDMverity_forceencrypt zip or something like that so be sure to rename the zip file only to "Disable_Dm-Verity" zip (it's one of those zips where it uses the name of the zip to select what it's patching, it is recommended to keep force encryption enabled as to avoid data theft when you lose your phone). You flash the disable dm verity right after TWRP so you can boot to your rom afterwards. And yes dmverity won't help you pass integrity API.
As for themes/mods and such, I mostly get them here from XDA, Telegram groups, or Github. Mostly telegram tbh. But be sure to check whether it's safe to use as some bundles their modules (or once the app gets root access) will cause damage to your phone.

BigChungus321 said:
Yes, unlocking your bootloader will cause you to fail integrity test so you'll have no choice but to root and spoof if you're going to use banking apps. I can help you with this process if you want.
You can get the DM Verity file I used here:
https://zackptg5.com/android.php , it also includes some of my favorite mods like JamesDSP. You'll probably get something like DisableDMverity_forceencrypt zip or something like that so be sure to rename the zip file only to "Disable_Dm-Verity" zip (it's one of those zips where it uses the name of the zip to select what it's patching, it is recommended to keep force encryption enabled as to avoid data theft when you lose your phone). You flash the disable dm verity right after TWRP so you can boot to your rom afterwards. And yes dmverity won't help you pass integrity API.
As for themes/mods and such, I mostly get them here from XDA, Telegram groups, or Github. Mostly telegram tbh. But be sure to check whether it's safe to use as some bundles their modules (or once the app gets root access) will cause damage to your phone.
Click to expand...
Click to collapse
Thankyou i think i have everything i need, ive backed up My 3rd party apps, all my Passwords, calendar, contacts etc etc, so, im ready to move forward and just wait for phone to be unlocked now. Youve been a great help, thankyou very much indeed.

RAMBO29 said:
Swift backup is the closest I have come across
Click to expand...
Click to collapse
But if the file get large size about 6-8 gb it was hard to transfer it to pd or sd card and something it shows error while transferring

Related

[Q] how to permanently customize setting and appsq

I want to permanently customize setting and apps that stay even after factory resetting phone. so that when I*factory reset*my phone, it would revert back to*almost*factory settings, except with a few alterations. For example: some extra apps (maybe settings within those apps already selected), certain an!droid settings already selected (developer tools, unknown sources etc), superuser with permissions already granted for certain apps, basically things beyond the scope of just pre-installed apps.
I understand the phone would need to be rooted, I would want to keep the original rom with the above mentioned changes. Of course I can always make a backup and simply load it, but I want to know if it can be done through*factory reset. I only have experience rooting and loading custom roms (on many devices*, I've always done so since droid 1) but I have never made a custom rom, which from my understanding, is what I need to do to for something like this.*
Basically if you guys can tell me if I am in the right direction, completely off track and where should I go from here to make it happen.
Factory reset is a reset. Not a partial reset.
Everything you're looking for is accomplished with a nandroid backup. Which also "resets" your phone to the point the backup was created.
But to directly answer you ....no, I've never heard of a way to modify a factory reset. ?
jonagpa said:
I want to permanently customize setting and apps that stay even after factory resetting phone. so that when I*factory reset*my phone, it would revert back to*almost*factory settings, except with a few alterations. For example: some extra apps (maybe settings within those apps already selected), certain an!droid settings already selected (developer tools, unknown sources etc), superuser with permissions already granted for certain apps, basically things beyond the scope of just pre-installed apps.
I understand the phone would need to be rooted, I would want to keep the original rom with the above mentioned changes. Of course I can always make a backup and simply load it, but I want to know if it can be done through*factory reset. I only have experience rooting and loading custom roms (on many devices*, I've always done so since droid 1) but I have never made a custom rom, which from my understanding, is what I need to do to for something like this.*
Basically if you guys can tell me if I am in the right direction, completely off track and where should I go from here to make it happen.
Click to expand...
Click to collapse
That's exactly what you would need to do -- basically make your own stock-based rom. It will require an unlocked bootloader (not just root) - no way around this.
Good Luck
Edit: Keep in mind that OTA updates will absolutely not be possible. You would need to make a new stock-based rom built off the new SBF when a new updates comes out (assuming you want updates).
Your first step will be downloading and researching the SBF for your particular phone. Find the SBF files here:
sbf.droid-developers.org/phone.php?device=0
You'll need to find a guide on custom roms, and learn the procedures. Once you have succeeded and packaged up your rom with all the modifications you want, it will *absolutely* survive a "factory reset".
Additionally, KJ is correct. The 'nandroid' backup option in custom recovery makes this an extremely easy process (though it won't 'survive' a factory reset, it's easy enough to restore back assuming you saved the backup somewhere accessable). Building a ROM is considerably more involved. I personally wouldn't attempt it just for the convenience of having persistent apps and a few mods that survive resets.
Finally, if you are using Safestrap, or don't have a custom recovery, this is NOT possible.

Root and OTA Updates

I have rooted my phone, but am not doing any custom ROMS or anything. I notice that I have an OTA update, and figure that it may be in my best interest to install it, and it would stop nagging me then too. I know if i un-root, I will loose everything. I use Titanium backup. So if I do a full backup, un-root, install update(s), re-root, I can re-install Titanium (I have the paid version) and recover everything right where I left off correct?
I am assuming that you unlocked the bootloader even though you are just rooting. That is how I roll. If so it would be far easier to download the latest image for your phone and flash it. Just skip flashing the user partition. That will save your apps, data and settings.
It is a 10 minute process and far less prone to errors. TI backups are great but can create lots of little gremlins when you restore them.
And with root there are so many other things you could have changed that might cause the update to fail that it just isn't worth the effort.
Sent from my Nexus 6 using XDA Labs
TonikJDK said:
I am assuming that you unlocked the bootloader even though you are just rooting. That is how I roll. If so it would be far easier to download the latest image for your phone and flash it. Just skip flashing the user partition. That will save your apps, data and settings.
It is a 10 minute process and far less prone to errors. TI backups are great but can create lots of little gremlins when you restore them.
And with root there are so many other things you could have changed that might cause the update to fail that it just isn't worth the effort.
Sent from my Nexus 6 using XDA Labs
Click to expand...
Click to collapse
Awesome! Good to know. I know how to use the search function, but what should I search for to find how to do what you've recommended?
Thanks again
therealcrazy8 said:
Awesome! Good to know. I know how to use the search function, but what should I search for to find how to do what you've recommended?
Thanks again
Click to expand...
Click to collapse
Googling "nexus factory images" will get you where you need to go. But also I'd like to add that on the SuperSU forums there are posts about using the SuperSU app's built in "full unroot" feature with systemless root allows usage of ota's. It works by just restoring a backup of your boot image that the SuperSU.zip takes before rooting with the new systemless root method. The caveat to this is that when you install the zip via TWRP you need to select the "Leave /system read-only" option upon first install and also not mount /system as R/W at any time during your usage of root.
The way I've personally been doing ota's lately is just taking a "system-image" backup in TWRP before modding anything that way when the ota rolls around I just restore the backup, apply the ota update the backup reflash twrp and root. Doesn't really save any time versus using a factory image but 10mb ota vs 2gb image is easier for me with crummy data limited internets
StykerB said:
...The way I've personally been doing ota's lately is just taking a "system-image" backup in TWRP before modding anything that way when the ota rolls around I just restore the backup, apply the ota update the backup reflash twrp and root. Doesn't really save any time versus using a factory image but 10mb ota vs 2gb image is easier for me with crummy data limited internets
Click to expand...
Click to collapse
Interesting. As a rooted user though, why is flashing the entire (new) factory image an option, rather than just cherry-picking the files that you need (i.e boot.img, radio etc if altered)? I mean, I realize that you still have to download the whole image, but there are far fewer steps involved to getting a revised security update on your device than with resurrecting a stock Nandroid, applying the OTA, and then rooting again.
therealcrazy8 said:
Awesome! Good to know. I know how to use the search function, but what should I search for to find how to do what you've recommended?
Thanks again
Click to expand...
Click to collapse
At the top this sub forum is an FAQ that will get you going. Also in the development forum is a thread for Wugfresh NRT toolkit. It will do everything you need.
The option you are looking for in that is the 'no wipe' option to save your data.
But you should do it manually first, so you understand what is what if something goes wrong. And you should TI backup just in case.
If it bootloops or freaks out don't panic. It is fixable, as long as the bootloader is unlocked.
Sent from my Nexus 6 using XDA Labs
Not_A_Dev said:
Interesting. As a rooted user though, why is flashing the entire (new) factory image an option, rather than just cherry-picking the files that you need (i.e boot.img, radio etc if altered)? I mean, I realize that you still have to download the whole image, but there are far fewer steps involved to getting a revised security update on your device than with resurrecting a stock Nandroid, applying the OTA, and then rooting again.
Click to expand...
Click to collapse
It's only restoring the /system so data and apps remain but the main goal of mine is just saving data by not having to downloading a factory image. Regardless of how you do it you still have a PC in the mix at some point so I might as well save some of my data plan.

"Cloning" my Nexus 6, using Nandroid image

Hi,
I have a Nexus 6 with a shattered screen, and just bought another one to replace it (exact same model, XT1103 32GB).
I want to make a Nandroid dump of the old device by booting into TWRP temporarily, then restoring the backup to the new phone using the same method. Both phones are bootloader unlocked and totally stock (latest Android update).
Is there anything in particular that I should watch out for? Which partitions should I not touch - a friend on another forum suggested that I should not touch EFS?
Cheers,
Su
If you restore the efs from one to the other you'll loose your imei number on the second one
needleyepoke
---------- Post added at 07:49 PM ---------- Previous post was at 07:47 PM ----------
I've cloned a Nexus 5 but I'm not sure if it's the same way.... P.S. of course your not supposed to do it unless you own both phones... From what I've been told
needleyepoke
Hi,
I don't want to mess about with the IMEI etc - I just want the same system settings, apps etc.
What partitions should I backup/restore? I guess just System, Data, Cache, Boot & Recovery should be enough?
Thanks,
Su
[edit] This seems to suggest just System, Data and Boot is ok - but is that all I need if I am restoring to another device?
Sumanji said:
Hi,
I don't want to mess about with the IMEI etc - I just want the same system settings, apps etc.
What partitions should I backup/restore? I guess just System, Data, Cache, Boot & Recovery should be enough?
Thanks,
Su
[edit] This seems to suggest just System, Data and Boot is ok - but is that all I need if I am restoring to another device?
Click to expand...
Click to collapse
Yes if they're on the same version. I cloned a 32 into a 64.
Ok I just tried this now, and it is not working...
The restore to the new device worked fine, but when I power up I get the "your device is corrupt screen" (which I think is normal if you use TWRP), but then after that it's just a blank screen...
The phone is still able to boot into bootloader and recovery (stock).
Any ideas what could have gone wrong please?
Thanks,
Suman
I think this might be something to do with encryption... when booting into TWRP the new phone still requires the encryption pin I set up from its original software....
Do I need to start again?
Ok, I flashed the new phone with the factory image and started again... this time, when I restore the backup it just hangs on the white Google logo screen...
Any help appreciated please!
Thanks,
Su
If your firs N6 was encrpted (default) there's no way to clone it. Android will generate different encryption keys etc.
Secure lockscreen is a big no-no too. With it, you can't even properly restore backup on the same device!
Trying to take the lazy way out is just asking for trouble. There are many things that can go wrong.
Also just a side note. Cloning devices is illegal, even if you own both devices. The was set by the cell phone cloning laws set up by the FCC.
Your best bet is just to reset it up from scratch.
zelendel said:
Trying to take the lazy way out is just asking for trouble. There are many things that can go wrong.
Also just a side note. Cloning devices is illegal, even if you own both devices. The was set by the cell phone cloning laws set up by the FCC.
Your best bet is just to reset it up from scratch.
Click to expand...
Click to collapse
Oh well,
I'm remembering what I did and I did not restore the Nandroid from Device A to Device B, I titanium Backup'd all the apps and moved them to TitaniumBackup folder on the new phone, restored from there.
For /sdcard/ I had to copy and paste it from one phone to the other...
I'm going to reply this to your reddit thread also.
Lawstorant said:
If your firs N6 was encrpted (default) there's no way to clone it. Android will generate different encryption keys etc.
Secure lockscreen is a big no-no too. With it, you can't even properly restore backup on the same device!
Click to expand...
Click to collapse
Ah dang, so there is no way for me to do what I want then... that's annoying, I would have bought a different phone in that case!
I believe Google requires encryption to be active in all devices with Android 6.0.1 installed, so any new device you purchase will have this (non-) issue.
Think of the alternative however. You could always be dealing with Samsung and Knox.
Strephon Alkhalikoi said:
I believe Google requires encryption to be active in all devices with Android 6.0.1 installed, so any new device you purchase will have this (non-) issue.
Think of the alternative however. You could always be dealing with Samsung and Knox.
Click to expand...
Click to collapse
I believe that is correct. All Nexus devices going forward will have the kernel force encryption. The only way around it is to format data in TWRP (completely wipe the phone) and then when you re setup your ROM (or even the stock image) just make sure you flash a custom kernel that doesn't force encryption (which pretty much all custom kernels don't) before booting into OS for the first time. I run mine unencrypted because nandroid backups are wayyyyy quicker without encryption. I know the security isn't as good but not a deal breaker for me.
I asked this question a while back when I was in the same situation, and was told that it's a bad idea.
TriguyRN said:
I asked this question a while back when I was in the same situation, and was told that it's a bad idea.
Click to expand...
Click to collapse
It is a bad idea. Restoring any system files from one device to another is a risky game. I wouldn't even recommend restoring data from one device to another.
Start fresh, clean. No need to bring junk over, or risk issues. Takes 15 minutes to setup a phone how I like it after a clean rom flash. That's not a long time.
Last year I returned my N6 because of the peeling-back problem. I had a full TWRP backup on my laptop. I loaded it on to the replacement N6, renamed the backup folder to the new device id, and restored it. Worked perfectly, no problems.

About to wipe and 're-build' N6. Couple of Q.

Couple of quick (probably stupid) questions about wiping and rebuilding the phone:
I haven't done a "flash-all.bat" in quite a few iterations of Android updates. I keep hearing from different people how smooth and how fast and bug free their phone is after doing a "Flash-all.bat" on it.
Is this true or do you all think it's just a placebo effect?
I've already done a Titanium Backup of my apps. Do you all recommend doing it that way or, re-installing the apps and re-set everything up from the Play Store all over again?
I've backed up my "userdata" folder to my PC. Is there a way, after wiping the phone to completely erase the SD card and/or check for errors? Or, not necessary?
I've seen some discussion that people are no longer using Chainfire's SU any more and have moved on to something else (the other SU name escapes me at the moment)?
An unlocked Bootloader now trips SafetyNet? So there is no real reason to try and install "SUHide" and the like in order to get Android Pay working? I've not messed around
with trying to bypass the SafetyNet and just resigned myself to never being able to use A.P. Should I even mess with all of that?
Anything else you all might recommend on a "restart" of a device, I'd be eager to hear!
Thanks all!
1. FlashAll is way too drastic. It deletes every single file you had on your emmc. Doing factory reset from TWRP only deletes the apps and settings and leaves all your photos, documents, downloads, etc.
2. I let Google install my apps after a new setup and then let TB restore the data for those that Google couldn't. Since MM even Google manages to restore some data too.
3. Unless you want to sell it, there's no need to wipe it completely.
4. PHH's superuser is completely open source and more and more people use it.
5. Yep, you need a custom kernel for SafetyNet if your bootloader is open. There is one already for 7.0 too
Sent from my Nexus 6P running Nougat DP 7.1 using Tapatalk
istperson said:
1. FlashAll is way too drastic. It deletes every single file you had on your emmc. Doing factory reset from TWRP only deletes the apps and settings and leaves all your photos, documents, downloads, etc.
2. I let Google install my apps after a new setup and then let TB restore the data for those that Google couldn't. Since MM even Google manages to restore some data too.
3. Unless you want to sell it, there's no need to wipe it completely.
4. PHH's superuser is completely open source and more and more people use it.
5. Yep, you need a custom kernel for SafetyNet if your bootloader is open. There is one already for 7.0 too
Sent from my Nexus 6P running Nougat DP 7.1 using Tapatalk
Click to expand...
Click to collapse
1) Ok, so I will just do a "factory reset" in TWRP then.
2) I will have to take a look at the TB Backup, I've only done "Backup all user apps". I'll check if there is just a setting for "Data for user apps" then.
3) Ok. Point taken. Just thought wiping the internal storage might get rid of any "ghosts in the system" so to speak.
4) Thank you for refreshing my memory. Forgot the name of the other SU.
5) I'll check to see if Franco Kernel has that, or plans on implementing it. I've been using F.K. forever so hopefully he will get around to releasing one.
** Unrelated note: Your 6p, in hindsight, was it worth the upgrade from the 6? Since the new Pixels are out, I'm assuming the 6P are going to start dropping in price at this point **
Thanks again for the suggestions / help
usafle said:
** Unrelated note: Your 6p, in hindsight, was it worth the upgrade from the 6? Since the new Pixels are out, I'm assuming the 6P are going to start dropping in price at this point **
Thanks again for the suggestions / help
Click to expand...
Click to collapse
This was indeed worth it, it was a store display model activated for a couple of months, I got it for half price.
But I needed a daily device while I develop Nougat for my N6. Then switch them and develop it for the 6P.
But as a device I'm very pleased with it, it's faster, the camera is better, and the 7.1 DP is already better than the official 7.0.
Sent from my Nexus 6P running Nougat DP 7.1 using Tapatalk

Full backup and restore of ROM and data

Hi, I'm looking for an overall guide how to do a full backup and restore of a currently running ROM which includes also all data.
I want to be able to do some tryouts with another ROM and if anything fails or doesn't suite my needs I would like to simply go back to my current setting.
With some research in this forum I already found the follwing related threads. As this seems to be a quite generic topic I did the research mainly in the "crossdevice" section.
Backuping & Restoring IMG files W/O PC
requires root; guide without root is announced but not mentioned
some hints in the direction of "nandroid" but no detailed workflow
Lock/Unlock/Relock Bootloader Using TWRP With DRM keys
only about the bootloader
obviously there are more specific guides in the XZ1c section
All Things XPERIA; Debranding; Rooting & More...
good overview of basic skills regarding flashing, rooting, backup TA, etc.
nothing about full backup data or current ROM
nothing about restore a full backup
Backup your stock ROM without flashing Custom Recovery.
good short description to backup ROM
does this also work for data?
unsure if this is directly applicable to XZ1c
nothing about restoring ROM or data
I would be very pleased if someone who are familiar with this device can give some hints for my questions.
The long story:
Since Sony stopped to distribute security updates for XZ1c I feel forced to consider an alternative OS. I would like to give LinageOS 17.1 a try. Two years ago I had some good experience with that OS on a Z3c, but with th XZ1c it seems to be more complex especially regarding DRM keys etc.
I'm also using banking and payment apps which often stop working with alternative ROMs. Maybe there are some tricks to pass safetynet but at the end you have to really evaluate all your apps to be sure that all is running as expected. If that evaluation fails I don't want to spend much time to return to the current setting which I'm actually very satisfied with. Only missing security updates makes me think more and more of an alternative.
Thank you very much for any hint.
Best regards,
Leo
Maybe someone read this and can at least answer some questions. I'm completely not familiar with the processes so maybe my questions sound stupid. Sorry for that.
Is it possible to use fastboot to boot (not install) into TWRP and perform a complete Backup of data there without unlocking bootloader?
Gesendet von meinem G8441 mit Tapatalk
The easiest and fastest way is to perform a full backup using TWRP and you need an unlocked bootloader to do that.
Thank you for that answer.
I've read in Lock/Unlock/Relock Bootloader Using TWRP With DRM keys
Note - Unlocking bootloader for first time will wipe out your whole data including internal memory
Click to expand...
Click to collapse
So the "easy" way using TWRP seems not to work for my use case. I really want to backup the data before wipe
leo2100 said:
Thank you for that answer.
I've read in Lock/Unlock/Relock Bootloader Using TWRP With DRM keys
So the "easy" way using TWRP seems not to work for my use case. I really want to backup the data before wipe
Click to expand...
Click to collapse
You'll need to use Xperia Backup and/or Googles backup feature. A whole rom backup without root or unlocking the bootloader isn't an option.
SXUsr said:
A whole rom backup without root or unlocking the bootloader isn't an option.
Click to expand...
Click to collapse
So is it generally not possible to backup my data before first time flashing a custom ROM to restore it later to the current "official" state?
What about the temp root exploit? May this also allow a dump of the data partition like it does with the TA partition?
j4nn said:
Tools to backup TA partition (drm keys) of Xperia XZ1 Compact
View attachment 4633124
by j4nn
https://j4nn.github.io/
​
Click to expand...
Click to collapse
Gesendet von meinem G8441 mit Tapatalk
@leo2100, you can backup data (or firmware partitions) via an exploit having bootloader still locked. But for that you need to run exploitable fw version.
If you are on pie, you would need to downgrade to oreo and that would result with full data erase. You could backup few partitions that are not part of stock fw.
It is question if there is anything useful apart from TA partition - maybe persist partition, but I am not sure if it is possible to restore it.
There is a new temp root exploit that allows to get temp root with the latest oreo firmware (47.1.A.16.20):
https://forum.xda-developers.com/cr...1c-xz1-xzp-temp-root-exploit-via-cve-t4046641
j4nn said:
If you are on pie, you would need to downgrade to oreo and that would result with full data erase.
Click to expand...
Click to collapse
Damn, that is not what I wanted to read
Ok, so at all I need to backup my data with the stock Pie built in abilities. So even if I return back to the stock Pie ROM I have to setup all apps again (of course depending on backup abilities of each app).
Is it correct, that once I did the backup of TA partition and restored it after unlock, I can also flash stock pie again but with the ability to boot into TWRP with fastboot?
Do I have to expect any restrictions compared to my current setup (running last Pie with locked boot loader)?
I ask this because I've had many troubles with my Z3c regarding safety checking apps like banking or 2FA (two-factor-authentification).
You see, I'm still not very confident to do this irreversible step of unlocking
@leo2100, you may get trouble to pass google/playstore certification - see here for more details.
If that is important to you, you may be better not to unlock BL.
Thank you for the hint.
The reason why I still worry about unlocking is that it is irreversible and may causes issues that I cannot see at the moment [emoji53].
So as this is really only a one way thing, I still will stay with the current setup and stop this "project", at least for now.
leo2100 said:
will stay with the current setup and stop this "project", at least for now.
Click to expand...
Click to collapse
That is a wise decision in your case! I can tell you that the custom ROMs for the XZ1 are not at the same level as Lineage for the old Sony smartphones were. Do yourself a favor and stay stock and you will have no problems with banking apps.
I came up to the same problem!!
I am trying to undelete some accidentally deleted photos and using aany undelete comerscal utility expects a rotted phone in order to see internal XZ1 memory!
Any ideas? as I cannot see a solution how to get DRM keys backup before OEM UNLOCK!!

Categories

Resources