[HTC 10 Guides, News, & Discussion] 5m4r7ph0n36uru:
[IMG="Guide_PIN_fix"]https://c1.staticflickr.com/1/489/32280653006_0a62a1d2a9_c.jpg[/IMG]​

Hello folks,

this is regarding a question that does seem to pop up just ever and ever again, with the respective developer teams, developers and tester over in the ROM and development section, seemingly, having to answer it always and again. By this the respective question has been answered at least a hundred times by people like e.g. Captain_Throwback, j to the 4n, nkk71, topjohnwu, LeeDrOiD, Llabtoofer and many other I'm - to keep the matter brief at this point - gonna leave uncredited. If anyone wants me to credit im personally please let me know via PM. I'll in such a case add his/her name to the credits section below.

What I did was just carrying together the needed information. All of it has been written prior to this, on various threads. Always by one the above mentioned and/or others. Anyway I'll give the steps again in this short tutorial as I think it is of importance to many to be able to find a solution to their problem right at the top of a quick thread. In addition such guides were really helpful to me in the past, learning about how Android works. Thus I decided to open up yet another thread.

If you - just like me - have set a lock pattern or password on your device, and you did a TWRP backup as long as the pattern has been set, you might - especially restoring different ROMs - be confronted by a little problem where after the HTC 10 boots up you cannot unlock it even if you enter the correct lock pattern/pin/password.

Well then this thread is about how you can fix it.

[IMG="Guideline"]https://c1.staticflickr.com/1/765/32567527592_36bafaa846.jpg[/IMG]​

Method 1 - TWRP FileManager

boot to recovery

reboot to bootloader

reboot to recovery

In TWRP, go to "Advanced" > "File Manager"

In TWRP File Manager, go to /data/system folder

Find and delete the following files:

locksettings.db-wal
locksettings.db-shm
locksettings.db

Reboot the phone/tablet back into the ROM. Now you should be able to just swipe the lock screen and get into the launcher screen. You can then set a new lock from the Settings, if you want.

Method 2 - TWRP Terminal

boot to recovery

reboot to bootloader

reboot to recovery

In TWRP, go to "Advanced" > "Terminal"

Type the following commands:

cd /data/system
rm -f locksettings*
rm -f *.key

Method 3 - TWRP Flash of "lockjscreen_removed_signed.zip

Download the zip provided by [MENTION=6815443]JohnFawkes[/MENTION] in Post #5

Place downloaded zip onto your device

boot to recovery

reboot to bootloader

reboot to recovery

In TWRP, flash the downloaded zip

[IMG="Credits"]https://c1.staticflickr.com/1/760/31877367484_f88c9d6a33_m.jpg[/IMG]

THANKS TO ALL DEVELOPERS AND DEVELOPER TEAMS, AS WELL AS THEIR TESTERS!

THEY FOUND OUT AND PRESENTED US WITH THE SOLUTION.

[IMG="Visit me"]https://c1.staticflickr.com/1/559/32597366961_c5216eb051_m.jpg[/IMG]

[IMG="WordPress"]https://farm8.staticflickr.com/7463/26980087171_ffdcd24245_s.jpg[/IMG] [IMG="G+"]https://farm2.staticflickr.com/1442/24149976663_415a442d41_s.jpg[/IMG] [IMG="Youtube"]https://farm2.staticflickr.com/1693/24660086232_677bcdd488_s.jpg[/IMG] [IMG="Twitter"]https://farm2.staticflickr.com/1688/24149976633_bab23bf989_s.jpg[/IMG] [IMG="FB"]https://farm2.staticflickr.com/1494/24750614166_ffb28e7715_s.jpg[/IMG]
​

XDA:DevDB Information

PIN/PATTERN/PASSWORD not recognised after TWRP restore

Contributors

All referred to in Credits, 5m4r7ph0n36uru (OP Leader)