How to Enable USB Debugging on Android with Broken Screen
In this article
Yes, you can enable USB debugging on an Android phone with a broken or unresponsive touchscreen. The most reliable method involves using an OTG (On-The-Go) adapter to connect a physical mouse or keyboard, allowing you to navigate the interface and input your PIN or pattern to unlock the device and access developer settings.
What You'll Need
- An Android device with a broken screen (touch functionality may be dead, but display might still work).
- A USB OTG (On-The-Go) adapter compatible with your phone's charging port (USB-C or Micro-USB).
- A standard USB-A computer mouse or keyboard.
- A Windows PC or Mac with ADB (Android Debug Bridge) drivers installed (optional, if enabling via mouse fails).
- Your correct lock screen PIN, password, or pattern.
Step-by-Step
- Connect the OTG Adapter: Plug the USB OTG adapter into your Android device's charging port. If your phone supports power delivery through OTG, it should remain charged during this process.
- Attach the Mouse: Insert the USB plug of a standard computer mouse into the other end of the OTG adapter. Wait a few seconds for the system to recognize the input device. You should see a cursor appear on your phone's screen if the display is functional.
- Unlock the Device: Use the mouse to click on the screen to wake it up. Enter your PIN, password, or draw your pattern using the mouse clicks. Note: If your lock screen requires swiping or complex gestures that are difficult with a mouse, try a simple numeric PIN first.
- Enable Developer Options: Once unlocked, open the Settings app. Navigate to About Phone. Scroll down to find Build Number. Click on Build Number seven times rapidly. A message will appear confirming "You are now a developer!". Note: Menu labels may vary slightly depending on your Android version and manufacturer skin (e.g., Samsung One UI, Xiaomi MIUI).
- Activate USB Debugging: Go back to the main Settings menu. Look for a new entry called Developer Options (usually under System or Additional Settings). Open it and scroll down to find the USB debugging toggle. Switch it ON.
- Confirm the Prompt: A security warning dialog will pop up asking if you want to allow USB debugging. Use the mouse to click OK or Allow. You may need to enter your lock screen credentials again to confirm.
Common Mistakes
Many users attempt to use touch-based solutions like "Smart View" or wireless casting without first unlocking the phone, which often fails because the initial authentication layer blocks remote control apps. Another frequent error is trying to use a stylus on a completely dead digitizer; if the touch sensor is physically damaged, no amount of software tweaking will make it respond to pressure unless external input is provided. Additionally, users often forget that some manufacturers require the phone to be connected to a PC via USB cable *before* toggling USB debugging in Developer Options for the permission prompt to appear correctly.
Tips
If your screen is cracked but still displays images, keep the brightness low to reduce eye strain while navigating with a mouse. For phones with severe touch failure, consider using a Bluetooth mouse paired via the accessibility menu if you can guess the gesture sequence. Always ensure your OTG adapter supports data transfer, not just charging; cheap adapters sometimes lack the necessary pins for data communication. If you have previously enabled USB debugging on another computer, connecting that specific PC might bypass the authorization prompt entirely.
Troubleshooting
If the mouse cursor does not appear, check that your OTG adapter is firmly seated and try a different mouse. Some older Android versions require an app like "OTG Checker" to be installed beforehand to enable OTG support, though most modern devices do this automatically. If you cannot unlock the phone with the mouse due to a complex pattern, try resetting the lock screen via Google Find My Device if you have previously set it up, though this will erase data. If USB debugging was already enabled before the screen broke, simply connect the phone to a PC via USB cable; the ADB command adb shell input text "your_pin" can then be used to unlock it remotely without needing the mouse method.
Frequently Asked Questions
Can I use a touchscreen stylus?
No, if the digitizer is broken, a stylus will not work. You must use an external USB input device like a mouse.
Will this void my warranty?
Enabling USB debugging is a standard developer feature and does not void your hardware warranty. However, rooting the device later might.
Do I need a computer to do this?
No, you can enable it entirely on the phone using an OTG adapter and a mouse. A computer is only needed if you want to transfer files immediately after.
What if my screen is totally black?
If the display is dead but the phone vibrates, you cannot visually confirm steps. In this case, rely on audio cues or connect to a TV via HDMI (if supported) to mirror the screen.
Does this work on Samsung phones?
Yes, but Samsung menus are labeled differently. Look for Developer Options under Bixby and Voice or About Phone depending on the model.
Is data lost during this process?
No, enabling USB debugging does not erase any personal data, apps, or photos. It only changes system configuration settings.