Remove /Bypass Lockscreen With Recovery

Search This thread

grinder1337

New member
Apr 24, 2018
2
0
Berlin
THX!!!

thx for this really great, e-z solution. i didnt have any files with .key-ending. finally found this thread with mentioning locksetting files. deleting them made it. i restored my old system (system, data, boot) with twrp, deleted the mentioned files and can access my familiar OS. thx very much :) :good:
 

AsadP2013

Member
Jun 20, 2013
39
12
London
Tried this on my Mi Max 3 but I didn't have any other .db apart from lockscreen.

IF you're in that situation like me where you can't use a passcode from a backup but you go into data/system in TWRP and find that you don't have as many files as OP stated, just delete what you can find.

In my case I found lockscreen.db and it let me in with no lock.
 
  • Like
Reactions: Gavan21

wawagod

Member
May 22, 2019
6
1
I followed the instructions and i still cant decrypt when i delete the the locksettings.db.locksettings.db-shm.locksettings.db-wal.( i dont have any .key files under data/system) and reboot the previous unlock code is gone and i can swipe up to get in but the phone gets stuck at "phone is starting" and wont progress i can enter the setting menu,pull down notifications etc but even if i do that i still get no where please help id hate to think i spent money on a phone that cant fully use lineageos due to twrp errors. im running pie on mi mix 2s latest lineageos.

Would re flashing a diffrent recovery fix things?
 
  • Like
Reactions: archz2

jhedfors

Senior Member
Oct 16, 2009
1,389
687
St Paul, AZ
I followed the instructions and i still cant decrypt when i delete the the locksettings.db.locksettings.db-shm.locksettings.db-wal.( i dont have any .key files under data/system) and reboot the previous unlock code is gone and i can swipe up to get in but the phone gets stuck at "phone is starting" and wont progress i can enter the setting menu,pull down notifications etc but even if i do that i still get no where please help id hate to think i spent money on a phone that cant fully use lineageos due to twrp errors. im running pie on mi mix 2s latest lineageos.

Would re flashing a diffrent recovery fix things?
This was my same experience. Are you on Android 9.0? I think this method last worked for me when I was on 8.1.

Have you tried reflashing the system partition? Not sure if that will get you going or not....

I don't think it has anything so do with recovery, but....
 

wawagod

Member
May 22, 2019
6
1
This was my same experience. Are you on Android 9.0? I think this method last worked for me when I was on 8.1.

Have you tried reflashing the system partition? Not sure if that will get you going or not....

I don't think it has anything so do with recovery, but....

Not too sure on how to do that i am quite a novice you see lol.

It seems like this is an ongoing issue. has anyone notified the devs on github about these issues? i know we cant be the only ones dealing with this. h
 

jhedfors

Senior Member
Oct 16, 2009
1,389
687
St Paul, AZ
Not too sure on how to do that i am quite a novice you see lol.

It seems like this is an ongoing issue. has anyone notified the devs on github about these issues? i know we cant be the only ones dealing with this. h
This is a hack, so there is nothing to fix. ?

Are you on Android 9.0? If so, I assume this hack does not work anymore (at least no one has confirmed it in this thread).

You will want to inquire in your device forum for assistance getting your device working.
 

christoophat

Senior Member
May 20, 2011
1,214
377
SoCal
Thanks, needed this after trying out Outlook on my V30 (Oreo) to get work emails, deciding naaaahhh, uninstalling it thinking I could go back to having no PIN number hassles.
This worked a teat.
 
Nov 28, 2017
12
2
Kadapa
[Q] Lockscreen Pattern ,PIN and Password not working!

My device is Realme 3 pro, Today I have rooted my phone by installing TWRP, and Flashed Magisk,then I came to know that,when I kept a pattern and I tried to unlock it's showing incorrect everytime.....
I bypassed pattern lock by using one flashable twrp zip,then again I kept lock,again showing incorrect.....
Please somebody help me....
 

TioCareca

Senior Member
  • Sep 8, 2010
    2,455
    1,160
    Barreiro
    My device is Realme 3 pro, Today I have rooted my phone by installing TWRP, and Flashed Magisk,then I came to know that,when I kept a pattern and I tried to unlock it's showing incorrect everytime.....
    I bypassed pattern lock by using one flashable twrp zip,then again I kept lock,again showing incorrect.....
    Please somebody help me....
    Read 1st post and try manual way...
     
    Nov 28, 2017
    12
    2
    Kadapa
    I didnt wiped any system to bypass pattern,I just flashed a file which removes screen lock just by deleting locksettings.db and related files.....
    My problem is when I kept lock,it shows incorrect everytime,even I entered correctone.
    Is there anyway to read a pattern by ADB commands or any method?
     

    TioCareca

    Senior Member
  • Sep 8, 2010
    2,455
    1,160
    Barreiro
    I didnt wiped any system to bypass pattern,I just flashed a file which removes screen lock just by deleting locksettings.db and related files.....
    My problem is when I kept lock,it shows incorrect everytime,even I entered correctone.
    Is there anyway to read a pattern by ADB commands or any method?
    So after you boot without a lock if put a lock again it doesn't work?
     

    Top Liked Posts

    • There are no posts matching your filters.
    • 193


      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
    Our Apps
    Get our official app!
    The best way to access XDA on your phone
    Nav Gestures
    Add swipe gestures to any Android
    One Handed Mode
    Eases uses one hand with your phone