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
Related
Hello,
I made a backup through TWRP to my lollipop rom.
Now Im trying to restore it and i get an error message - "no partitions to restore"
Any help please?
How did you make the backup? What did you check when creating it?
I made the backup through the twrp. i checked all the boxes (system,efs... )
Okay... Did you save it to internal storage, or sdcard? Also did you wipe your phone at all since the backup was made or before trying to restore?
On some TWRP builds, the restore option is not working properly. Do a full wipe and try restoring, if it does't work, you will need a clean install. Make backup of your data before this.
Also you can try updating the recovery image.
i saved it to internal storage then copied to external sd. after i installed other zip rom. when itreid to restore the twrp backup recognized by twrp but doesnt let me to check the boxes (system, efs...) as i wrote
amoren10 said:
i saved it to internal storage then copied to external sd. after i installed other zip rom. when itreid to restore the twrp backup recognized by twrp but doesnt let me to check the boxes (system, efs...) as i wrote
Click to expand...
Click to collapse
Maybe the backup is corrupted somehow...
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
I was running oos based nougat custom rom with blu spark recovery. Then flashed official ob1, didnt like it, wiped cache/data/system and reinstalled my old oos nougat rom (audax 4.7.6). Now i get the above mentioned message..
Things i tried:
- addionally wipe internal storage and media (installed rom via adb sideload then)
- reformat system/cache/date with ext4
I googled the error and for most people (threads werent particularly concerning the op5t however) it seems that just wiping data and reinstalling the rom did the trick. Not for me though..
What can i do now?
Solution: reformating the data partition with ext4 is not enough. I had to format to FAT and right after that again to ext4, reboot to system and boom, it worked!
PS: i wonder what data is on the internal storage partition that i deleted? I didnt have any data on the phone, i just wonder.. It isnt somehow crucial to the phone?!
I think the decryption key is somehow embedded into the internal storage as wiping /data does not delete the PIN/pattern. Might be a hidden partition or something similar that is not wiped when wiping /data as long as it is ext4.
Your data is gone. It failed to completely encrypt and now there's nothing that can be done. Format /data as ext4 and let it try encrypting again
I have the same problem exactly. Can you explain in steps you have installed then format or how?
I have the same problem exactly. Can you explain in steps you have installed then format or how?
Click to expand...
Click to collapse
I had the exact same problem. But it is an easy fix but does require wiping your internal storage.
So the save way of doing this would be:
1. Backup all your data by going to TWRP or your ROM if that still works. Plug in an USB cable and use MTP or the adb pull command to backup your data
2. Reflash OB1 with no root (like Magisk of SuperSU) if you have TWRP. This will cause you to have the stock recovery again. I also recommend to do a clean flash (Wiping system and data before flashing the rom).
3. Download the rollback build from Oneplus [HERE] and copy this to the internal storage.
4. Boot into the stock recovery flash the rollback build. THIS STEP WILL WIPE YOUR INTERNAL STORAGE.
5. Now you have OxygenOS 4.7.5. Download OxygenOS 4.7.6 Incremental Update [HERE]
6. Go back to the Stock recovery and flash the incremental 4.7.6 zip.
7. You have the latest version now. So boot to fastboot reflash TWRP and flash SuperSU or Magisk in TWRP to regain root
Guys I did a fail, i had OB3 installed, and I wanted to try RR so I wiped system and when I tried to install I have seen error 7 saying its for dumpling not for oenplus5t.
So I restored.... But instead restoring OB3 I have restored stock Nougat rom -.- I have even stock recovery now, what is the best way to fix it?
Can i change to FAT and stay and dont go back to ex4 again?
Hi i don't know if u r reading this but if you are please help me cause I'm so lost and confused over this since yesterday...
so 2 days ago my phone started lagging and hanging and freezing until i realized i have got this issue with data encryption
i have a rooted sony z2 with TWRP Custom recovery
first i didn't know it was with data encryption failure so i literally factory reset and installed all my apps and data again and again!!! after every time my phone started to lag !!
after one whole day of trying everything i finally realized its actually with the data encryption and i should change my ex4 to something else... so here again i wiped the phone and changed to ex3 and installed and all my data and apps all over again
but after a couple hours...same problem again.....
im literally so tired of not knowing what to do ! my head hurts so much due this ugh....
i havent changed to FAT from ex3 so im wondering if it will finally solve my problem permanently if i change to FAT ??
And if it did can i just keep it on FAT forever ?
Please guide me thanks ...!
Lasersdude said:
I was running oos based nougat custom rom with blu spark recovery. Then flashed official ob1, didnt like it, wiped cache/data/system and reinstalled my old oos nougat rom (audax 4.7.6). Now i get the above mentioned message..
Things i tried:
- addionally wipe internal storage and media (installed rom via adb sideload then)
- reformat system/cache/date with ext4
I googled the error and for most people (threads werent particularly concerning the op5t however) it seems that just wiping data and reinstalling the rom did the trick. Not for me though..
What can i do now?
Solution: reformating the data partition with ext4 is not enough. I had to format to FAT and right after that again to ext4, reboot to system and boom, it worked!
PS: i wonder what data is on the internal storage partition that i deleted? I didnt have any data on the phone, i just wonder.. It isnt somehow crucial to the phone?!
Click to expand...
Click to collapse
Finally. Thank you so much!
trying to do a twrp backup to sd, as the above states failed.. why, i can backup to internal though..
Having the same issue
This user's post could be helpful - https://forum.xda-developers.com/showpost.php?p=83111195&postcount=256
Theoretically if you format the SD in TWRP in way to let it being detected, the format won't be seen by ROM but only by TWRP.
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