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

Does this thread helped you well?


  • Total voters
    47
  • Poll closed .
Search This thread

sparkin2003

New member
Nov 29, 2018
2
0
S7 Active factory setup, Airplane on and locked out

Guys,
I am new to all of this and have been trying to find out a way to unlock my S7 active without a hard reset (loosing all my stuff). Here is the story. I accidentally put a pattern lock on the phone while ordering from a website. My phone battery was low so i placed it airplane mode. The phone then died prior to charging. Once i charged the phone and turned back on its asked for a pin, which i never setup. I tried a hand full of my normal pins and now the phone makes me wait a period of time prior to trying more pins. For the life of me I never remember setting a pin up, so kinda a lost cause guessing at it. The phone is linked to my google account but being its in airplane, unlocking that way has not worked. Any advise on how to get into phone would be greatly appreciated... If it helps i remember my pattern. I ended up buying a new phone but have tons of stuff on the old one. Thanks!
 

PoochyX

Senior Member
Oct 23, 2016
2,176
422
Guys,
I am new to all of this and have been trying to find out a way to unlock my S7 active without a hard reset (loosing all my stuff). Here is the story. I accidentally put a pattern lock on the phone while ordering from a website. My phone battery was low so i placed it airplane mode. The phone then died prior to charging. Once i charged the phone and turned back on its asked for a pin, which i never setup. I tried a hand full of my normal pins and now the phone makes me wait a period of time prior to trying more pins. For the life of me I never remember setting a pin up, so kinda a lost cause guessing at it. The phone is linked to my google account but being its in airplane, unlocking that way has not worked. Any advise on how to get into phone would be greatly appreciated... If it helps i remember my pattern. I ended up buying a new phone but have tons of stuff on the old one. Thanks!
If your phone has a custom recovery I can help you recover your phone if you don't my solution won't help you

[emoji3434] For Those I Love I Shall Sacrifice [emoji3434]
 

sparkin2003

New member
Nov 29, 2018
2
0
If your phone has a custom recovery I can help you recover your phone if you don't my solution won't help you

[emoji3434] For Those I Love I Shall Sacrifice [emoji3434]

Thanks for the response PoochyX. The phone is stock so don't think it has one. Any tips on how to get it out of airplane so i could simply use google to reset password? Another thought (based on something i read elsewhere) is the following but i have no idea if this would work? Thanks for your time

"if you get the Try again in 30 mins. I found the best way to unlock your phone is. Install Smart Switch, hold down volume up – power button, home button at the same time. Normally 5 seconds. Sorry, first of all make sure your phone is connected via USB to your computer and smart switch is ready to open. When your phone restart smart switch will think your phone is unlocked.(Fact). And then backup. Sorted. Will still have to factory reset, but go straight to smart switch and simply restore."
 

titocxh

New member
Feb 27, 2019
4
0
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.

Same things happen to me, have you found any solution?
 

teck84

New member
Mar 28, 2019
1
0
hi, i downloaded the file but when i restart my phone, there is no option to flash the zip drive.
am i missing something?
 
Last edited:

patsillah

Member
Aug 9, 2013
6
0
Hie please I need your help i have been trying these methods and I have done method 2 and method 5 and I am getting the following errors

method 2
[email protected] ~
$ sudo apt-get install android-tool-adb
-bash: sudo: command not found

[email protected] ~
$ sudo apt-get install android-tools-adb
-bash: sudo: command not found

[email protected] ~
$ code: sudo apt-get install android-tools-adb
-bash: code:: command not found

[email protected] ~
$

method 5
[email protected] ~
$ adb shell rm /data/system.key
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
error: device not found
My phone doesnt have a custom recovery and its a Galaxy S6 where I cant fit an sd card.
 
Last edited:

mobagenie

