![]() 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |