yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] neim81094:
This would've been awesome if this was for an old itouch tweak that somehow for corrupted and wouldn't let me access ny devices without restoring it(Android lock plugin)

Though thanks for the find!

Sent from my SGH-T999
[Android Software/Hacking General [Developers Only]] khashila:
Thanks!!!

life saver!!! thanks! :good:
[Android Software/Hacking General [Developers Only]] phantomblu:
I need help with this guide. I have a HTC Sensation with CM10. I don't know if I have debugging on or not, but I am rooted. I can't get the "adb" command to work, but I know I've done it before when I first rooted. I don't know how to run the commands from CWM either. I have 4ext recovery, will that be a problem?
[Android Software/Hacking General [Developers Only]] Ahish.s:
All you need to do is reboot to recovery, and type the commands through adb. Reboot after sending commands and you're done. :cool:
[Android Software/Hacking General [Developers Only]] muz_aj:
tried it with 4.2 on a maguro, after trying the sqlite3 command, it gave me a "unable to open database file"

Is there another way around it?

Thanks
[Android Software/Hacking General [Developers Only]] MBurstiner:
I had to boot into recovery & do it from there. Good luck!
[Android Software/Hacking General [Developers Only]] lurk skywalker:
Works on i9000 running CM10.1 and CWM 2.5.x
[Android Software/Hacking General [Developers Only]] pauloallex24:
I'm getting this error on Nexus 7 without root:

/system/bin/sh: sqlite3: not found

And if I try to use ls command I get:

opendir failed, Permission denied

I've used this on Samsung Galaxy Gio without root and it work. Any idea what to do?
[Android Software/Hacking General [Developers Only]] RootTheMachine:
I think I got that when I didn't do it as root... Anyway the second method is easier. Didn't even need to reboot.
[Android Software/Hacking General [Developers Only]] Jokerx9:
***This one worked like a charm! Very easy to do and very quick to execute. Locked myself out of my Nexus 4 and this one did the trick. Thanks for the code!
[Android Software/Hacking General [Developers Only]] Thomasmr:
Tmobile-MyTouch 4G Locked

Locked out of Tmobile 4g Mytouch.

Can't remember Pattern.

Not Rooted.

Debugging was not enabled.

ADB commands will not work to reset lock.

Is there any way around this without wiping all the data?
[Android Software/Hacking General [Developers Only]] Ahish.s:
No way to help you if you haven't already enabled adb. You'll have to wipe your phone.
[Android Software/Hacking General [Developers Only]] RootTheMachine:
Unless you have the ability to get a custom recovery.
[Android Software/Hacking General [Developers Only]] davisac:
Wow just did this using the 2nd method in recovery. There goes any security I thought I had.
[Android Software/Hacking General [Developers Only]] stormtrooper_mx:
How can this be done in the following situation :

1.- Pattern Locked.

2.- Debugging OFF

3.- Phone not rooted and there is no root method available (Nec Medias 101T)

4.- No recovery available (reboot + volume up or down only shows Andy + Big Exclamation Sign.

5.- Tried to go into Download Mode but there's no way (as far as i know) to get into it.

May i throw it away ???
[Android Software/Hacking General [Developers Only]] RootTheMachine:
There's got to be some way to at least wipe the data.
[Android Software/Hacking General [Developers Only]] detartrated:
Let me know where so I can pick it up again ;) Im kidding!

Jus some clarifications:

1. You're not asked for your Username and Password (Gmail account)?!?

2. How do you know debugging is off? So when you plug in your phone's USB cable to your computer (assuming you have Android Debug Bridge software)....you PC does not recognize it? Even the SD card inside?

3. Most phones/devices aren't rooted anyway so Im not sure if this is an issue for fixing a locked phone

4. There's always a recovery available (especially for Android devices...more so for those which are OEMbranded...but you may have to return it to the manufacturer at worst)

5. I have a similar problem.... I only have two keys on my "generic" android device...a Power button and VolumeUp/Down key...so I cant go into the recovery mode :(

However....this solved my recent Too Many Pattern Attempts problem: Go to Youtube dot com and /watch?v=pHs-Afd2lp0 (you'll have to be able to connect your phone to your pc though)

Thanks AppsCatalog!!! \(^_^)/

That one helped a lot! Of course, special thanks also goes to seniors, m.sabra, CKKnot and hanaheeno and melvinchng for "introducing" me to ADB, SQLite and my inner geekiness ;)
[Android Software/Hacking General [Developers Only]] stormtrooper_mx:
The question is.... HOW ?

Nope, never.

I turned it off, i only enabled it when i wanted to root it but it wasn't possible with every method i know.

not sure either.

"recovery" on my phone only shows Andy robot and an exclamation sign, no menus, no nothing... and i'm sure it's not the download mode, because my pc doesn't recognize my phone.

:(

will try watching the youtube video... thanks a lot for your response.
[Android Software/Hacking General [Developers Only]] papinist:
in 4.2.2 there is a new protection: whitelist. Every time you connect to pc with usb debug on, you get a popup window asking if you want to authorize that connection. Unfortunately if you are locked out by the pin/password, you can't tap on 'ok'. Without that, adb won't work (it find device but says 'offline').

I'm trying to recover this phone for a friend who forgot the pin. I am able to boot in fastboot, so I have flashed twrp recovery and made a data backup. tried to factory reset and then restore data but it restores the pin too :-/
[Android Software/Hacking General [Developers Only]] RootTheMachine:
Adb also works in recovery, depending on which you are using.
[Android Software/Hacking General [Developers Only]] papinist:
I found a very simple and smart solution: in fastboot I flashed twrp recovery, then with its file manager I navigate to /data/system/ and delete password.key (or gesture.key).

At the next reboot pin was gone!

EDIT:

I'll report here the small guide I wrote just in case someone had the same problem.

REMOVING PIN/PASSWORD/GESTURE SCREEN LOCK

- start in fastboot

- boot twrp recovery without permanently flash it (fastboot boot twrprecovery.img)

- in twrp, use file explorer and navigate to /data/system and delete password.key and/or gesture.key

- reboot.

that's all!
[Android Software/Hacking General [Developers Only]] kumaran21:
Hi papinist, how do you start in fastboot? Where can I download twrp recovery for Samsung Galaxy GT-S6802? I have no adb access and the phone is using stock recovery.

Thanks.
[Android Software/Hacking General [Developers Only]] papinist:
I have a galaxy nexus and it enters in fastboot mode with vol- + vol+ + power, you have to find the exact procedure for your device.

here you can find all devices supported by twrp: http://teamw.in/twrp_view_all_devices
[Android Software/Hacking General [Developers Only]] Heart1010:
Ok, tried both commands on 1st post but that didn't work (phone is a Samsung SII i9100g, android 4.0.4). (a friend tried to often the pattern and now it is blocked/locked)

I get always after rebooting "please write in your google mail and password". But problem I don't now these gmail login data for that phone :crying: (used it only on day one after I got that phone in order to be able to login to play store and never used it as mail email etc)

So do I have a chance to "bypass" this screen? :(
[Android Software/Hacking General [Developers Only]] papinist:
did you try the procedure I posted in message #72?
[Android Software/Hacking General [Developers Only]] Heart1010:
I deleted the file /data/system/gesture.key per adb (file was there and was deleted), there was no password.key file in there.

But as said when rebooting the phone I get the "please write in your google mail and password" screen :(
[Android Software/Hacking General [Developers Only]] mytabletguru:
Forget password pattern android

Hey freinds, This is simple and easy to unlock forget pattern for android tablet. only things you must have wi- fi on and need google account registration. Enable two step verification and with google application specific password generator, get a new password from google and enter that password in your tablet. After that your tablet shows to select various pattern and allowing pin pattern which able would prefer you..Do as per instruction given through your tablet.
[Android Software/Hacking General [Developers Only]] Efrencalvario:
i found my own solution

After checking on xda and google i found thta nobody post a way to fix this rm denied problm. So here is my solution (rooted) devices open cmd connect your android devices type adb shell+enter, then su+enter, then rm /data/system/gesture.key and that's it.......easy solution also i eill make my own post about this method and how to remove pin lock and facial lock. Please give me the credits if you are gonna repost my method
[Android Software/Hacking General [Developers Only]] TechMasta:
People might think that this is helpful to hackers but in reality this guide could actually turn out to be a life-saver for us! :good: (only if we have usb debugging on :p)
[Android Software/Hacking General [Developers Only]] Spiralzz:
Deleted.
[Android Software/Hacking General [Developers Only]] sachinagga:
I tried method two on my Optimus 2x with stock (rooted) ICS but getting error "rm failed for data/system/gesture.key, no such file found

please help me for another solution

thanks
[Android Software/Hacking General [Developers Only]] Efrencalvario:
try my method

try my method

adb shell

su

rm /data/system/gesture.key

enjoy
[Android Software/Hacking General [Developers Only]] m.sabra:
let's be clear here,i didn't repost your "method" which isn't actually a method,you just took what i found and added calling su that's it,then you reposted my method in a new thread and asked for credits,the su thing isn't a new discovery,it's a common sense for rooted users to call su when they have a problem with adb permissions,you can post this in the thread but not claim a new method,create a new thread and ask for credits.
[Android Software/Hacking General [Developers Only]] Efrencalvario:
I forgive you anyway :)
[Android Software/Hacking General [Developers Only]] sijav:
for pin you must enter adb shell rm /data/system/password.key

and if you just enter the second methode it will be automatically do the first one ;)
[Android Software/Hacking General [Developers Only]] pr0xZen:
Running GThrill V3 (modified CM10) on Jiayu G3 (MT6577). Rooted ofc.

First commandset didn't work - directory simply doesn't exsist.

Second command line worked both with phone on, debugging mode on (SU for permissions), AND with CWM after mounting /data .

Works for Gestures, Pin (Phone lock pin, not SIM), and password. Just delete both if present.
[Android Software/Hacking General [Developers Only]] iamareebjamal:
Much easier method here

http://xdaforums.com/showthread.php?t=2227103

Even works if USB Debugging is not on!
[Android Software/Hacking General [Developers Only]] vysakhp:
I think this may help somebody.

My little brother entered wrong pattern every time and then my tablet (HTC Flyer with android 2.3.4 stock) asked for username(Gmail) and password. Fortunately I had enabled USB debugging. Enter the code below in a terminal to enable wifi in your locked device.

adb shell svc wifi enable

I tried the methods described in page 1 of this thread but unfortunately I didn't help me. Also please visit the link below.

http://xdaforums.com/showthread.php?t=1913156

Hope I helped.
[Android Software/Hacking General [Developers Only]] kamy0074:
what i have to do for use the first metod??where of the mobile i have to go??
[Android Software/Hacking General [Developers Only]] mb-14:
SMS Bypass

Check out this app I made which uses this process to bypass the lock screen:

http://xdaforums.com/showthread.php?t=2340812
[Android Software/Hacking General [Developers Only]] yiorgosc:
you may also try to install "Screen lock reset" application from Google play

it may do the job for you
[Android Software/Hacking General [Developers Only]] tweakradje:
Did you think about those people that steal phones who can benefit from this thread too?

Ok a factory reset does the job too, but now they can access private data from the owner. Please consider that.

Cheers
[Android Software/Hacking General [Developers Only]] iamareebjamal:
There are thousands of vulnerability in world of Technology so we can only provide a disclaimer saying "Only for Educational Purposes"

If he didn't share it, there already were 4 to 5 methods of doing it, however they being harder. So, it wouldn't make a difference, as, if someone wants to do something illegal, he finds some way out to do that.
[Android Software/Hacking General [Developers Only]] murtazasamiwala:
Hey [MENTION=4244201]m.sabra[/MENTION],

cool method,

I tried it on HTC Sensation running ViperS 3.1.1 and it worked.

Now my question is how do I protect against this, because in all Sense 4+ roms, USB debugging turns on by default on connecting with USB, and it cannot be turned of...so this is a vulnerabiility that a lot of HTC phones are exposed to..( HTC One X+, One X and One S on Sense 4+)

Thanx.
[Android Software/Hacking General [Developers Only]] tweakradje:
I have android 2.3.6 and these settings are not in the system but in secure table.

So that would be

adb shell

cd /data/data/com.android.providers.settings/databases

sqlite3 settings.db

update secure set value=0 where name='lock_pattern_autolock';

update secure set value=0 where name='lockscreen.lockedoutpermanently';

.quit

But this only works if your phone has adb (usb debugging) on and you have set the sticky bit for owner (root) on sqlite3 (rooted).

So if you leave usb debugging off and don't root (or remove the owners stickybit from /system/xbin/sqlite3) you are save.

Same security breach for rooted phones that have /system/xbin/sh and busybox with owner root and have the sticky bit set for owner.

So bad rooting procedure used. Nevertheless interesting find. Thx.

With these settings you are safe on a rooted phone:

Cheers
[Android Software/Hacking General [Developers Only]] lost_:
m.sabra, thanks for posting this. Deleting /data/system/gesture.key works on Galaxy S3. After first boot, it would still show the pattern lock but swiping any pattern would unlock the phone.

Folks, if your device is supported by TWRP, then that's the easiest way (barring a locked bootloader if you are unlucky). Check here: http://teamw.in/twrp_view_all_devices (samsung devices can odin the TWRP tar file).

Flash it, boot to recovery, then go to advance, file manager and that's it. Upon rebooting and if your device is not rooted, some TWRP version would also ask if you want to install SuperSU Installer on your device - the choice is yours.
[Android Software/Hacking General [Developers Only]] angusc:
Here is another method that allows you to use VPN without having to have a LockScreen enabled:

http://rootzwiki.com/topic/35430-guidehow-to-use-vpn-in-jellybean-without-security-lock/

Can be done via ADB commands or directly on the device using 'SQLite Editor' from the Playstore.
[Android Software/Hacking General [Developers Only]] vikraminside:
I am afraid to be in this forum :)

Good job mate :thumbup:

God is Original Developer :)
[Android Software/Hacking General [Developers Only]] wana7262:
got error permission denied HELP
[Android Software/Hacking General [Developers Only]] gavster26:
What can i do if usb debugging in not enabled how can adb see the device
[Android Software/Hacking General [Developers Only]] iamareebjamal:
Then you can follow my guide :wink:

