Android USB debugging is a developer feature that lets your computer communicate with your phone over a USB cable for tasks like installing apps, running ADB commands, and transferring data. When it stops working, it’s usually due to a driver issue, a faulty cable, or a simple setting that got toggled off. This guide walks you through the most common fixes, from checking basic connections to resetting your ADB keys, so you can get back to debugging quickly.
What You’ll Need
- Your Android phone or tablet
- A computer (Windows, macOS, or Linux)
- A USB cable that supports data transfer (not just charging)
- USB debugging enabled on your device (Settings > Developer Options)
- ADB (Android Debug Bridge) installed on your computer (usually via Android Studio or standalone platform-tools)
Step-by-Step
- Check the USB cable and port. Many USB cables are charge-only and lack the data wires. Try a different cable, preferably the one that came with your phone. Also, plug the cable directly into a USB port on your computer (avoid hubs) and try a different port if possible.
- Enable Developer Options and USB debugging. Go to Settings > About phone and tap Build number seven times until you see “You are now a developer!” Then go to Settings > Developer options and toggle on USB debugging. If it’s already on, toggle it off and on again.
- Set USB mode to “File Transfer” (MTP). When you plug in your phone, pull down the notification shade and tap the USB notification. Choose File Transfer or MTP (not “Charging only” or “PTP”). This often triggers the debugging prompt.
- Accept the RSA key prompt. On your phone, when you connect via USB, a dialog may appear asking “Allow USB debugging?” with a fingerprint. Check “Always allow from this computer” and tap Allow. If you missed it, unplug and replug the cable.
- Restart ADB server on your computer. Open a command prompt or terminal and run:
adb kill-server adb start-server
Then run
adb devicesto see if your device shows up. - Update or reinstall USB drivers (Windows). Go to Device Manager, find your phone under “Portable Devices” or “Other devices,” right-click and choose Update driver. If that fails, download the OEM USB driver from your phone manufacturer’s website (e.g., Samsung, Google, OnePlus) and install it manually.
- Revoke USB debugging authorizations. On your phone, go to Settings > Developer options and tap Revoke USB debugging authorizations. Confirm, then reconnect your phone and accept the new prompt.
- Try a different USB port or computer. If nothing works, test with another port or another computer to isolate whether the issue is with your phone or your setup.
Common Mistakes
- Using a charge-only cable – this is the #1 cause of USB debugging not working.
- Forgetting to enable Developer Options first – you can’t toggle USB debugging without it.
- Not accepting the RSA prompt – if you don’t tap “Allow,” the computer can’t connect.
- Plugging into a USB hub or front-panel port that doesn’t supply enough power or data.
- Having outdated ADB tools – old versions may not recognize newer Android versions.
Tips
- Keep your phone’s screen unlocked while connecting – some devices require it to show the prompt.
- Use the original cable that came with your phone – it’s guaranteed to support data.
- On Windows, always install the manufacturer’s USB driver, not just the generic one.
- If you’re using a virtual machine, enable USB passthrough in the VM settings.
- Check if your phone’s battery saver mode is interfering – some OEMs disable USB debugging to save power.
Troubleshooting
If you’ve followed all the steps and still see “unauthorized” or no device, try these advanced checks:
- Check ADB version: Run
adb version– if it’s older than 1.0.32, update to the latest platform-tools. - Look for a yellow exclamation mark in Device Manager – that indicates a driver problem. Right-click and uninstall, then reinstall the driver.
- On Linux/macOS, check permissions: On Linux, you may need to add a udev rule for your device. On macOS, check System Settings > Privacy & Security > Developer Tools to ensure your terminal has permission.
- Try a different ADB port: Some devices use a different port. You can force ADB to use a specific port with
adb tcpip 5555(only if you’re already connected). - Reset your phone’s network settings – this is a last resort, but it can clear any software glitches affecting USB.
- Check for a hardware issue: If the phone charges but never shows up on any computer, the USB port on the phone may be damaged. Try wireless debugging (if available) as a workaround.
Frequently Asked Questions
Why does my phone show “USB debugging connected” but ADB says “unauthorized”?
This means you haven’t accepted the RSA key prompt on your phone. Unplug, replug, and tap “Allow” when the dialog appears. If it doesn’t appear, revoke USB debugging authorizations and try again.
Can I use USB debugging over Wi-Fi?
Yes, Android 11 and later support wireless debugging. Enable it in Developer Options, then pair your device using the code shown. For older versions, you can use adb tcpip 5555 after a USB connection.
Why does USB debugging work on one computer but not another?
Usually it’s a driver issue. The computer that works has the correct driver installed; the other doesn’t. Install the manufacturer’s USB driver on the failing computer.
Does USB debugging drain battery?
It can slightly, because the phone stays in a more active state while connected. But it’s negligible for short debugging sessions. You can turn it off when not in use.
What if my phone doesn’t show Developer Options?
Go to Settings > About phone and tap “Build number” seven times. If it doesn’t appear, your phone may have a custom skin that hides it – search online for your specific model.
Is it safe to keep USB debugging enabled?
It’s generally safe if you only plug into trusted computers. However, it can be a security risk if an attacker gains physical access to your phone. It’s best to disable it when you’re not developing.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- PowerPoint vs Keynote: Key Differences
- How to Sign Out of OneDrive in Windows 10
- Reduce Memory Use in Windows When RAM Is Low
- How to Set Up and Use Credential Manager on Windows 10
- Fix Microsoft Edge Battery Drain on Windows 11
- Type to Siri Instead of Talking on iPhone (iOS 11)