Unlock an Android Device without Internet Access – Using ADB commands


Problem

My Android tablet is  locked because too many wrong pattern attempts.  When entering a wrong pattern 20 times (you may be not stupid to enter it wrong 20 times, but your child or someone else who wants to lock your device what happen ? ) your devices is locked and asking to unlock it via your google username and password. You are lucky if the device locked with Wifi on or mobile data network on. Then you can simply log into the google account and unlock it. But I’m not that much lucky and my tablet was in “Airplane mode on” with “Wifi off”.

Android device lock with too many pattern attempts

Android device is locked with too many pattern attempts

Android should have a method to turn on wifi or mobile networks when device is locked. But no, there is no such a method :-/

Solution

I did lot of google searches and most of them end up with hard resetting the device. If you hard reset all the data are gone. I tried it too, but because of some problem(it may be the device model), my resetting was stuck in middle of the process. Finally I found a solution to access the device from a PC via a USB cable (ADB Commands). For this method you have to have enabled USB Debugging on the device before it is locked. Luckily I had enabled it before it is locked.  (As I saw, for rooted users USB Debugging is not required — but you might need to manually mount the/data partition. Actually I didn’t try it and don’t know how to do it as my USB debugging is enabled.)

Ok here is the solution for devices which have enabled USB debugging ,

Open the command prompt (cmd) in Windows

Change directory to the android SDK platform tools (cd C:\Program Files\Android\android-sdk\platform-tools)

Type following commands in cmd

  • adb devices (verify device is identified by pc. If not reconnect device and try again. it should display “device” with a serial no)
  • adb shell
  • cd /data/data/com.android.providers.settings/databases
  • sqlite3 settings.db
  • update system set value=0 where name='lock_pattern_autolock';
  • update secure set value=0 where name='lock_pattern_autolock'; (for some devices update “system” is enough but I had to update “secure” too)
  • update system set value=0 where name='lockscreen.lockedoutpermanently';
  • update secure set value=0 where name='lockscreen.lockedoutpermanently';
  • .quit
  • exit
  • adb reboot

Now your device should be unlocked. If not do this step too,

  • adb shell rm /data/system/gesture.key (I didn’t have to do it. But it had mentioned here)

Here what I have done is clear lock patterns and remove the permanent lock from the database. Yes here I have break the security, but saved my device as can be used again. If you are concern about the security of your device “Always keep off USB debugging mode“. But I don’t know what will happen to your important data when someone locked your device.

So did you solve your problem and save your device ? Then don’t forget to like my fb page. ONLY IF YOU HAD A SOLUTION FROM THIS 😉

If you know about a better solution, add it as a comment here. It will help others too.

Update 18-05-2013

Important Comments

ryo : https://chethaka.wordpress.com/2013/02/28/unlock-an-android-device/#comment-87

Ashutosh : https://chethaka.wordpress.com/2013/02/28/unlock-an-android-device/#comment-110

checky : https://chethaka.wordpress.com/2013/02/28/unlock-an-android-device/#comment-114

Categories: Android | Tags: , , , , , , , , , , , | 281 Comments

Post navigation

