SD-ROM: Screen locked with pattern and cannot unlock - HD2 Android Q&A, Help & Troubleshooting and Genera

I forgot the pattern of my lockscreen, tried too many times and cannot unlock with google account.
Unfortunately wifi, data and developer mode is turned off.
Was able to locate and extract gesture.key but how can I remove it from data.ext4?
SD-ROM is containing all my phone numbers, messeges etc.
Please help, thank you in advance.

experto1 said:
I forgot the pattern of my lockscreen, tried too many times and cannot unlock with google account.
Unfortunately wifi, data and developer mode is turned off.
Was able to locate and extract gesture.key but how can I remove it from data.ext4?
SD-ROM is containing all my phone numbers, messeges etc.
Please help, thank you in advance.
Click to expand...
Click to collapse
How have you found and extracted gesture.key?
To remove something from data.ext4 you could mount the file in Ubuntu/Linux which will grant you access to the files.
Code:
[CENTER]sudo mount -o loop data.ext4 ~/Desktop/data
then edit it and unmount it
umount data.ext4[/CENTER]

HypoTurtle said:
How have you found and extracted gesture.key?
To remove something from data.ext4 you could mount the file in Ubuntu/Linux which will grant you access to the files.
Code:
[CENTER]sudo mount -o loop data.ext4 ~/Desktop/data
then edit it and unmount it
umount data.ext4[/CENTER]
Click to expand...
Click to collapse
thanx a lot HypoTurtle! It worked for me but removing gesture.key did´nt remove the protection. I still have googlemail unlock screen.
Any idea?

experto1 said:
thanx a lot HypoTurtle! It worked for me but removing gesture.key did´nt remove the protection. I still have googlemail unlock screen.
Any idea?
Click to expand...
Click to collapse
Had a quick look and if you aren't given the option to reset it, after ~5 failed attempts you could try downloading lock screen bypass from the market to see if that works, I'll attach a copy of the apk if you cant get it.
Just tried it and its 5 failed attempts for me, then the offer to reset.

unfortunately this did not work for me. think it is locked at a different point.
I will give the sql method a try: http://forum.xda-developers.com/showthread.php?t=485988
Anyway I hit the thanks button

problem solved:
after trying sql method and restart it was showing missed calls, could enable data connection and unlock it with my googlemail account.

experto1 said:
problem solved:
after trying sql method and restart it was showing missed calls, could enable data connection and unlock it with my googlemail account.
Click to expand...
Click to collapse
I'm glad that you could solve it and unlock your phone, but I am curious, why it didn't let you unlock using Gmail without data.
Sometimes, I unlock the phone using gmail and pass EVEN with airplane mode on and no WiFi. Isn't it supposed to check with your already registered gmail account? thus no need for an internet connection?
Anywa, enjoy your phone.

experto1 said:
problem solved:
after trying sql method and restart it was showing missed calls, could enable data connection and unlock it with my googlemail account.
Click to expand...
Click to collapse
Glad you got round it, I didn't mention anything adb wise as I though you said debugging was turned of, at least you've learned something. And being able to edit the data.ext4 on a desktop has it's benefits.

Marvlesz said:
I'm glad that you could solve it and unlock your phone, but I am curious, why it didn't let you unlock using Gmail without data.
Sometimes, I unlock the phone using gmail and pass EVEN with airplane mode on and no WiFi. Isn't it supposed to check with your already registered gmail account? thus no need for an internet connection?
Anywa, enjoy your phone.
Click to expand...
Click to collapse
Yes Marvlesz, was also strange to me. Tried the same with my ICS Pad without any connection while I read somewhere that even wifi should not work only when the device is connected to USB!? Maybe it depends on the version? My phone was on ICS 4.0.3 (IceCreamTosti_v0.10_AOKP_M4) with Tyatung Kernel 2.6.32.
Now after all my installation got broke but I can access my stuff, finally save it and reinstall newer version while I have a good reason now to do that

HypoTurtle said:
Glad you got round it, I didn't mention anything adb wise as I though you said debugging was turned of, at least you've learned something. And being able to edit the data.ext4 on a desktop has it's benefits.
Click to expand...
Click to collapse
Yes HypoTurtle, debugging was off and I did´nt use adb. With your kind help I mounted data.ext4 and changed settings.db in linux.

Related

Pin/password security useless in android

