![]() ![]() You can use the sendevent commands after invoking ‘adb shell’ to simulate the following actions or finger gestures on your phone’s pattern lock screen: Upon extensive research about the possible ways to draw a lock screen pattern through ADB, I have found some working solutions that might do the job if followed carefully. Actually, drawing a pattern with continuous swipe events using commands is not easy at all. While it’s very easy to unlock an Android device which is locked with a PIN using ADB commands, things get complicated doing the same if you have set a pattern instead. I successfully tested this method on my Samsung Galaxy S21 Ultra, LG Wing, and OnePlus 8. That’s it! You have successfully unlocked your Android device through ADB commands.However, if you have to press ‘ OK‘ after entering the PIN, you’ll need to use one more command to simulate the OK button click. The above command will unlock your Android device without having to enter your PIN without touching the screen.Don’t forget to replace ‘XXXX’ with the PIN or passcode you’ve set for your phone’s lock screen. Just type the command given below and press the Enter key to execute it.In case you want to wake up your Android phone’s touch screen while it’s locked using ADB, you can use the following command after invoking ‘ adb shell‘.If you get the dollar sign as output you are all set to unlock your Android phone using ADB commands.Now that ADB has detected your device, you need to use the following command to proceed.If you see any error, try reconnecting your device or using a different USB cable. You’ll see a string of alphanumeric values representing your device as shown in the screenshot attached below.In the Windows PowerShell command window, type the following command and hit the Enter key to make sure that ADB has detected your Android device.Now, connect your Android phone or tablet to your computer using a compatible USB cable.Select the ‘ Open PowerShell window here‘ option to launch the command prompt. Place the mouse cursor at an empty spot inside the folder window, press the Shift key, and right-click on the mouse to open the Windows context menu.Unzip the ‘ platform-tools-windows.zip‘ that you downloaded earlier and open the extracted folder.Having installed ADB and fastboot tools on your PC, you just have to follow the steps given below to unlock an Android device that is locked with PIN protection through ADB Shell commands. Also, make sure you have a compatible USB cable so that your phone and computer can communicate with each other properly. In most cases, ADB commands require USB Debugging to be enabled on the phone to do their job. Since this tutorial involves using ADB Shell commands to unlock an Android phone with a PIN or pattern without touching the screen at all, you must d ownload and set up the latest SDK Platform-tools on your Windows, Linux, or Mac machine. Also, due to the enhanced security on modern smartphones, you cannot bypass the Android lock screen using commands on your computer. Therefore, if you forgot the PIN or pattern on your device, this tutorial is of no use to you. Please note that you won’t be able to remove the pattern or PIN lock on your Android phone using ABD or Fastboot commands. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |