Setup guide

How to enable USB debugging on Android

USB debugging is the switch that lets a Windows PC control an Android phone. It takes about a minute per phone: unlock Developer options, turn on USB debugging, then allow the computer on the phone. Here is the exact path for every major brand, plus fixes for the usual problems.

Updated · By the AIDroid team

What USB debugging does, and is it safe?

USB debugging turns on ADB (Android Debug Bridge), the official tool Android developers use to install apps, read the screen and send taps from a computer. Software that controls phones from a PC, including AIDroid, works through ADB, so this is the one setting every phone needs. No root is required.

It is safe as long as you only approve computers you own: the first time a PC connects, the phone shows that computer's key and asks you to allow it. A computer you have not approved cannot use ADB on the phone. If you sell or give away a phone, turn USB debugging off and tap Revoke USB debugging authorizations.

Step 1: Unlock Developer options

Developer options are hidden until you tap the build number seven times. You will see a countdown ("You are now 3 steps away from being a developer"), and the phone may ask for your PIN.

BrandTap 7 times onDeveloper options are in
Google Pixel, Motorola, NokiaSettings → About phone → Build numberSettings → System → Developer options
Samsung GalaxySettings → About phone → Software information → Build numberSettings → Developer options (bottom of the list)
Xiaomi, Redmi, POCOSettings → About phone → OS version (MIUI version on older phones)Settings → Additional settings → Developer options
OPPO, realme, OnePlusSettings → About device → Version → Build numberSettings → System settings (or Additional settings) → Developer options
vivo, iQOOSettings → About phone → Software versionSettings → System management → Developer options
Huawei, HonorSettings → About phone → Build numberSettings → System & updates → Developer options

Menus move between Android versions. If you cannot find the item, type build number in the search bar at the top of Settings.

Step 2: Turn on USB debugging

  1. Open Developer options (path in the table above) and make sure the main switch at the top is on.
  2. Scroll to the Debugging section and turn on USB debugging. Confirm the warning.
  3. Optional but useful for phones that work all day: turn on Stay awake, so the screen does not sleep while the phone is charging.

Extra switches on Xiaomi, Redmi and POCO

Xiaomi phones block taps from a computer unless you also turn on USB debugging (Security settings), a separate item just below USB debugging. Turn on Install via USB too, so apps can be installed from the PC. The phone may ask you to sign in to a Xiaomi account first. Without these, you can see the screen but taps and app installs fail.

OPPO and realme

If the screen shows but taps do nothing, look in Developer options for Disable permission monitoring and turn it on, then reconnect the phone.

Step 3: Connect the phone and allow the computer

  1. Plug the phone into the PC with a data cable. Many cheap cables only charge; if nothing happens, try another cable.
  2. Unlock the phone. A dialog appears: Allow USB debugging? Tick Always allow from this computer, then tap Allow.
  3. If the dialog does not appear, pull down the notification shade, tap the USB notification and choose File transfer, then unplug and plug in again.

In AIDroid, the phone shows up in the Control Center a few seconds later with its live screen. AIDroid ships with ADB built in, so there is nothing else to install. If a phone appears as unauthorized, unlock it and accept the dialog from step 2.

Phone not detected? Quick fixes

  • Swap the cable or port. Use a data cable and a USB port directly on the PC before trying hubs.
  • Re-authorize. In Developer options tap Revoke USB debugging authorizations, turn USB debugging off and on, reconnect and accept the dialog again.
  • Install the brand's USB driver if Windows shows an unknown device: for example the Samsung Android USB Driver, or the Google USB Driver for Pixel phones.
  • Keep the screen unlocked the first time: the permission dialog does not show on a locked screen.
  • Many phones on one PC? Use powered USB hubs. Each USB controller in a PC can only handle a limited number of devices, so large setups spread phones across several controllers or move part of the fleet to Wi-Fi.

Next: control phones over Wi-Fi

Cables are the most reliable, but you can also connect phones over your local network. A phone has to listen for ADB on the network (usually port 5555); then AIDroid's Scan LAN button finds every such phone on the same network, or you can add one by typing its IP:port. The guide on controlling many Android phones from one PC covers USB, Wi-Fi and cloud setups side by side.

Frequently asked questions

Do I need to root my phone to use USB debugging?

No. USB debugging is a standard Android developer setting. Rooting is not needed to view the screen, tap, type or install apps from a PC.

Is it safe to leave USB debugging on?

Yes, if you only approve your own computers. A PC must be allowed on the phone before it can use ADB. Turn it off and revoke authorizations before selling or lending the phone.

Why are Developer options missing on my phone?

They stay hidden until you tap Build number (or OS version on Xiaomi) seven times. Work phones managed by a company can block Developer options entirely.

Can I turn on USB debugging without touching the phone?

No. For security, Android requires you to enable it and accept the computer on the phone itself. After that first approval, the PC reconnects without asking again.

Try AIDroid free

Download the free trial for Windows 10/11, plug in a phone and run your first script in minutes. Questions? Ask the team and other users in our Telegram community.