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
47
21
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
2
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?
 

jhedfors

Senior Member
Oct 16, 2009
1,536
779
St Paul, MN
Moto G6
OnePlus 6T
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
2
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,536
779
St Paul, MN
Moto G6
OnePlus 6T
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.
 

ReMadza

Member
Jul 23, 2019
14
3
in pie wont work!

after wiping system and re installing the rom still the pin/password/pattern exist!
 

christoophat

Senior Member
May 20, 2011
1,217
379
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.
 

Northgical

Member
Oct 5, 2019
18
1
HOLY **** IT TOOK ME 2 HOURS AND FIND NO METHOD (at that point Rooting and TWRP doesn't come in my mind) BUT THEN I FOUND THIS METHOD. THANK YOU!!
 
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,937
1,590
Barreiro
Xiaomi Poco F1
Redmi K20 Pro
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,937
1,590
Barreiro
Xiaomi Poco F1
Redmi K20 Pro
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.
  • 220


    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
    2
    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?
    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
    I'll have to check re the dev menu and usb debugging mode. Will let you know but I doubt it. It was a stock phone that I never modified.

    I'll send you a PM with my email. Thank you so much. If you help me access my phone without losing data I will pay you handsomely my friend
    Just glad to help when i can on XDA, good group of men on here with unlimited knowledge...besides I didnt learn this stuff to keep it all to my self lol