Tuesday, January 19, 2016

Fix Incorrect Pin Error after TWRP Nandroid Backup

After a failed (dirty) flash to update the version of Chroma I was running on my Nexus 5X, I needed to restore a previous backup. After restoring, I was unable to bypass the lockscreen using my previous pin. The root of this problem is TWRP messing up some encypted files when recovered.

The easy way to fix said issue:

1) Restore from Nandroid Backup
2) Go into ADB and use the following commands:
           rm /data/system/locksettings.db
           rm /data/system/*.key
3) Boot and voila!

Note, it is recommended for you to restore your pin code afterwords.

No comments:

Post a Comment