New member
Apr 21, 2019
1
1
www.mobagenie.id
i just register and log in to XDA Developers (21 April 2019) just for " wanna say thanks". u are absolutely MY HERO. no problem even u made this post 6 years ago :).
- work 100% with step 7, but with File Manager Default TWRMP. and on my devices, the filename isnt "pathern.key" but "blablalba-pathern.key"
-patern password disable not work on my Marsmellow /MIUI devices.

* sorry my english *
 
  • Like
Reactions: hanifh

petter svensson

New member
Jul 27, 2010
4
0
Budapest
P20 lite screen lock issue

Hello all,

Problem is exactly the same for me:
- stock recovery, no root, no USB debugging on
- dr.fone I think is a bullsh*t, want to delete all my data instead of repare
- official Huawei service guy deattached the phone from Device Manager, so cannot lock via Find my phone - the code cannot be overwritten anyhow if you have set up some different

What are my choices to unlock it or to bypass it without losing any data?

Thanks for your help :)
 

Asher_786

New member
May 26, 2019
1
0
Method 5

How to initiate trying method 5?
I've installed Adb but I do not know how to start trying the method.
I've Qmobile LT100 and I need CWm recovery for it. Can someone help me?
 

morganlefay1977

New member
Dec 19, 2019
1
0
i can't get past my password lockscreen for my LG G7 ThinQ ... I can't figure out how to get in and delete the lockscreen commands. please help
 

yufeikeji

New member
Dec 24, 2019
1
0
thanks my friend,but,how to unlock bootloader

thanks my friend,but,how to unlock bootloader ?
can't get unlock code
 

cognus

Senior Member
Feb 3, 2011
324
20
New Braunfels
S7 G930T stock firmware, up to date T-Mobile, pattern locked, dead display, live device.
Do adb tools running under Windows not work for this?

---------- Post added at 09:18 AM ---------- Previous post was at 09:18 AM ----------

S7 G930T stock firmware, up to date T-Mobile, pattern locked, dead display, live device.
Do adb tools running under Windows not work for this?
 

Stevonce

Member
Jul 10, 2015
7
0
I have a ZTE Blade Z MAX 2 that hasn't been accessed since 2018. I smashed it and was able to swap out the motherboard to a brand new one. But i've forgotten the password since then and the way this phone is set up you gotta enter the password before the phone fully boots. so does anyone have any recommendations?
 

Dbigdon

New member
Nov 3, 2020
4
0
Oneplus 7 Non Rooted USB Debugging Off

I have Oneplus 7 Pro phone of which I have forgotten pattern. I used to open with thumb impression only. My phone got discharged and now the thumb impression doesn't work. Please help in unlocking the phone or which method will work. I do not want to loose data.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 286
    - 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
    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

    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.






    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.






    METHOD 7
    Solution For Everyone With Recovery Installed :

    INSTRUCTIONS:

    1.Download and Copy Aroma File manager.zip (Download from attachments or http://forum.xda-developers.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://forum.xda-developers.com/member.php?u=4782403)
    amarullz(http://forum.xda-developers.com/member.php?u=402300)
    me myself (@piraterex) :D (http://forum.xda-developers.com/member.php?u=5002224)
    
    I don't know all Devs so pls PM me and ask for credits for their tools/app
    6
    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.
    4
    I LOVE YOU sooooooooo much
    3
    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.

    - 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
    All Regards Are Going To Their Authors




    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

    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.






    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.






    METHOD 7
    Solution For Everyone With Recovery Installed :

    INSTRUCTIONS:

    1.Download and Copy Aroma File manager.zip (Download from attachments or http://forum.xda-developers.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://forum.xda-developers.com/member.php?u=4782403)
    amarullz(http://forum.xda-developers.com/member.php?u=402300)
    me myself (@piraterex) :D (http://forum.xda-developers.com/member.php?u=5002224)
    
    I don't all Devs so pls PM me and ask for credits for their tools/app


    ---------- Post added at 11:35 AM ---------- Previous post was at 11:29 AM ----------

    same issue as me, waiting for answer.
    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 recovery or any other way?
    3
    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://forum.xda-developers.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.