Recovering OnePlus3, when you are not able to decrypt the device from TWRP or CM13 complains, that the password is wrong

To make TWRP work again, you need to change the encryption password using following commands:

supolicy --live 'allow vdc devpts chr_file {read write getattr ioctl}'
vdc cryptfs changepw password (the UI you want) <CURRENT_PIN(PASSWORD/PATTERN)> <NEW_PASSWORD>

Verify your password using

vdc cryptfs verifypw <NEW_PASSWORD>


And if you are not able to unlock System UI using your password, just execute this command over adb:

rm /data/system/locksettings.db*

This will take down the lockscreen settings.

Leave a comment