TeamWin / android_bootable_recovery

1.3k stars 408 forks source link

TWRP 3.7.0 does not properly detect the Android 12.1 disk encryption on sagit (Xiaomi Mi 6) #271

Open agyild opened 1 year ago

agyild commented 1 year ago

Device codename: sagit TWRP version: 3.7.0_9-0

WHAT STEPS WILL REPRODUCE THE PROBLEM?

  1. Flash TWRP 3.7.0_9-0 to sagit's recovery partition
  2. Boot into recovery
  3. Go to Wipe menu
  4. Choose Format Data and afterwards choose Advanced Wipe with System, Data, Vendor, Internal Storage, Cache and Dalvik selected
  5. Go to Advanced Menu
  6. Choose ADB Sideload
  7. Sideload lineage-19.1-20221013-nightly-sagit-signed.zip from the computer
  8. Choose ADB Sideload again and sideload MindTheGapps-12.1.0-arm64-20220605_112439.zip from the computer
  9. Reboot to System and finish installation
  10. Reboot back to Recovery

WHAT IS THE EXPECTED RESULT?

TWRP should automatically prompt for the user password to decrypt the disk.

WHAT HAPPENS INSTEAD?

TWRP only displays a "Unmodified System Partition" message with two possible options "Keep Read Only" and "Swipe to Allow Modifications". Going into /sdcard afterwards shows the file and folder structure with encrypted filenames and contents.

ADDITIONAL INFORMATION

Manually trying to decrypt by using the terminal option twrp decrypt <password> shows the output message "Failed to decrypt data."

/tmp/recovery.log: https://gist.github.com/agyild/6d8463f3fe427b35785b4fa2632787dc#file-recovery-log dmesg: https://gist.github.com/agyild/6d8463f3fe427b35785b4fa2632787dc#file-dmesg