Unlock Pattern Without Losing Data – Android

Published by Sundareswaran on

How to Unlock Android Pattern Without Losing Data

Requirement: USB Debugging must be enabled in lock the device or else no other way to unlock your device without data loss.If your ready to wipe the data then google “How to reset your device model” in google.

Many of us would struck by enabling patterns in our mobile and forget them.We also concern about our data.

Unlock pattern without losing data

In most of the cases there are multiple options to disable the pattern through recovery but we cannot get all our data.So in this post lets see how to unlock the android device with all its data securely.
Step 1: Downloading Android SDK
Android SDK is the tool for this purpose download Android SDK from the following link.
Android Studio Website:
Scroll down to the website to the bottom.
After the process of installation, just open that and checkc for Android SDK Platform-tools and proceed with installation as given below.
unlock pattern without losing data

The most requried thing in android is usb debugging need to enabled before your android device got locked.

Please note that you should have the appropirate device drivers for your android device or else this method will not work.

Step 2: Connecting your device to your PC

Connect the device you need to unlock to your PC.

unlock pattern without losing data
 Step 3: Opening Android SDK in Command Prompt

Open the folder as shown below,

Android SDK Tools Users > App Data > Local > Android > Android-SDK > Platform-Tools

Shift + Right Click on the folder name Platform-Tools and open command windows here

unlock pattern without losing data

Step 4: Using Android SDK Commands
adb devices
unlock pattern without losing data

Now proceed with following commands.

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

If the above command doesn’t worked then proceed with the below commands.

adb shell rm /data/system/gesture.key

Step 5: Task Completed

Now everything is done.Pattern is now removed. enjoy 🙂

Great now, now if you rebooted the device you will see no pattern for your device.

This method can also remove pins number, passwords too.

If you have qurieies please post it below, Let’s us dicuss.


Leave a Reply

Your email address will not be published. Required fields are marked *