Sent from my Elder Wand
[Android Software/Hacking General [Developers Only]] gavster26:
Butt adb won't see my device
[Android Software/Hacking General [Developers Only]] iamareebjamal:
My guide doesn't involve ADB

It just involves your phone
[Android Software/Hacking General [Developers Only]] gavster26:
Oh right yes sorry got confused. There is no CWM and Xperias dont have a stock recovery :( looks like i will never get into this phone. My problem is explained here http://xdaforums.com/showthread.php?t=2433279
[Android Software/Hacking General [Developers Only]] igorir:
This method is Ok,

But how I can unlock phone and decrypt data, on Samsung galaxy S3,

if the my device is password locked and Full encrypted ???
[Android Software/Hacking General [Developers Only]] jcpowell:
Will this work on HTC devices? Running ICS? With a pinlock?
[Android Software/Hacking General [Developers Only]] mb-14:
SMS Bypass

Check out an app I made based on this principle:

http://mb-14.github.io/smsbypass/
[Android Software/Hacking General [Developers Only]] vermajai93:
I think I'm just being paranoid here, but I like to keep my device fully secured and unreachable if it gets stolen. I'm very naive in android world but I have done what I think was best to keep my fone secure.

• I have a rooted device with CWM installed.

• I keep USB Debugging off all the time.

• In addition to stock lock screen I have a third party app to lock out the apps that I don't want anybody to access.

From what I've read and to my understanding adb is kind of a console for using scripts or commands. And I'm not sure if its enabled in my phone.

My main question is Is my phone secured?? I mean like if someone were to steal my phone and followed this thread would he still be able to crack it?
[Android Software/Hacking General [Developers Only]] RootTheMachine:
You're secured from within Android perfectly fine. However, a knowledgeable thief would be able to use adb in recovery. The only solution to this would be encryption.
[Android Software/Hacking General [Developers Only]] Robsworth:
Life saver dude
[Android Software/Hacking General [Developers Only]] Jimmy34742:
I downloaded settings.db to my laptop, but when I open it in SQLite Database Browser, it comes up empty. I checked the file in a text editor, and it's in SQLite Format 3 and the database entries look like as they should. I also tried another db editor, but it also came up empty with no errors. What am I missing here?
[Android Software/Hacking General [Developers Only]] shreyas.kukde:
It works

Thank you :good::good:
[Android Software/Hacking General [Developers Only]] mrjoy:
I have GT I9001. & i forgot the pattern lock in recovery mode, i tried to factory reset but after clicking factory reset its ask for password. But i dont know the password. Plz help
[Android Software/Hacking General [Developers Only]] dhondooo:
it says sqlite3 settings.db cant found

My phone is HTC oNE X plzzz help ???
[Android Software/Hacking General [Developers Only]] stevey500:
Or just boot into TWRP if they have it, go to file manager, and remove the gesture key file. Bam. This is why I wish TWRP had a simple pin-lock option for security of one's lost phone.
[Android Software/Hacking General [Developers Only]] ssm14293:
Little update I think should be discussed

Hi I saw your post to unlock a table that had adb enabled, but there was one difference.

The table "system" did not have the settings you described. I know sql but I used an sql browser, mainly because I dont have sqlite in my system.

Any who I found the settings in "secure" table, so the sql will become:

update secure set value=0 where name='lock_pattern_autolock';
update secure set value=0 where name='lockscreen.lockedoutpermanently';
update secure set value=1 where name='lockscreen.disabled'; -- I added this

Regards!
[Android Software/Hacking General [Developers Only]] minep:
Done with N9005 4.4.2 via Aroma File Manager.
[Android Software/Hacking General [Developers Only]] mrlightman:
Galaxy S3 Non USB Debbugin Set, Non Rooted - How to do &get data intact?

I dont know it was accidentally or on pourpose but someone took my phone and left his as mine.

It doesnt have an sd card inserted, mine has.

I saw the person how took mine was able to crack my screenlock partern and got into my Whatsapp, etc. (Prabably using the smodges on the screen surface)

By the time I really need to get this phone working but before thinking on go to wipe data factory reset I need brake the patern and reach the files, fotos, etc

The phone is like when it comes from factory Galaxy S3 GTI9300

Unrooted and USB Debbuging is not select in the phone

I tried Power+VOlumeDonw+Home and it gets into a few options but ADB shell doesnt recognize it.

What can I do to resolve it?

I was thinking about flashing a Kernel wich includes ABD shell along the kernel but I dont know if it will work or if the internal data will be safe

Please, Senior members HELP ME.

Thanks
[Android Software/Hacking General [Developers Only]] lord_melchett:
Ok i think i've tried all of the options on here but don't seem to be able to remove the code.

My set up:

Nexus 7 running 4.4.2 and 2 user profiles (i'm not sure if the user profile makes any difference)

One profile has USB debugging enabled, not the other

Not rooted and locked bootloader.

All of the attempts say "permission denied", "device offline"- when trying the pull.settings.db option. etc

Any help would be greatly received!:good:
[Android Software/Hacking General [Developers Only]] Muhammed Zakhir:
This is a useful guide, thanks, I will try it later :good: What if the android dubugging mode isn't enabled, is there any other way? :confused:

Kindly,

MZ
[Android Software/Hacking General [Developers Only]] Adonis K.:
Just wanted to say that my screen is cracked and I've only tried the 2nd version and it worked (but I have to emulate a swipe gesture after deleting the gesture.key file to unlock the screen via ADB's input command).

Then I was able to navigation with adb's input to the settings and disable the lock completely.

After that I was able to do whatever I wanted (taking backup and whatnot).

Thanks a lot man :)
[Android Software/Hacking General [Developers Only]] 4nth0ny:
I was able to do this when I was in a custom recovery CWM. Boot into recovery and then I used the second set of instructions, I rebooted and the pattern was gone :)

