Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data corruption if restored data partition #385

Open
3 tasks done
HaomingChen1998 opened this issue Nov 18, 2024 · 0 comments
Open
3 tasks done

Data corruption if restored data partition #385

HaomingChen1998 opened this issue Nov 18, 2024 · 0 comments

Comments

@HaomingChen1998
Copy link

HaomingChen1998 commented Nov 18, 2024

  • I am running an official build of TWRP, downloaded from https://twrp.me/Devices/
  • [] I am running the latest version of TWRP
  • I have read the FAQ (https://twrp.me/FAQ/)
  • I have searched for my issue and it does not already exist

Device codename: <Oneplus 7 Pro Guacamole>
TWRP version: <twrp-3.7.0_12-0-guacamolev2>

WHAT STEPS WILL REPRODUCE THE PROBLEM?

TWRP Backup Restore works for all partitions except "data" partition. When I back up using TWRP, it says decrepted successfully. This back up is a clean install that's created as soon as I boot into the device (unrooted, with nothing installed).

Here is how I restore this clean install backup:

  1. Flash ROM via fastboot for each .img, then flash ROM.zip
  2. Fastboot twrp.img
  3. Flash the TWRP installer.zip while in the TWRP recovery
  4. Reboot to TWRP
  5. Then flash Disable_Dm-Verity_ForceEncrypt_11.02.2020.zip
  6. Then Restore backup
  7. I tried to restore the backup 3 different ways, here are the results:
  • If I try to restore only "data" partition, it will boot to TWRP recovery.
  • If I try to restore all partitions incluing "data" partition, then it will return me an YAAP error message: Can't load Android system. Your data may be corrupted.
  • If I restore all partitions except data, then my device boots normally.

I'm out of new ideas to try, any help would be greatly appreciated!

WHAT IS THE EXPECTED RESULT?

The device boots up normally after I restore "data" partition

WHAT HAPPENS INSTEAD?

YAAP error message: Can't load Android system. Your data may be corrupted.

ADDITIONAL INFORMATION

Running twrp-3.7.0_12-0-guacamolev2.img, not the latest because I tried all the offical TWRP builds for A12, this is the only 1 that can decrypt data partiton for this A12 CUSTOM ROM. The back up being used for restore weren't decrypted (meaning no lock screen were set up).

The YAAP A12 ROM that I'm using is from https://mirror.codebucket.de/yaap/guacamole/Archive/
The Logs attached is for when I restored data partition ONLY.

/tmp/recovery_part_1.log: <-- https://pastebin.com/0Z24uhLS -->
/tmp/recovery_part_2.log: <-- https://pastebin.com/PGigXZ6f -->
dmesg: <-- https://pastebin.com/RjD1HgUu -->

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant