100% found this document useful (1 vote)
2K views10 pages

(Android) (Guide) Hacking and Bypassing Android Password - Pattern - Face - PI - XDA Forums

This document provides several methods for bypassing or removing Android password, pattern, face, and fingerprint locks without knowing the credentials: 1. Flash a zip file in recovery mode to disable the lock screen pattern or password. 2. Use ADB commands to delete lock-related files from the system partition or update database values, then reboot. 3. Install an SMS bypass app before getting locked out; it will remove the lock screen after receiving a text with a preset code. 4. Pull the device's settings database, edit it to remove lock records, push it back, and reboot. The methods generally require USB debugging to be enabled or recovering the device to bypass Android lock screens without

Uploaded by

mgsdstwddbhkkjc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
2K views10 pages

(Android) (Guide) Hacking and Bypassing Android Password - Pattern - Face - PI - XDA Forums

This document provides several methods for bypassing or removing Android password, pattern, face, and fingerprint locks without knowing the credentials: 1. Flash a zip file in recovery mode to disable the lock screen pattern or password. 2. Use ADB commands to delete lock-related files from the system partition or update database values, then reboot. 3. Install an SMS bypass app before getting locked out; it will remove the lock screen after receiving a text with a preset code. 4. Pull the device's settings database, edit it to remove lock records, push it back, and reboot. The methods generally require USB debugging to be enabled or recovering the device to bypass Android lock screens without

Uploaded by

mgsdstwddbhkkjc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

10/18/23, 10:16 AM [Android][Guide]Hacking And Bypassing Android Password/Pattern/Face/PI | XDA Forums

[Android][Guide]Hacking And Bypassing Android Password/Pattern/Face/PI


󰀓 piraterex · 󰅐 Jan 22, 2014 · 󱋷 bypassing password bypassing pattern unlocking pattern

󰚡 󰅂 Forums 󰅂 General Development 󰅂 Android Development and Hacking 󰅂 Android Software/Hacking General [Developers Only]

󰄨 Does this thread helped you well?

Yes Votes: 38 80.9%

No Votes: 3 6.4%

Neutral Votes: 6 12.8%

Total voters: 47 · Poll closed Jan 14, 2018.

1 2 3 … 10 󰍟
Jan 22, 2014 󱔔 #1

piraterex - DISCLAIMER -
Senior Member
󰚼

Code:
󰅀
This Is For Educational Purposes Only
You Shall Not Use This On Other People Phones Without Permission Under Any Circumstances
I'm Not Responsible For Any Eventual Errors And Misbehaving Of Your Devices
Files And Tutorials Are Used And Partially Created According My Expirience And Also Collected From Internet & XDA Forums
All Regards Are Going To Their Authors

If Just Google Ask you For Password (Credentials) - You Can Turn On WIFI Via ADB In Order To Google Accept Your Device Via this Command:

Code:

adb shell svc wifi enable

Requirements:
The Device Needs To Have Usb Debugging Enabled
In Case Usb Debugging Isn't Enabled And You Have Recovery,you Can Run The Same Instructions From Recovery
For Some Methods Root Is Not Required (Though It Will Be Better If Device Is Rooted)

If None Of This Methods Works For You - Unfortunally You


Probably Must Full Wipe Your Device

METHOD I

https://xdaforums.com/t/android-guide-hacking-and-bypassing-android-password-pattern-face-pi.2620456/ 1/10
10/18/23, 10:16 AM [Android][Guide]Hacking And Bypassing Android Password/Pattern/Face/PI | XDA Forums
Solution For Everyone With Recovery (Cwm, Twrp, Xrec,Etc...) Installed:

INSTRUCTIONS:

1. Download this zip Pattern Password Disable (Download from attachments) on to your sdcard (using your PC, as you cant get into your phone, right )
2. Insert the sdcard into your phone
3. Reboot into recovery mode
4. Flash the zip
5. Reboot
6. Done!

Note : If You See The Gesture Pattern Grid Or Password After Restarting, Don't Worry. Just Try Any Random Pattern Or Password And it Should Unlock.

METHOD 2
Solution For Everyone Without Recovery Installed - ADB :

What You Need:


=>A computer running a Linux distro or Windows+Cygwin
=>USB cable to connect your phone to the PC
=>Adb installed

How to install adb:


1. Open Terminal
2. Type:

Code:

sudo apt-get install android-tools-adb

Hit [Enter]
3. Follow the instructions until everything is installed.

INSTRUCTIONS:
1. Connect you (turned on) Phone to the Computer via USB.
2. Open a terminal window.
3. Type:

Code:

adb devices
adb shell
cd data/system
su
rm *.key

