USB debugging is a developer mode setting on Android phones that lets your device communicate with a computer via a USB connection for advanced operations like installing apps, reading logs, or running commands. This guide shows you how to turn it on step by step, what you need to prepare, and how to fix common issues.
What You’ll Need
- An Android phone or tablet (any version from Android 4.0 onward)
- A USB cable (usually the one that came with your device)
- A computer (Windows, Mac, or Linux) if you plan to connect to it
- Optional: Android Studio or ADB tools installed on your computer
Step-by-Step
- Open Settings. On your Android device, tap the Settings app (the gear icon).
- Find the About Phone section. Scroll down and tap “About phone” (or “About tablet” on tablets). On some devices, it’s under “System” first.
- Tap Build Number 7 times. Look for “Build number” (or “Build”) in the list. Tap it rapidly 7 times. You’ll see a message like “You are now a developer!” after a few taps. If you have a lock screen PIN/pattern, you may need to enter it here.
- Go back to the main Settings screen. Now scroll down to find “Developer options” (often near the bottom, sometimes under “System”).
- Open Developer options. Tap it to enter the developer menu.
- Enable the Developer options toggle. If there’s a switch at the top, turn it on (it may already be on).
- Find USB debugging. Scroll down in the Developer options list until you see “USB debugging” (under the “Debugging” section).
- Turn on USB debugging. Tap the toggle next to it. A prompt may appear asking you to allow USB debugging — tap “OK” or “Allow” to confirm.
- Connect to a computer (optional). Plug your phone into a computer with a USB cable. On your phone, you’ll see a dialog asking “Allow USB debugging?” with a checkbox for “Always allow from this computer.” Check the box and tap “Allow” to authorize the computer.
- Verify it’s working. On your computer, open a command prompt or terminal and type
adb devices(if ADB is installed). You should see your device listed as “device” (not “unauthorized”).
Common Mistakes
- Tapping the wrong item: Some people tap “Android version” or “Kernel version” instead of “Build number.” Make sure you tap the exact “Build number” line.
- Not enabling the Developer options master switch: On some phones, even after tapping build number, you must flip the main toggle at the top of Developer options before the sub-options appear.
- Leaving USB debugging on: It’s a security risk if left enabled all the time. Turn it off after you’re done.
- Using a charge-only cable: Some cables only carry power, not data. Use the original cable or one that supports data transfer.
- Not authorizing the computer: If you skip the “Allow USB debugging” dialog, the computer won’t have access. Unplug and replug to bring it back.
Tips
- Use the “Always allow” checkbox: If you’re going to use the same computer repeatedly, check “Always allow from this computer” to avoid repeated prompts.
- Keep the screen unlocked: Some devices require the screen to be unlocked for the authorization dialog to appear.
- Try a different USB port: If the computer doesn’t detect your phone, try a different USB port (preferably a USB 2.0 or 3.0 port directly on the motherboard).
- Install the right drivers: On Windows, you may need to install the manufacturer’s USB drivers (e.g., Samsung, Google, OnePlus) for ADB to work.
- Turn off Wi-Fi debugging if you don’t need it: It’s a separate feature that uses a different connection method.
Troubleshooting
I don’t see Developer options after tapping build number. Make sure you tapped “Build number” exactly, not “Build” or “Software version.” Tap it 7 times slowly (about 1 tap per second). If it still doesn’t appear, check if there’s a “Developer options” entry directly in Settings (some custom skins hide it under “System” or “Additional settings”).
USB debugging is grayed out. This usually means the Developer options master switch is off. Go back to the top of Developer options and turn on the main toggle. If it’s still grayed out, try restarting your phone.
Computer says “unauthorized” in adb devices. This means you haven’t accepted the RSA key prompt on your phone. Unplug the USB cable, plug it back in, and watch for the “Allow USB debugging?” dialog. Tap “Allow” (and check “Always allow”). If the dialog doesn’t appear, go to Developer options > “Revoke USB debugging authorizations” and try again.
Device not detected at all. First, make sure the cable supports data (try a different cable). Then check that your phone’s USB mode is set to “File Transfer” or “MTP” (not “Charging only”). On Android, pull down the notification shade when connected and tap the USB notification to change the mode. Also try a different USB port on your computer.
ADB commands not recognized. Ensure ADB is installed and the platform-tools path is added to your system’s PATH. On Windows, you can open the folder containing adb.exe and type cmd in the address bar to open a command prompt there, then run adb devices.
Still stuck? Restart both your phone and computer. If you’re using a custom ROM or a very old Android version, the steps may differ slightly — search for your exact device model for specific instructions.
Frequently Asked Questions
Is USB debugging safe?
It’s safe when used with trusted computers, but it opens a communication channel that could be exploited if you connect to an untrusted machine. Always turn it off when you’re not using it.
Do I need a computer to enable USB debugging?
No, you can enable it directly on your phone. A computer is only needed if you want to use ADB or other tools that require a connection.
Will enabling USB debugging void my warranty?
No, it’s a standard Android feature. It doesn’t void the warranty by itself. However, using it to unlock the bootloader or install custom firmware might.
How do I disable USB debugging?
Go to Settings > Developer options and toggle off “USB debugging.” You can also turn off the entire Developer options master switch, or reset all developer options by tapping “Reset to default values.”
Why does my phone show “USB debugging connected” in the notification bar?
That’s normal. It appears when a computer has requested and been granted USB debugging access. Tap the notification to see which computer is connected.
Can I enable USB debugging on a broken screen?
If the touchscreen is unresponsive, it’s difficult but possible using a USB OTG mouse or ADB over Wi-Fi (if already enabled). Otherwise, you may need to use recovery mode or manufacturer tools.
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
- Android Chrome Dark Theme: How to Get It
- WhatsApp Verification Code Not Received? Fixes That Work
- Fix Windows 10 Shutdown Too Slow: Step-by-Step
- Moon Phase in iPhone Weather App: How to See It
- NFT Listings & Sales Tracker: A Simple Guide
- How to Calculate with Rounded Values in Excel