So it hit me the other day when i was copying files onto my phone with qtadb(stuck with mtp in cm9) that even if a pin on password is set on the phone i can copy/erase anything from the phone, worse if its rooted, if its connected to a computer. Doesn't this kind of defeat the purpose of the pin/password?
If it even possible to disable just the data +/- pins if the phone is locked with a pin/password, and re-enable them once its unlocked?
peachpuff said:
So it hit me the other day when i was copying files onto my phone with qtadb(stuck with mtp in cm9) that even if a pin on password is set on the phone i can copy/erase anything from the phone, worse if its rooted, if its connected to a computer. Doesn't this kind of defeat the purpose of the pin/password?
If it even possible to disable just the data +/- pins if the phone is locked with a pin/password, and re-enable them once its unlocked?
Click to expand...
Click to collapse
That's possibly do-able.
If you edited the sources you could probably disable adb on lockscreen... But if you close all the holes, and something goes wrong, you are stuffed
Remember recovery is always the best way "in" to the device It has root access anyway, and it's unprotected.
i am not an expert or anything.. but to my understanding.. if u dont enable usb debugging and u have lock screen.. u CANT directly modify the data in phone without opening the lock screen first.. i just tested it now.. even if i try to go to usb mass storage mode, im required to open the lock screen and press connect mass storage...
unless u go into download mode and adb but that also require usb debugging to be enable
pulser_g2 said:
Remember recovery is always the best way "in" to the device It has root access anyway, and it's unprotected.
Click to expand...
Click to collapse
Ya i guess if someone knowledgeable enough wants to get into your phone they'll just use recovery. Is protecting recovery possible?
warrez said:
i am not an expert or anything.. but to my understanding.. if u dont enable usb debugging and u have lock screen.. u CANT directly modify the data in phone without opening the lock screen first.. i just tested it now.. even if i try to go to usb mass storage mode, im required to open the lock screen and press connect mass storage...
unless u go into download mode and adb but that also require usb debugging to be enable
Click to expand...
Click to collapse
Quite right, disabling usb debugging won't allow you to adb into the phone. Tasker allows you to run commands if the display is off and unlocked, anyone know the command to enable/disable usb debugging?
i dont know about the tasker's command.. but if u have lock screen and disabled usb debugging.. it should be quite safe so its not useless
There is a reason you get this shiney warning dialog when enabling USB-Debugging.
Ever bothered to actually read it?
peachpuff said:
Ya i guess if someone knowledgeable enough wants to get into your phone they'll just use recovery. Is protecting recovery possible?
Click to expand...
Click to collapse
Encrypt the phone?
Think encrypted phone cannot be accessed through recovery
KeePassDroid.....
Best way is to use 3rd party applicayions - KeePassDroid is free and very good, you can set very secure passwords and it has a desktop application too
I use it to store usernames/pwds and by all accounts its pretty secure, it also supports different encryption types on the database
Security
If your phone is stolen better to use some app from market that you can control remotelly and ERASE COMPLETELY the phone...
Meanwhile, encryption could be enough.
And both together maybe is the best.
I noticed flashing roms (checkrom) that i would still have a lock screen but any way i connected the dots it would unlock.
eseregin said:
Encrypt the phone?
Think encrypted phone cannot be accessed through recovery
Click to expand...
Click to collapse
This is correct.
Using encryption with a proper password (not PIN/Pattern) you need to enter the password in recovery as well.
So even with adb root access in recovery, it's impossible to access the data without the password.
Kingybear said:
I noticed flashing roms (checkrom) that i would still have a lock screen but any way i connected the dots it would unlock.
Click to expand...
Click to collapse
That's because the flag in EFS for the pattern lock is still set, but no actual pattern is set in the system's data.
So, imstead of never letting you "in" anymore due to no correct pattern it just always unlocks.

[Q] [SOLVED] Forgot my pattern & Email (Password still in mind)