4. Done...Now You Just Have To Reboot.

Note : If You See The Gesture Pattern Grid Or Password After Restarting, Don't Worry. Just Try Any Random Pattern Or Password And it Should Unlock.

METHOD 3
Solution For Everyone Before Lock Accident :

SMS Bypass - Download Link - Install It On Your Device (Download from attachments)
This App Allows You To Remotely Bypass Your Phone's Screen Lock By Sending A SMS.
It Removes Your Gesture Pattern Or Password After Receiving A Preset Keyword Along With A Secret Code Via SMS.
SMS Bypass App Requires Root.

INSTRUCTIONS:
1.First, make sure you give permanent root access to the app.
2.Change the secret code to your preferred choice. The default password is : 1234
3.To reset your screen lock, send the following message from another phone:

Code:

secret_code reset

Example:

Code:

1234 reset

Note 1 : There is a space between your secret code and reset. Also the secret code is case sensitive.
Note 2 : There is an option available to change the preset keyword. Default is : reset - Your phone will restart and your lock screen will be reset.
Note 3 : If You See The Gesture Pattern Grid Or Password After Restarting, Don't Worry. Just Try Any Random Pattern Or Password And it Should Unlock.

https://xdaforums.com/t/android-guide-hacking-and-bypassing-android-password-pattern-face-pi.2620456/ 2/10
10/18/23, 10:16 AM [Android][Guide]Hacking And Bypassing Android Password/Pattern/Face/PI | XDA Forums

METHOD 4
Solution For Everyone Via Adb - SQL Command :

INSTRUCTIONS:
=>Type This Commands Separated In Your Terminal (CMD Prompt) :

Code:

adb shell
cd /data/data/com.android.providers.settings/databases
sqlite3 settings.db
update system set value=0 where name='lock_pattern_autolock';
update system set value=0 where name='lockscreen.lockedoutpermanently';
.quit

=>Now You Just Have To Reboot.

Note : If You See The Gesture Pattern Grid Or Password After Restarting, Don't Worry. Just Try Any Random Pattern Or Password And it Should Unlock.

METHOD 5
Solution For Everyone Via Adb - File Removal :

INSTRUCTIONS:
=>Type This Command In Your Terminal (CMD Prompt) :

Code:

adb shell rm /data/system/gesture.key

Note : If You See The Gesture Pattern Grid Or Password After Restarting, Don't Worry. Just Try Any Random Pattern Or Password And it Should Unlock.

METHOD 6
Solution For Everyone With USB Debugging Enabled :

INSTRUCTIONS:

Primary Step for all method:

1. Download & Extract to anywhere - Bypass Security Hack (Download from attachments)
2. Open SQLite Database Browser 2.0.exe in SQLite Database Browser.
3. Run pull settings.db.cmd inside By-pass security Hacks folder to pull out the setting file out of your phone.
4. Drag settings.db and drop to SQLite Database Browser 2.0.exe program.
5. Navigate to Browse data tab, At table there, click to list down the selection & selete secure

Instruction To Remove Pattern Lock:

1. Now, find lock_pattern_autolock, Delete Record


2. Close & save database
3. Run push settings.db.cmd and reboot your phone

Instruction To Remove PIN Lock:

1. Now, Find Or Create lockscreen.password_type, double-click & change it's value to 65536, Apply changes!
2. Now, find lock_pattern_autolock, Delete Record, If doesn't exist, Ignore
3. Close & save database
4. Run push settings.db.cmd and reboot your phone

Instruction To Remove Password Lock:

1. Now, find lockscreen.password_salt, Delete Record


2. Now, find lockscreen.password_type, Delete Record
3. Close & save database
4. Run push settings.db.cmd and reboot your phone

Note : If You See The Gesture Pattern Grid Or Password After Restarting, Don't Worry. Just Try Any Random Pattern Or Password And it Should Unlock.

https://xdaforums.com/t/android-guide-hacking-and-bypassing-android-password-pattern-face-pi.2620456/ 3/10
10/18/23, 10:16 AM [Android][Guide]Hacking And Bypassing Android Password/Pattern/Face/PI | XDA Forums
󰍜 Log in Register

METHOD 7
Solution For Everyone With Recovery Installed :
New posts Manufacturers What's new󰍝 Members 󰍝
INSTRUCTIONS:

1.Download and Copy Aroma File manager.zip (Download from attachments or http://xdaforums.com/showthread.php?t=1646108) to your memory card.

2. Open your recovery (press volume Down + Power button or it can be different according to the phones. Generally the phones who have press able button on the middle they
have to press all three buttons. Google for you pattern there are lots)

3. There’ll b an option in recovery called “mount”. Go in that option and then mount all the cache and everything it is there.

4. Then select “update” and select “apply update from SD/external” and select aroma file manger.zip file that you downloaded using above QR code above.

5. After Flashing or updating, the aroma file manger will open. Use volume keys for up/down and power button 2 select like you use to get into recovery.

6. In aroma File manager , Go to menu , which is located in bottom strip and then select Settings.

7. Go to bottom n select “mount all partition in startup ” then exit from aroma file manger.

8. Now after exit , re-update that aroma file again and it will open again.

9. Go to data >> and then System.


Then find ‘gesture.key’ (for pattern lock) and ’password.key’ (for password lock) then long touch on gesture.key or password.key and sum option will be prompted , choose delete
and delete that file and restart.

Note : If You See The Gesture Pattern Grid Or Password After Restarting, Don't Worry. Just Try Any Random Pattern Or Password And it Should Unlock.

Credits:
PHP:

iamareebjamal(http://xdaforums.com/member.php?u=4782403)
amarullz(http://xdaforums.com/member.php?u=402300)
me myself (@piraterex) :D (http://xdaforums.com/member.php?u=5002224)

I don't know all Devs so pls PM me and ask for credits for their tools/app

Attachments

󰈤 󰈤 󰈤
Pattern-Password-disable.zip
Pattern-Password-disable.zip SMSBypass.apk
SMSBypass.apk aromafilemanager.zip
aromafilemanager.zip

Last edited: Sep 3, 2014

Gabb4SauRuzZ, SharkysRacing, Absdag and 287 others

Apr 12, 2014 󱔔 #2

M
I LOVE YOU sooooooooo much
me1mon
Member
Mato27, student huawei, elswerky and 1 other person

Apr 12, 2014 󱔔 #3

Super sharing Dear Big Thanks.. :thumbup:


cheetah81
Senior Member

󰅀 Sent from my GT-I9300 using Tapatalk 2

https://xdaforums.com/t/android-guide-hacking-and-bypassing-android-password-pattern-face-pi.2620456/ 4/10
10/18/23, 10:16 AM [Android][Guide]Hacking And Bypassing Android Password/Pattern/Face/PI | XDA Forums

Adithyansm

Apr 19, 2014 󱔔 #4

Nice. Method 2 worked on my S2 plus


Gibz97
Senior Member
unknmmp and devsam43

Apr 19, 2014 󱔔 #5

M
a million thanks my FRIEND:victory::victory::victory::victory::victory::victory::victory::angel:
Mohdsultan you saved my day :good::good:
Senior Member I LOVE YOU :laugh::laugh::laugh:

I AM SO HAPPY
󰅀

Apr 25, 2014 󱔔 #6

me1mon said: 󰕍
piraterex
Senior Member
󰚼
I LOVE YOU sooooooooo much

cheetah81 said: 󰕍

Super sharing Dear Big Thanks.. :thumbup:

Sent from my GT-I9300 using Tapatalk 2

Gibz97 said: 󰕍

Nice. Method 2 worked on my S2 plus

Mohdsultan said: 󰕍

a million thanks my FRIEND:victory::victory::victory::victory::victory::victory::victory::angel:


you saved my day :good::good:
I LOVE YOU :laugh::laugh::laugh:

I AM SO HAPPY

thanx guyz..

funCrash93

May 21, 2014 󱔔 #7

Thank you very much, you saved me from factory resetting my device.
TheArc
Inactive Recognized Themer Sent from my Nexus 5 using Tapatalk

󰅀
ismhawk

https://xdaforums.com/t/android-guide-hacking-and-bypassing-android-password-pattern-face-pi.2620456/ 5/10
10/18/23, 10:16 AM [Android][Guide]Hacking And Bypassing Android Password/Pattern/Face/PI | XDA Forums

May 22, 2014 󱔔 #8

I believe this thread deserves more, it's help is so valuable.


Left4DeadMW
Senior Member Sent from my LG-P500 using XDA Free mobile app

󰅀
sajed8

May 26, 2014 󱔔 #9

Worked great.. did the Aroma method because I already had that installed... just a note. at&t Galaxy S4 4.4.2 mine was sparepassword.key and there was not password.key and I
MoonDogg98 was using a password.
Senior Member

May 31, 2014 󱔔 #10

B
tnx dude
blackrose1
Senior Member
is there any way to bypass email verification???
󰅀
if not...can you make it ...??

Jun 3, 2014 󱔔 #11

Note 3. 1,4,5 and 6 didnt work. Kept getting settings.db permission denied error.
vinokirk
Senior Member Method 7 didnt work either. all I could see was gesture.key, deleted it but it ddint get rid of my pin lock.

󰅀 Last edited: Jun 3, 2014

Jun 16, 2014 󱔔 #12

S
simmac piraterex said: 󰕍
Senior Member

󰅀
METHOD 7
Solution For Everyone With Recovery Installed :

INSTRUCTIONS:

1.Download and Copy Aroma File manager.zip (Download from attachments) to your memory card.

Thank you, thank you, thank you! You saved my day! :laugh::laugh:
This worked BUT: The aromafilemanager.zip didn't work, I had to download it from here: http://xdaforums.com/showthread.php?t=1646108
So, please update the link, with the zip linked above it worked perfectly! :good:

//edit: And there is one more very simple way, if you have activated the device manager as device administrator (for some odd reason my phone deactivated all device admins,
that's why I locked myself out in the first way, I use TimePIN and suddenly my code and the failsafe didn't work ) :
Go to https://www.google.com/android/devicemanager klick on "lock" and enter some pin like 1234, the current lockscreen will be overwritten by the 1234-lock.

Last edited: Jun 16, 2014

jasler1, funCrash93 and avinash3699

Jun 23, 2014 󱔔 #13

Here's a simple windows app I made that will do all that with just one click over ADB http://youtu.be/NxzGxb73CQE
k.janku1

https://xdaforums.com/t/android-guide-hacking-and-bypassing-android-password-pattern-face-pi.2620456/ 6/10
10/18/23, 10:16 AM [Android][Guide]Hacking And Bypassing Android Password/Pattern/Face/PI | XDA Forums
Senior Member
moonryder

Jun 29, 2014 󱔔 #14

CM11 file to delete


TechExhibeo
Inactive Recognized
this guide is cool
Contributor
those who using CM11 the file to be deleted is cm.gesturekey
󰅀
and the pattern is delted

i m using CM11

so just wanted to share

Jul 2, 2014 󱔔 #15

Thank you so much!


Harsha Raj
Senior Member My Galaxy S2 slipped from my hand and battery popped out. After turning the device on, the phone would not accept my PIN! Strange as it seems.

󰅀 Tried method 6 initially, but did not work. However went for Method 7 and profit!

I had TWRP recovery already in place, so didn't actually had to use the aroma file manager.

Thank you so much again. Weird days!

Last edited: Jul 2, 2014

Jul 3, 2014 󱔔 #16

Hamidreza2010 k.janku1 said: 󰕍


Senior Member

Here's a simple windows app I made that will do all that with just one click over ADB http://youtu.be/NxzGxb73CQE
󰅀

where is download link of tools?

KINGNOR187

Jul 14, 2014 󱔔 #17

M
i locked my phone with password lock..
Ma$etas
Senior Member I want to try option one

󰅀 I have a ATT galaxy note 3 using Knoxraid v5.6 jb rom .. when i go into recovery it doesnt give me an option to select file from storage

only options to upgrade from ADB


upgrade from Storage
wipe cache

Any idea?

Jul 15, 2014 󱔔 #18

Harsha Raj Ma$etas said: 󰕍


Senior Member

i locked my phone with password lock..


󰅀
I want to try option one

https://xdaforums.com/t/android-guide-hacking-and-bypassing-android-password-pattern-face-pi.2620456/ 7/10
10/18/23, 10:16 AM [Android][Guide]Hacking And Bypassing Android Password/Pattern/Face/PI | XDA Forums

I have a ATT galaxy note 3 using Knoxraid v5.6 jb rom .. when i go into recovery it doesnt give me an option to select file from storage

only options to upgrade from ADB


upgrade from Storage
wipe cache

Any idea?

Try the option "upgrade from storage"

Normally it's called install zip from sd card. If it's not working, change the recovery.

Jul 18, 2014 󱔔 #19

piraterex simmac said: 󰕍


Senior Member
󰚼
Thank you, thank you, thank you! You saved my day! :laugh::laugh:
This worked BUT: The aromafilemanager.zip didn't work, I had to download it from here: http://xdaforums.com/showthread.php?t=1646108
󰅀 So, please update the link, with the zip linked above it worked perfectly! :good:

//edit: And there is one more very simple way, if you have activated the device manager as device administrator (for some odd reason my phone deactivated all device admins, that's why
I locked myself out in the first way, I use TimePIN and suddenly my code and the failsafe didn't work ) :
Go to https://www.google.com/android/devicemanager klick on "lock" and enter some pin like 1234, the current lockscreen will be overwritten by the 1234-lock.

thanx buddy...I have added that link :good::angel:

Aug 19, 2014 󱔔 #20

J
what one will do if he has stock recovery with usb debugging disabled and has forgotten lock screen pattern or pin ? Is there anyway to enable usb debugging in fastboot or stock
JOYGR recovery or any other way?
Member

1 2 3 … 10 󰍟 You must log in or register to reply here.

Share:
󰈌 󰕄 󰑍 󰖣 󰇰 󰌷

Similar threads

[OFFICIAL][TOOL][WINDOWS] ADB, Fastboot and Drivers - 15 seconds ADB Installer v1.4.3


Snoop05 · Dec 29, 2013
Replies 2K Views 7M 󰼠 zlaer replied Oct 10, 2023

[GUIDE][HOW-TO]Crack android pattern lock!


M m.sabra · Jul 28, 2012
Replies 174 Views 732K 󰼠 ashish.9719 replied Oct 7, 2023

[TOOL]Minimal ADB and Fastboot [2-9-18]


shimp208 · Jun 10, 2013
Replies 976 Views 5M 󰼠 Sysop_PNW replied Sep 4, 2023

[UTIL][WIN][MT65xx] MTK Droid Root & Tools | MediaTek Android Smartphone


B bovirus · Feb 22, 2013
Replies 2K Views 2M 󰼠 ZG089 replied Aug 16, 2023

[ROOT EXPLOIT+PATCH][2012.12.19] ExynosAbuse APK v1.40


Chainfire · Dec 16, 2012
Replies 1K Views 2M 󰼠 djanielle replied Feb 24, 2018

󰚡 󰅂 Forums 󰅂 General Development 󰅂 Android Development and Hacking 󰅂 Android Software/Hacking General [Developers Only]

https://xdaforums.com/t/android-guide-hacking-and-bypassing-android-password-pattern-face-pi.2620456/ 8/10
10/18/23, 10:16 AM [Android][Guide]Hacking And Bypassing Android Password/Pattern/Face/PI | XDA Forums
TO P L I K E D P O S T S

24 Hours All time

290 piraterex

- DISCLAIMER -

Code:

This Is For Educational Purposes Only


You Shall Not Use This On Other People Phones Without Permission Under Any Circumstances
I'm Not Responsible For Any Eventual Errors And Misbehaving Of Your Devices
Files And Tutorials Are Used And Partially Created According My Expirience And Also Collected From Internet & XDA Forums
Jan 22, 2014 View

6 R 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.
Oct 18, 2016 View

4 M me1mon

I LOVE YOU sooooooooo much


Apr 12, 2014 View

3 P patriotzhou

How can i remove the password if the phone is not rooted?

I tried all the method but no luck as the phone is locked now.

piraterex said: 󰕍

- DISCLAIMER -
Sep 3, 2014 View

3 S simmac

piraterex said: 󰕍

METHOD 7
Solution For Everyone With Recovery Installed :

INSTRUCTIONS:

1.Download and Copy Aroma File manager.zip (Download from attachments) to your memory card.

Jun 16, 2014 View

NEW POSTS

[OFFICIAL][RECOVERY][12/13/14]OrangeFox Recovery Project [R11.1]


Latest: DarthJabba9 · 28 minutes ago
Redmi Note 9S / Note 9 Pro (Indian Model) ROMs, Ke

Question Pixel 8 Pro overheating


G Latest: Guyinlaca · 29 minutes ago
Google Pixel 8 Pro

[ROM]eRobot ROM for Note4 V.37 XXS2DRK2 Android 6.0.1 MultiCSC Aroma
U Latest: user agent · 29 minutes ago
Galaxy Note 4 Android Development (Exynos)

SM-T230NU - CosaROMv2
E Latest: ecuadorian · 30 minutes ago
Galaxy Tab 4 Original Android Development

https://xdaforums.com/t/android-guide-hacking-and-bypassing-android-password-pattern-face-pi.2620456/ 9/10
10/18/23, 10:16 AM [Android][Guide]Hacking And Bypassing Android Password/Pattern/Face/PI | XDA Forums
[ROM][13][OFFICIAL] PixelExperience (Plus) [10.17 Updated][Check #2 for FAQ and changelog]
Latest: Alcatraz323 · 31 minutes ago
Razer Phone 2 ROMs, Kernels, Recoveries, & Other D

XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new
functionality.

Crafted by Audentio

MORE INFO USEFUL LINKS

Contact us Best Phones

Advertise Tutorials

Terms and rules Recognized Developer Program

Suggest Content Admin & Moderators

Delete XDA Account

XDA - Dark

https://xdaforums.com/t/android-guide-hacking-and-bypassing-android-password-pattern-face-pi.2620456/ 10/10

You might also like