Just wondering if I can restore a TWRP data partition from an encrypted install to a fresh install - this time choosing not to use encryption in the ROM installer - or if restoring the data backup will revert the partition to encrypted.
If this doesn't work, is there a simple method of restoring the encrypted backup after formatting data, into an unencrypted partition? I'd be using TiBa to selectively restore if nothing else.
This is merely guessing but I would think it would work as you're looking for, format data to be unencrypted and restore the backup. Unless you're using a fully stock or other ROM that enforces encryption, of course.
As I said, just guessing, though.
Not sure, but I think this might be what you're looking for:
https://forum.xda-developers.com/htc-10/how-to/guide-root-optionally-s-off-radio-t3373025
Yes, that will work and I know of many who have done it from the Viper10 ROM thread.
Backup data in twrp, format data, restore your data backup
Related
Hey guys,
I recently installed a new Rom, and its instructions mentioned that I need to format the system before flashing it. However I forgot to do that.
the rom works fine, but just in case, I want to format the system to make sure that i have no issues with the rom
however, i dont have enough time to have to set up my phone and reinstall all my apps and data etc afterwards (Im guessing that formatting the system will erase my memory)
so basically, Im wondering, if I make a nandroid in CWM before formatting, can i restore it after formatting so that i can have all my data back?...or will it simply undo the formatting?
i just want to know because this could save me a lot of time and trouble, however, if it does undo the formatting, then I have no choice really.
But just in case...
thanks in advance
It depends what you mean exactly by formatting. If you mean wipe data/cache then this will clear all your settings and user data (including apps).
If you say it works fine then I wouldn't worry about doing anything. There might be a slight chance that you see a problem with the rom in the future. If that's the case use titanium to backup and restore your settings and apps after clearing your data/cache.
Sent from my Galaxy Nexus using Tapatalk
Peesashiz said:
Hey guys,
I recently installed a new Rom, and its instructions mentioned that I need to format the system before flashing it. However I forgot to do that.
the rom works fine, but just in case, I want to format the system to make sure that i have no issues with the rom
however, i dont have enough time to have to set up my phone and reinstall all my apps and data etc afterwards (Im guessing that formatting the system will erase my memory)
so basically, Im wondering, if I make a nandroid in CWM before formatting, can i restore it after formatting so that i can have all my data back?...or will it simply undo the formatting?
i just want to know because this could save me a lot of time and trouble, however, if it does undo the formatting, then I have no choice really.
But just in case...
thanks in advance
Click to expand...
Click to collapse
Formatting system deletes the system partition completely.
That's all it means.
Hence:
Formatting /data and /cache
is the same as a factory reset (as it's labeled).
The Rom probably had a format /system script in there.
Some Rom devs just want you to be extra cautious.
I'm sure you're fine.
And your question about the nandroid...
No.
A nandroid will restore whatever system it backed up.
what are the advantages to backing up the cache and recovery partitions?
What would I lose in some popular apps if I didn't backup the cache partition
Also would I lose my recovery TWRP boot menu on a restored image if I didn't backup the recovery partition?
You won't lose anything important if you don't backup the cache and you don't need to backup the recovery partition. If something happens to your recovery partition, you'll need to use ODIN or mobile ODIN to flash it, so backing it up is useless.
No need to backup your recovery. If your recovery partition gets messed up you wouldn't be able to get in twrp to flash it. Also recovery partitions can be fixed while the device is on so nothing to worry about. I guess if you theme it up or want a specific version of twrp it might be helpful to back it up.
i've been trying out new CM10.1 nightlies and nothing has worked as well as 3/17, so i keep reflashing my 3/17 nandroid backup. however, ive noticed that after 1 or two times of doing that, the phone battery has sucked and my data connection is acting funky.
when restoring from nandroid, does it basically wipe the phone and restore it exactly back to how it was, or do files from frequent flashing and trials of other nightlies still stick around?
if so it is the latter, would i benefit from moving my backup to my external SD card, doing a total wipe of the phone 100%, and reflashing the nandroid backup?
At the very least you should wipe cache,dalvic, and factory reset, which you could've learned from a simple search.
When you dirty flash rom updates and backups, you begin to run into these small bugs. Layering your software like this will add up. It's safe to keep a copy of your backup on your sd card, yes. If you perform a full wipe (wipe data, cache, dalvik, and system) you will be removing the OS entirely and allowing for a completely clean install. That's what I recommend. Since you are not formatting/wiping data, you will not lose any.
TeknoGodz said:
At the very least you should wipe cache,dalvic, and factory reset, which you could've learned from a simple search.
Click to expand...
Click to collapse
yes. i know. that was already done. i was asking about something more in depth. thanks for nothing.
xBeerdroiDx said:
When you dirty flash rom updates and backups, you begin to run into these small bugs. Layering your software like this will add up. It's safe to keep a copy of your backup on your sd card, yes. If you perform a full wipe (wipe data, cache, dalvik, and system) you will be removing the OS entirely and allowing for a completely clean install. That's what I recommend. Since you are not formatting/wiping data, you will not lose any.
Click to expand...
Click to collapse
much appreciated. i did a full system wipe 100% and just restored from the nandroid fresh (it had worked before all teh crazy flashing.).
thanks!
Just to add to this thread, a Nandroid does not capture everything.
Such as, if you have maps saved to your internal SD card from a navigation app, those maps are not picked up as part of the nandroid.
I make a habit of copying my internal SD card contents onto my computer and then restoring them after restoring a Nandroid.
I'm on 4.7.6 and backup everything with twrp except system (use system img instead) then flash ob1 and say I don't like it. Can I clean flash 4.7.6 full zip then re flash twrp then restore the backup? Will this work without data loss?
I didn't test it myself but it definitely should. Make sure to use the same TWRP you backed it up with at the beginning and keep in mind that Non-OxygenOS Oreo builds might use keystore3 (making some TWRPs unable to decrypt /data).
Remove any PIN or password before you restore the backup and you should be fine
And don't forget that TWRP doesn't save the SD card or internal storage. Only /data without /data/media
Macusercom said:
I didn't test it myself but it definitely should. Make sure to use the same TWRP you backed it up with at the beginning and keep in mind that Non-OxygenOS Oreo builds might use keystore3 (making some TWRPs unable to decrypt /data).
Remove any PIN or password before you restore the backup and you should be fine
And don't forget that TWRP doesn't save the SD card or internal storage. Only /data without /data/media
Click to expand...
Click to collapse
Yeah I'll be sure to remove the pin/pw. I'm using cordworkx uniserval twrp. Seems to be fine on 4.7.6 with flashing things.
Yeah data is what I need backed up. /data/media shouldn't be wiped anyway in any of this? I'll make a backup on my pc just in case.
Thanks for the reply
Hi there,
My phone doesn't boot to android and returns to recovery every time, after doing a dirty installation from ArrowOS 11 encrypted to 12 also encrypted.
I made a backup, but I selected the internal storage by fault.
And now TWRP doesn't ask me for a password, so I can't decrypt the data partition.
What I tried to fix the issue:
I tried to install more than one TWRP version included [Orange fox, PBRP, and a one called twrp_ginkgo-willow-3.4A9_23-12-2020_BL.img (this was one I used before with ArrowOS 11]
installed the last working firmware and the latest ArrowOS 11 as I can't find older versions.
decrypting the data with this command: "ADB shell twrp decrypt mypincode"
The last time this happened to me, I followed those steps:
I had to wipe all partitions and clean install the same previous ROM
Then I created the same pin code as my previous one
I created a backup of boot, Dtbo, and recovery
restored my data backup through TWRP
restored the boot, Dtbo, and recovery
wiped the Dalvik / Art Cache and Cache
The problem now is that I created the backup on the internal storage by fault. If someone made the same pin code as mine and created a backup of the boot, Dtbo, and recovery for me is it going to work?
Is there anything else I can do to recover my data?
QuietLife said:
The problem now is that I created the backup on the internal storage by fault. If someone made the same pin code as mine and created a backup of the boot, Dtbo, and recovery for me is it going to work?
Click to expand...
Click to collapse
No, decryption key is unique
QuietLife said:
Is there anything else I can do to recover my data?
Click to expand...
Click to collapse
If you already (sometime in the past) flashed DFE wih format data , then just flash DFE and clear chache/dalvik + reboot
if you never did it then i'm afraid there is no solution ,you have to format
Ask in DFE topic to make sure
loopypalm said:
No, decryption key is unique
If you already (sometime in the past) flashed DFE wih format data , then just flash DFE and clear chache/dalvik + reboot
if you never did it then i'm afraid there is no solution ,you have to format
Ask in DFE topic to make sure
Click to expand...
Click to collapse
I didn't use it, but last time I didn't use it also and I restored my data, so I think I might have a chance.
Is there a way to backup the current encrypted data partition to a PC or a memory card?
QuietLife said:
I didn't use it, but last time I didn't use it also and I restored my data
Click to expand...
Click to collapse
Some roms does not encrypt data by default, that was the case i think
QuietLife said:
Is there a way to backup the current encrypted data partition to a PC or a memory card?
Click to expand...
Click to collapse
I never tried it (i never encrypt) so i'm not sure
you can change the bkp path in Ofox to USB (OTG) or SDCard and see if it work