Android is indeed a great mobile operating system that’s right now used by millions of users. However, if you have been using Android smartphones for a while, you might know that it’s not as secure as iOS. Every other day, we read about new hacking attempts, security threats, etc., that were targeted towards Android.

Android doesn’t provide users many options to secure smartphones from various threats. Still, you can use security apps and password/Pin/Pattern lock to add an extra layer of security. Pattern lock was the most used one out of all such security features.

Pattern lock is super easy to set up on Android, but it can create lots of trouble if you have forgotten what you have set. So, in this article, we will share another best Android trick that would help you unlock Android patterns without losing any data.

Steps to Unlock Android Pattern Without Losing Any Data

To unlock the Android pattern without losing any data, we need to use Android SDK Tools. So, let’s check out the step-by-step guide on unlocking pattern lock on Android without losing any data.

Step 1. Download and install Android SDK Tools to run ADB commands. Now select the platform according to your download and install it.


Step 2. After installing, open it, uncheck the other packages, check Android SDK Platform tools, and then click on install packages according to the image below.


So the other requirement is USB Debugging should be enabled before your android device is locked.

Note:  The process will not be helpful if you don’t have specific and compatible drivers for your phone. So it would be best if you were very careful While installing your device compatible drivers.

Step 3. Connect your locked android phone with your system via USB.


Step 4. Open folder where you installed Android SDK Tools Users > App Data > Local > Android > Android-SDK > Platform-Tools and then click on blank space hold shift and click right mouse button and select open command window here.


Step 5. It will open your command window now; you have to put some commands in the command window:-

To check whether your device is properly connected or not, put command:-

adb devices


Now put these commands:-

adb shell
cd /data/data/
sqlite3 settings.db
update system set value=0 where name=’lock_pattern_autolock’;
update system set value=0 where name=’lockscreen.lockedoutpermanently’;

If the above commands don’t work, put:-

adb shell rm /data/system/gesture.key

Step 6. Once you are done, you have to reboot your android phone. Now it’s all done.

Note: USB Debugging should be enabled before locked, and it is a must. But If it is not enabled, you cannot proceed with further steps.

So, the above is all about how to unlock Android Pattern without losing any data. I hope this article helped you share it with your friends also. If you have any doubts about this, let us know in the comment box below.


  1. dear Tech Viral TEAM plz tell me how to remove numer of a person which i will save in anti theft apps and apps was also
    uninstalled. plz tell me dear when i was changed my sim card slut it will be locked and message will be sent.

  2. This wont work on most of the phones coz they wont be having root(super user) access, so no files can be deleted, updated or browsed , but the solution is pretty simple
    what needs to be done is very simple……you need to do just two extra steps to achieve whats referred
    Step 1: adb shell
    Step 2: su
    Step 3: rm /data/system/gesture.key


Please enter your comment!
Please enter your name here