Enabling USB debugging is the single most useful trick for getting your Android phone to talk properly to a computer. Whether you want to run ADB commands, sideload an APK, pull a backup off a half-broken handset, or flash a recovery image, you first need to enable USB debugging on Android. It lives inside the hidden Developer options menu, which Google deliberately keeps tucked away so casual users don’t toggle settings they don’t understand. The good news is that turning it on takes less than a minute once you know the path, and it works the same way on Samsung, Google Pixel, Xiaomi, Motorola, OnePlus and almost every other modern Android phone.
What USB debugging actually does
USB debugging is a developer feature that lets your phone accept commands from a connected computer over the Android Debug Bridge (ADB). With it switched on, your PC can install apps directly, read logcat output, copy files, reboot the device into bootloader or recovery, and a lot more. It is required for almost every advanced repair or customization task. The trade-off is security: a computer with an authorized debugging connection has deep access to your device, so you should only enable it on machines you trust and turn it off when you no longer need it.
How to enable USB debugging on Android, step by step
The process has two parts. First you unlock Developer options, then you flip the USB debugging switch.
- Open Settings and scroll down to About phone (on Samsung devices it is Settings > About phone > Software information).
- Find Build number and tap it seven times in quick succession. After a few taps you’ll see a small countdown like “You are now 3 steps away from being a developer.”
- Enter your PIN, pattern or password if prompted. You’ll then see “You are now a developer!”
- Go back to the main Settings screen. Developer options now appears, usually under System (Pixel/stock Android) or near the bottom of the main list (Samsung One UI, MIUI/HyperOS).
- Open Developer options and scroll to the Debugging section. Toggle USB debugging on and tap OK on the warning dialog.
The first time you plug the phone into a new computer and run an ADB command, your screen shows an Allow USB debugging? prompt with the computer’s RSA key fingerprint. Tick Always allow from this computer if it’s your own machine, then tap Allow. Without accepting that prompt, the connection stays unauthorized and ADB will report the device as “unauthorized.”
Practical tips and cautions
A few things make this far smoother in practice:
- Install the right drivers first. On Windows especially, the phone often won’t be detected until the correct OEM driver is present. Grab them from our guide to download Android USB drivers before you start troubleshooting cables.
- Use a data cable, not a charge-only one. Many cheap cables carry power but not data, which makes the phone invisible to ADB.
- Set the USB mode to File Transfer (MTP). Pull down the notification shade after connecting and switch from “Charging” to “File transfer / Android Auto” so the data channel is active.
- Turn it off when finished. Leaving debugging enabled on a phone you lend out or sell is a real risk.
USB debugging is also the gateway to bigger maintenance jobs. It lets you create a full ADB backup before you experiment, which pairs naturally with our walkthrough on how to back up and restore Android devices. From an authorized ADB session you can reboot straight into recovery mode to fix your Android phone, or push commands before a hard reset on any Android mobile.
Important caution about factory resets and FRP. If you go on to factory reset the device, remember that modern Android enforces Factory Reset Protection (FRP). After a reset the phone will demand the Google account that was previously signed in before it lets you set it up again. Enabling USB debugging does not bypass this lock, and you should never rely on it to get around someone else’s account. If you are locked out of your own device, the legitimate route is to verify ownership through your Google credentials, for example via reset with Find My Device from Google.
Frequently asked questions
I can’t find Developer options after tapping Build number. What went wrong?
The most common reason is that the seven taps weren’t fast enough or you missed the exact Build number entry. On Samsung phones the Build number sits under About phone > Software information, not on the first About screen. Re-locate the correct field, tap it seven times rapidly, enter your screen lock, and Developer options should appear under System or at the bottom of Settings.
Is it safe to enable USB debugging on Android?
Yes, as long as you only authorize computers you control. The risk is not the toggle itself but granting an untrusted machine an authorized connection, which gives it broad access to your data and device. Decline the “Allow USB debugging” prompt on any computer you don’t recognize, untick “Always allow,” and switch the feature off once your task is done.
Does enabling USB debugging erase my data or void my warranty?
No. Simply turning on USB debugging neither wipes your files nor unlocks the bootloader, and on most brands it does not void the warranty by itself. Data loss only happens if you go on to run a flashing or reset command. Unlocking the bootloader is a separate, more drastic step that does erase the phone and can affect warranty on some devices.

