Saturday, April 2, 2016

CM13 - Pattern encryption bricked after "vdc cryptfs" password encryption

CM13 encryption is a nightmare.

I've only used CM11 encryption before (use Cryptfs Password Manager to change encryption password).

I installed CM13 on a LG G2 D800. I believe it has hardware-backed storage.

I encrypted my phone using `vdc cryptfs enablecrypto inplace password` as a test. Curious to see what happened when I changed encryption methods, I switched to password encryption with password `password`.

After running `vdc cryptfs changepw password password password password2`. I was able to successfully decrypt with "password2" and unlock with "password". So I assumed the command would work... this assumption would prove my downfall.

I then reenabled pattern unlock. Interestingly, I was able to reboot without so much as a password prompt, despite being "encrypted". So I reentered the pattern, making sure to first enable boot-time pattern prompt. (Really! What's the point of encryption if it doesn't depend on user input?)

Still in pattern mode, I attempted to secure decryption while maintaining convenient unlock pattern. `vdc cryptfs changepw pattern password password password` or `pattern password password` or `password password password password` or `password password password` I actually ran a long command a few times, then a short one repeatedly, then possibly the long one some more. Each time I ran it, I got `200 0 0`, which is supposed to indicate "no error".

Nonetheless, when I reboot, the phone still asks for the pattern (I had tried to add a decryption password), but rejects the unlock pattern I was using previously. It seems like the `changepw` commands did not enable the password, but merely corrupted the pattern.

How do I unlock encryption?

(repost http://ift.tt/1pVubtb )


from xda-developers http://ift.tt/1RUqdxN
via IFTTT

No comments:

Post a Comment