Hallo,
I am using CM7 on my little Samsung Galaxy Y, but forgot the pattern I set.
I tried a lot, and after that, I remembered it again, but it is not useful anymore, it is asking me for my Gmail account, I KNOW the password, but can't remember the email anymore.
How can I get my SMSs (I only need them for very important number there).
Thank you.
Do you have usb debugging on you device? If yes, download android sdk and run those commands:
adb -d shell
sqlite3 data/data/com.android.providers.settings/databases/settings.db
update system set value=0 where name=’lock_pattern_autolock’;
.exit
exit
adb reboot
Click to expand...
Click to collapse
or
adb shell rm /data/system/gesture.key
exit
adb reboot
Click to expand...
Click to collapse
If you dont have, i think a factory reset is needed :/
Sent from my GT-S5360 using xda app-developers app
Arwany said:
Help me, I forgot my pattern.
Click to expand...
Click to collapse
1.Factory Reset
2.Try solution above
Arwany said:
Hallo,
I am using CM7 on my little Samsung Galaxy Y, but forgot the pattern I set.
I tried a lot, and after that, I remembered it again, but it is not useful anymore, it is asking me for my Gmail account, I KNOW the password, but can't remember the email anymore.
How can I get my SMSs (I only need them for very important number there).
Thank you.
Click to expand...
Click to collapse
This might be silly but it might work too (I have not tried but heard that it works) Insert sim card in your Galaxy Y, Dial your number from any where else (Frens cellphones you might pay him for that) Accept the call Don't end call rather press the button one at middle (it minimize your calling process) and navigate to Message and note that number.In that process try this too If play store can be started while minimized calling download any lock-screen application apply that And you should not flash it.
If above didnt work few suggestions Just copy the clockwork mode to SD card (Send it via SD CARD) Now backup the OS and flash it to default rom if you want to use it now for calling purpose or using it and you can revert it's backup and try entering password again in future.
If it really worked Please look at thanks button below
checkpoint_sagun said:
This might be silly but it might work too (I have not tried but heard that it works) Insert sim card in your Galaxy Y, Dial your number from any where else (Frens cellphones you might pay him for that) Accept the call Don't end call rather press the button one at middle (it minimize your calling process) and navigate to Message and note that number.In that process try this too If play store can be started while minimized calling download any lock-screen application apply that And you should not flash it.
If above didnt work few suggestions Just copy the clockwork mode to SD card (Send it via SD CARD) Now backup the OS and flash it to default rom if you want to use it now for calling purpose or using it and you can revert it's backup and try entering password again in future.
If it really worked Please look at thanks button below
Click to expand...
Click to collapse
This is a really good tip man!
But if he recover the backup the password will return too I think.
gu200123 said:
Do you have usb debugging on you device? If yes, download android sdk and run those commands:
or
If you dont have, i think a factory reset is needed :/
Click to expand...
Click to collapse
Thank you, this is a working solution, it has helped me
checkpoint_sagun said:
This might be silly but it might work too (I have not tried but heard that it works) Insert sim card in your Galaxy Y, Dial your number from any where else (Frens cellphones you might pay him for that) Accept the call Don't end call rather press the button one at middle (it minimize your calling process) and navigate to Message and note that number.In that process try this too If play store can be started while minimized calling download any lock-screen application apply that And you should not flash it.
If above didnt work few suggestions Just copy the clockwork mode to SD card (Send it via SD CARD) Now backup the OS and flash it to default rom if you want to use it now for calling purpose or using it and you can revert it's backup and try entering password again in future.
If it really worked Please look at thanks button below
Click to expand...
Click to collapse
This work-around didn't work for me, it didn't allow me to go anywhere else. But thanks however for the answer

[Q] How to reset password, when data and wi-fi are turned off?

