FORUMS
Remove All Ads from XDA

Remove /Bypass Lockscreen With Recovery

1,054 posts
Thanks Meter: 511
 
By adithyan25, Senior Member on 1st January 2017, 03:04 PM
Post Reply Email Thread


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)




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
The Following 143 Users Say Thank You to adithyan25 For This Useful Post: [ View ] Gift adithyan25 Ad-Free
 
 
1st January 2017, 03:46 PM |#2  
muzliamir's Avatar
Senior Member
Thanks Meter: 201
 
More
Great solutions brother.. how user use CWM or PHILZTOUCH?

Sent from my SM-C9000 using Tapatalk
1st January 2017, 03:50 PM |#3  
adithyan25's Avatar
OP Senior Member
221B Baker Street
Thanks Meter: 511
 
Donate to Me
More
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 |#4  
Member
Flag zevenbergen
Thanks Meter: 2
 
More
you are just the best..! just saved me a wipe
The Following User Says Thank You to Kasper1221 For This Useful Post: [ View ] Gift Kasper1221 Ad-Free
4th February 2017, 01:26 AM |#5  
sejmand's Avatar
Senior Member
Flag Karlsruhe
Thanks Meter: 59
 
More
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?
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20170204-021850.png
Views:	5344
Size:	20.6 KB
ID:	4028421  
4th February 2017, 02:17 AM |#6  
adithyan25's Avatar
OP Senior Member
221B Baker Street
Thanks Meter: 511
 
Donate to Me
More
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
The Following 2 Users Say Thank You to adithyan25 For This Useful Post: [ View ] Gift adithyan25 Ad-Free
4th February 2017, 09:09 AM |#7  
sejmand's Avatar
Senior Member
Flag Karlsruhe
Thanks Meter: 59
 
More
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 |#8  
adithyan25's Avatar
OP Senior Member
221B Baker Street
Thanks Meter: 511
 
Donate to Me
More
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
The Following User Says Thank You to adithyan25 For This Useful Post: [ View ] Gift adithyan25 Ad-Free
12th April 2017, 10:11 PM |#9  
Member
Thanks Meter: 14
 
More
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 |#10  
adithyan25's Avatar
OP Senior Member
221B Baker Street
Thanks Meter: 511
 
Donate to Me
More
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
19th April 2017, 06:38 AM |#11  
Senior Member
Thanks Meter: 13
 
More
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?
Post Reply Subscribe to Thread

Tags
bypass activation, lockscreen, pattern lock bypass, twrp

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes