Download responsibly: compatibility notes and source checks are shown on every resource.
Guide

USB Debugging and ADB: Safe First Steps

November 10, 2026

USB Debugging and ADB: Safe First Steps
Photo: quad-head MacBook Air (sorta…) by blakespot, CC BY 2.0 via Flickr

ADB (Android Debug Bridge) is the official command-line tool Google provides for talking to an Android device from a computer. Developers use it every day, but it is also useful for ordinary owners who want to copy logs, install an app file they trust, or reboot a phone into recovery when the buttons are awkward. Because ADB can do a lot, it also deserves some care. This guide explains what USB debugging does, how to set it up safely and which commands are worth learning first.

What USB debugging actually allows

When USB debugging is on and you approve a computer, that computer can install and uninstall apps, read system logs, copy files to and from shared storage, take screenshots, record the screen and send key presses. It cannot, on a normal locked phone, read the private data of other apps or bypass your screen lock to approve itself. That approval prompt, showing the computer’s RSA key fingerprint, is the main security barrier, which is why you should never accept it on a computer you do not control.

Step 1: Install the official Platform Tools

Download SDK Platform-Tools only from the Android Developers website. It is a small zip file for Windows, macOS and Linux that contains adb and fastboot. Avoid “ADB installer” packages from random sites; they are often out of date and sometimes bundle unwanted software.

  1. Download the zip for your operating system.
  2. Extract it to a simple folder, for example C:\platform-tools on Windows or ~/platform-tools on macOS/Linux.
  3. Open a terminal (Command Prompt or PowerShell on Windows) in that folder.
  4. Run adb version. You should see the version number printed.

On Windows, many phones also need a USB driver. Google Pixel phones use the Google USB Driver; Samsung, Xiaomi, OPPO and others publish their own drivers, listed on the Android Developers “OEM USB drivers” page.

Step 2: Enable Developer options

  1. Open Settings > About phone.
  2. Tap Build number seven times. On Xiaomi phones tap OS version (or MIUI version) instead; on Samsung go to About phone > Software information > Build number.
  3. Enter your screen lock PIN if asked. You will see “You are now a developer”.

Step 3: Turn on USB debugging

  1. Go to Settings > System > Developer options (on some phones it appears at the bottom of the main Settings list).
  2. Turn on USB debugging and confirm the warning.
  3. Connect the phone with a good-quality data cable. Charge-only cables are a common reason ADB does not see the phone.
  4. Unlock the phone. A dialog asks Allow USB debugging? and shows the computer’s key fingerprint. Tap Allow only if it is your computer.

Step 4: Check the connection

In the terminal, run:

adb devices

You should see a serial number followed by device. If it says unauthorized, look at the phone screen for the approval dialog. If nothing appears, try a different cable or USB port, change the USB mode to File transfer, and on Windows check Device Manager for a missing driver.

Useful, low-risk commands for beginners

Commands to be careful with

Some commands are safe to type but have big effects. adb shell pm uninstall --user 0 removes a preinstalled app for your user; removing the wrong system package can cause boot problems or broken features. Fastboot commands such as fastboot flashing unlock or fastboot flash can erase all data. Never copy commands from a video or forum without understanding exactly what they do and which device they were written for.

Wireless debugging

Android 11 and newer support Wireless debugging in Developer options. You pair the phone with a code or QR code, then connect over Wi-Fi. It is convenient, but only use it on a trusted home network and turn it off afterwards.

Security habits that matter

Troubleshooting quick reference

Used carefully, ADB is one of the most useful tools an Android owner can learn. Start with read-only commands like getprop and pull, and build up from there.

Frequently asked questions

Does enabling USB debugging void my warranty?

No. Developer options and USB debugging are standard Android features documented by Google. They do not unlock the bootloader, root the phone or change system files. You can turn them off at any time and the phone behaves exactly as before.

Can ADB recover data from a phone with a broken screen?

Only if USB debugging was already enabled and the computer was already authorised before the screen broke. Because the approval prompt must be accepted on the phone, ADB cannot be set up from scratch on a phone you cannot see or touch. This is one more reason to keep regular backups.

Is ADB the same as rooting?

No. ADB works within Android’s normal permission system. Rooting gives apps unrestricted system access and usually requires an unlocked bootloader. Everything in this guide works on a normal, unrooted phone.

Do I need Android Studio?

No. Android Studio includes ADB, but most owners only need the small Platform-Tools package. It is enough for every command listed above.

Why does my phone ask to allow debugging again?

Android removes authorisations that have not been used for a while, and you may have revoked them. Simply approve the trusted computer again.

Sources

ModelAndroid phones with Developer options (Android 4.2.2 and newer)
RegionGlobal
VersionReviewed 2026-11
CompatibilityMenu names vary by brand and Android version (Samsung One UI, Xiaomi HyperOS, vivo Funtouch/OriginOS, OPPO ColorOS, Pixel).
Safety contextTurn USB debugging off when you are finished and only authorise computers you own and trust.
Sourcehttps://developer.android.com/tools/adb

No comments