How to Enable USB Debugging on Any Android Phone (2026)
To enable USB debugging on an Android phone, first unlock the hidden Developer options menu by tapping Build number seven times, then switch on USB debugging inside Developer options. The steps are the same on Pixel, Samsung, Xiaomi and other phones; only the menu names change. Below are the exact paths for each brand, how to approve your computer, and fixes for a missing or greyed-out switch.
What USB Debugging Does
USB debugging lets a computer send ADB (Android Debug Bridge) commands to your phone over a cable. With it you can install apps, copy files, save logs or restart the phone into recovery or the bootloader. Android Studio and many repair tools need it.
Since Android 4.2.2, the phone also asks you to approve each new computer. A computer cannot run ADB commands unless you unlock the phone and accept that prompt on the screen.
You do not need USB debugging just to copy photos or files. For that, tap the Charging this device via USB notification and choose File Transfer under “Use USB for”.
What You Need
- Your phone’s PIN, pattern or password. Some phones ask for it when you unlock Developer options.
- A USB cable that can carry data. Not all cables can.
- A computer with Google’s SDK Platform-Tools, which include ADB.
- On Windows, a USB driver for your phone. See our Android USB driver for Windows 11 guide.
Step 1: Turn On Developer Options
On Android 4.2 and later, Developer options is hidden until you unlock it:
- Open Settings and tap About phone.
- Find Build number. On some phones it is inside Software information or Android version. Use the table below for your brand.
- Tap it seven times quickly. Enter your PIN if the phone asks.
- Wait for the message You are now a developer!
| Phone | Tap seven times | Developer options is then in |
|---|---|---|
| Google Pixel | Settings > About phone > Build number | Settings > System > Developer options |
| Samsung Galaxy | Settings > About phone > Software information > Build number | The very bottom of the main Settings list |
| Xiaomi, Redmi, POCO (HyperOS) | Settings > About phone > OS version | Settings > Additional settings > Developer options |
| OnePlus 5T and later | Settings > About phone > Build number | The main Settings list or under System |
| Other brands | Look in About phone for Build number or a version entry. If your Settings app has a search bar, search for “Build number”. | Usually the main Settings list or under System |
On some Xiaomi phones the version entry is one level deeper, at About phone > Detailed info and specs.
Step 2: Turn On USB Debugging
- Open Developer options (see the table above).
- Make sure the main switch at the top is on. When it is off, most options are disabled.
- Scroll to the Debugging section and turn on USB debugging.
- If the phone shows a warning, read it and tap OK.
On older phones, Google lists these paths:
- Android 9 and later: Settings > System > Advanced > Developer options > USB debugging
- Android 8.0 and 8.1: Settings > System > Developer options > USB debugging
- Android 7.1 and earlier: Settings > Developer options > USB debugging
Xiaomi: USB debugging (Security settings)
Some Xiaomi phones also have a second switch called USB debugging (Security settings). Google notes that on some models, such as the Redmi K40, POCO F3 and Mi 11X with Android 12, both switches must be on (and the phone restarted) for device mirroring in Android Studio. Turn it on as well if your tool needs it.
Step 3: Connect and Allow Your Computer
- Extract Platform-Tools and open a terminal in that folder. On Windows, type
cmdin the folder’s address bar and press Enter. - Unlock the phone and connect it with the USB cable.
- Run:
adb devices - On the phone, a prompt asks you to allow USB debugging. Tick Always allow from this computer and tap OK.
- Run
adb devicesagain. You should see a serial number followed bydevice. If it saysunauthorized, the phone has not accepted the computer yet.
Wireless Debugging (Android 11 and Later)
You can also use ADB over Wi-Fi without a cable:
- Connect the phone and computer to the same Wi-Fi network.
- In Developer options, turn on Wireless debugging and tap Allow for this network. On Pixel phones with Android 16 and later it is at Settings > System > Developer options > Wireless debugging.
- Tap Pair device with pairing code. Note the IP address, port and six-digit code.
- On the computer, run
adb pair IP-ADDRESS:PORTand type the code.
Pairing is needed only once. With Android 17 and ADB 37.0.0 or later, the phone reconnects by itself on a network you marked as trusted.
USB Debugging Not Working? Fixes
Developer options does not appear
- Tap Build number seven times in quick succession, and enter your PIN if asked.
- Xiaomi: using the Security app to optimise the phone hides the Developer options entry. Unlock it again from About phone.
- Work or school phones: an organisation that manages the phone can block debugging features, including USB debugging. Ask your IT admin.
- Identity Check: on phones with this theft-protection feature turned on, opening Developer options away from your trusted places needs your fingerprint or face.
The USB debugging switch is greyed out on Samsung
Samsung’s Auto Blocker stops computers and chargers from sending commands over USB, and it can lock the USB debugging switch. It is on by default on Galaxy phones released with One UI 6.1.1. Turn it off in Settings > Security and privacy > Auto Blocker, finish your work, then turn it back on.
The computer does not see the phone
- Try another cable and another USB port.
- On Windows, install the right driver for your phone brand.
- Unlock the screen before you connect. On Pixel 6 and later with Advanced Protection turned on, USB Protection blocks new data connections while the screen is locked. Charging still works.
The “Allow USB debugging” prompt never appears
Unplug the cable. In Developer options, use the option to revoke USB debugging authorizations, then run adb kill-server, unlock the phone and connect again. The prompt should then appear.
An app will not open while Developer options is on
Google warns that some apps behave differently or refuse to run while developer options are enabled. Turn Developer options off when you have finished.
How to Turn USB Debugging Off
Switch off USB debugging alone, or turn off the whole Developer options menu:
- Pixel: Settings > System > Developer options, then turn off the switch at the top.
- Samsung: Settings > Developer options, then turn off the switch at the top. The menu disappears.
- Xiaomi: Settings > Additional settings, then turn off the Developer options switch.
Turning off Developer options also resets any developer settings you changed.
Related Guides
- Android USB Driver for Windows 11 (All Major Brands)
- All In One Samsung USB Driver for Mobile Phones
- Fastboot Commands List Explained (With Examples)
- Android Developer Verification: What Changes for Sideloading
FAQ
Is it safe to leave USB debugging on?
It is safer to turn it off when you are not using it. A new computer still needs your approval on the unlocked screen, but every computer you allowed before can connect. If you lend or sell the phone, revoke the USB debugging authorizations first.
Does turning on USB debugging erase data or void the warranty?
No. It only changes a setting and does not touch your files. Google’s warranty warning is about unlocking the bootloader, which is a different step that also erases the phone.
Is USB debugging the same as OEM unlocking?
No. OEM unlocking is a separate switch in Developer options that allows the bootloader to be unlocked later with fastboot. USB debugging does not unlock anything.
Do I need USB debugging for fastboot or Odin?
No. Fastboot works in bootloader mode and Odin works in Samsung’s Download mode, before Android starts. USB debugging only lets you use the shortcut adb reboot bootloader to get to fastboot mode.
Can I turn on USB debugging if my screen is broken?
Usually not. You must turn it on in Settings and accept the prompt on the screen, so it cannot be switched on from a computer alone.
https://droid-developers.com/enable-usb-debugging-android/https://droid-developers.com/wp-content/uploads/2026/11/enable-usb-debugging-android-featured-1024x538.jpghttps://droid-developers.com/wp-content/uploads/2026/11/enable-usb-debugging-android-featured-150x150.jpgAndroidHelp & TroubleshootingHow ToTo enable USB debugging on an Android phone, first unlock the hidden Developer options menu by tapping Build number seven times, then switch on USB debugging inside Developer options. The steps are the same on Pixel, Samsung, Xiaomi and other phones; only the menu names change. Below are the...Fahim MahmudFahim Mahmud[email protected]AdministratorDroid-Developers
Leave a Reply