Hello everyone,
This thing has happened with all of us that our phone got locked and we don't know the pattern or either we ran out of our chances to enter it ( I hate those small kids :D ). So here's how you can unlock your device without factory reset. I've tried on KK and LP, but it should work on all devices with any android version.
Firstly, I'm no developer. I'm just a geek who like to work around things. So, here's what I did.
The pattern is stored in /data/system/gesture.key. So, what I did is, I just replaced the gesture.key file with a new gesture.key file which has different pattern.
Here's the updater-script
I replaced the gesture.key with new one, set correct permissions i.e., 0600 (rw- --- ---), but still I don't know why the new pattern do not get set. Instead you can enter any " more than 3-dot" pattern, and it still unlocks. Anyway, our work gets done with this.
THINGS REQUIRED
1) Custom recovery installed
You can search in your device forum to root and install custom recoveries like twrp and cwm.
WHAT TO DO
1) Download the zip from the attachments.
2) Reboot into recovery.
3) Flash the zip
4) Reboot.
Done!!
Now the next time you boot, you can enter any "more than 3-dot" pattern and it will get accepted. Now, you can set new pattern or whatever.
P.S. Well, you are not gonna need it but in worst case if any pattern doesn't work you can enter this pattern 4753
This thing has happened with all of us that our phone got locked and we don't know the pattern or either we ran out of our chances to enter it ( I hate those small kids :D ). So here's how you can unlock your device without factory reset. I've tried on KK and LP, but it should work on all devices with any android version.
Firstly, I'm no developer. I'm just a geek who like to work around things. So, here's what I did.
The pattern is stored in /data/system/gesture.key. So, what I did is, I just replaced the gesture.key file with a new gesture.key file which has different pattern.
Here's the updater-script
Code:
ui_print("Mounting /data");
run_program("/sbin/busybox", "mount", "/data");
ui_print("Deleting old files...");
delete("/data/system/gesture.key");
ui_print("Copying new files...");
package_extract_dir("data", "/data");
ui_print("Setting permissions...");
set_perm(0,0,0600,"/data/system/gesture.key");
ui_print("Unmounting /data");
run_program("/sbin/busybox", "umount", "/data"); THINGS REQUIRED
1) Custom recovery installed
You can search in your device forum to root and install custom recoveries like twrp and cwm.
WHAT TO DO
1) Download the zip from the attachments.
2) Reboot into recovery.
3) Flash the zip
4) Reboot.
Done!!
Now the next time you boot, you can enter any "more than 3-dot" pattern and it will get accepted. Now, you can set new pattern or whatever.
P.S. Well, you are not gonna need it but in worst case if any pattern doesn't work you can enter this pattern 4753
from xda-developers http://ift.tt/22L794G
via IFTTT
No comments:
Post a Comment