281 thoughts on “Unlock an Android Device without Internet Access – Using ADB commands

  1. justintheory

    Thx alot. However, I install my custom rom in SD card. So the path for setting.db is not same as default.
    Any idea that can adb access to linux based ext4 on my sdcard? cause i think my setting.db file is inside there.

    • sad

      i don’t have the USB cable

    • it didn’t work you know because the sdk is not being downloading n my windows 8. it took 2 hours and then finally it said that download unsuccsessful and then i tried it for many times but it happend then too . can anybody help me i have a android tablet with no mobie network . if anybody knows it then please reply my message on the given google ID – ahad.thesuper@gmail.com

  2. Thanks! This is very helpful.

  3. Hi, I just successfully removed pattern unlock. I had to struggle to set up all the requirements, but at the end everything went smooth.
    Thanks buddy!

    • I’m glad to here it. Cheers ! 🙂

      • Chethakau…. huhuhuh it didnt works on my Android tablet…huhuhu it makes me cry…. i cannt open my tab… so please help me what to do….. dont ignor my problim…. help me please…

      • zion

        chethakau plsp pls pls make a video on how to do this im a 13 year old dude and i dont know mush pls PLESE make a video how to do this

        • GirlWithSarcasm

          You should make a video how to do it. I really agree with this guy

      • john

        how to Change directory to the android SDK platform tools (cd C:\Program Files\Android\android-sdk\platform-tools)

      • Mashhood

        thank you thank you very much If you teach me how to “root” and “flush” tablet i will be your more thankfull

      • moe

        Please make a video, some people like me are a little too dumb and desperate!

    • huhuhuh…. how did you do that… coud u teach me??? i forgot the password of my tablet…huhuh what shall i do??\? help me please..

    • harold f bancairen

      please teach me …how to unlock pattern attemps….

  4. kaleem

    excuse me….but i haven’t enabled usb debugging mode so can i hard reset my tablet

    • If you not enabled usb debugging, you may have to hard reset the device.

      • abraham

        how to do hard reset

      • SFA

        how i have dany tab in which only 2 button
        1.power
        2.lock
        how can i reset remove pattern lock .
        my tab is now on google sign in and no internet connection.

  5. Ying

    Many thanks , glad to know your page! Your instruction really helpful!

  6. Elvis_989

    Hi… I have a problem…i couldn’t instal the LiveSuit on my laptop. my smartphone (Samsung Galaxy S) in the cmd returns “error: device not found”. it’s my only phone and I really need to unlock it. btw, my little cousin played with it :/

    • Did you try the steps which i have mentioend in post ? try installing sdk and drivers for usb support. if you did those steps and still cant identify the device, im afraid that you may have to hard rest it.

      • Elvis_989

        hm… I used the “USE AN EXISTING IDE” option because it was easier to instal. in it, i checked the “extras” category and installed it complete. I’ve downloaded even the “samsung usb driver for android”, but it says “samsung usb device”, but not also the model number or something else.

      • Elvis_989

        I even tried with and without the samsung driver, and it both times didn’t show any model or name tags for my phone. Will I really have to hard reset it?? 😦

      • THARIQ

        i dont have my volume button outside

    • Try the solution of @ryo’s in the comments. Go down in this comment thread.

  7. @Elvis_989 seems it is complicated than my knowledge :-/ I think it’s better to contact a service provider for samsung. If you hard reset the device you can retrieve your all data from the google account 🙂

  8. Salinda

    installed river
    but device not found
    my 4n is Huawei HU 8860

  9. Mavi

    you’re a genius! i unlocked my tablet using your solution. this is very helpful
    thanks a lot!! =)

  10. varun

    Please please help me out in installing usb driver!!!

    • Amaan

      no,what solution you are giving is so complicated.ihave a very very easy way.
      follow me.
      i am having micromax canvas 2 but this works on every android.my is ics

      instructions-
      1) power off your android device.
      2)press and hold both vol + and vol – keys. then press and hold power while holding both vol keys.press till a menu shows.
      3) in that menu choose data wipe/factory restart.scrool using vol + and vol- keys. and choose by power button or bottom buttons.
      4)choose re boot system.
      now your device should be unlocked.

      CAUTION!
      before this process make sure you have removed sd card and have back all your data.

  11. thanks, it works ^_^ may god bless you

  12. aqadir

    Thanks…but.dude.my debugging is off.so then what should i do?

  13. ryo

    My Samsung Ace 2 is rooted, but when I type ‘adb shell’, I get a $ instead of #, which I’ve found out is not the su command. So I’ve tried various ways to get the ‘#’ instead of ‘$’, like typing ‘adb shell’ and then ‘su’, which returns the cursor to the next line, is blank for 10 seconds, and then ‘$’ appears again (after 10 seconds). I’ve also tried typing ‘adb shell su’, and it waits for a few seconds, and then just returns to the android\sdk\platform-tools folder.

    Running Gingerbread 2.3.6 – what am I doing wrong?! Just need to get a # instead of $……………..

  14. ryo

    OK! So, after 2 hours of trying to unsuccessfully trying to get ‘sqlite3 settings.db’ to work through adb shell, I found an alternate method (I am using a rooted Samsung Ace 2 running Android 2.3 Gingerbread on Windows 7, with debugging mode on):

    1. Download SDK Installer for windows and install BOTH tools (SDK tools + Platform-tools) – you don’t need any of the other stuff in there.
    2. Launch cmd.exe, and navigate to the platform-tools folder (mine was C:/android/sdk/platform-tools
    3. Use command: adb pull /data/data/com.android.providers.setting­s/databases/settings.db \some_folder_on_your_computer (all one line)

    **NOTE**If permission is denied, then type ‘adb shell’, and ‘su’ to get superuser; it should show #, not $. Then type ‘chmod 666 /data/data/com.android.provide­rs.settings/databases /settings.db’ (don’t type the ” apostrophe). Then type exit, and exit, again until you’re back to …../platform-tools

    4. use “adb pull /data/data…settings.db” command again. It should work this time, and the settings.db file should be in the folder you told it to push to
    5. Get Firefox, and get add-on called “SQLite Manager”. Restart Firefox. Go up to top left Firefox tab and under ‘web developer’ menu, you should see ‘SQLite Manager’. Open it.
    6. Open the settings.db with SQL Manager (you might have to change it from only showing .sqlite files, to show All Files *.*
    7. After settings.db is open, go to Tables–>Secure, and look for lockscreen.lockedoutpermanently. If you’re phone was TOTALLY Locked out (e.g., after 20 pattern attempts…=damn kids), then it should show a value of “1” (this means “on”). Select it, click the edit button up top, and change the value to “0” (=”OFF”). Commit changes and close SQLite Manager.
    8. go back to cmd.exe window (you should still be in the …./platform-tools folder), use the command:
    adb push \some_folder_on_your_computer\settings.db /data/data/com.android.providers.setting­s/databases/
    9. If this transfers successfully, you SHOULD be good to go.
    10. Unplug phone, turn off, turn on = YOUR GOOD OLD SIM PIN SCREEN! 😀

    Big Credit due to AppsCatalog and the clues in his description in his youtube video (http://www.youtube.com/watch?v=pHs-Afd2lp0)

    • This is great and thanks for sharing your solution. This will help others also whose phones aren’t rooted. Weldone ! 🙂

      • Martin Cocele

        Thanks a lot! With all your explanations, I managed to solve my problem!

        As far as I understood, the issue was that I didn’t manage to make sqlite work on the phone, so I had to use it on my PC.
        (I rooted it a long time ago, without updating it recently: so,… no sqlite3 on the phone system, and I didn’t manage to make it work with appropriate rights)

    • w2w

      This saved my Dad’s tablet after he forgot the original Google password. Great write-up, and many many thanks!

    • Jessica

      On the note part, what if it does have a $ sign ?

    • imi

      when i type su it how permission denied..can u make a video for this solution??i cant fix this problem

  15. My Android tablet is locked because too many wrong pattern attempts. When entering a wrong pattern 20 times (you may be not stupid to enter it wrong 20 times, but your child or someone else who wants to lock your device what happen ? ) your devices is locked and asking to unlock it via your google username and password.

  16. atif

    how to resest the hard…there is no option of resesting on the tablet and its is locked please tell me soome thing about it

    • There may be not a reset button. But for resetting there should be a key combination like Power button + volume up (Holding few seconds). Search about the correct combination as supporting your device’s model.

  17. Khushi Shukla

    my android phone is locked due to the same reason and i have tried all this but unfortunately it didn’t work . what to do now ??? 😦 😦

    • If you did all the steps correctly, sometimes your device may be not enable debug mode or it is not rooted. Then you may have to hard reset it as your device’s model.

      • Arjun Bk

        I have Kivi ks-111 i tried all this steps correctly but it doesn’t work.

  18. please am i know being on this page, i have my problem solved. please i have to reset my Tab due to attempted pattern and ignoring gmail account so i have to download all the neccesary software but the most unfortunate thing here is the usb mode is not on debugging so the pc cannot detect the Tab, please help me cos am desperate…. i really need your help….tanks

    • Amaan

      no,what solution you are giving is so complicated.ihave a very very easy way.
      follow me.
      i am having micromax canvas 2 but this works on every android.my is ics

      instructions-
      1) power off your android device.
      2)press and hold both vol + and vol – keys. then press and hold power while holding both vol keys.press till a menu shows.
      3) in that menu choose data wipe/factory restart.scrool using vol + and vol- keys. and choose by power button or bottom buttons.
      4)choose re boot system.
      now your device should be unlocked.

      CAUTION!
      before this process make sure you have removed sd card and have back all your data.

      • ameer

        i am having micromax a116 and able to launch the screen as mentioned by you.
        i am also able to navigate through the available options using the vol + & –
        problem i am facing is that i am not able to select any one of the options.
        i want to know which buttons should be used to select the available options.

      • i am having micromax bolt…..and no option is comming like re boot system…….plzzz help me…

  19. Divyanshu

    My tablet is chinese and android but i dont now how to rest it because the volume button is on screen plz. help me how can i reset it and my tablet is without sim .

    • There should be a method to reset your device as the model. search the reset method with your device model number and name.

  20. Rajesh Ghote

    when i connect my phone via usb its only shows turn on usb storage option if i turned it on device is not found in adb devices plz tell me wat to do ??

    • enable usb debugging mode in phone settings

      • mariz aquino

        how to do this?i cant sign in on hotfile,,may tablet is unlock pattern i dont know how to do ur instruction

  21. Pingback: Run adb shell and get $ instead of # | Chethaka's Blog

  22. Muhammad Anas

    Hi, Thanks for this really helpful post! I really need your help as I have a same situation that you had. I have got an “XPOD” Android 4.0 ICS 7″ tablet PC. They day before I secured it with a pattern unlock but a morning afterI found it locked with “Too many pattern attempts” message appearing in it and asking for my Google Username and password. I have 3 Google IDs associated with the device but none worked (as my wifi is also turned off and there is nothing I can do to turn it ON before unlocking) unfortunately USB debugging is also not enabled on my deivce but its “ROOTED!” I have no driver that came with the device. the only way for my PC ti recognize my tablet is to power it OFF and then press the both volume keys +.- Power key than it is listed in device manager as “UNKNOWN DEVICE”. I tried using ADB but it says no devices found? Can you confirm me that I dont have to enable USB debugging if I’m rooted??? And if you could please suggest me a way so that I can be able to unlock my tablet. Many Thanks

    • Though it is rooted, I think USB debugging should be enabled for working with adb commands. If not you may have to hard reset your device

      • Muhammad Anas

        But there is no way I can do a Hard Reset there is no reset hole on the device nor there is any recovery in it from which I can do factory reset! Do you have any clue that what it means when my drive is detected by a PC in power off state as “Unknown Device” does it have a concern with falshing device firmware (i think so) if yes there must be drivers and software too for flashing firmware?? Am I right.

  23. Ashutosh

    Issue:
    I had recently put in pattern screen lock for my Spice-Mi350n. And it so happened that my 6 yr old kid
    tried to crack it. The phone started asking for the gmail account’s username (email) / password.
    Even after providing the correct credentials the phone won’t unlock. So practically my kiddo had locked
    me out of my own phone defeating the very purpose of pattern lock :(.

    The solution provided by you did help me to unlock. However there were a few issues that I faced and
    I would like to update my experience as to how I went about fixing these issues. Hope others find
    it useful.

    1) “cd /data/data/com.android.providers.settings/databases” did not work.
    solution: execute the command “su”.

    2) “sqlite3: not found” error was thrown during “sqlite3 settings.db” step.
    Solution: I had installed a pro version of Titanium backup and luckily I found sqlite3 there.
    # find / -name sqlite3
    /data/data/com.keramidas.TitaniumBackup/files/sqlite3

    3) did the changes but “adb reboot” command did not work. So ended up physically rebooting the phone.
    Ofcourse the phone did boot up without asking for pattern lock.

    Chethakau,
    I would like to thank you for providing these steps in detail. Just putting in 1 hour of effort including
    download of those SDK manager and driver files helped save my time. Else I would have wasted one entire
    office day by visiting the Spice service center.

    • Thank you very much for sharing your experience and solutions for the issues you faced. This will help others too and it will be very useful. 🙂

    • Thanks a lot!
      Basically the same happened in my case (child locked the phone while being abroad on summer holiday: no data roaming, so cannot login with Google account… what a stupid design!), and my phone also did not have sqlite3 – but luckily I also happened to have Titanium Pro installed, and the same location (/data/data/com.keramidas.TitaniumBackup/files/sqlite3) worked!

  24. checky

    man i have no idea what cmd and all that other stuff is ……am i suppose to see my sd card am confused……how do i hard reset my mid 9” all in one tablet

    • Click on Task bar start button on your computer and type “cmd” in Run or search. It will appear command prompt and you have to type other steps in there.

  25. Jude

    how can we go here “Change directory to the android SDK platform tools (cd C:\Program Files\Android\android-sdk\platform-tools)”

  26. checky

    thank God i figure it out so just something to add if your lock out because of password and you do remember the pattern you can go back to it. download sdk or just the platform tool. see previous for links

    go into the folder marked platform tools
    hold shift and right click
    type: adb pull data/data/com.android.providers.settings/databases/settings.db
    you should see some kbs message which shows that its been copied and the time it took
    ok your on your way…open firefox(chrome did not accept the extention) and download sqlite
    when thats downloded click the folder that says open and navifate to paltform tools. (click show all files) then you should see in that folder settings or settings.db
    click on that when it comes up
    to the left of the screen click secure then navigate down to mobile data
    click edit change botton digit to 1
    do the same for wifi
    change bottom lock screen to 0
    if you dont remember finger pattern change the one aboe it to 0 too
    click database
    close database
    go back to the command (cmd)
    type: adb push ./”settings.db” /data/data/com.android.providers/settings/dabases
    then just turn the tablet or phone off (note do not force shut down)
    remove usb and turn on that will fix it.
    took be days to find this thread and hours to understand this page so hopefully this detailed approach will help beginers like me.
    special thanks to ryo 🙂 so happy right now! jamaica

    • Thank you for sharing your experience and glad to get to know that you solved the problem. Cheers ! 🙂

  27. magnifique

    hey checky,does ur method work even if usb debugging is off??……can some one explain to me how to hard reset my tablet??….it is a 51cube u26gt………it has only a power button there is no volume or home button

  28. exza

    PLEASE I ENTERED TO THE HARD RESET INTERFACE BUT THE LANGUAGE IS IN CHINESE ..PLEASE CAN U HELP

    • Search on youtube, how to hard reset your device model and follow those video’s steps. It will easy for you if the language isn’t understandable

  29. Umakanth

    Hi,

    Will the data in my phone will be deleted? Please answer.. I also have the same problem

    • No, only the pattern will be deleted by following these steps and phone will be restarting normally without the pattern

  30. Umakanth

    Thanks for the reply @chethakau..

  31. Umakanth

    Hi chethakau.. I am unable to execute this command “sqlite3 settings.db” .. getting an error “sqlite3: permission denied”.. and when i googled abt the solution i found details abt this one in the same page which is replied by “ryo”

    and i followed the same

    “$ adb pull /data/data/com.android.providers.setting-s/databases/settings.db\H:\Tillu
    adb pull /data/data/com.android.providers.setting-s/databases/settings.db\H:\Tillu
    adb: permission denied
    $ su
    su
    su: permission denied”

    still i am getting the same error..

    And i also gone though “Ashutosh” solutionin the same page but no use..Please help me .. I am mentioning my handset details below.

    Model Number: ALCATEL ONE TOUCH 985N

  32. Umakanth

    Hi chethakau.. I am unable to execute this command “sqlite3 settings.db” .. getting an error “sqlite3: permission denied”.. and when i googled abt the solution i found details abt this one in the same page which is replied by “ryo”

    and i followed the same

    “$ adb pull /data/data/com.android.providers.setting-s/databases/settings.db\H:\Tillu
    adb pull /data/data/com.android.providers.setting-s/databases/settings.db\H:\Tillu
    adb: permission denied
    $ su
    su
    su: permission denied”

    still i am getting the same error..

    And i also gone though “Ashutosh” solution from the same page but no use..

    Does the problem depends on the handset model?

    If, I am mentioning my handset details below.

    Model Number: ALCATEL ONE TOUCH 985N

    Firmware Version : 2.3.6

    Kernel Version : 2.6.35.7 android-bid1@acigcl-ubnt122#1

    Build Number : Gingerbread

    Please help me ..

  33. can you help me bro? How’s about hard reset for Yoord af5566, please.!!!!!!!!!!!!!!!!!!!

    • Amaan

      no,what solution you are giving is so complicated.ihave a very very easy way.
      follow me.
      i am having micromax canvas 2 but this works on every android.my is ics

      instructions-
      1) power off your android device.
      2)press and hold both vol + and vol – keys. then press and hold power while holding both vol keys.press till a menu shows.
      3) in that menu choose data wipe/factory restart.scrool using vol + and vol- keys. and choose by power button or bottom buttons.
      4)choose re boot system.
      now your device should be unlocked.

      CAUTION!
      before this process make sure you have removed sd card and have back all your data.

  34. Amaan

    no,what solution you are giving is so complicated.ihave a very very easy way.
    follow me.
    i am having micromax canvas 2 but this works on every android.my is ics

    instructions-
    1) power off your android device.
    2)press and hold both vol + and vol – keys. then press and hold power while holding both vol keys.press till a menu shows.
    3) in that menu choose data wipe/factory restart.scrool using vol + and vol- keys. and choose by power button or bottom buttons.
    4)choose re boot system.
    now your device should be unlocked.

    CAUTION!
    before this process make sure you have removed sd card and have back all your data.

    • cathy

      why does it takes so long before a menu pops up ? is it normal ?

  35. Maxz

    Hi it worked for me Thanks a lot

  36. i have a samsung galaxy 2 and basically ive put a pattern password on there and ive accidently clicked dont show pattern, so now my phones locked and i dont know how to put it the password :/

    • Bubble

      just do the pattern where you think the little circles are. If the patterns wrong it will show up red and you’ll know where to do ot next time

  37. Salman

    thanxxx a loot mahn , i had no hope , but completed it like a game mission 😀 😀

  38. hi guys i have a sony ericsson x10i (android) and i set a pattern on it but a friend of mine tried the pattern for more than 20 times…….now it is showing the secutiry question and google account page but i don’t remember any of these…… my question is can i make it go back to the pattern page where i can just draw the pattern and unlock the phone or better still any good option of how to unlock it?

    • You cant go back to the pattern page. Try following steps in this post and it will unlock the pattern.

  39. kimberly hachaso

    thanks a lot mate. best forum ever!! salamat

  40. Pingback: Can I recover my thrive internal memory?

  41. prabhat

    dude i cant acess my android tablet as it is locked and mobile data is not turned on and wifi,USB debugging is not turned on

  42. Bubble

    While I was out someone took my phone and kept trying passwords I came back but now it says it wants my gmail account password and email address. I know my password and email but theres no wifi connection. I don’t know how to use this debugging system. Please help I don’t want to bring it to one of those phone shops and lose all my songs, pictures, contacts ect.

  43. ok so not long ago i had a problem with a locked android device with a pattern and i managed to unlock it using adb,so here’s how in case you were stuck one day with a locked device.

    the device needs to have usb debugging enabled in case usb debugging isn’t enabled and you have cwm you can run the same instructions from cwm,root is not required (though it will be so better if the device was rooted)

    this was tested on:gingerbread,ice cream sandwich and jelly bean.

    both method are through adb.

    method 1:
    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

    -AND/OR-

    method 2:
    Code:

    adb shell rm /data/system/gesture.key

    and that’s a video showing how method 2 is done (thanks to melvinchng) : http://www.youtube.com/watch?v=tVJ7T…layer_embedded

    you can try both of them,here is how i managed to remove the lock:
    1- run the first method.
    2-reboot
    3-run the second method
    4-reboot

    NOTES:
    -in the first method each line is a seperate command so click enter after typing each line.
    -in the second method type all the command and then press enter.
    -after running both methods and rebooting you may see the pattern lock,that doesn’t necessarily mean it doesn’t work,just try any random pattern and it may unlock then remove the pattern from settings.
    -this may and may not work,it may work on some devices and don’t on others,so all you can do is trying it but i can’t assure it will work.

  44. omar

    is their any easier process
    i have huawei ascend y200 and it is locked
    how can i reset it
    plz help

  45. alok (ak)

    HI FRIENDS MOST SIMPLE WAY TO UNLOCK IF U KNOW UR GMAIL ID AND PASSWORD
    If ur wifi or data is off then to on it simple call that no which is lock once u calledd that no u can drag that drop down list as u get that axcess till the bell rings just on the wiffi or data connectivity once done on now u can enter ur id and password…its working trick dont get panic if u forget ur pasword just reset ur password for that id and follow the same process no data loss or use of debugging process…..

    • Maaz Kalim

      Alhamdulillah! You saved my bandwidth/data and time both! 🙂 May God Bless You! I’m so so happy now by unlocking my phone with this easy way. I use Gingerbread version 2.3.6 on my Samsung phone. When I rang the phone for the first time, my phone hanged [as usual >:(] a little but I tried to access my phone by Mobile Data as I forgot that there’s no option to access mobile/packet data state setting in (Toggle) Menu Bar. Then I disconnected the call from my locked phone and called again as I mistaken again that phone’s Menu can be accessed during the call forgetting that “actually, the phone is in lock state”, however, it didn’t affected me as I have Calls Minutes Pack activated on that another number. Then I activated Wi(-)Fi tethering [Mobile Hotspot] on that another phone [I don’t have any Wi(-)Fi router/modem/dongle but fortunately, I have a phone with that feature] and called again. Then I activated the Wi(-)Fi on my locked phone during the phone ringing by sliding from the Notification Bar and then tapping the Wi(-)Fi icon in the Menu Bar. I’m so happy that you gave me such an easy and time-saving method, actually I was just waiting for an access to my PC for that risky, time-wasting and money-wasting procedure. Thank You, Thank You So Much (again)! 🙂 And for those users who don’t have any phone [in unlocked state] with Mobile Hotspot feature [obviously those who are using Gingerbread and earlier Android releases], that seems to be a rare circumstances in today’s lifestyle however if this is so, then I would like to say that they might have a laptop or a desktop PC with Network Card [whether branded or assembled, standard or All-In-One]. Then they may reply me for the solution. And one little advisory for you that please don’t double post your comment [in either disappointment, discouragement or any other bad mood] as this practice is part of Spamming. 🙂

      • Tonnie

        Really, it seemd too simple to work, afther alI l read above! But my sun and I tried and it WORKED!!! Thank you so much!

  46. ALOK(ak)

    HI FRIENDS MOST SIMPLE WAY TO UNLOCK IF U KNOW UR GMAIL ID AND PASSWORD
    If ur wifi or data is off then to on it simple call that no which is lock once u calledd that no u can drag that drop down list as u get that axcess till the bell rings just on the wiffi or data connectivity once done on now u can enter ur id and password…its working trick dont get panic if u forget ur pasword just reset ur password for that id and follow the same process no data loss or use of debugging process…..

  47. Hello any help with Spice mi 505 android version 4.0.4

    My younger sister locked it after all fail attempt

    Now its locked and sim data is off even all wifi is off.

    What to do?

  48. dr.pratik dhabarde

    My karbon android cell was lock…
    I attempt many times buy its not opened.
    And i dont have any deta connection in my cell.
    So how could i opened my mobile lock without any deta connection . I mean to say offline mode…….
    Plz help me out……
    Plz plz….

  49. alfred

    USB DEVICE (VID_1F3a_PID_efe8) cant install . Although i connect the usb cable, my android tablet is not appeared .. please help . I already tried the adb shell . but device not found .

  50. Just as it is title suggests, a louis vuitton diaper bag Neverfull cannot be totally packed due to its large total capacity. If it for starters introduced with 07, there was a higher interest on the case for the significant ability, louis vuitton diaper bag fantastic contour, practical and splendid.

  51. i need your help i cant do this and i don’t know how to reset my tablet 😥

  52. Felix

    I have the galaxy player 3.6 with Android 2.3.6 and i did root. Debug mode is on, wifi off, no 3g.
    I have the gesture locked from kids for too much wrong gestures, and the email and password doesn’t unlock.
    The pc recognise the device as adb devices displays serial and device.
    I have tried all mode 1 and mode 2 way, but all i have i permission denied.
    I have download all two x86-64 and x86 platform and tried with both. Same result.
    When i use adb and enter su, i see the screen is brightening and the cursor and $ disappears for a while about 5 10 seconds (i think it waits for something), afterwards i have again $ not #.
    I tried entering command rm .. during this time when $ disappears after entering su. Nothing.
    This is the output

    C:\sdkx64\sdk\platform-tools>adb shell
    $ su
    su
    rm /data/system/gesture.key
    $ rm /data/system/gesture.key
    rm failed for /data/system/gesture.key, Permission denied
    $

    where is the error?
    What can i do to unlock, without doing the factory reset?
    Please help me! Please Help me!

  53. Felix

    I did this, but of course there is a non sense: if i haven’t root privileges all this hell i’m doing is to get the su. So how can be possible that chown will work? Infact:
    C:\sdkx64\sdk\platform-tools>adb shell
    $ chmod 666 /data/data/com.android.providers.settings/databases/settings.db
    chmod 666 /data/data/com.android.providers.settings/databases/settings.db
    Unable to chmod /data/data/com.android.providers.settings/databases/settings.db:
    No such file or directory
    $

    3. Use command: adb pull /data/data/com.android.providers.setting­s/databases/settings.db \some_folder_on_your_computer (all one line)

    **NOTE**If permission is denied, then type ‘adb shell’, and ‘su’ to get superuser; it should show #, not $. Then type ‘chmod 666 /data/data/com.android.provide­rs.settings/databases /settings.db’ (don’t type the ” apostrophe). Then type exit, and exit, again until you’re back to …../platform-tools

    So i don’t know what to do. Please, really, help me.

  54. daane dongkala

    my tablet have not rooted., can I take this way to unlock it??

  55. Oscar

    ive tried hard reset on my android device many times, and it just stays in the android clear screen. the longest ive let it sit like this was 8 hrs. plz, someone help!

  56. manaf

    hai dear ,
    i have a android tablet ,
    now it is locked by wrong pattern lock ,i tried to reset it , but no have internet connection and now volume button .
    how to unlock it ? please give me a solution ….

  57. manaf

    i am trying to type in cmd but it says “adb” is not recognized as an internal or external command.”
    please give me a detailed solution for connect the device.

    • To identify adb commands there should be android SDK installed in the computer and device drivers. All the downloads links and steps are mentioned in this post. Read again everything 🙂

    • justin

      You need to download the sdk. Why it says is not recognized….just because ur on a directory of ur pc. Or u can download this universal driver adb app after that click the folder and hold on press the shift key then right click then click the open as command prompt something like that.

  58. Thanks many times.. I have found the similar receipt for this, but didn’t work. At last, the SECURE commands of database updates has helped, worked like a charm..
    Trouble was with Delium TM902 tablet, which is kinda noname device with a little shitty Allwinner A10 processor. Lucky the manufacturer doesn’t care much, so Debugging was on and also the root access :D.. I was unable to make hardware reset, as there is no manual for the device nowhere, no known (or unknown, or possible) HW button combinations work, nor the “adb reboot recovery”.
    So thanks!! Helped me to get into device (with many app crash notices, but I don’t mind, I suppose the system was pretty messed up when the device came to me) and perform software reset, making it as good as new!! Grande ;)..
    BR from Czech republic.

  59. jamy

    hi all i did the adb cmd commands and reboot my twinmos twintab t714 4gb but it wont start any more i hold + and pwr buttons the robot lay dawn dead ….plz help

  60. I don’t know if it’s just me or if perhaps everybody else experiencing issues with your website.

    It seems like some of the written text within your posts
    are running off the screen. Can someone else please provide feedback and let me know if this is happening to them as well?
    This might be a issue with my web browser because I’ve had this happen before. Thanks

  61. haider

    hi all
    whenever i enter command adb devices it shows 2 devices one of which is my htc desire hd and other is emulator-5554 . can any one tell me what is it ? and how it can be removed as adb shell dsnt worked giving error ” more than one device and emulator

    • You can try to check task manager, if adb is running. Usualy when you have some smartphone SW installed (like Samsung Kies or such), adb is already running as a service and if you run another instance, it can have strange behavior.. I have met this when rooting my Xperia, the root didn’t work until I have killed all adb instances. Then it worked only with the one from desired directory and all went well..

  62. I blog frequently and I genuinely thank you for your information.
    The article has truly peaked my interest. I will bookmark your
    website and keep checking for new details about once per week.

    I opted in for your RSS feed too.

  63. yoooooooooo.. thank you so much… mi tablet is back in life again… unlock was good, following the steps you put on this page… thanks again..

  64. ajain

    my tablet has been locked due to more pattern attempts, now it is in safe mode, wat i have to do to release lock

    • Connect it to PC and try to follow the steps. Hope it has Cable debugging allowed. You should be able to boot it normally. Otherwise you can perform hardware reset, if possible.. What is the device model??

  65. ajain

    iball slide 6309r

    • You can try to connect it to PC with Windows and see in device manager, if ADB Interface or Android device appears. With proper drivers and SDK kit you should be able to connect to device and perform the steps. Device must be turned on and booted.
      If Debugging is not enabled, device will appear as Mass storage device only. Then you can try to perform hardware reset. That depends, usualy it is holding one of the volume buttons and then pres Power. When recovery appears, you can release the vol. button. You can also try holding power button for up to 30sec. It usualy takes several seconds to start up when trying to get to recovery.

  66. Wow,! your solution fine, but all that I need is to root my Tecno D3 smart phone! I have tried so many times but did not go trough! am on whatsapp on this wire : +233244090598 anyone with solution can contact me on same line! thanks

  67. Mohammed

    I had similar problem: My phone was locked with “Too many pattern attempts” and Wi-Fi was off.
    And installing ADB was not working for me as my phone was not getting detected by PC.

    I tried a simple solution suggested by my friend.
    I inserted a 3G SIM in my phone and then unlocked it using my username and password

  68. Hi,
    >I’m trying to follow your instructions; and I really appreciate you making this public.

    >However, I am having some serious issues…
    >I can get as far as

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

    >but thats it…if I try and add

    #sqlite3 settings.db

    > I get an error message

    # sqlite3 not found

  69. Erumáro

    Thanks alot!!!
    I managed unlocking my Motorola Milestone!!!

    I just had this one little problem:
    when I tried to run sqlite3, it said “# sqlite3 not found”

    So, I did it slightly differently:
    I extracted the settings.db file to my sdcard and modified it using the sqlite.exe provided by the Android-SDK.

    commands:

    cd C:\Program Files\Android\android-sdk\platform-tools
    apk devices
    apk shell (nothing changed until now)
    $su (fortunatly my phone was rooted…)
    #cp /data/data/com.android.providers.settings/databases/settings.db /sdcard
    (copied the file to my sdcard,
    then and made a backup copy just in case using Windows-Explorer)

    #exit
    $exit

    cd C:\Program Files\Android\android-sdk\tools (open sqlite3)
    sqlite3 L:\settings.db (L: is here the mounted sdcard, change the letter so it fits your case)
    update system set value=0 where name=’lock_pattern_autolock’;
    update secure set value=0 where name=’lock_pattern_autolock’;
    update system set value=0 where name=’lockscreen.lockedoutpermanently’;
    update secure set value=0 where name=’lockscreen.lockedoutpermanently’;
    .quit (same operations…)

    cd C:\Program Files\Android\android-sdk\platform-tools (reopened adb…)
    apk devices
    apk shell
    #cp -f /sdcard/settings.db /data/data/com.android.providers.settings/databases
    (copied and overwrote the hacked settings.db to its proper location.)
    #reboot

    Enjoyed unlocked, non factory-reseted phone…
    (aka: now I can start fixing the humidity problem on my digitizer that caused this “might-have-been” catastrophy in the first place and that is still blocking the middle of my screen…)

    I hope this helps some of you guys

    • Thank you very much for your feedback. This will help to other guys too 🙂

      • pls help me to unlock my tablet,, because of too many wrong attempts, it is asking me now to sign in with my google account but the wifi is off and the debug is not enabled too.. pls help me to solve my problem

  70. This would’ve been useful,,. If I wasn’t on vacation when I can’t install ADB -.-
    I hate my sisters so much…

  71. Iyaz

    how to reboot my tablet?????pls help me usb debugging is not on

    • Chez

      If usb debugging is not on, you have to hard reset the tablet. Search how to hard reset it with the model number

  72. Now… I have ADB, but I can’t install the USB drivers because they’re 32 bit or something, so ADB won’t find my phone.

  73. If you have Clockwork, you can mount data from it.

  74. vishal

    thanks amaan it really worked .. ur genius………..

  75. I really like your blog.. very nice colors & theme.
    Did you make this website yourself or did you hire someone to do it
    for you? Plz respond as I’m looking to create my own blog and would like to find out where u got this from. thank you

    • Chez

      This is a free web design template by wordpress.com. You can edit it easily as you want 🙂

  76. Nizamuddin

    Thanks this helped me lot and now my TAB is working again.

  77. bhe,

    i cant do it,,,help!!!…

  78. Quotes

    Thank you for sharing your thoughts. I truly appreciate your
    efforts and I am waiting for your further write ups thank you once again.

  79. Phoenix

    BETTER SOLUTION :-
    No need of USB debugging (or any unlocking software).
    (Only if your device has call options)
    Just call from any other device, & answer from ur device. At this time, u can access your notification bar on the top and enable ur wi-fi 🙂
    Now just end the call and sign in with ur google account to unlock the device. 🙂 🙂

    • Ali salem

      thanks a lot Mr Phoenix, your way the best and the easiest way to unlock my mobile. just make a call from another phone and answer then you can go easily to turn my wifi on, thanks , thanks thanks a lot a lot a lot.

  80. Ali salem

    hi Admin I did you said, but when I write cd C:\program file …. etc, there is a error message (the system can’t find the path specified

  81. Ali salem

    thanks a lot Mr Phoenix, your way the best and the easiest way to unlock my mobile. just make a call from another phone and answer then you can go easily to turn my wifi on, thanks , thanks thanks a lot a lot a lot.

  82. Brett Gr`adwell

    when i enter adb shell it tells me device not found. iv installed all drivers, samsunk kies. computer recognises the phone but when i hit adb shell it just says device not found. tried reconecting but that also doesnt work. please help anyone

  83. Brett Gr`adwell

    when i enter adb shell it tells me device not found. iv installed all drivers, samsunk kies. computer recognises the phone but when i hit adb shell it just says device not found. tried reconecting but that also doesnt work. .please help .anyone

  84. Vinnie

    What do i do my phone was loked when my data connection was off.

    Please assist

  85. Salad

    I use adb tool (small size) without SDK and that script…Its Works.
    Million thanks maaaaan !!!

  86. Hey this is kinda of off topic but I was wanting to know if
    blogs use WYSIWYG editors or if you have to manually code with HTML.
    I’m starting a blog soon but have no coding expertise so I wanted to get advice from someone with experience. Any help would be greatly appreciated!

  87. abula

    i have infinix x401 with many patterned lock i ddd not remember the password again and is not rooted how can i unlock it and the hard reset i s not working tanks

  88. Junior S Kamhuka

    Thank you i hve lykd yo help i appreciate on yo I.T

  89. Sukirti

    I’ve got Samsung Galaxy S2. My kid has locked me out of it 😦
    I am not sure if the debugging mode is on for my phone but then i type adb devices, it shows none… Tried reconnected without success.
    Please help me to unlock the pattern.

  90. kavin

    What to do if i didnt enable Usb debugging neither rootedmy mobile.
    Because i tried this command code adb and nothing happens. What i need to do to enable usb debugging.
    Please help !

  91. Maaz Kalim

    Now hope that Google will not end this amenity stating this as a “bug prone to misuse” as then we will have no option but to always keep the USB Debugging option ticked which will always be “feature prone to cybercrime”. 😦

  92. alekh jain

    hii to all
    you can unlock the phone when phone is connected to internet with WIFI or mobile-data.
    so simply switch on the wifi with this few steps and unlock your phone as it was befor being getting locked
    1. call to your no.
    2. receive call double tab the screen to unlock the phone.
    3. slide down the notification bar
    4. switch on wifi or data or both .
    5. connect to any network you can.
    6. enter google id and password as it is how you use on pc to login to mail account.
    7. your phone will ask you the new pattern you want to use to unlock your phone.
    now your ready to use your phone as earlier .

    :):):):):):):):):):):):)

  93. Anil rajpoot

    please soluation My mobile spice smart filo mi351 ( too many pattern attempts invalie user name and passward my mo no. 8305380387

  94. Hi Chethaka,

    I had the following issue even after tying to follow all the step provided by (you, ryo, Ashutosh, checky)

    My device is Samsung Galaxy Tab 2 – 7.0 which is not rooted. When I run ‘su’ or ‘sudo’ commands , it give me error saying su: not found.

    My query is will it work only on rooted devices. If not is there any other way to access the settings.db.

    Hope to get a solution soon.

  95. Nishan

    Fixed my Tab 🙂

  96. Prasad

    I am using Samsung Galaxy pop and when I tried above mentioned commands after sqlite3 settings.db it is telling permission denied…how to fix it… pls tell me…

  97. harold f bancairen

    please help me how to unlock pattern attempts …LG540…….please i need your any reply ,,,,to solved my problem…..PLEASE I NEED YOUR HELP……

  98. sathish

    im unable to go to sqlite3 settings , it says permission denied

  99. luc

    I have a huawei u8550 which got blocked because of too many pattern attempts. I’ve tried doing a hard reset but it goes straight to Download mode. So I tried to do what you suggested but failed! now the device is not being recognized so i can’t even try to do what you suggested anymore. how can i get the computer to recognize the device?

  100. mayur

    If i set the pattern in my cell phone and Unfortunately my cell phone is locked and I’ll try to unlock my cell phone through my computer is there any chance of erases of data ??

  101. mayowa

    pls my samsung andriod was locked by my younger brother bt when i try to format it they are telling me that is a china made ndriod that they cannot format it………..pls hep……………i nid to hear from u all thankz……………

  102. Ankit

    Dear Chethaka i am trying same but after entering the C:\android> adb shell or C:\android> adb devices my cmd prompt response is ,adb, is not recodnized as an internal or external command,operable program or batch file.

    please help me out. I am using samsung tab

  103. Pingback: I don’t want to lose all my data when Android phone’s pattern was locked with no internet connection. | Ungeekiness

  104. jegas

    Im having an Taiwan made “Anderon” tablet ,in pattern lock so many attempts,next move to the Google mail Acct verification mode,default WiFi- Off mode ,its not workout ,then try factory Hard Reset button ,its not workout ,then try vol up & down buttons & power on keys not workout ,download the SDK bundle & ADB files via USB cable ,my system identify my tablet as a External drive only ,not a device ,so i again try to find the updatedevice driver for my tablet is not found ,how can unlock my pattern lock,pl help me ?

  105. StupidMe

    My PC can not detect my device. How’s that? Please help ;(

  106. Teofil Morar

    Thanks for the help! With the info from your post I was able to unlock my Motorola Milestone 2. Somehow the shell didn’t find sqlite so I had to download the settings.db file on the PC and edit there(with a sqlite3.exe which I downloaded from internet) and then replace the original with the modified one:

    C:\opt\android-sdk\platform-tools>adb pull /data/data/com.android.providers.sett
    ings/databases/settings.db .
    C:\opt\android-sdk\platform-tools>sqlite3.exe settings.db
    sqlite> select * from secure where name=’lock_pattern_autolock’;
    1615|lock_pattern_autolock|1
    sqlite> select * from secure where name=’lockscreen.lockedoutpermanently’;
    3726|lockscreen.lockedoutpermanently|1
    sqlite> update secure set value=0 where name=’lock_pattern_autolock’;
    sqlite> update secure set value=0 where name=’lockscreen.lockedoutpermanently’;
    sqlite> select * from secure where name=’lock_pattern_autolock’;
    1615|lock_pattern_autolock|0
    sqlite> select * from secure where name=’lockscreen.lockedoutpermanently’;
    3726|lockscreen.lockedoutpermanently|0
    sqlite> .exit
    C:\opt\android-sdk\platform-tools>adb push settings.db /data/data/com.android.pr
    oviders.settings/databases

    To be able to download and overwrite the settings.db I gave temporary rw rights to others:
    chmod 666 settings.db
    but this must be run with root (so I used SuperOneClickv2.3.3 to root the android)

  107. rusdiawan

    i have SAMSUMG NOTE I, no need to factory reset.
    just push the power button few minutes until its show popup menu and select activated data connection,
    than now you have a internet connection activated. Fill the user and password, alhamdulillah, done

    hope will help

  108. cel

    it works on my I robot tablet….thank you

  109. Dante

    How to my tablet full rest then. pc windows c.m.d.

  110. Dante

    So

  111. Rakesh

    Hi Chetakau,

    I have downloaded SDK but looks there is no exe file in that. I have directly went to the platform tools directory using CMD. I have gave adb shell it said connecting to port. And now when i give adb devices it gives zero list. Mine is Lenovo P770.

    What shall i do? Please help me.

    Regards,
    Rakesh

    • Rakesh

      Also, I have downloaded the drivers which you have given link ( LiveSuit). I have installed LiveSuit.exe. Is this means the drivers are installed ? I have clicked on drvinstaller_X64 but no much help. Please suggest

  112. dozen ishak

    thanks a lot

  113. Raneesh

    Thank you buddy I successfully Unlocked My Xtreem Tablet using this

  114. You can try this out guys

    http://www.techracle.com/best-approach-unlock-android-phones/

    It is the best method i have tried

  115. Emmanuel

    I’m trying to unlock my phone,infinix x401 but it’s not responding.I try factory reset but it won’t click pls somebody help me.the fault is pattern lock

  116. Maaz Kalim

    Can someone please remove this offensive “comment”?? I’m surprised what work do the “Moderator[s]” do when they have permitted such illegal “comment” here?? And Mr Chethaka, where were you when this comment was being “moderated”?? Or would we consider that “YOU DON’T HAVE ANY PROBLEM IN MAKING YOUR BLOG A USUAL PRON STUFF”?? 😡

    • Thank you Maaz for informing about that comment. I allowed all comments and didn’t moderate any previously. Will moderate them now on. Thanks again.

      • Maaz Kalim

        No problem! 🙂 And Sorry for any misunderstanding as I thought when I posted comment on your blog for the first time (through mobile browser), my comment first got “moderated” and then published. And Thanking You So Much for taking quick action and thus clarifying your stand. 🙂

  117. chips

    Thank you so much bro! I will not forget u!! Thank You so much!!! it worked!

  118. chips

    Thank You So Much Bro! It Worked

  119. i have hold turn off + down key arrow but my tab is now not opening…plz giv me the hint.

  120. what if the USB DEBUGGING IS TURNED ‘OFF’ and phone is locked cos of too many pattern unlock?

  121. Pingback: Unlock an Android Device without Internet Access – Using ADB commands

  122. harsh

    i am getting adb permission denied. How to solve dat problem?

  123. mrr

    good thing i have an easy touch app installed. i just opened the emergency call and i was able to turn on my wifi connection using the easy touch. poof i was able to verify my account

  124. Paul Lee

    OK omg I spent soooo much time on this i want to die D:
    So I had the same problem as people before: after typing in ‘sqlite3 settings.db’
    ‘sqlite3: not found’ shows up

    so i looked EVERYWHERE for a solution and everywhere just says type in ‘adb push sqlite3 /system/xbin/’ and it would be done. But after i typed that in it said
    ‘adb: not found’
    anyway, from this I learnt that the sqlite3 thing is supposed to be in the /system/xbin directory

    so i looked so hard to find out how to exactly “push” the sqlite3 into the phone, like where is the sqlite3 originally supposed to be, so the computer knows from where to push the sqlite3 into the phone? (maybe this sounds stupid, but i actually have no idea how the whole cmd thing works.

    ok. so basically i did this my own way by reading several comments above.

    one comment above i read was, he had the same ‘sqlite3: not found’ error, so he used this method to find the sqlite3: he typed in something like ‘find -name sqlite3’ to find the sqlite. I did the same and found it too, at /data/data/eu.thedarken.sdm/files/sqlite3. then i read the comment very thoroughly to see what i shud do next. ok, the comment didn’t say! it only told me how to find it, but not what to do then… but anyway, I leant here that I could find something using the ‘find’ command

    another comment (from someone who, again, had the same error), said he used ‘cp’ to copy the settings.db from the original path to the /sdcard directory, then changing the settings.db file through the computer. I didn;t have an sdcard adapter at this point (okay i could actually have taken out the sdcard from my htc, plug it into my blackberry so my computer could read the sdcard, but it would take so long since i would have to wait for my blackberry to start up and stuff, and i also thought to myself: what if the file isnt copied to the sdcard? then i’d have to pull the sdcard back out, put it back into the htc and start over. I didn;t bother wasting the time because I have already spent like 2 hours on this and i was really pissed off)
    SO. thats where I learned that ‘cp’ can be used to COPY something from a directory to another.

    As you should already know, from reading this, that I know NOTHING about commands, i didnt know how it worked at all, and i have never done something this complicated before (things i used to do were pretty straightforward, ie. no errors that are so damn hard to solve)

    SO. After I dont know, maybe 2-3 hours, my attempt finally worked.
    I used the “cp” command to copy the sqlite3 from the directory I used “find” to find out to the “/system/xbin/” directory, and then I just did what I was supposed to do as if the ;sqlite3: not found’ error never showed up.

    to sum up, what i did was
    cd C:\Program Files (x86)\adt-bundle-windows-x86_64-20131030\sdk\platform-tools
    adb devices
    adb shell
    # find / -name sqlite3
    To find that
    /data/data/eu.thedarken.sdm/files/sqlite3
    Is where my sqlite3 was

    Then I did
    cp /data/data/eu.thedarken.sdm/files/sqlite3 /system/xbin
    to copt the sqlite3 to where its supposed to be

    and then continued as the post instructed:

    • sqlite3 settings.db
    • update system set value=0 where name=’lock_pattern_autolock’;
    • update secure set value=0 where name=’lock_pattern_autolock’; (for some devices update “system” is enough but I had to update “secure” too)
    • update system set value=0 where name=’lockscreen.lockedoutpermanently’;
    • update secure set value=0 where name=’lockscreen.lockedoutpermanently’;
    • .quit
    • exit
    • adb reboot

    and i am just so glad it finally worked! sorry to typed such a long passage but this is just after it worked and im just so excited and happy

  125. BinRip

    Thank you so much for the information u shared…
    after this command “sqlite3 settings.db” i got an error message say unable to open database “settings.db”….
    Please help me…Thanx in advance

  126. kritika

    My tablet has locked my tablet name is android tab 7 my brother has locked it and forgot my gmail account so plz help me how can i open it

  127. joy

    hi pls help me how to unlock my myphoneA1818 DUO ? TOO MANY PATTERN ATTEMPT

  128. naaz

    for hard reset my tab show only chinese language what can i do

  129. Sierra Brown

    I really do not know how to unlock my tablet without ant type of internet access. I really need some help !

  130. Joseph

    Dear chethaka
    Thank you for your very useful solution.
    I’ve tried it on my Motorola Defy+ mobile, but unfotunately the directory names and the SQL database name (and maybe even it’s tables names) of that Android system – are not the same as in the tablet.
    Do you know my mobile’s exact ones? I’d be greatful if you could write them to me.
    Thanks very much.
    Joseph.

  131. sosoloid@hotmail.com

    I just wanted to say thank you. This guide was very helpfull, I was just minutes away from doing a full factory reset but then I found your guide, thank you so much it worket great! (had a locked galaxy ace)

  132. Hay bro please help me my android is Locked and i use ur method But when i used
    (1) adb shell (This worked)
    (2) cd /data/data/com.android.providers.settings/databases (this worked)
    (3)sqlite3 settings.db (This didn’t work it says Not found i dont know why)
    (4)update system set value=0 where name=’lock_pattern_autolock’; (This didnt work too)
    (5)update system set value=0 where name=’lockscreen.lockedoutpermanently’; (This is also didnt worked it says not found please help)

    This what i did u said
    FIrst i did adb shell it worked

    Shell@android:/$ cd /data/data/com.android.providers.settings/databases And it worked too
    Now it says
    Shell@android:/$ cd /data/data/com.android.providers.settings/databases $
    Now when i type 3rd one it says
    Shell@android:/$ cd /data/data/com.android.providers.settings/databases $sqlite3 settings.db It didnt worked bro
    /system/bin/sh:sqlite3:Not found
    and 4rth and 5th also said like this please help me

  133. jaydeep patel

    i have galaxy GT s5360.
    i am trying to unlock my phone through ADB
    when i trying the commands in commands prome it gives the error like permission denied
    when i type sqlite3 settings.db
    sqlite3 settings.db
    it gives sqlite3: permission denied

    update system set value=0 where name=’lock_pattern_autolock’;
    update: permission denied

    update system set value=0 where name=’lockscreen.lockedoutpermanently’;
    update: permission denied

    .quit
    permission denied and so on.

    what i should do…pl. help me

    when i type ADB reboot my phone was automatically reboot.

  134. xylo

    Thank you very much it worked for me.

  135. syasy risha

    hi;; i’m syasya,,,i’m from malaysia … my phone is samsung galaxy aceplus… i have forgotten the pattern and it was locked… i tried ur method but it does not work… please help me !! i really need ur help !!

  136. Sandeep

    Hi Chethak, i am using Micromax Canvas 2 and it’s being locked.
    i installed all fastboot and all but my phone USB debugging is off so it’s not detecting in cmd prompt.

    please help me how to get out fro thi, pls…………………

  137. what if my usb debugging is turned off and I can’t get into recovery mode, o have tried all known key combinations but non worked out. How do I go about this.

  138. marcelhoo

    most helping article 🙂

  139. Marie

    i guess it’s hopeless for me… 😦 my problem could be solved IF only i have windows! for now, i’m stuck with this samsung chromebook,. i don’t have service on my lg optimus. wi-fi is on..now what? is there anyone who can help me? plsss. i have memorable pictures on it.

    • If your wifi is on, try to log with your google account. I think they have a recovery system if you have forgotten the password.

      • Marie

        that’s another problem. i don’t remember my google pw…siggh. i’ve tried recovering my google accnt pw 3x but no luck. it didn’t match…most of my answers are answers that i know is accurate for the most part bcuz i know myself lol

      • Marie

        i also forgot to mention, my phone recovery is attached to my old phone number. so there it goes..google’s questions for recovery such as when i signed up & the last time i used it, i cannot remember. thanks for your reply..i’m just going to have to live with the fact that i have to forget about those pictures of my daughter! sigghh

  140. Kritika

    Won’t this void the warranty ?

  141. Govinda

    Have one problem following these steps… When going for
    sqlite3 settings.db
    getting error as Permission Denied. How to solve this. On some forum root is the option. Can we do it without this…?

  142. Anup Kapur

    Kindly change the link for LiveSuitPack_v1.07_usb_drivers.rar
    It is not available at the link provided

  143. Ahmed Samir

    best idea is to open the internet connection and write your email and password, and to open your internet connection and to open your internet connection while you cant unlock your android is to press the power button until it show a menu (power menu) then you will find “Data network mode” just choose it and it will open your internet connection, and the write you email and password. and everything will be okay
    it worked for me
    best wishes

    Ahmed Samir (princeofguilty@hotmail.com)

  144. neetesh sharma

    i have spice mi505 android mobile .. that has been blocked that has been seen … too many pattern attemps ….. required email what can i do

  145. Muaz

    i have spice mi502 android mobile…my phone is locked because of too many pattern attempts…it requires my email and password but i m not getting any kind of option like data connection…please help…what can i do to get rid of this?..please help.

  146. rishav

    this is rishav. I recently bought a htc desire 500. I hadn’t put any sd card and and it got locked. it doesn’t accept my gmail id and passward. and theres no way I can unlock. it asks me to factory reset. but there are really important documents in the phone which I don’t wanna lose. it’ll be great if u can help me out!
    thank you

  147. Yadah

    Hi there, do you have any idea where can I download usb drivers for android (Lenovo IdeaTab a2107A-H)? Also, this is no longer available http://hotfile.com/dl/136803097/cffe5ab/LiveSuitPack_v1.07_usb_drivers.rar.html
    Thanks much in advance for your help!

  148. Ravi

    dear sir, I have followed your all instruction, but my phone USB debugging mode is off, how to do it is on ?

  149. zuby

    Thank u soo much.. 🙂

  150. mariam

    I have the galaxy camera and i forgot the password, any solution for that?

  151. daoud

    Thanx so much Mr. Aman

  152. Now, unlocking become easier and easier. Thus, in some developing countries, unlocking is not so legally ruled.

  153. Netra SAAh

    my tab is lock by using too many pattern attempts so to unlock, singn in with google account ……..i know but my wiffi is off so wat to do……plz hlp me……..plz give me suggestion in my email ; saahnetra@gmail.com…..

  154. Nevaeh_Skyy

    My phone is not being recognized other than “unspecified device charging” by my computer. What then?

  155. sofia

    I’m using my mac with this software but i can’t seem to restore my tablet is there a converted way to do this

  156. Shayan Sachin Basu

    My phone is not rooted, the live suit pack says my phone needs to be rooted. What Should i do? Lg p-690

  157. James

    Thanks a million. Just earned some cash from your solution.

  158. Baloch Khan

    How to hard reset the devise

  159. hi there i`m having hard time unlocking this tablet so i would like someone to tel how to unlock it

  160. hoben

    yes its really nice i did this and had ma important files on.my phone oooooo.But its a lng process i will egde everyone to use the hard reset thus very convinient and also works in even remote areas when there is no PC avaliable

  161. alok

    is necessary to download usb driver
    and the above link is no t opening
    my mobile is locked
    and didn’t want to loose my data so give md link to dwnld abv usb drivef sftwr

  162. MANY THANKS !!!! It worked with locked Samsungo s5660 Gio. Good job man.

  163. Thanks a lot! This worked easily! Awesome injection! Thanks

  164. jovin

    Thak you Verry Much Sir === SUCCESSFULLLLLLLLLLLLLLL

  165. Odysseas

    Simple steps 1)Shut down your tablet 2)Press the volume down button 3)Press the power button while you hold the volume down button 4)The android will appear with a red triangle without any menu 5)Press all the buttons randomly (volume down-volume up-power button) many times and fast 6)Then the menu will appear

  166. click over here nexwave

Leave a reply to omar Cancel reply

Blog at WordPress.com.