Remove /Bypass Lockscreen With Recovery

1st January 2017 03:04 PM 156 Thanks
adithyan25 Senior Member


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)
[embedded image could not be found]



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



1. A phone That cant be unlocked witha your Pin/Pattern
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.

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

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!) 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
1st January 2017 03:46 PM 0 Thanks
muzliamir Senior Member
Great solutions brother.. how user use CWM or PHILZTOUCH?

Sent from my SM-C9000 using Tapatalk
1st January 2017 03:50 PM 0 Thanks
adithyan25 Senior Member
Quote:
Originally Posted by muzliamir

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
28th January 2017 08:33 PM 1 Thanks
Kasper1221 Member
you are just the best..! just saved me a wipe
4th February 2017 01:26 AM 0 Thanks
sejmand Senior Member
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:
4th February 2017 02:17 AM 2 Thanks
adithyan25 Senior Member
Quote:
Originally Posted by sejmand

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
4th February 2017 09:09 AM 0 Thanks
sejmand Senior Member
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)
4th February 2017 11:27 AM 1 Thanks
adithyan25 Senior Member
Quote:
Originally Posted by sejmand

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
12th April 2017 10:11 PM 0 Thanks
DITPL Member
I'm guessing that this works for Nougat? My son locked himself out of his G4 Plus.... This will be our last hope.
17th April 2017 02:00 PM 1 Thanks
adithyan25 Senior Member
Quote:
Originally Posted by DITPL

I'm guessing that this works for Nougat? My son locked himself out of his G4 Plus.... This will be our last hope.

Yep it will work.for sure..on any rom
close
Advanced Search
close