My friend has Samsung GT-S6102, and in trying to change the pattern lock, he did something wrong, and now is locked out.
The next step is to enter his Google account login and password, which will let him log on and create a new pattern lock. The problem is, the phone has Wi-Fi and Data turned off.
I think he is now dead in the water, with no options left but to factory-reset the phone.
Is there any way to get the phone to connect to Google, even with Data and Wi-Fi not connected? If we could get 'data' or 'wi-fi' on, we would be all set - but unless there is some diagnostic way to do this from a connected PC, I can't see much else we can do.
mikemyersgnex said:
My friend has Samsung GT-S6102, and in trying to change the pattern lock, he did something wrong, and now is locked out.
The next step is to enter his Google account login and password, which will let him log on and create a new pattern lock. The problem is, the phone has Wi-Fi and Data turned off.
I think he is now dead in the water, with no options left but to factory-reset the phone.
Is there any way to get the phone to connect to Google, even with Data and Wi-Fi not connected? If we could get 'data' or 'wi-fi' on, we would be all set - but unless there is some diagnostic way to do this from a connected PC, I can't see much else we can do.
Click to expand...
Click to collapse
Try rooting the device & flash cwm. Then use aroma filemanager to go to the path, '/data/system' delete the file gesture.key
Hit thanks rather than typing it now Free
parkourkarthik said:
Try rooting the device & flash cwm. Then use aroma filemanager to go to the path, '/data/system' delete the file gesture.key
Hit thanks rather than typing it now Free
Click to expand...
Click to collapse
How about if I both hit "thanks" (already done!), and also say thanks!!
I've been here to xda-developers before, and now have my own device to use to learn rooting and installing custom ROMs. Haven't done it yet. I suppose this might be a good time to learn, but if I mess up, my friend isn't going to be very happy with me.
Let me ask you two questions - if the device is "locked", how can I even root the device? Doesn't it have to be on, running, and ready for whatever it is I need to do? A second question might be how I find the information here to learn how to 'root' a GT-S6102, but I can try that in the morning, when I'm a bit more awake (am now in India, and it's 1am).
I was thinking there might be some kind of diagnostic code that could be sent to the phone from a PC, even though the USB connection is probably not on right now, to "wake up" the data or wi-fi, which would enable the normal process of connecting to Google to continue.
I think you're suggesting I root the phone and flash a new OS. If there is a way to do that, isn't there a way to just turn on data or wi-fi?
I found this from a list of codes:
#*3282# Activate/Deactivate Data
Now, if I could only find a way to get that command to the locked phone....
If I do some of the steps you suggested, can I get to a step where I can give the phone those instructions?
here's the full list:
http://www.netlife.co.za/tech-guide...hones/113-samsung-secret-codes-and-hacks.html
1 - questions belong in question & answers section NOT development section
2 - answer has already been given plus iv posted it loads of times so please use search facility
Download aroma file manager & place on route of sd card (take sd card out & put in pc card slot or card reader)
go into CWM (flash temporary cwm zip if kernel doesn't have cwm)
mount system
flash aroma file manager
goto data/system
delete gesture.key
delete password.key
Restart
Thanks to all of you!
Sorry for the thread being in the wrong place....
I just came back here to say I found what might be the answer, which in fact originally came from xda-developers.com Here's the link, but since it points back to here, I probably don't even need to post it:
http://androidlegend.com/how-to-crack-unlock-pattern-lock-of-any-android-device/
Anyway, thanks to all of you for your help. Without this thread, I'd never have known where to look for an answer.
Any further questions I will post in the appropriate place.
Go In Recovery Mode And Wipe Data and Wipe Cache Partition ..........
Thanks to everyone for all the help. It's no longer an issue. They took the phone to a shop and had it reset to new, so it's in effect a brand new phone again. I guess it will at least be faster now.
I find it hard to believe that Google did things this way - it's good for security, but if someone's phone has data and wi-fi off, and a kid plays around with it and it gets locked, they've in effect, killed it.
I guess it's time for me to stop reading, and start doing. That's the only way I'm going to learn this stuff. Again, thanks!
mikemyersgnex said:
Thanks to everyone for all the help. It's no longer an issue. They took the phone to a shop and had it reset to new, so it's in effect a brand new phone again. I guess it will at least be faster now.
I find it hard to believe that Google did things this way - it's good for security, but if someone's phone has data and wi-fi off, and a kid plays around with it and it gets locked, they've in effect, killed it.
I guess it's time for me to stop reading, and start doing. That's the only way I'm going to learn this stuff. Again, thanks!
Click to expand...
Click to collapse
did u reset d phone?? if no here is a work around .
1) insert a sim card that has incoming call facility (u must know the sim card no)
2) make a call and receive it
3) don't hang up.. after receiving when u r in call window it will let u access d notification dropdown window.. now u can activate wifi or data network mode as u wish..
so no need to reset!!
Suranjan16049 said:
did u reset d phone?? if no here is a work around .
1) insert a sim card that has incoming call facility (u must know the sim card no)
2) make a call and receive it
3) don't hang up.. after receiving when u r in call window it will let u access d notification dropdown window.. now u can activate wifi or data network mode as u wish..
so no need to reset!!
Click to expand...
Click to collapse
Thanks. That is ingenious. Will it work on other android versions as well?
Sent from my TECNO P5 using xda app-developers app
damn
or press long power and select data on
arbayong said:
Thanks. That is ingenious. Will it work on other android versions as well?
Sent from my TECNO P5 using xda app-developers app
Click to expand...
Click to collapse
Hell yes if d rom has access to wifi or data toggle access from notification dropdown window
---------- Post added at 03:25 PM ---------- Previous post was at 03:23 PM ----------
rubmod said:
or press long power and select data on
Click to expand...
Click to collapse
Most phones does not have that feature..
Just go to recovery clear data and reboot
Sent from my GT-S5360 using xda premium
Himan Boro said:
Go In Recovery Mode And Wipe Data and Wipe Cache Partition ..........
Click to expand...
Click to collapse
This is the last choice you have.... You can try many from the methods above
Sent from my GT-P3110 using XDA Premium 4 mobile app
mohamedrashad said:
Just go to recovery clear data and reboot
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
I know this is a stupid question (I am new), but what does the clear data option do? Wipe/reset the device of my personal stuff?
You will not need data,wifi to sign into google Account..
Sent from my GT-S5360 using Tapatalk 2
bmiles said:
I know this is a stupid question (I am new), but what does the clear data option do? Wipe/reset the device of my personal stuff?
Click to expand...
Click to collapse
yes it will wipe all user data - this includes installed apps (not system apps) contacts sms and so on
if you want to remove the lock screen password you can do it without wiping data
see my post in this thread
http://forum.xda-developers.com/showpost.php?p=47873492&postcount=5
recovery mode
So when i do this process does my active SIM have to be in the device as well?
---------- Post added at 03:45 PM ---------- Previous post was at 03:38 PM ----------
marcussmith2626 said:
yes it will wipe all user data - this includes installed apps (not system apps) contacts sms and so on
if you want to remove the lock screen password you can do it without wiping data
see my post in this thread
http://forum.xda-developers.com/showpost.php?p=47873492&postcount=5
Click to expand...
Click to collapse
"THANK YOU" (since i am apparently at my limit on thanks a day ~why limit gratitude?)
shyamSGY said:
You will not need data,wifi to sign into google Account..
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
does the sim have to be in the phone when signing in and/or doing the workaround (or any method)?
bmiles said:
does the sim have to be in the phone when signing in and/or doing the workaround (or any method)?
Click to expand...
Click to collapse
you can flash this zip in cwm with system and data mounted
http://forum.xda-developers.com/attachment.php?attachmentid=2192613&d=1376652536
it will remove the lock screen - if the lock screen does appear just enter anything you like
your sim card does not have to be in to do this although if your phone is set to not allow access without a sim card in you will need to edit your build.prop to allow phone use without sim

