yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] VigneshS007:
[MENTION=5002224]piraterex[/MENTION] i deleted the password.key fle from /data/system via TWRP....after that i bypassed...but i cant able to set screenlock again it shows settings unfortunately atopped..... Any help...plz
[Android Software/Hacking General [Developers Only]] Galaxysm:
Have you tried flashing a rom? Or maybe a stock img??
[Android Software/Hacking General [Developers Only]] VigneshS007:
No i didnt flashed ROM agaian..... Did i need to flaah the rom agaib to make the lockscreen work?
[Android Software/Hacking General [Developers Only]] Galaxysm:
Well its just a guess since u deleted something from the rom...and that usually fixes a problem..
[Android Software/Hacking General [Developers Only]] shariarkuasa:
Here is a nice tutorial but not sure if its still working good

http://getandroidstuff.com/bypass-pattern-password-or-lock-screen-security-in-android/
[Android Software/Hacking General [Developers Only]] kornelkahh:
Help! My USB debugging is not enabled, what to do?
[Android Software/Hacking General [Developers Only]] Filip013:
Thank you very much for this guide. I wanted to see if my data is protected. I disabled USB debugging, replaced TWRP with stock recovery, and locked my bootloader. I am happy to say that none of these methods work for me.

I am confident that recovery methods would still work, but only if I unlock my bootloader. Again, thank you.
[Android Software/Hacking General [Developers Only]] rjrajeev:
Thanks for the info.
[Android Software/Hacking General [Developers Only]] S1ikIfy:
You can try a hard reset of the phone to see if that will unlock the phone. It will erase anything left in the phones memory.
[Android Software/Hacking General [Developers Only]] nicesoni_ash:
There is no secure method to protect your device as long as fastboot option is there. Anyone can unlock ur bootloader and then flash a different recovery and then can access ur data.

Sent from my "i9300/1+2" powered by Carbon/RR

Fueled by 7000mAh ZeroLemon Battery
[Android Software/Hacking General [Developers Only]] Filip013:
Hmm... Yes and no.

My bootloader is password protected by Xiaomi, so that is not an option. (At least, I think not. I wouldn’t be able to do it myself.) Now, it is possible to enter EDL mode by tearing down the phone and inserting pins into the motherboard, and then flashing a new ROM. (I have done that myself.) Another option is to use a hacked fastboot.exe which has recently surfaced. (I hope Xiaomi will fix that security vulnerability.)

So, currently, it’s possible, but I hope that at least the fastboot.exe vulnerability will be fixed.
[Android Software/Hacking General [Developers Only]] Mr Hassan:
is this 1st method works for all samsung mobile,s?

like s6 upper and lower modles
[Android Software/Hacking General [Developers Only]] mrasquinho:
By a reason I don't know, my pattern stopped working, as if I've changed it. But I didn't.

So, I use one of this methods and it worked. Now my phone is fully unlocked.

However, when I go to Security settings and try to set a new pattern, the menu just closes and can't open the pattern screen.. Any thoughts?

---------- Post added at 04:32 PM ---------- Previous post was at 03:37 PM ----------

How can I, via ADB, remove my saved fingerprints?
[Android Software/Hacking General [Developers Only]] Cm4nXD:
i open the security hacks browser thing and nothing apears
[Android Software/Hacking General [Developers Only]] iluminismo:
Im trying METHOD 2, but when I entre: sudo apt-get install android-tools-adb, it send me the message: -bash: sudo: no se encontró la orden.

I tnstalled ADB in other way.

When I try entering the codes: adb devices

adb shell

cd data/system

su

rm *.key

It send me the message: error: device null not found.

Please help! :)
[Android Software/Hacking General [Developers Only]] RD274:
I hastily tried to change my PIN cause my friends saw my old one and put something I forgot. I tried all these methods but couldn't get into adb/usb debugging. Finally I booted into TWRP recovery, which luckily has an inbuilt file manager (Advanced\File Manager). So I went and deleted the file gatekeeper_passcode.key in data/system and it worked. Took less than a minute. No PC or anything special required.

As of nougat, the files to be deleted are : gatekeeper.passcode.key or/and gatekeeper.pattern.key. Just delete these files or rename them and reboot. The passcode/pattern will be gone. CHECK EDIT BELOW.

EDIT: You wont be able to put a new pin/pattern by just deleting these 2 files anymore. You need to also delete/rename : locksettings.db, locksettings.db-shm and locksettings.db-wal. These 3 files are also located at data\system. Now your old passcode/pattern will go and you can put a fresh passcode/pattern.
[Android Software/Hacking General [Developers Only]] LoBinS:
It works on LeEco Le Max 2.

Method 2, but with the phone's terminal
[Android Software/Hacking General [Developers Only]] Prasourabha:
Follow guide

https://www.youtube.com/watch?v=c5Og3HKPBQ8
[Android Software/Hacking General [Developers Only]] chiragoyal:
How to solve device unauthorized using adb?
[Android Software/Hacking General [Developers Only]] alocut:
You must SU to access as Root Permission before

Here is how:
[Android Software/Hacking General [Developers Only]] toanhoi:
How to go to Home screen? Currently, it still open the pattern lock, I need touch the screen to open it (wrong pass is fine)
[Android Software/Hacking General [Developers Only]] uralok:
method 2 and 7 is working...method 1 didn't worked
[Android Software/Hacking General [Developers Only]] dhavalsonejii:
THANK YOU SO MUCH.

i just want to thank you and the OP but especially you for that edit allowing me to reset my lockscreen thankssss

I was actually abit worried and i didnt even forget my passcode - it was a ROM bug!!
[Android Software/Hacking General [Developers Only]] XtraDev:
Absolutely flawless. THANKS dude. It worked like a charm. Simply renamed those 5 files and viola, PIN code disappeared. LOL guess that PIN wasn't providing much security after all! Took less than 10 minutes to hack into my own phone. Maybe full partition encryption is our only savior...

Here is more detailed instructions in case someone doesn't know how to do his suggestions. Credit to RD274 over at this post.

If USB debugging is enabled, then just

1. connect your phone to computer via usb, open shell/terminal/command prompt, then

2. type "adb shell".

3. Now type "cd /data/system" and

4. Rename or remove these 5 files (works on Android Nougate 7.1.1) and PIN/pattern/passcode disappears. To rename, the command is "mv old-filename.key new-filename.key". Example: "mv gatekeeper.passcode.key gatekeeper.passcode.key.DISABLED" (added .DISABLED at the end). To delete, "rm filename.key". Example: "rm *.key" and "rm locksettings.*"

These are the 5 files:

- gatekeeper.passcode.key,

- gatekeeper.pattern.key

- locksettings.db

- locksettings.db-shm

- locksettings.db-wal

If no USB debugging enabled, then go to custom recovery and access the file manager within there and rename or delete those 5 files from there.
[Android Software/Hacking General [Developers Only]] dhavalsonejii:
why did you quote me? lol
[Android Software/Hacking General [Developers Only]] Youdoofus:
Unnecessary quote because I got an unnecessary notification on my phone lol
[Android Software/Hacking General [Developers Only]] dhavalsonejii:
And so did I, twice, lol
[Android Software/Hacking General [Developers Only]] So_ice_cold:
i cant wait to try this. really frustrating. i have no recovery or debugging enabled!!!
[Android Software/Hacking General [Developers Only]] srijansaxena11:
Most simple way

[YOUTUBE]https://www.youtube.com/watch?v=ubOzYDC-b-g[/YOUTUBE]

Video Link: https://www.youtube.com/watch?v=ubOzYDC-b-g
[Android Software/Hacking General [Developers Only]] Youdoofus:
Argh!!!! Another notification on my phone!!
[Android Software/Hacking General [Developers Only]] XtraDev:
Dude, just unsubscribe from the thread. Lol
[Android Software/Hacking General [Developers Only]] Youdoofus:
its far more fun complaining about it :D
[Android Software/Hacking General [Developers Only]] candys.world:
Hi there! so if I understand correctly this could help my situation... so my accounts were hacked i even had to change my phone number. They had key logger and used it to get in and then changed my passwords to most of my accounts so it locked me out. Since i don't have that same tn that i also had as a secondary form of verification to every account I have and I've lost over 5000 photos. My google has every photo of my kids growing up ya know..... and no matter if you call and identify your DNA they are like nope "Google values your security" I was like you giving my account away to a hacker. (Kills me its like them holding up a sign saying. "im a Dumb Ass" ha ha.... also, This post I think I had seen is from 2014 so can you tell me if it would work with a Pixel XL or Nexus 6p just checking in advance. Thank you:fingers-crossed: Candy
[Android Software/Hacking General [Developers Only]] simonbigwave:
i will leave the OP to answer u directly on the bypass..but my 2 cents is, usually if a hacker has accessed your account on eg Google or FB you just need to upload to eg Facebook or google your passport ID and some evidence the phone number was yours, and they usually reset the account back to you and give you a new password..
[Android Software/Hacking General [Developers Only]] DarkShadowMX:
For some reason method 1 ended up formatting /data on the target phone...

This was so sad. Sorry if this has been brought before or if it was a security measure from my phone.
[Android Software/Hacking General [Developers Only]] yeahman45:
you are life saver! thx man
[Android Software/Hacking General [Developers Only]] haeffnkr:
I have a S5 with a s7 rom on it and I could not get any of the SU or SQL commands to work.

This command failed also -

adb shell rm /data/system/gesture.key

What did work was to put the phone in recovery mode and then I modified the above command to -

adb shell rm /data/system/*.key and it WORKED !!!!

OP You ROCK

thanks haeffnkr
[Android Software/Hacking General [Developers Only]] User17745:
So firstly, thanks a ton to [MENTION=5002224]piraterex[/MENTION]

This guide saved me :)

I used the pattern removal zip and it worked but there's a small issue. When I got back into settings so I could setup a new pattern, the settings app crashed. It does the same everytime, is there a fix?

I'm using Resurrection Remix on 7.1.1
[Android Software/Hacking General [Developers Only]] saumis84:
Thanks for sharing this.

I'm using lenovo z2.

Had to delete 2 files via TWRP solved the problem.

data-system-delete the files(gesture& gate password)
[Android Software/Hacking General [Developers Only]] cy-rock:
I suggest a rename.

But this works flawlessly.
[Android Software/Hacking General [Developers Only]] cofface:
It didn't support android 7.0 FBE.
[Android Software/Hacking General [Developers Only]] nvo2411:
My desire 628 is patten locked

And I haven't enable USB debugging.

Unable to remove pattern, I don't want to factory reset

Please help
[Android Software/Hacking General [Developers Only]] User17745:
I've successfully used it on 7.1.1
[Android Software/Hacking General [Developers Only]] cofface:
You're device rom isn't fbe .
[Android Software/Hacking General [Developers Only]] nvo2411:
I have desire 628,with usb debugging disabled.

How can I unlock my pattern

I can't afford to lose my data.

No option of Google support

Please help
[Android Software/Hacking General [Developers Only]] naren12:
[MENTION=5002224]piraterex[/MENTION] hi bro. I have a Samsung on max. I accidentally used direction lock in it. Now i can't even use backup pin or finger print to unlock. I tried samsung unlock my device but it only removes pin, password,gesture. Whereas direction lock comes under accessibility under settings. Is there any way to unlock? Thanks in advance
[Android Software/Hacking General [Developers Only]] mauriciognr:
Hi guys, my uncle locked his L70 D320N by mistake, he had a pattern and now has a password and he doesn't know it or even recall changing it. The phone mobile data and wifi are disabled so is not possible to use the gmail account for the "forgot password?" option, let alone the android device administrator. And of course, USB debugging is disabled.

- Ive tried around 50 times to enter into recovery with the Vol- and Power combo in all his variants (ive been working on this phone for 4 days already) to perform a hard reset, mission impossible, the L70 reboots or boots to android.

- Donwload mode works fine, i used LG support tool to update the firmware hoping it will perform a factory reset, no such luck.

- I also used Lg Flash tool to install a KDZ hoping it will wipe the phone in the process, but no, it didnt.

- Finally i used Dr fone from wondershare to try to remove the lockscreen password, it supports the L70 and his D320 variant, but since this is the D320N it fails when it reaches 99%.

I would have wanted to install a custom recovery to perform the factory reset, but the bootloader has to be unlocked and unless bootloader can be unlock from the download mode, which isn't, cant install a custom recovery.

So, having a unbooteable recovery and a locked android with no wifi, 3g or usb debugging the only option is via download mode which is the way dr fone offers to remove the lockscreen password, but like i said didnt work. Ideas?

L70

D320

Android 4.4 stock
[Android Software/Hacking General [Developers Only]] DE SEXIEST:
...can it be flashed

I mean the zip file ,can it be flashed using stock recovery?
[Android Software/Hacking General [Developers Only]] Sir_gpm:
This video save my life. Tried the first method in this thread without luck.

[youtube]t7M_Nd5OsJM[/youtube]
[Android Software/Hacking General [Developers Only]] Midhun3!:
How to retrieve deleted Gatekeeper keys , cuz I cudn't see lockscreen again•°. The thing is I remember the pattern•°

---------- Post added at 07:48 AM ---------- Previous post was at 07:40 AM ----------

Sorry , but I deleted them as well , but I cudn't set new password or pattern•°
[Android Software/Hacking General [Developers Only]] RD274:
All 3 files? Cause you need to delete the 3 files I mentioned in the edit below or else it wont work.
[Android Software/Hacking General [Developers Only]] sn4k3PT:
I try do a script that can backup and restore, but restore didn't work

The delete however work flawless. Would be nice to restore, is it possible?

# backup

mkdir /sdcard/keybackup/
ls -la /data/system/*.key
busybox cp /data/system/*.key /sdcard/keybackup/
busybox cp /data/system/locksettings.db /sdcard/keybackup/
busybox cp /data/system/locksettings.db-wal /sdcard/keybackup/
busybox cp /data/system/locksettings.db-shm /sdcard/keybackup/
ls -la /sdcard/keybackup/

# remove
rm /data/system/*.key
rm /data/system/locksettings.db
rm /data/system/locksettings.db-wal
rm /data/system/locksettings.db-shm

# Reboot manually here or by send 'reboot' command at shell

# Restore
busybox cp /sdcard/keybackup/*.key /data/system/

# Cause bootloop
busybox cp /sdcard/keybackup/locksettings.db /data/system/
busybox cp /sdcard/keybackup/locksettings.db-wal /data/system/
busybox cp /sdcard/keybackup/locksettings.db-shm /data/system/
ls -la /data/system/*.key

# Clean

rm /sdcard/keybackup/*
rmdir /sdcard/keybackup

# Reboot manually here or by send 'reboot' command at shell

Any way to backup the security and restore it?
[Android Software/Hacking General [Developers Only]] GCalzo:
This topic saved my life (after having restored and old TWRP backup!).

The missing point is that the phone MUST be rebooted after having deleted the 3 locksettings* files if the delete has been done after having deleted the *.key and after having booted the phone!

:good:
[Android Software/Hacking General [Developers Only]] rmeden:
Thanks for this thread!

I've had the same lock pattern for years, but I must have learned something new (or am having a stroke) and couldn't remember it! I also just noticed titanium backup hasn't run since October! Check your backups folks!

I'm running LineageOS 14.1 and renaming the *.key and the locksettings.* via TWRP did it for me!
[Android Software/Hacking General [Developers Only]] zerosys:
Any chance to delete files or at least pull gesture.key in /data/system/ without root?
[Android Software/Hacking General [Developers Only]] sn4k3PT:
System is root, so no
[Android Software/Hacking General [Developers Only]] zerosys:
Hm crap, and i guess there is no way to root this device without reboot huh...

Forgot the pattern to unlock the device, just can unlock it with facedetection and now i am trying to remove the patternunlock.
[Android Software/Hacking General [Developers Only]] rmeden:
if you have an unlocked bootloader and a custom recovery, you may be able to delete files in /data/system. I was able to using TWRP recovery.

Of course being able to get around this is a security problem, but you have to wonder why Google removed the "change lock" feature from Android Device Manager... then we wouldn't need to depend on security bugs.
[Android Software/Hacking General [Developers Only]] AndroidFL:
https://goo.gl/XR6x34 this should work if you have installed TWRP
[Android Software/Hacking General [Developers Only]] MrFish.:
Method 1 deleted all my data

Tried method 1 on my rooted samsung galaxy s5, it ended up causing my phone to reset and delete all my data.

Any thoughts on if I can recover anything?
[Android Software/Hacking General [Developers Only]] equitube:
If you haven't already, and you havent' used it, you could try diskdigger
[Android Software/Hacking General [Developers Only]] brito9112:
Xiaomi fix

Please add this method for Xiaomi Devices

Delete from /data/system/ this 2 files, "gatekeeper.password.key" and "gatekeeper.pattern.key". Use TWRP as file manager as file manager. After this reboot your device and by lock password.
[Android Software/Hacking General [Developers Only]] mike666:
My LG V20 screen won't respond to a correct unlock pattern after recent nandroid restore. I heard that it is some kind of a nandroid bug.

Deleting *.key and *.db files method causes disappearance of several apps including Titanium Backup.

Appreciate any hints)
[Android Software/Hacking General [Developers Only]] azharkhalid:
Hi friends, i've got an HTC Desire 626G plus with cracked screen but the display is working but touch screen is not. Is there anyway to recover the datas (contacts, photos, sms) from it? i've connected to computer but the adb is not showing the device. i think USB debugging is not enabled. Any help?????????
[Android Software/Hacking General [Developers Only]] jerusalem384:
HELP

I TRIED ALL METHODS ABOVE + ABOUT 10 MORE FOUND ON THE INTERNET BUT NOTHING WORKS.

I GET AN ERROR WHILE TRYING TO REBBOT FROM SD CARD "Signature vertification failed" CAN ANYONE HELP ME
[Android Software/Hacking General [Developers Only]] katandmouse:
No download link

where is the real download link? This article has the word download 9 times with instructions to download here, but there is no link, hence no download. How do I get the zip file?

---------- Post added at 01:41 AM ---------- Previous post was at 01:27 AM ----------

finally found the download links, but none work. They just refresh the page. :(

---------- Post added at 02:02 AM ---------- Previous post was at 01:41 AM ----------

Ok. I followed a link to a different page to get the download needed for option 7 because the links don't work here. Now another problem. Aside from waiting a couple of days for the battery to run out, is there any way to get the phone off so I can reboot in recovery? Apparently, it has to be off first.
[Android Software/Hacking General [Developers Only]] katandmouse:
signature verification failed

Method 7 failed because I got a signature verification failure. Finally found the zip for Method 1 using QR code and got the same error. I guess I'm up a creek without a paddle.
[Android Software/Hacking General [Developers Only]] JeremyMartinus:
Asus bricked by Factory Reset Protection

hi just got a second hand gift from my cousin. Its was in his drawer for ages.. Model Asus_X014D. i impulsive did a hard reset cause he forgot his pin. To my low and below i needed his email and password to go to the settings. I am bewildered with FRP. The phone is not roooted and he has since changed his verification and forgot them.

I there any kind soul who can give me some advise?
[Android Software/Hacking General [Developers Only]] Krunix:
I am not able to download the pattern password disable. Is there a reason for that? I keep getting linked back to this page
[Android Software/Hacking General [Developers Only]] yasan0va:
Temporary via ADB?

What does temporary mean after deleting the password file via ADB? Does that mean the original password/pin/pattern/fingerprint will be back after second reboot?

Thanks
[Android Software/Hacking General [Developers Only]] Belfiore:
:good:
[Android Software/Hacking General [Developers Only]] MajorPlayz:
(90% sure this is for any Oreo devices) Right, I realize this thread is old, however this method was *not* mentioned in the OP, so, this is how I did it.

Firstly, I sideloaded Aroma File Explorer ~(it's now my new favourite thing tysm haha)~

Secondly, I changed the setting of the mount behavior on boot to everything.

Then, I exited AFE and re-sideloaded it.

From there, I could simply navigate to /data/system and delete the

locksettings.db

file.

Lastly, I simply rebooted to system aaaanndddd bam, no lockscreen! It was defaulted to swipe, so it was changeable in settings.

Side note, why are you reading this thread? Did you really forget your password ;):silly:
[Android Software/Hacking General [Developers Only]] priyadarshi76:
Forgot Pattern Lock

I'm also facing the similar problem. Recently I changed my pattern-lock and forgot it. I really don't want to lose my data, is there any way I can either retrieve my data or unlock my pattern-lock without losing default android stock recovery. Below are my phone details and methods attempted.

1. Moto E4 Plus (XT1770)

2. MediaTek MTK6737

2. Stock Android 7.1.1 Nougat

3. Non-Removable battery

4. Pattern-Locked

5. USB Debugging Disabled

6. Not Rooted

7. Device Location OFF as it was not added in drop down menu list

8. Single gmail account configured and working

9. Data Connection ON

10. Wi-Fi- Enabled & Connected

11. TWRP installed after device got locked from desktop via logging into Google Play but not configured so cannot boot into custom recovery

12. Device driver properly installed on desktop

13. Dr. Fone & iSkysoft Toolbox don’t support my phone and EaseUS needs to be USB enabled

- Non-Working options that I’ve already tried

1. Nougat don't give "forgot password" option like earlier versions

2. Google “find my device” cannot work as now it don't replace pattern-lock with password or PIN but adds another google lock

3. Installed 64GB Micro SD Card is configured as "shared internal memory"

4. Installing anything such as Pattern-Password-disable.zip, SMSBypass.apk, By-pass security Hacks.7z, aromafilemanager.zip or applying update from Recovery Mode results to "Installation aborted"

5. adb devices & adb shell command shows "ZH33L2GRFG Unauthorized"

6. Desktop detects port and device only when device boots in “Meta Mode” and not in “Recovery Mode”. “Factory Mode” shows menu in Chinese language

7. Creating new user gave only access to chrome, YouTube and view settings. Being a limited/restricted user it don’t have any permission to change anything

In my case none of the methods mentioned on the first page worked, developers please help.
[Android Software/Hacking General [Developers Only]] rferrer0213:
thanks bro..
[Android Software/Hacking General [Developers Only]] MohammedYounes:
method #2 needs USB Debugging enabled.