• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Remove /Bypass Lockscreen With Recovery

Search This thread

adithyan25

Senior Member
Jun 24, 2015
1,054
572
221B Baker Street


Recently when i restored my data using TWRP i faced a problem at lock screen.
I was not able to unlock my phone with the pin i set Earlier..So after so many attempts i was able to find a solution for that problem.(works with pattern,pin etc)
650x300x2016-02-01-17.24.56-650x300.png.pagespeed.gp+jp+jw+pj+js+rj+rp+rw+ri+cp+md.ic.mMj7EJhi9_.png




Requirements
-----------------



1. A phone That cant be unlocked witha your Pin/Pattern :p
2.Any custom recovery installed(TWRP i will say)..Get TWRP from https://twrp.me/Devices/




Steps
-------



1.Once You installed twrp boot into recovery mode.
2.Go to advanced>filemanager to acces the files in your phone.
300x533xTWRP-home.png.pagespeed.gp+jp+jw+pj+js+rj+rp+rw+ri+cp+md.ic.X120HbFRU1.png

3.Ggo to the /data/system folder. Scroll down and find the two files with the .key extension. Delete both of them (by tapping on the file and then tapping the �Delete� button). Then, delete all the files containing the word locksettings.

  • password.key
  • pattern.key
  • locksettings.db
  • locksettings.db-shm
  • locksettings.db-wal
300x533xTWRP-pinreset1.png.pagespeed.gp+jp+jw+pj+js+rj+rp+rw+ri+cp+md.ic.ghmGs8Z_4t.png

Once you�ve deleted all the key and locksettings files, reboot your system. If it asks you to install SuperSU, choose �Do Not Install�.

Once Android starts, your lock screen should appear, with no PIN or password prompt. Unlock your phone (yay!) :highfive: :fingers-crossed: and head to Android�s Settings. Scroll down and go to Security > Screen Lock. From there, you can choose a new PIN or password to lock your phone.


Hope this helped you..Hot Thanks if this was helpful :)
 

sejmand

Senior Member
Mar 24, 2012
299
67
Karlsruhe
suddenly my phone (G4 H815 lineage ) can't be unlocked (see attachment)

I tried it with but it didn't worked for me...
any Idea?
 

Attachments

  • Screenshot_20170204-021850.png
    Screenshot_20170204-021850.png
    20.6 KB · Views: 8,709

sejmand

Senior Member
Mar 24, 2012
299
67
Karlsruhe
dirty flash doen't work
when I delete only:

gatekeeper.password.key
gatekeeper.pattern.key

I can get in again, but I can't set a new lockscreen...

when I delete also:

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


I can't get in anymore...

only wiping data, cache and dalvik works (clean flash)
-
could this be a problem with system profile settings?
(disable lockscreen when wifi is connected)
 

adithyan25

Senior Member
Jun 24, 2015
1,054
572
221B Baker Street
dirty flash doen't work
when I delete only:

gatekeeper.password.key
gatekeeper.pattern.key

I can get in again, but I can't set a new lockscreen...

when I delete also:

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


I can't get in anymore...

only wiping data, cache and dalvik works (clean flash)
-
could this be a problem with system profile settings?
(disable lockscreen when wifi is connected)

Nope I don't guess so...didn't faced a problem like this..I would say report it to original developer of ROM ... I tried this method on almost 8 ROMs and all went well
 
  • Like
Reactions: sejmand

fullydeveloped

Senior Member
Jul 29, 2014
163
17
I have a similar but different issue. After restoring my nandroid backup with TWRP, I now get a "Your phone is encrypted" lockscreen at boot. My passcode works, but my data partition had supposedly always been encrypted - and only after the restore have I gotten the lockscreen at boot. Any ideas what caused this?
 

adithyan25

Senior Member
Jun 24, 2015
1,054
572
221B Baker Street
I have a similar but different issue. After restoring my nandroid backup with TWRP, I now get a "Your phone is encrypted" lockscreen at boot. My passcode works, but my data partition had supposedly always been encrypted - and only after the restore have I gotten the lockscreen at boot. Any ideas what caused this?

Nope probably some problem with datas...
 
  • Like
Reactions: fullydeveloped

Keancarl

Member
Jul 2, 2017
16
1
Valenzeula City
Thanks a lot its working on my j500H. After I install the custom rom there is a problem on my data connection so i decided to flash it back to its current system. then the password didnt recognize it :) thanks to this
 

Haroun16

Member
Nov 15, 2014
43
1
Hello
I have done this and it worked but now when I try to set a new pin or password, nothing happens. I click on "PIN" and it just takes me back to the previous screen
 

m0d hipp¥

Senior Member
Sep 27, 2006
174
96


Recently when i restored my data using TWRP i faced a problem at lock screen.
I was not able to unlock my phone with the pin i set Earlier..So after so many attempts i was able to find a solution for that problem.(works with pattern,pin etc)
650x300x2016-02-01-17.24.56-650x300.png.pagespeed.gp+jp+jw+pj+js+rj+rp+rw+ri+cp+md.ic.mMj7EJhi9_.png




Requirements
-----------------



1. A phone That cant be unlocked witha your Pin/Pattern :p
2.Any custom recovery installed(TWRP i will say)..Get TWRP from https://twrp.me/Devices/




Steps
-------



1.Once You installed twrp boot into recovery mode.
2.Go to advanced>filemanager to acces the files in your phone.
300x533xTWRP-home.png.pagespeed.gp+jp+jw+pj+js+rj+rp+rw+ri+cp+md.ic.X120HbFRU1.png

3.Ggo to the /data/system folder. Scroll down and find the two files with the .key extension. Delete both of them (by tapping on the file and then tapping the �Delete� button). Then, delete all the files containing the word locksettings.

  • password.key
  • pattern.key
  • locksettings.db
  • locksettings.db-shm
  • locksettings.db-wal
300x533xTWRP-pinreset1.png.pagespeed.gp+jp+jw+pj+js+rj+rp+rw+ri+cp+md.ic.ghmGs8Z_4t.png

Once you�ve deleted all the key and locksettings files, reboot your system. If it asks you to install SuperSU, choose �Do Not Install�.

Once Android starts, your lock screen should appear, with no PIN or password prompt. Unlock your phone (yay!) :highfive: :fingers-crossed: and head to Android�s Settings. Scroll down and go to Security > Screen Lock. From there, you can choose a new PIN or password to lock your phone.


Hope this helped you..Hot Thanks if this was helpful :)

I seriously applaud you for finding this and sharing it with the community. I have run into this before and had a difficult time finding an answer to this issue. In the past I was forced to do a wipe and start over. Obviously that's extremely tedious and inconvenient. I found some things online similar to your guide, but they didn't work for me. Your solution worked perfectly! I can't thank you enough!

The ONLY difference on my phone from what you posted is the password.key and patter.key files had a prefix "gatekeeper". In other words:
gatekeeper.password.key
gatekeeper.pattern.key
 
Last edited:
  • Like
Reactions: xUltramarco

weasing

Member
Jan 26, 2015
13
3


Recently when i restored my data using TWRP i faced a problem at lock screen.
I was not able to unlock my phone with the pin i set Earlier..So after so many attempts i was able to find a solution for that problem.(works with pattern,pin etc)
650x300x2016-02-01-17.24.56-650x300.png.pagespeed.gp+jp+jw+pj+js+rj+rp+rw+ri+cp+md.ic.mMj7EJhi9_.png




Requirements
-----------------



1. A phone That cant be unlocked witha your Pin/Pattern :p
2.Any custom recovery installed(TWRP i will say)..Get TWRP from https://twrp.me/Devices/




Steps
-------



1.Once You installed twrp boot into recovery mode.
2.Go to advanced>filemanager to acces the files in your phone.
300x533xTWRP-home.png.pagespeed.gp+jp+jw+pj+js+rj+rp+rw+ri+cp+md.ic.X120HbFRU1.png

3.Ggo to the /data/system folder. Scroll down and find the two files with the .key extension. Delete both of them (by tapping on the file and then tapping the �Delete� button). Then, delete all the files containing the word locksettings.

  • password.key
  • pattern.key
  • locksettings.db
  • locksettings.db-shm
  • locksettings.db-wal
300x533xTWRP-pinreset1.png.pagespeed.gp+jp+jw+pj+js+rj+rp+rw+ri+cp+md.ic.ghmGs8Z_4t.png

Once you�ve deleted all the key and locksettings files, reboot your system. If it asks you to install SuperSU, choose �Do Not Install�.

Once Android starts, your lock screen should appear, with no PIN or password prompt. Unlock your phone (yay!) :highfive: :fingers-crossed: and head to Android�s Settings. Scroll down and go to Security > Screen Lock. From there, you can choose a new PIN or password to lock your phone.


Hope this helped you..Hot Thanks if this was helpful :)

this guy is a legend :)
can i paytm on your number i just got my whole ****ty data back as it was :)
 
  • Like
Reactions: Adarsh Adk

Top Liked Posts

  • There are no posts matching your filters.
  • 202


    Recently when i restored my data using TWRP i faced a problem at lock screen.
    I was not able to unlock my phone with the pin i set Earlier..So after so many attempts i was able to find a solution for that problem.(works with pattern,pin etc)
    650x300x2016-02-01-17.24.56-650x300.png.pagespeed.gp+jp+jw+pj+js+rj+rp+rw+ri+cp+md.ic.mMj7EJhi9_.png




    Requirements
    -----------------



    1. A phone That cant be unlocked witha your Pin/Pattern :p
    2.Any custom recovery installed(TWRP i will say)..Get TWRP from https://twrp.me/Devices/




    Steps
    -------



    1.Once You installed twrp boot into recovery mode.
    2.Go to advanced>filemanager to acces the files in your phone.
    300x533xTWRP-home.png.pagespeed.gp+jp+jw+pj+js+rj+rp+rw+ri+cp+md.ic.X120HbFRU1.png

    3.Ggo to the /data/system folder. Scroll down and find the two files with the .key extension. Delete both of them (by tapping on the file and then tapping the �Delete� button). Then, delete all the files containing the word locksettings.

    • password.key
    • pattern.key
    • locksettings.db
    • locksettings.db-shm
    • locksettings.db-wal
    300x533xTWRP-pinreset1.png.pagespeed.gp+jp+jw+pj+js+rj+rp+rw+ri+cp+md.ic.ghmGs8Z_4t.png

    Once you�ve deleted all the key and locksettings files, reboot your system. If it asks you to install SuperSU, choose �Do Not Install�.

    Once Android starts, your lock screen should appear, with no PIN or password prompt. Unlock your phone (yay!) :highfive: :fingers-crossed: and head to Android�s Settings. Scroll down and go to Security > Screen Lock. From there, you can choose a new PIN or password to lock your phone.


    Hope this helped you..Hot Thanks if this was helpful :)
    2
    suddenly my phone (G4 H815 lineage ) can't be unlocked (see attachment)

    I tried it with but it didn't worked for me...
    any Idea?
    Dirty flash the ROM again..
    Basically problem with the ROM..All we do according to this thread is delete the file containing lock settings....See whether problem remains after dirty flashing
    1
    Great solutions brother.. how user use CWM or PHILZTOUCH?

    I didnt tried it yet..I guess the process is same for all...why don't you give a shot and confirm..
    Cheers
    1
    you are just the best..! just saved me a wipe
    1
    dirty flash doen't work
    when I delete only:

    gatekeeper.password.key
    gatekeeper.pattern.key

    I can get in again, but I can't set a new lockscreen...

    when I delete also:

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


    I can't get in anymore...

    only wiping data, cache and dalvik works (clean flash)
    -
    could this be a problem with system profile settings?
    (disable lockscreen when wifi is connected)

    Nope I don't guess so...didn't faced a problem like this..I would say report it to original developer of ROM ... I tried this method on almost 8 ROMs and all went well