[script]Remove password/fingerprint lock

Hi all,
I made this small update script because sometime when you try a rom and use a backup to restore the previous one the authentification get broken, so this script will just remove all locks and allow you to start your phone without any data lost.
I'm not responsible if something is going wrong.
Flash using any twrp will probably work.
great. will try
thanks!
animehq said:
Hi all,
I made this small update script because sometime when you try a rom and use a backup to restore the previous one the authentification get broken, so this script will just remove all locks and allow you to start your phone without any data lost.
I'm not responsible if something is going wrong.
Flash using any twrp will probably work.
Click to expand...
Click to collapse
well we can delete gatekeeper files manually from the TWRP file manager, and everything is fine, no data lost.
Great will try
c_/\/\_k said:
well we can delete gatekeeper files manually from the TWRP file manager, and everything is fine, no data lost.
Click to expand...
Click to collapse
Yep probably, but for most of people here it's safer to use a script than let them find the files manualy.
And maybe faster
animehq said:
Yep probably, but for most of people here it's safer to use a script than let them find the files manualy.
And maybe faster
Click to expand...
Click to collapse
you deserve compliment for your work , but it takes only one file to delete to remove passwords or lock. and its neither lengthy nor unsafe, i have seen your script, it deletes to many things.. which is not required i think. And your updater script has spelling mistakes too bro..
Does it also removes the mi account? Device locked because mi account think the device is stolen.
c_/\/\_k said:
you deserve compliment for your work , but it takes only one file to delete to remove passwords or lock. and its neither lengthy nor unsafe, i have seen your script, it deletes to many things.. which is not required i think. And your updater script has spelling mistakes too bro..
Click to expand...
Click to collapse
Which file do you think is the only one to delete?
Rohit DK said:
Does it also removes the mi account? Device locked because mi account think the device is stolen.
Click to expand...
Click to collapse
Nop sorry and there is no easy way to do it as far i know.
Bogeyof said:
Which file do you think is the only one to delete?
Click to expand...
Click to collapse
If its patternlock, then its gatekeeper.pattern.key, if its password then its gatekeeper.password.key, you can delete both.
Successful Using RX & Deletion of /data/validity/template.db
Doesn't work for me! Ran rx from recovery, wiped caches, & rebooted. Typed in backup password, unlocked (same as b4). Went to the Settings for fingerprint this time it constantly rejects any attempt saying too many incorrect pls wait. Prior it wouldn't take fingerprint or password.
Any suggestions for this?
PS: Would be nice to list what each file does /is for. I am also an advanced user...
After running This Rx use (root) X-plore/etc F. M. Then DELETE:
[*W/Rx SUCCESS*] /data/validity/template.db [*W/Rx SUCCESS*]
Reboot. Type in Previously Used BackUp Password. Go to Fingerprint Settings & setup new fingerprint & backup password!
[*MIA*] data/system/users/0/settings_fingerprint.xml [*MIA*] Could not find this file, so I assume not needed.
This was done on Stock Base Marshmallow ROM N915 (Note Edge).
BTW Thanks for RX & Could You Please add the above file to RX?

