TeamWin / android_device_oneplus_cheeseburger_dumpling

For building TWRP for OnePlus 5 ONLY
57 stars 36 forks source link

Famous same problem but twrp (3.3.1-0-cheeseburger.img) not able to decrpt the phone data. #9

Closed PranavBhattarai closed 3 years ago

PranavBhattarai commented 4 years ago

What should I do in this case?

Device: Oneplus 5 Twrp downloaded from: https://dl.twrp.me/cheeseburger/ Problem: Twrp recovery not recognizing the phone's password.

meganukebmp commented 4 years ago

I'm gonna piggyback off of this as it's the latest issue of this type. What I assume is happening is that there's an issue with the implementation of android's full disk encryption. Specifically, to avoid reencrypting the entire device every time you swap your pin, it's only used to re-encrypt a master key which is then used to decrypt the storage itself. TWRP asking for password is proper functionality, as you need one, the decrypted master key specifically. In order to obtain that you need to first decrypt it with your pin, which means that TWRP needs to implement pin decryption of the master key. I am unsure of the actual status of this feature.

nitram9 commented 4 years ago

@meganukebmp this continues happening now with the latest TWRP - even if no device encryption is enabled in android 10. I assume that the pin being used to unlock the phone somehow does a 'light' encryption which TWRP cannot properly use.

mauronofrio commented 4 years ago

Wait the next build please

mauronofrio commented 4 years ago

Solved the problem with the latest build @nitramwin @meganukebmp @PranavBhattarai