Enable USB Debugging on Android with Black Screen
In this article
If your Android phone has a black screen but is still powered on, you may need to enable USB debugging to recover data, flash firmware, or run ADB commands. Normally, USB debugging is toggled in the Developer Options menu, but with a dead display, you can't navigate there directly. This guide covers several methods to enable USB debugging without seeing the screen, using a computer and ADB, or by leveraging existing settings and external tools.
What You'll Need
- A Windows, macOS, or Linux computer
- A USB cable that supports data transfer (not charge-only)
- ADB and Fastboot tools installed on your computer (download from the official Android developer site)
- Your Android phone's USB drivers installed (for Windows, use the manufacturer's driver or Google USB Driver)
- Optional: A USB OTG adapter and a mouse if your phone supports USB OTG
- Optional: A second Android phone with a working screen (for the Bluetooth method)
Step-by-Step
- Install ADB and Fastboot on your computer. Download the platform-tools zip from the Android developer website, extract it to a folder (e.g., C:\adb), and note the path. On Windows, you may need to add it to your PATH or open a command prompt in that folder.
- Enable Developer Options (if not already enabled). If you had previously enabled Developer Options, USB debugging may already be on. If not, you'll need another method. But try this: connect your phone to the computer via USB and see if the device shows up in Device Manager (Windows) or as a mounted drive. If it does, you might be able to use the 'adb devices' command to check.
- Check if ADB already sees your device. Open a command prompt/terminal in the platform-tools folder and run:
adb devices. If you see a device listed as 'unauthorized', then USB debugging is already enabled, but you need to accept the RSA key on the phone (which you can't see). If it shows 'device', then USB debugging is on and you're done. If it shows nothing, proceed to the next steps. - Use a USB OTG mouse to navigate blind (if your phone supports OTG). Connect a USB OTG adapter to your phone's charging port, then plug in a wired USB mouse. The phone should detect the mouse and show a pointer on the black screen. Even if the display is black, the touchscreen might still work. If you have a vague memory of the Developer Options location, you can try to navigate blindly: swipe down from the top, tap the gear icon (Settings), scroll down to 'About phone', tap it, find 'Build number' and tap it 7 times. Then go back to Settings, find 'Developer options', and toggle USB debugging. This is very tricky, but some users succeed by using a screen mirroring app if the screen is only partially black.
- Use a Bluetooth mouse with a second phone (if your phone has Bluetooth and a working screen). If your phone's screen is completely black but the touchscreen works, you can pair a Bluetooth mouse using another phone. On the second phone, go to Bluetooth settings, put the mouse in pairing mode, and connect. Then, on the broken phone, you might be able to use the second phone to send a Bluetooth pairing request? Actually, this method is more complex: You can use an app like 'Scrcpy' over Wi-Fi, but that requires USB debugging already enabled. So this step is not reliable, but if you have a Bluetooth mouse that was previously paired, you can try to move the cursor blindly.
- Use a custom recovery (if installed) to enable USB debugging via ADB. If you have TWRP or another custom recovery installed, boot into recovery mode (usually by holding Power + Volume Down). Connect the phone to the computer. In recovery, ADB is often available. Run
adb devices- it should show 'recovery' or 'device'. Then you can use ADB commands to enable USB debugging by editing the settings database. Execute:adb shell settings put global adb_enabled 1. This directly sets the ADB enabled flag. Then reboot normally. This works even with a black screen. - Use ADB over Wi-Fi (if you had previously enabled wireless debugging). If you had enabled 'Wireless debugging' in Developer Options, you can connect via ADB over Wi-Fi. You need the IP address and port. If you know the IP, run:
adb connect IP:PORT. If it connects, you can then runadb shell settings put global adb_enabled 1to ensure USB debugging is on, though it already is. - Use the 'adb shell' from a bootloader/fastboot mode. If you can boot into fastboot (Power + Volume Down on most devices), connect to the computer and run
fastboot devices. If it shows your device, you can sometimes usefastboot oem enable_adb(not all devices support this). More commonly, you can flash a patched boot image or a custom recovery that enables ADB by default. This is advanced and may void warranty. - Use a screen replacement or external display (if supported). Some phones support video output via USB-C to HDMI. If your phone has that feature, connect it to a monitor or TV. This will give you a visible screen, allowing you to navigate to Settings and enable USB debugging normally.
- Use a third-party tool that can enable ADB via a physical button combination. Some manufacturer-specific tools (like Samsung's Smart Switch) can trigger ADB in certain modes, but this is not universal. Generally, you can try to boot into 'Download mode' (Samsung) or 'Recovery mode' and use the volume keys to select 'Apply update from ADB' - this requires ADB to be enabled, but it might work if the bootloader allows it.
Common Mistakes
- Not installing the correct USB drivers. Without proper drivers, your computer won't recognize the phone, and ADB commands won't work.
- Using a charge-only cable. Many cables are charge-only, so data transfer fails. Always use a cable that supports data.
- Assuming USB debugging is off when it's actually on. If you see 'unauthorized' in adb devices, it means USB debugging is on, but you need to accept the RSA prompt. To bypass this, you can use the 'adb keygen' method or delete the key on the computer, but that's complex.
- Forgetting to enable Developer Options in the first place. If you never enabled it, USB debugging is off, and you'll need a recovery method.
- Not checking if the screen is truly black vs. just dim. Sometimes the screen is just very dim, and you can still see it in a dark room. Try increasing brightness blindly.
Tips
- Always keep USB debugging enabled after you've enabled it once, to avoid this situation in the future.
- Use a screen mirroring app like Scrcpy before your screen dies, so you can control the phone from your computer.
- Back up your data regularly to cloud services or a computer, so a black screen doesn't mean data loss.
- If you have a Samsung phone, you can use 'Smart Switch' to back up data even with a black screen, but it requires USB debugging to be enabled.
- Write down your phone's IP address and port for wireless debugging, just in case.
Troubleshooting
If the above steps don't work, try these:
- Restart your computer and phone. A simple reboot can fix driver issues.
- Try a different USB port on your computer, preferably a USB 2.0 port on the back.
- Reinstall the USB drivers. Uninstall the device from Device Manager and then reinstall the manufacturer's driver.
- Use a different computer. Sometimes Windows has driver conflicts, and a Mac or Linux machine might work better.
- If you get 'device unauthorized', you can try to delete the ADB keys on your computer: on Windows, delete the 'adbkey' and 'adbkey.pub' files in the user's .android folder, then run 'adb kill-server' and 'adb start-server'. Then reconnect and hope the phone shows the RSA prompt (even if you can't see it, you might be able to tap the 'Allow' button blindly if you know where it is).
- If none of the ADB methods work, consider using a professional data recovery service, but that can be expensive.
Frequently Asked Questions
Can I enable USB debugging without a computer?
Yes, if you have a USB OTG adapter and a mouse, you can navigate the phone's settings blindly. It's tricky but possible if you know the menu layout.
Will enabling USB debugging erase my data?
No, enabling USB debugging does not erase any data. It only allows ADB commands to be run on the device.
My screen is black but the phone vibrates and makes sounds. Is it still on?
Yes, if the phone responds to touch or notifications, it's on. The display might be broken, but the system is running.
Can I use Samsung Smart Switch to enable USB debugging?
Smart Switch can back up data if USB debugging is already enabled, but it cannot enable it. You'll need another method first.
What if my phone is not recognized by ADB at all?
This usually means USB debugging is off, or drivers are missing. Try installing the manufacturer's USB drivers and check if the device appears in Device Manager.
Is there a way to enable USB debugging via recovery mode without custom recovery?
Stock recovery usually doesn't allow ADB commands, but some devices have a 'Apply update from ADB' option that might work if the bootloader is unlocked. It's not guaranteed.