• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
TechEngage

TechEngage®

Technology Reviews, Guides & Analysis

  • Cryptocurrency
  • Science
    • Energy
    • Environment
    • Health
    • Space
  • Apps
  • More
    • Opinion
    • Noteworthy
    • Culture
    • Events
    • Deals
    • Startups
      • Startup Submissions
  • Videos
  • Tools
TechEngage » Phones

How to Enable USB Debugging on Android (All Brands, All Versions)

Avatar for Ali Raza Ali Raza Updated: April 4, 2026

Pixel 2 XL home screen with Android
Design by Bisma / TechEngage
Share1FacebookTweetPinLinkedInPrintEmail

USB debugging sounds intimidating if you’ve never touched it before, but it’s just a setting that lets your computer talk to your Android phone over a USB cable. Developers use it to test apps, but regular users need it too — for sideloading apps, removing bloatware, recovering data from a phone with a broken screen, or running tools like scrcpy to mirror your phone’s display.

The setting is hidden by default because Google doesn’t want people accidentally turning it on. Getting to it requires unlocking a secret Developer Options menu first, which takes about 30 seconds. Below is the full process for every major Android brand, plus wireless debugging, troubleshooting, and security tips most guides skip entirely.

What Is USB Debugging?

USB debugging is a communication bridge between your Android phone and a computer running ADB (Android Debug Bridge). When enabled, your computer can send commands to the phone, install apps without using the Play Store, pull files from protected directories, capture detailed system logs, and even control the phone’s screen remotely.

Without USB debugging turned on, your computer only sees the phone as a basic storage device or media player. With it enabled, you get full access to the Android system through command-line tools. That’s why this setting sits behind a hidden menu — it’s powerful, and granting access to the wrong computer could expose your data.

What Can You Actually Do With It?

Most people enable USB debugging for one specific task and then forget about it. Here are the most common reasons regular users (not just developers) need it:

  • Sideload apps: Install APK files directly from your computer using adb install, useful for apps not available in your region’s Play Store.
  • Remove bloatware: Uninstall carrier-installed apps that don’t have an uninstall button using adb shell pm uninstall. This doesn’t require root access.
  • Recover data from a broken screen: If your screen is cracked or unresponsive, ADB lets you pull photos, contacts, and files to your computer.
  • Screen mirroring: Tools like scrcpy use USB debugging to mirror and control your phone from your desktop with virtually zero lag.
  • Flash custom ROMs: Installing custom firmware like LineageOS requires an unlocked bootloader and USB debugging.
  • Automate tasks: Apps like Tasker and Shizuku use ADB permissions for automation features that normally need root.
  • Take bug reports: Capture detailed system logs for reporting issues to app developers or phone manufacturers.
  • Push and pull files: Transfer files to protected system directories that a regular file manager can’t access.

Step 1: Enable Developer Options

Before you can toggle USB debugging, you need to unlock the Developer Options menu. Google hides it by default on every Android phone, but the process to reveal it is the same across all brands — you just need to find the Build Number and tap it seven times.

The exact path to Build Number varies by manufacturer:

Google Pixel: Settings → About phone → Build number

Samsung Galaxy: Settings → About phone → Software information → Build number

OnePlus: Settings → About device → Build number

Xiaomi / Redmi / POCO: Settings → About phone → MIUI version (tap this instead of Build number)

Motorola: Settings → About phone → Build number

Oppo / Realme: Settings → About device → Build number (or Version on some models)

Tap the Build Number (or MIUI version on Xiaomi) seven times in quick succession. You’ll see a countdown toast message after the fourth tap — “You are 3 steps away from being a developer.” After the seventh tap, it confirms: “You are now a developer!” If your phone has a PIN or fingerprint lock, you’ll be prompted to verify your identity before the menu unlocks.

If you can’t find the Build Number, open Settings and use the search bar at the top. Type “build number” and it should show the exact location for your phone.

Step 2: Turn On USB Debugging

Now that Developer Options is visible, here’s how to enable USB debugging:

1. Open Settings.

2. Scroll down and tap System (on Pixel and stock Android). On Samsung, tap Developer options directly from the main Settings page. On Xiaomi, go to Additional settings → Developer options.

3. Tap Developer options.

4. Scroll down to the Debugging section and toggle USB debugging to on.

5. A warning dialog appears: “USB debugging is intended only for development purposes.” Tap OK to confirm.

That’s it. USB debugging is now active. When you connect your phone to a computer with ADB installed, you’ll see a prompt on the phone asking “Allow USB debugging?” with the computer’s RSA key fingerprint. Tap “Always allow from this computer” if it’s your personal machine, or just “Allow” for one-time access.

Enable Wireless Debugging (Android 11 and Above)

Starting with Android 11, Google added wireless debugging as an alternative to USB cables. This lets you run ADB commands over Wi-Fi, which is useful if your USB port is damaged, your cable is flaky, or you just prefer working untethered.

1. Make sure your phone and computer are on the same Wi-Fi network.

2. Go to Settings → System → Developer options.

3. Scroll to the Debugging section and toggle Wireless debugging to on. Confirm the prompt.

4. Tap on Wireless debugging to open its settings. You’ll see an IP address and port number.

5. On your computer, open a terminal and type: adb pair [IP]:[Port] using the pairing code shown on your phone. After pairing, connect with adb connect [IP]:[Port].

Wireless debugging disconnects when you leave the Wi-Fi network, which adds a natural layer of security. The connection also drops if the phone’s screen is off for an extended period, so you may need to reconnect during longer sessions.

Install ADB on Your Computer

Enabling USB debugging on your phone is only half the equation. Your computer needs ADB (Android Debug Bridge) installed to communicate with the phone. Here’s the quick setup for each operating system:

Windows: Download the SDK Platform Tools ZIP from Google. Extract it to a folder like C:\adb. Open Command Prompt, navigate to that folder, and run adb devices. If your phone shows up with a serial number, you’re connected. Windows may also need a USB driver for your specific phone — Google, Samsung, and other manufacturers provide these on their developer sites.

Mac: Install via Homebrew with brew install android-platform-tools, or download the Platform Tools ZIP from Google and extract it. Run ./adb devices from the extracted folder in Terminal.

Linux: Most distributions include ADB in their package manager. On Ubuntu/Debian: sudo apt install adb. On Fedora: sudo dnf install android-tools. On Arch: sudo pacman -S android-tools.

Verify the Connection

After installing ADB and enabling USB debugging, connect your phone with a USB cable and run this command in your terminal or command prompt:

adb devices

If everything is working, you’ll see output like this:

List of devices attached
XXXXXXXXX device

If it shows “unauthorized” instead of “device,” check your phone — there should be an authorization prompt waiting for you to approve. If it shows nothing at all, try a different USB cable (cheap cables often lack data pins), switch USB ports, or reinstall the phone’s USB driver.

Useful ADB Commands to Know

Once connected, here are the commands you’ll use most often:

  • adb devices — Lists all connected devices. Run this first to confirm the connection.
  • adb install app.apk — Installs an APK file from your computer onto the phone.
  • adb uninstall com.package.name — Removes an app by its package name.
  • adb shell pm list packages — Lists every installed package. Add | grep keyword to search for specific apps.
  • adb shell pm uninstall -k --user 0 com.package.name — Removes a system app (bloatware) for your user without needing root.
  • adb push local_file /sdcard/ — Copies a file from your computer to the phone.
  • adb pull /sdcard/file local_folder — Copies a file from the phone to your computer.
  • adb logcat — Streams real-time system logs. Press Ctrl+C to stop.
  • adb reboot — Reboots the phone.
  • adb reboot bootloader — Reboots into the bootloader for flashing firmware.

Is USB Debugging Safe?

USB debugging itself doesn’t make your phone less secure as long as you’re careful about two things: which computers you authorize, and where you plug in your phone.

When you connect to a new computer, Android shows an RSA key fingerprint and asks if you trust it. Only tap “Always allow” for computers you own. For a friend’s laptop or a work machine, tap “Allow” for one-time access. You can revoke all previously authorized computers by going to Developer Options and tapping Revoke USB debugging authorizations.

The real risk comes from public USB charging stations at airports, hotels, and coffee shops. An attack called “juice jacking” uses modified charging ports to access phones with USB debugging enabled. The risk is low but not zero. If you regularly use public chargers, keep USB debugging turned off when you don’t actively need it.

Bottom line: enable it when you need it, disable it when you’re done. There’s no benefit to leaving it on permanently unless you’re actively developing apps or running ADB tools daily.

Troubleshooting Common Problems

These are the issues that come up most frequently when setting up USB debugging for the first time:

“USB debugging” toggle is greyed out: This usually means your phone is connected in “Charging only” mode. Change the USB mode to “File transfer (MTP)” from the notification shade. On some phones, you need to disconnect the cable, change the default USB configuration in Developer Options to MTP, and reconnect.

Computer doesn’t detect the phone: Try a different cable. Many cheap or charge-only cables don’t support data transfer. If the cable works for file transfer but not ADB, you likely need to install the correct USB driver. Samsung users should install Samsung USB drivers. Pixel users can use the Google USB driver.

RSA authorization prompt doesn’t appear: Revoke all USB debugging authorizations in Developer Options, disconnect the cable, and reconnect. If the prompt still doesn’t show up, restart both your phone and your computer.

adb devices shows “unauthorized”: Your phone is connected but you haven’t approved the RSA prompt yet. Unlock your phone and look for the authorization dialog. If it’s not there, revoke authorizations and try again.

ADB command not found: You either haven’t installed Platform Tools, or the folder isn’t in your system’s PATH. On Windows, run the command from the folder where you extracted the tools, or add that folder to your PATH environment variable.

How to Disable USB Debugging and Developer Options

