TL;DR:
If you are locked out of your Android phone and want to access a locked Android via USB, you can try using an Android unlock tool or ADB commands. This guide explains how to remove Android screen locks through a USB connection and introduces other methods, such as Google Find My Device, Google Account Recovery, and factory reset, when USB solutions are unavailable.
Setting up a screen lock on your Android phone helps protect your personal data from unauthorized access. However, forgetting your password, PIN, or pattern can leave you locked out of your device and unable to access your Android phone. Many users search for ways to access a locked Android via USB, hoping to regain access through a computer connection when they cannot unlock the device normally.
While a simple USB connection cannot bypass Android's security protection, you can use Android unlock tools or ADB commands under certain conditions to remove the lock screen and access your device again. In this guide, we will explain how to access a locked Android via USB and introduce other methods to unlock your Android phone when USB-based solutions are unavailable.

Connecting a locked Android phone to a computer through USB does not automatically unlock the device. In most cases, you need additional methods to remove the screen lock or access the phone. Below are two common USB-based solutions.
The easiest way to access a locked Android phone through USB is by using a professional Android unlock tool. These tools are designed to remove different types of screen locks, including PINs, passwords, patterns, and fingerprints, without requiring advanced technical skills.
Android Unlock is one such solution that allows users to unlock Android devices by connecting them to a Windows PC via USB. It supports many Android brands and provides a step-by-step unlocking process, making it suitable for users who cannot access their phones due to forgotten passwords.
Key features of Android Unlock:
How can I unlock my locked phone with USB?
01Download and install Android Unlock on your computer, then open the program and select the "Remove Screen Lock" option from the main interface.

02Connect your locked Android phone to the computer with a USB cable. After the program recognizes your device, check the displayed device information and confirm to continue.

03Follow the instructions provided by the program to put your Android device into the required mode, such as Recovery Mode or Download Mode. Then click "Remove Now" to start removing the screen lock.

ADB (Android Debug Bridge) is another way to access a locked Android phone through USB. However, this method only works if USB debugging was enabled on your device before it was locked. You also need to install ADB tools on your computer, and some devices may require additional permissions such as root access.
If your device meets these requirements, you can try using ADB commands to remove the lock screen. This method is more suitable for advanced users who are familiar with command-line operations.
How do I unlock my Android from my computer?
Step 1. Connect your locked Android phone to the computer using a USB cable.
Step 2. Press "Win + R" on your computer, type "CMD", and open the Command Prompt window.
Step 3. Enter the following ADB command and press "Enter" to execute it: adb shell rm /data/system/gesture.key.

Step 4. Restart your Android phone and check whether the lock screen has been removed. If successful, you can access your device and set a new passcode.
If you cannot access your Android phone through USB, you can also try official Android recovery methods. These options may work depending on your device model, Android version, and account settings.
Google Find My Device is an official service that helps users locate, secure, or erase Android devices remotely. If your phone is connected to a Google account and has internet access, you may use it to manage your locked device.
However, Find My Device does not directly remove the existing screen password on most modern Android phones. The available option is usually to erase the device, which removes the lock screen but also deletes stored data.
Steps to use Google Find My Device to unlock your Android device:
Step 1. Open Google Find My Device on another device.
Step 2. Sign in with the Google account linked to your locked Android phone.
Step 3. Select your device from the list.
Step 4. Choose the "ERASE" option to reset the phone.

Step 5. Set up your Android phone again after the reset is complete.
Some older Android devices provide a "Forgot pattern" or similar option after multiple failed unlock attempts. In these cases, you may be able to verify your identity using the Google account connected to the phone. Here is how it works:
Step 1. Enter an incorrect password or pattern several times.
Step 2. Check whether the "Forgot pattern" or account recovery option appears.

Step 3. Sign in with your Google account credentials.
Step 4. Follow the instructions to regain access.
A factory reset is a final option when other unlocking methods do not work. Please make sure to back up your Android phone before performing a factory reset, as this process will erase all data stored on the device, including photos, contacts, apps, and personal files.
After resetting your Android phone, the screen lock will be removed, and you can set up the device again. However, you may need to verify the previously synced Google account due to Factory Reset Protection (FRP).
Below are the steps to factory reset a locked Android phone:
Step 1. Turn off your locked Android phone.
Step 2. Press the device-specific button combination to enter "Recovery Mode".
Step 3. Use the volume buttons to navigate to "Wipe data/factory reset", then press the "power" button to confirm.

Step 4. Select "Yes" to start the reset process and restart your device after completion.
Accessing a locked Android via USB is possible, but a normal USB connection alone cannot bypass Android's security protection. For most users, using an Android unlock tool like Android Unlock provides a simpler way to remove screen locks and regain access without complicated technical steps.
ADB can be an alternative for advanced users, but it only works when USB debugging was enabled before the device became locked. If USB-based methods are unavailable, Google recovery options or a factory reset can serve as backup solutions, although some methods may result in data loss. Choosing the right method depends on your device condition and whether preserving your data is important.
Related Articles:
Unlock Android Phone from PC: 3 Proven Methods that Work
[Solved] How to Recover Data from Locked Android Phone with Broken Screen
Forgot Pattern Lock? Here's How to Unlock Pattern Lock on Android
What to Do If Forgot Android PIN? [Solved with 6 Effective Ways]