Question FP backup persist partition still needed? - OnePlus 9 Pro

Hello,
is it still needed on a OPO9P EU to backup the persist partition for the FP?
How to fix fingerprint enrollment issues caused by broken persist partition on the OnePlus 8 series, OnePlus 7T Pro, and possibly others
Some OnePlus 8, 8 Pro, and 7T Pro users facing fingerprint enrollment issues can fix it by restoring the calibration data into the persist partition.
www.xda-developers.com
Thanks

Yes, if your persist gets corrupted somehow, there's no way to get it back. Back it up.

Are there any other partitions useful to backup additionally to the persist one?
Tks

Modemst1/2

Related

[UNOFFICIAL][ARM64] TWRP 3.2.3-2 with decrypt [cedric]

Hello
This is a TWRP recovery for Motorola Moto G5 Cedric for arm64 ROMS, with encryption support, backup support for persist and efs partitions and possibility to flash/backup logo boot image.
I need review and test, especially for the storage decryption and/with LineageOS fingers-crossed. I was able to test it on my device (XT1676 3Go).
It is my first ROM so it is possible that there are bugs.
- Be carefull, there are problems with the backup system :
Just wish to come here and tell you guys to AVOID using this recovery, it seems to have a serious bug.
I just backed up my entire data partition (and enable digest verification) and restored the partition afterwards and the phone didn't boot.
Then I tried restoring it with verification enabled and the hashes didn't match.
In other words, for some reason, the generated backup was corrupt.
- freeZbies
Click to expand...
Click to collapse
Changelog
TWRP 3.2.3-2
add sdcardfs
add FB2PNG for screenshot
fix brightness path and define it at 160
fix time zone error
fix incorrect lun path for USB
You can download it here :
TWRP 3.2.3-2 (md5: 0dbd3846593ae907d3391596876c1f35)
TWRP 3.2.3-1 (md5: 404b54d27653b5a1ec5b59023f53d3cb)
TWRP 3.2.3-0
Sources :
https://github.com/Akipe/twrp_android_device_motorola_cedric
https://github.com/Akipe/twrp_android_device_motorola_msm8937-common
Manifest :
https://github.com/Akipe/android_development_manifest
Would it be possible for you to compile a version capable of backing up all partition, including persist and efs? see here: https://forum.xda-developers.com/showpost.php?p=78695191&postcount=95
Guttergorm said:
Would it be possible for you to compile a version capable of backing up all partition, including persist and efs? see here: https://forum.xda-developers.com/showpost.php?p=78695191&postcount=95
Click to expand...
Click to collapse
Hi!
Sorry for the delay, I added the functions you wanted. Can you try and tell me if everything is ok?
Hi,
tested your recovery image with my installed LOS 15.1. (32bit) Device: XT1676 16GB P5
- storage decryption: OK
- backup support for persist and efs partitions and possibility to flash/backup logo boot image: OK
nice work, thx for you effort
mikefive said:
Hi,
tested your recovery image with my installed LOS 15.1. (32bit) Device: XT1676 16GB P5
- storage decryption: OK
- backup support for persist and efs partitions and possibility to flash/backup logo boot image: OK
nice work, thx for you effort
Click to expand...
Click to collapse
Thx for testing :good:
Akipe can u help us to build treble rom for cedric???
Works nicely, thanks.
I just tested it and it decrypts my internal storage normally.
Just wish to come here and tell you guys to AVOID using this recovery, it seems to have a serious bug.
I just backed up my entire data partition (and enable digest verification) and restored the partition afterwards and the phone didn't boot.
Then I tried restoring it with verification enabled and the hashes didn't match.
In other words, for some reason, the generated backup was corrupt.
Of course I could make another test but it'll take just a long time to backup everything again, so if anyone wants to test it, feel free, but beware, you could have a hell of a headache finding out the backups you made were useless.
freeZbies said:
Just wish to come here and tell you guys to AVOID using this recovery, it seems to have a serious bug.
I just backed up my entire data partition (and enable digest verification) and restored the partition afterwards and the phone didn't boot.
Then I tried restoring it with verification enabled and the hashes didn't match.
In other words, for some reason, the generated backup was corrupt.
Of course I could make another test but it'll take just a long time to backup everything again, so if anyone wants to test it, feel free, but beware, you could have a hell of a headache finding out the backups you made were useless.
Click to expand...
Click to collapse
Hello ! Thank you for your test and sorry for your backup
I will test the backup system and add a warning
freeZbies said:
Just wish to come here and tell you guys to AVOID using this recovery, it seems to have a serious bug.
I just backed up my entire data partition (and enable digest verification) and restored the partition afterwards and the phone didn't boot.
Then I tried restoring it with verification enabled and the hashes didn't match.
In other words, for some reason, the generated backup was corrupt.
Of course I could make another test but it'll take just a long time to backup everything again, so if anyone wants to test it, feel free, but beware, you could have a hell of a headache finding out the backups you made were useless.
Click to expand...
Click to collapse
I have backup up data partition from my TWRP, reboot one time to recovery, restore the data backup with digest verification, and reboot to LineageOS, with no problem (my rom is LineageOS 16.0 without encryption.)
I think there may be 2 errors (maybe more) :
1) There is a problem with data restore when encryption is enable. I can not test this scenario for now, but i will do it as soon as i can
2) Was your backup stored on your SD card? if so, it is possible that the sd card may be damaged, because it is too old or of poor quality (more info here : https://photo.stackexchange.com/questions/40489/what-causes-an-sd-card-to-go-corrupt )
if you have other information or other ideas, do not hesitate to share it!
if people want to participate, try to save the data partition and restore it, especially with the encrypted partition :good::good:
be careful, make a backup of your data before test
Akipe said:
I have backup up data partition from my TWRP, reboot one time to recovery, restore the data backup with digest verification, and reboot to LineageOS, with no problem (my rom is LineageOS 16.0 without encryption.)
I think there may be 2 errors (maybe more) :
1) There is a problem with data restore when encryption is enable. I can not test this scenario for now, but i will do it as soon as i can
2) Was your backup stored on your SD card? if so, it is possible that the sd card may be damaged, because it is too old or of poor quality (more info here : https://photo.stackexchange.com/questions/40489/what-causes-an-sd-card-to-go-corrupt )
if you have other information or other ideas, do not hesitate to share it!
if people want to participate, try to save the data partition and restore it, especially with the encrypted partition :good::good:
be careful, make a backup of your data before test
Click to expand...
Click to collapse
I agree it may be any of the 2 problems.
My data partition was indeed encrypted, and yes, my SD card is not what I would call genuine, though I think that's not the case since the card is relatively new and I never had any problem related to data corruption.
Anyways, thanks for your effort.
freeZbies said:
I agree it may be any of the 2 problems.
My data partition was indeed encrypted, and yes, my SD card is not what I would call genuine, though I think that's not the case since the card is relatively new and I never had any problem related to data corruption.
Anyways, thanks for your effort.
Click to expand...
Click to collapse
I have test backup the data partition with encryption on LineageOS 16 (arm64), backup and restore work without issue
What ROM did you use when you made the backup, and with what arch (arm or arm64) ?
Akipe said:
I have test backup the data partition with encryption on LineageOS 16 (arm64), backup and restore work without issue
What ROM did you use when you made the backup, and with what arch (arm or arm64) ?
Click to expand...
Click to collapse
I was on stock oreo, so its arm, not arm64
freeZbies said:
I was on stock oreo, so its arm, not arm64
Click to expand...
Click to collapse
Oh ok, there are chances that's why the backup did not work .
This recovery is mainly intended for arm64 rom !
Just wanted to say that everything worked well for me in backing up and restoring the OmniROM, on both decrypted and encrypted phone.
Thanks @Akipe for the great job
Can you update it to latest TWRP?
Sent from my cedric using XDA Labs
forgot password to decrypt??
hi,
first, sorry if this is the wrong place to post this. right now, when i install the 64 bit twrp i am asked for a password to decrypt my data. i have tried some passwords i think i would have used, but those don't work and i get a message also saying that the default password didn't work - i haven't typed a default password, though, so i assume there is a default one that twrp tries automatically. in the past, i did try a rom requiring 64 bit twrp and i am guessing i set a password other then the default to encrypt/decrypt, but i went back to stock without issues so have not thought about the password and cannot remember what i would have used. i wanted to try dotos on my phone, which i assume requires 64 twrp because i got error 255 when i tried to flash without twrp64. so i installed twrp64 but cannot get any further. so here are my questions:
is there any way to decrypt the data if i forgot my password?
if not, can i format the data while encrypted to install the new rom? if i can do that, what should i back up? i have pictures and other necessary files backed up, so i am not worried about completely wiping the phone to start over. however, should i back anything else up before formatting? do i need to worry about losing imei or losing any partitions that would make phone inoperable or not have any signal? should i back up with twrp64 or the non-64 bit twrp currently installed? any help or point in the right direction is greatly appreciated.
tia,
nurvus
nurvus said:
hi,
first, sorry if this is the wrong place to post this. right now, when i install the 64 bit twrp i am asked for a password to decrypt my data. i have tried some passwords i think i would have used, but those don't work and i get a message also saying that the default password didn't work - i haven't typed a default password, though, so i assume there is a default one that twrp tries automatically. in the past, i did try a rom requiring 64 bit twrp and i am guessing i set a password other then the default to encrypt/decrypt, but i went back to stock without issues so have not thought about the password and cannot remember what i would have used. i wanted to try dotos on my phone, which i assume requires 64 twrp because i got error 255 when i tried to flash without twrp64. so i installed twrp64 but cannot get any further. so here are my questions:
is there any way to decrypt the data if i forgot my password?
if not, can i format the data while encrypted to install the new rom? if i can do that, what should i back up? i have pictures and other necessary files backed up, so i am not worried about completely wiping the phone to start over. however, should i back anything else up before formatting? do i need to worry about losing imei or losing any partitions that would make phone inoperable or not have any signal? should i back up with twrp64 or the non-64 bit twrp currently installed? any help or point in the right direction is greatly appreciated.
tia,
nurvus
Click to expand...
Click to collapse
You need to format data
Push back button when it asks for decrypt
Goto wipe and select the option on the right to format data
This will erase everything on internal storage so copy any files you want to keep to pc first (pictures music etc)
Once formatted data restart back to recovery to check encryption has been removed and data partition is mountable
TWRP backups do not save personal files (pictures music etc) They only backup data and system files (and other named partitions)
Once you have flashed a new rom you can encrypt again if you want to via the security settings menu in phone settings
TheFixItMan said:
You need to format data
Push back button when it asks for decrypt
Goto wipe and select the option on the right to format data
This will erase everything on internal storage so copy any files you want to keep to pc first (pictures music etc)
Once formatted data restart back to recovery to check encryption has been removed and data partition is mountable
TWRP backups do not save personal files (pictures music etc) They only backup data and system files (and other named partitions)
Once you have flashed a new rom you can encrypt again if you want to via the security settings menu in phone settings
Click to expand...
Click to collapse
thanks for the quick response! and just for clarification and for me to be sure, should i back up any partitions before formatting? right now i have 32 (or non64 i guess) bit twrp installed, stock rom and bootloader unlocked. do i need to take any precautions with data/imei/signal before reinstalling twrp64, formatting data, and installing a new rom? if it matters any i have the international version of the moto g5. thanks again!!
nurvus
nurvus said:
thanks for the quick response! and just for clarification and for me to be sure, should i back up any partitions before formatting? right now i have 32 (or non64 i guess) bit twrp installed, stock rom and bootloader unlocked. do i need to take any precautions with data/imei/signal before reinstalling twrp64, formatting data, and installing a new rom? if it matters any i have the international version of the moto g5. thanks again!!
nurvus
Click to expand...
Click to collapse
Backup efs if you want to preserve your current emei state or need to restore it in future

[HOW TO] do nandroid backup with Oreo Twrp?

Since the data is encrypted in Oreo twrp how can we have a nandroid backup for our phone?
Edit : Thanks to AleNonsense for this guide
1. Back up your apps data with oandbackup or titanium (whatever works for you)
2. Backup your internal storage on your pc or sdcard (recheck if the oandbackup/titanium folders are copied. Most of the times they are in internal storage)
3. reboot in TWRP,
4. format /data,
5. flash forced encryption disabler from
this thread,
6. flash Magisk and then reboot.
7. Phone is decrypted and rooted
(for check, Magisk manager will have the keep force encryption box unflagged and TWRP will detect data partition dimension instead of the 0MB which it's shown while phone is encrypted)
Fingerprints Not Recognised
For some reasons our existing fingerprint are not erased but are not seen either too. Try registering different finger so that you can get rid of the register fingerprint screen and then try unlocking your phone with previously registered finger. It should work.
suhel28 said:
Since the data is encrypted in Oreo twrp how can we have a nandroid backup for our phone?
Click to expand...
Click to collapse
Afaik it's not possible unless you decrypt your phone (at least that's what I did after many failed attetmps).
AleNonsense said:
Afaik it's not possible unless you decrypt your phone (at least that's what I did after many failed attetmps).
Click to expand...
Click to collapse
Wouldn't decrypting format your phone?
Also how do you do it?
suhel28 said:
Wouldn't decrypting format your phone?
Click to expand...
Click to collapse
Yup, but you can always restore everything from HiSuite for once and then being able to do nandroids.
suhel28 said:
Also how do you do it?
Click to expand...
Click to collapse
I did it this way: reboot in TWRP, format /data, flash forced encryption disabler from this thread, flash Magisk and then reboot.
Phone is decrypted and rooted (for check, Magisk manager will have the keep force encryption box unflagged and TWRP will detect data partition dimension instead of the 0MB which it's shown while phone is encrypted).
AleNonsense said:
Afaik it's not possible unless you decrypt your phone (at least that's what I did after many failed attetmps).
Click to expand...
Click to collapse
AleNonsense said:
Yup, but you can always restore everything from HiSuite for once and then being able to do nandroids.
I did it this way: reboot in TWRP, format /data, flash forced encryption disabler from this thread, flash Magisk and then reboot.
Phone is decrypted and rooted (for check, Magisk manager will have the keep force encryption box unflagged and TWRP will detect data partition dimension instead of the 0MB which it's shown while phone is encrypted).
Click to expand...
Click to collapse
Thanks mate, i will try and let you know ??
Edit : It worked. Thanks a lot. You should make a guide in the forums for this.
Thanks!
it works like a charm! I'm on RR openkirin OREO.
Only two questions:
- Now the fingerprint sensor doesn't work very well when I try to save my fingerprint
- I cannot mount the vendor partition in TWRP, but I can browse it with the filemanager. Is it normal? If so, do I have to skip that partition during the backup?
Thanks again for sharing that info!
spiritwashere said:
Thanks!
it works like a charm! I'm on RR openkirin OREO.
Only two questions:
- Now the fingerprint sensor doesn't work very well when I try to save my fingerprint
- I cannot mount the vendor partition in TWRP, but I can browse it with the filemanager. Is it normal? If so, do I have to skip that partition during the backup?
Thanks again for sharing that info!
Click to expand...
Click to collapse
For some reasons our existing fingerprint are not erased but are not seen either too. Try registering different finger so that you can get rid of the register fingerprint screen and then try unlocking your phone with previously registered finger. It should work.
I don't know about vendor issue. I never back it up though.
You are right! With the other fingers, sensor works flawlessy also with the 'ghost' fingerprints.
This info could avoid hours of headache for others
Thanks again!
About the vendor partition, it seems is a normal TWRP behavior in Oreo with treble ROMs.
Great job mate! I searched for days how to make unencrypted data partition!

What partitions are to never be deleted on the 7T?

So I had to do a TWRP recovery on my phone, but I used an old backup, that was previous to OnePlus replacing my main board. I know that you must never lose the EFS partition. Luckily I did make a new backup after the board replacement, so I had an EFS backup to save the day. Are there any other partitions that I should restore from the latest backup?

Question Are there any partitions that are specific to my phone that I absolutely should back up?

As per title
Not 100 percent sure but I don't recall any image like on previous devices needed like persist on 8 pro. Probably couldn't hurt to back up everything just in case you might need it later on. I use a app on market called partition backup.
Partitions Backup & Restore - Apps on Google Play
Backup your important partitions to avoid any data or IMEI corruption
play.google.com

Question Backup and restore via TWRP with A12

Have been using TWRP for a long time, but everything keep changing.
Found new AB structure, REC partition disappeared, multiple partitions found when using TWRP, etc.
The question is, is the way original to backup and restore still working for F3 with different ROM?
From previous, managed to change different version/ROM with the backup and restore, is there any restriction for F3? Or for A12? Not regarding the encryption first, consider it to be already decrypted.
Such as, changing from A9 crDroid to A10 LOS.
How about the new AB structure with A12 in F3? Any luck to downgrade with backup from such as crDroid v8.7 to v8.6? Or restore the old backup data partition created when using crDroid v8.6 to v8.7? If yes, which partition(s) is(are) required when creation backup?
Or another scenario: which partitions are required if restore to a formatted F3?
Thanks!

Categories

Resources