To turn off USB debugging, go back to Settings → System → Developer options and toggle USB debugging off. You can also disable the entire Developer Options menu by toggling the master switch at the top of the page. On Samsung phones, you can hide Developer Options completely by going to Settings → Apps → searching for “Settings” → Storage → Clear Data (this resets the Settings app, which re-hides Developer Options).

Disabling Developer Options doesn’t delete any data or undo any changes you made through ADB. It just hides the menu and turns off the developer toggles. You can always re-enable it by tapping Build Number seven times again.

Frequently Asked Questions

Is it safe to leave USB debugging enabled all the time?

It’s not dangerous on its own, but it does widen your attack surface. Anyone with physical access to your phone and a computer with ADB could extract data without your lock screen password. The safest practice is to enable USB debugging only when you actively need it and disable it afterward. If you use it daily for development, at minimum revoke authorized computers periodically.

Can I enable USB debugging without Developer Options?

No. USB debugging is exclusively inside the Developer Options menu. You must unlock Developer Options by tapping the Build Number seven times before the USB debugging toggle becomes accessible. There is no alternative path or shortcut.

Will enabling USB debugging delete my data?

No. Enabling or disabling USB debugging doesn’t affect your files, apps, or settings. It only opens a communication channel between your phone and a connected computer. Similarly, hiding Developer Options doesn’t undo any changes made through ADB commands.

Can I enable USB debugging with a broken screen?

Only if it was already enabled before the screen broke. USB debugging requires on-screen interaction to toggle the setting and to approve RSA authorization prompts from new computers. If your screen is completely unresponsive and debugging wasn’t previously enabled, you’ll need to use an OTG adapter with a mouse to navigate the settings, or connect an external display via USB-C if your phone supports it.

What’s the difference between USB debugging and wireless debugging?

USB debugging requires a physical cable connection. Wireless debugging, available on Android 11 and later, works over Wi-Fi. Both use ADB commands and offer the same functionality. Wireless debugging is more convenient but slightly slower. It also disconnects automatically when you leave the Wi-Fi network, adding a security benefit.

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

No. USB debugging works on any unrooted Android phone. Rooting gives deeper system access beyond what ADB provides, but many tasks people associate with rooting — removing bloatware, sideloading apps, capturing logs — only require USB debugging and ADB, no root needed.
Published: April 12, 2020 Updated: April 4, 2026

Filed Under: Phones Tagged With: Android, how-to, USB Debugging

Related Stories

  • Samsung Galaxy Note 7 Review

    Samsung Galaxy Note 7 Review

  • Samsung Galaxy S7 Review

    Samsung Galaxy S7 Review

  • A Preview Of The Iphone 7

    A Preview of The iPhone 7

Share1FacebookTweetPinLinkedInPrintEmail
Avatar for Ali Raza

Ali Raza

Business & Cybersecurity Analyst

Ali Raza is a Business and Cybersecurity Analyst at TechEngage with nearly 170 published pieces covering enterprise technology, internet security, cryptocurrency markets, and software tools. His reporting connects the dots between business strategy and the technology that drives it, helping readers make informed decisions in a fast-changing landscape.

Joined March 2009

Reader Interactions

Share Your Thoughts Cancel reply

Please read our comment policy before submitting your comment. Your email address will not be used or published anywhere. You will only receive comment notifications if you opt to subscribe below.

Primary Sidebar

TechEngage-Apple-News TechEngage-Google-News

Recent Stories

  • The Complete History of the Internet: From ARPANET to AI (Visual Timeline)
  • The 10 Best-Selling Cars of All Time [Infographic]
  • Best Gaming Graphics Cards (GPUs): 8 Picks From Budget to Enthusiast
  • Best Long-Range Outdoor WiFi Extenders: 8 Tested Picks for Reliable Coverage
  • Best AM Radios for Long-Distance Reception: 10 Tested Picks

Footer

Discover

  • About TechEngage
  • Newsroom
  • Our Team
  • Advertise
  • Send us a tip
  • Startup Submission Questionnaire
  • Brand Kit
  • Contact us

Legal pages

  • Reviews Guarantee & Methodology
  • Community Guidelines
  • Corrections Policy and Practice
  • Cookies Policy
  • Our Ethics
  • Disclaimer
  • GDPR Compliance
  • Privacy Policy
  • Terms and Conditions

Must reads

  • Best AirPods alternatives on Amazon
  • Best PC monitors for gaming on Amazon
  • Best family board games
  • Best video doorbells without subscription
  • Best handheld video game consoles
  • Best all-season tires for snow
  • Best mobile Wi-Fi hotspots
  • Best treadmills on Amazon

Download our apps

TechEngage app coming soon on App Store

© 2026 TechEngage®. All Rights Reserved. TechEngage® is a project of TechAbout LLC.

TechEngage® is a registered trademark in the United States under Trademark Number 6823709 and in the United Kingdom under Trademark Number UK00003417167. It is also ISSN protected under ISSN 2690-3776 and has OCLC Number 1139335774.