pattern-locked p9-lite, how to recover at least the photos?

The phone is fully working and connected on the Internet with the google account and everything, but who set the pattern to unlock the screen also forgot it
Apparently Google remove the option to set a temporary password using the Android Device Manager to unlock the device and the USB debugging is disable on the phone (so I guess no abd).... any ideas on how to recover the photos stored on the internal memory?
First of all, we need to know if it is yours. There are thiefs that steal phones and try to access personal data for their pleasure.
Hisuite for photos.
Johnny TDN said:
First of all, we need to know if it is yours. There are thiefs that steal phones and try to access personal data for their pleasure.
Click to expand...
Click to collapse
I'm actually trying to help the owner of the phone, no thief involved here
Since the google account is setup and the device has also internet connection, I was thinking about installing an app remotely from the play store website... but which one? I need one that installs, spawns a service and automatically exposes the content of the internal storage without touching it (wifi, ftp, ...). Any ideas?
I remember that recovery factor reset didn't remove the internal storage (in my case)
Johnny TDN said:
I remember that recovery factor reset didn't remove the internal storage (in my case)
Click to expand...
Click to collapse
The official Huawei customer support answered saying that for android >5.1.1 the procedure is to take a backup and disconnect the account before firing the "Wipe Data Factory Reset" from the recovery, if not all the user's data will be lost.
mrfree2ita said:
The official Huawei customer support answered saying that for android >5.1.1 the procedure is to take a backup and disconnect the account before firing the "Wipe Data Factory Reset" from the recovery, if not all the user's data will be lost.
Click to expand...
Click to collapse
Then the last method is this :
If you still have the warranty, make sure it has the same IMEI as the one written on the warranty (you can check what imei you have by removing the sim tray and look at the IMEI written on it), then go to HUAWEI and tell them that you forgotten your password and you need your files. They will ask you for the warranty and some security questions.(maybe, idk)
If you don't have warranty, then sorry, you are screwed.
mrfree2ita said:
The phone is fully working and connected on the Internet with the google account and everything, but who set the pattern to unlock the screen also forgot it
Apparently Google remove the option to set a temporary password using the Android Device Manager to unlock the device and the USB debugging is disable on the phone (so I guess no abd).... any ideas on how to recover the photos stored on the internal memory?
Click to expand...
Click to collapse
Does the device have a stock or custom recovery installed? In the case of a custom one, you don't need to enable USB debugging in the actual system; you can just boot into the recovery and go to town with ADB.
In the case of a stock ROM, try installing fastboot and ADB drivers, and booting into fastboot mode. I can't remember the exact key combination, but once you're booted into fastboot and connected to your PC via USB you should be able to flash TWRP or CWM without enabling debugging, I think. Guides to do this can be googled. Make sure to use the right .img for your phone though, or you'll brick it.
Once that's done and you're able to boot into a custom recovery, do so, connect to your PC via USB, fire up ADB, and use one of the following commands:
su
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
or
su
adb shell rm /data/system/gesture.key
The first of these will nullify the order in which the pattern or PIN is supposed to be inserted, meaning you can do whatever and unlock the phone. The second removes the PIN or pattern entirely.
Let me know how this went, and if you need any help, feel free to reply here or PM me. I'll get back at you as soon as I can.
mrfree2ita said:
The phone is fully working and connected on the Internet with the google account and everything, but who set the pattern to unlock the screen also forgot it
Apparently Google remove the option to set a temporary password using the Android Device Manager to unlock the device and the USB debugging is disable on the phone (so I guess no abd).... any ideas on how to recover the photos stored on the internal memory?
Click to expand...
Click to collapse
Easy..But I won't help you cause I don't know if it's your phone or not sorry

Categories

Resources