Let me know if you have any other questions.

The reason I had to use this is because I cracked my screen and only the top half worked and sadly earlier that day I turned off USB debugging. Once I did this I downloaded an app that allows you to rotate your screen any direction at any point so I can half way use my phone until I get it fixed.
[Android Software/Hacking General [Developers Only]] chuppito:
hello,

I can do it on the phone with SU ROOTE but not on phone with original recovery and debugging enabled.

Do you have a method without resetting the phone? thank you
[Android Software/Hacking General [Developers Only]] Mrheartlockar:
What if

1. Usb debugging is not enable ?

2. Boot loader is not unlocked

3. Device is not rooted

4. No Data Connection & no wifi ?

5. ADB is unable to find device ?

Device is => " iconBIT NetTAB MERCURY Q4 (NT-3509M) "

neither iam having stock rom of it & also bootloader is locked ....

Iam stuck at pattern lock screen !!

Help me please ?
[Android Software/Hacking General [Developers Only]] iamareebjamal:
Read my guide on unlocking a phone in these scenarios. [emoji3]
[Android Software/Hacking General [Developers Only]] Mrheartlockar:
Now Problem is Solved :)

thanks for help, :)

suddenly i found phone drivers on my pc.

and ..

fastboot detect it. ;)

I use these commands :

in command prompt

fastboot devices (if drivers are ok! , it will detect device)
fastboot -w (erase all data/cache)
fastboot reboot (reboot device)
[Android Software/Hacking General [Developers Only]] Gsm UK:
[MENTION=4782403]iamareebjamal[/MENTION]

i have motorola 907 with ENTER PASSWORD .

every important data inside the phone .. i want to remove the password without deleting the data

i need your help please , downloaded all CMW recovery trying to install from fastboot but getting this error .

please check the attachment .

recovery-clockwork-6.0.4.4-xt907

CWM6049-RAZR-HD_M-KITKAT

XT901-XT907-TWRP-2.6.3.0-recovery

phone is not rooted ,, debugging not enable :(

question is how to enable to dubugging the phone is user lock :(