TeamWin / Team-Win-Recovery-Project

Core recovery files for the Team Win Recovery Project (T.W.R.P) - this is not up to date, please see https://github.com/TeamWin/android_bootable_recovery/
http://twrp.me
1.97k stars 740 forks source link

[3.0.2-0] Unable to decrypt partition on Nexus 5X bullhead mhc19q #648

Open acidicX opened 8 years ago

acidicX commented 8 years ago

After flashing mhc19q + CM13-nightly and TWRP 3.0.2, TWRP can't decrypt the partition anymore (password method):

Password failed, try again!

Worked fine with mhc19j + CM13-n and TWRP 3.0.0. before.

Lekensteyn commented 8 years ago

Possibly a duplicate of #626?

acidicX commented 8 years ago

As I understand, there were bugs in 3.0.1. with password decryption: http://teamw.in/site/update/2016/04/05/twrp-3.0.2-0-released.html This might have been the cause for #626, but should have been fixed?

Another interesting development: I re-flashed 3.0.0. to see if it is a regression. It isn't, it did not work with 3.0.0 as well.

I then reformatted the phone and re-flashed CM13n + Open GAPPS and now the decryption works again (with 3.0.2.). Wtf...? ;-)

Zackptg5 commented 8 years ago

This problem was suppose to be fixed with 3.0.2, but whenever I have a layers theme applied, this problem returns. I haven't test a cmte rom with this yet

objecttothis commented 8 years ago

606

chriscoffey0 commented 8 years ago

I have this problem only sometimes. Most of the time it decrypts just fine, sometimes I get the password failed and retrying the same password succeeds. I've never had to retry more than once so I'm thinking it's some sort of timing issue with mounting the storage.

Zackptg5 commented 8 years ago

Finally got around to testing CMTE rom and I had no issues with decryption when a CM themes was applied. So I guess this is layers themes only? My test roms were: Pure Nexus Layers and Dirty Unicorns CMTE

Edit: Update on this issue, it appears to be incredibly inconsistent. On CMTE roms with themes applied I've been getting this issue again. Sometimes it works and sometimes it doesn't

dsalt commented 8 years ago

That layers theme reference – couldn't say, but it seems unlikely to me. I have only the default theme installed, and I get the decryption problem after upgrading from older CM13. Decryption working with 3.0.2 after a reformat is interesting and something which I'll have to test (I'll be able to retain /data content with a little use of adb, so that's not a major issue).

I presume that all is well with the default encryption of the encryption key…

dsalt commented 8 years ago

… no such luck. TWRP failed to decrypt, even asking for the default pass phrase (after I'd carefully unset that before updating). Not really unexpected, I suppose.