Enable USB Debugging on Android: 6 Easy Steps
If you have ever needed to run ADB commands, transfer files at full speed, mirror your screen to a PC, or root your device, you have probably been told to enable usb debugging on android first. USB debugging is the bridge between your Android phone and your computer — it lets developer tools like Android Debug Bridge (ADB) communicate with your device over a USB cable. The good news: learning to enable usb debugging on android takes less than two minutes, works the same way on Samsung, Pixel, Motorola, OnePlus, and Xiaomi phones, and is completely safe when you follow the steps below.
This guide covers the exact 6 steps, explains what USB debugging actually does, shows you how to verify it is working, and — just as important — how to turn it off again when you are done. Let’s get started.
What Is USB Debugging and Why Would You Need It?

USB debugging is a mode in Android’s Developer Options that allows a computer to send advanced commands to your phone over USB. When you enable usb debugging on android, you unlock capabilities like:
- ADB commands: install apps, pull files, take screenshots, and run diagnostics from your PC.
- Faster file transfers: some tools move large files more reliably with debugging enabled.
- Screen mirroring: tools like scrcpy mirror and control your phone from your computer.
- Rooting and flashing: custom recoveries and firmware tools require USB debugging.
- App development: developers use it to test apps directly on real devices.
In short, it is the “pro mode” switch for the USB connection between your phone and computer. For the full picture of what Developer Options can do beyond debugging, check our guide to Android Developer Options and safe tweaks.
Before You Start: A Quick Safety Note
USB debugging is safe, but it does grant deep access to your phone — which is exactly why Android hides it behind Developer Options. Follow two rules:
- Only authorize computers you trust. The first time you connect, your phone asks you to approve the computer’s RSA fingerprint. Never approve an unknown computer.
- Turn it off when you are done. Leaving debugging on permanently is unnecessary and slightly increases risk if your phone is lost or stolen.
- Be careful with ADB commands you find online. Copy-pasting random ADB commands from forums can change system settings or wipe data. Only run commands you understand or that come from a trusted guide.
It is also worth knowing that USB debugging itself does not slow down your phone or drain extra battery — it is simply a communication channel that sits idle until a computer connects. The setting is used by millions of developers and enthusiasts every day without issues.
With that out of the way, here are the 6 steps to enable usb debugging on android.
How to Enable USB Debugging on Android in 6 Steps

Here is everything you need before starting: your Android phone, a USB cable that supports data transfer (not a charge-only cable), and a computer with the Android platform tools installed if you plan to run ADB commands. No root access is required — these steps work on completely stock phones.
Step 1: Open the Settings App
Unlock your phone and open the Settings app. On most phones it is the gear icon on your home screen or in the app drawer. The steps below work on Android 11 through Android 16, including Samsung’s One UI, Pixel’s stock Android, and Xiaomi’s HyperOS — menu names may differ slightly, but the path is the same.
Step 2: Find “About Phone” and Tap the Build Number 7 Times

This is the famous “secret” step that unlocks Developer Options:
- In Settings, scroll down and tap About phone (on Samsung: Settings → About phone → Software information).
- Find Build number.
- Tap Build number seven times in a row. After a few taps you will see a countdown (“You are now 3 steps away from being a developer”).
- Enter your PIN, pattern, or password when prompted.
- You will see a toast message: “You are now a developer!”
Congratulations — Developer Options is now unlocked. This step is identical whether you want to enable usb debugging on android on a Pixel, a Galaxy, or any other device.
Step 3: Open Developer Options
Now go back to the main Settings screen:
- Stock Android (Pixel, Motorola, OnePlus): Settings → System → Developer options.
- Samsung (One UI): Settings → Developer options (appears at the very bottom of the main Settings list).
- Xiaomi (HyperOS/MIUI): Settings → Additional settings → Developer options.
Tap Developer options to open the full list of advanced settings. Do not change anything else in here unless you know what it does — some options can genuinely break things.
Step 4: Turn On USB Debugging
Scroll through the Developer Options list until you find the Debugging section (it is near the top on most phones):
- Find the USB debugging toggle.
- Tap it to turn it on.
- A warning dialog appears explaining that USB debugging is intended for development purposes. Tap OK (or Allow).
That is the core step — you have now learned how to enable usb debugging on android. But two more steps make sure it actually works when you plug in.
Step 5: Connect to Your Computer and Authorize It
- Connect your phone to your computer with a good-quality USB cable (cheap cables sometimes only carry power, not data — if nothing happens, try a different cable).
- On your phone, a dialog appears: “Allow USB debugging?” showing the computer’s RSA key fingerprint.
- Check “Always allow from this computer” if it is your own PC, then tap Allow.
- On your phone’s notification shade, set the USB mode to File transfer (or PTP) if prompted — some tools need this in addition to debugging.
If the authorization dialog does not appear, unplug the cable, revoke old authorizations (Developer options → Revoke USB debugging authorizations), and reconnect. This clears stale keys that can block the prompt.
Step 6: Verify USB Debugging Is Working
To confirm everything is set up correctly:
- On your computer, open a terminal or command prompt.
- Run
adb devices(you need Google’s official Android platform tools installed on your computer). - Your phone’s serial number should appear with the word device next to it.
If you see unauthorized, the phone has not approved your computer yet — check the phone screen for the authorization dialog. If the list is empty, try a different cable or USB port. Seeing your device listed means you have successfully learned how to enable usb debugging on android — ADB commands will now work.
USB Debugging vs. Other Developer Options
New users sometimes confuse USB debugging with neighboring settings, so here is a quick clarification. OEM unlocking is a separate toggle required before you can unlock the bootloader — you do not need it just to run ADB commands. USB configuration only sets the default connection mode (file transfer, charging, etc.) and does not grant command access. And wireless debugging is simply the Wi-Fi-based alternative to the USB cable method covered here. For day-to-day ADB work, the single toggle you need is USB debugging itself; the rest are optional extras.
USB Debugging Settings Worth Knowing
Once you enable usb debugging on android, a few related settings in Developer Options are worth understanding:
| Setting | What it does | Recommendation |
|---|---|---|
| USB debugging | Allows ADB over USB | On while you need it, off otherwise |
| Wireless debugging | ADB over Wi-Fi instead of USB | Handy for cable-free development (Android 11+) |
| Revoke USB debugging authorizations | Clears all approved computers | Use before selling your phone or after using a public PC |
| Select USB configuration | Default USB mode on connect | Leave on File transfer for most uses |
| Stay awake | Screen stays on while charging | Useful during long ADB sessions |
Common Problems and Fixes
“Developer options” does not appear after tapping build number. Make sure you tapped 7 times and entered your lock-screen PIN. On some Samsung phones the option appears under Settings → Developer options only after a Settings app restart — close and reopen Settings.
The “Allow USB debugging?” prompt never shows. This is almost always the cable. Many bundled charging cables are power-only. Try the cable that came with your phone or a known data cable. Also try a different USB port on your computer — front-panel ports can be flaky.
ADB shows “unauthorized.” Revoke authorizations on the phone, unplug, reconnect, and watch the phone screen for the prompt. Do not check “always allow” on computers you do not own.
USB debugging keeps turning off. Some phones (notably Xiaomi and Huawei) disable Developer Options after a system update. Just repeat Step 2 to re-enable it.
If you are setting up debugging as part of moving to a new phone, our guide on how to transfer data from iPhone to Android covers the migration side, and before you run any low-level ADB operations, it is smart to have a fresh backup — see how to back up your Android phone.
How to Turn Off USB Debugging
When you are done, disabling it is just as easy:
- Go to Settings → System → Developer options (or wherever it lives on your phone).
- Toggle USB debugging off.
- Optional: toggle off the master Developer options switch at the top to hide the menu entirely.
For more detail on what each developer setting does and which ones are safe to experiment with, Google’s official developer options documentation and Android help center are the authoritative references.
FAQ
Is it safe to enable USB debugging on Android?
Yes, as long as you only authorize computers you trust and turn it off when you are finished. The main risk is approving an unknown computer, which could then run ADB commands on your phone. Never tap “Allow” on a public or borrowed computer.
Does USB debugging void my warranty?
No. Enabling USB debugging is an official Android feature and does not void your warranty. (Rooting or unlocking the bootloader is a separate matter and may affect warranty depending on your manufacturer.)
Why is USB debugging not showing the authorization popup?
The most common cause is a charge-only USB cable with no data wires. Switch to a known-good data cable, try a different USB port, and use “Revoke USB debugging authorizations” in Developer Options to clear stale keys, then reconnect.
Can I use USB debugging over Wi-Fi instead of a cable?
Yes — Android 11 and later support Wireless debugging in Developer Options. It pairs your phone and computer over Wi-Fi so you can run ADB commands without any cable at all.
Will enabling USB debugging erase my data?
No. Turning on USB debugging changes no data on your phone. It only permits a connected computer to communicate with the device via ADB after you explicitly authorize it.
5 ADB Commands Worth Trying First
With USB debugging authorized and adb devices showing your phone, these five commands demonstrate what the bridge can do. Run them from the platform-tools folder on your computer:
adb devices— lists connected devices. The sanity check you already ran; “device” means ready, “unauthorized” means check the phone’s approval dialog.adb shell dumpsys battery— prints detailed battery state: level, temperature, voltage, and health. Handy when diagnosing the battery issues covered in our calibration guides.adb install app.apk— installs an APK file directly from your computer, skipping the on-phone file manager. Developers use this dozens of times a day.adb shell screencap /sdcard/screen.pngthenadb pull /sdcard/screen.png— captures a screenshot on the device and copies it to your computer. Useful for documenting bugs or grabbing screens from apps that block normal screenshots.adb reboot recovery— reboots straight into recovery mode without the button dance. Similarly,adb reboot bootloaderjumps to fastboot for flashing work.
Two safety notes that bear repeating: never run an ADB command you do not understand (a wrong adb shell command can modify system settings), and when the session is over, revoke the authorization and switch USB debugging off. For screen mirroring and remote control rather than commands, install scrcpy — it uses the same ADB bridge you just set up and turns your computer into a full remote control for the phone.
Conclusion
Learning to enable usb debugging on android is one of those small skills that unlocks a whole new level of control over your phone — from running ADB commands and mirroring your screen to prepping a device for development work. The process is the same on every Android phone: tap the build number seven times, open Developer Options, flip the USB debugging switch, authorize your computer, and verify with adb devices. Just remember the two safety rules — only trust your own computers, and switch debugging off when you are done. Do that, and USB debugging is a powerful, perfectly safe tool to have in your Android toolkit — one that turns your phone from a sealed box into a device you can truly control.




What do you think?
Share your experience or ask a question. A useful conversation starts with you.
Join the discussion