ADB (Android Debug Bridge) Complete Guide for Beginners
Everything you need to know about ADB — install it, connect your phone, and use the most useful commands. No root required for most tasks.
ADB is Android's command-line interface — it lets you install apps, back up data, control your device, and run commands that no app can. Many of the best Android customisation tricks require ADB. Here's how to set it up and use the commands that actually matter.
What You Can Do With ADB (Without Root)#
- Install any APK directly from your computer
- Uninstall system bloatware (without root)
- Enable hidden developer settings
- Mirror your phone screen to your computer
- Back up app data
- Grant special permissions to apps
- Debug app crashes
Step 1: Enable USB Debugging on Your Phone#
- Open Settings → About phone
- Tap Build number 7 times quickly until "You are now a developer!" appears
- Go back to Settings → System → Developer options
- Enable USB debugging
Step 2: Install ADB on Your Computer#
Windows#
- Download Platform Tools from developer.android.com/tools/releases/platform-tools↗
- Extract the zip to
C:\platform-tools - Open Command Prompt, navigate:
cd C:\platform-tools
Mac#
brew install android-platform-tools
Or download Platform Tools and add to PATH.
Linux#
sudo apt install adb # Ubuntu/Debian
sudo pacman -S android-tools # Arch
Step 3: Connect Your Phone#
- Connect via USB cable
- On your phone, tap Allow on the "Allow USB debugging?" prompt
- In your terminal, verify the connection:
adb devices
Output should show your device serial number with "device" status. If it shows "unauthorized," check your phone for a pending permission prompt.
The Most Useful ADB Commands#
Install an APK#
adb install /path/to/yourapp.apk
This is faster than copying the APK to your phone and installing manually. Also works through an airtight "Install unknown apps" setting.
Uninstall System Apps (No Root Required)#
adb shell pm uninstall --user 0 com.example.bloatware
Replace com.example.bloatware with the package name. To find package names:
adb shell pm list packages | grep keyword
Examples of common bloatware package names:
- Samsung Bixby:
com.samsung.android.bixby.agent - Facebook pre-install:
com.facebook.appmanager - Microsoft apps bundle: varies by device
This disables/hides the app for your user without root — it doesn't permanently remove system files.
Screen Mirror to Computer#
adb shell screenrecord /sdcard/screen.mp4
# Or use scrcpy (a separate tool, free, excellent)
Better option: scrcpy↗ — open-source, real-time screen mirroring with audio.
Backup App Data#
adb backup -apk -shared -all -f backup.ab
Restore:
adb restore backup.ab
Note: Many modern apps exclude themselves from ADB backups (using android:allowBackup="false").
Grant Special Permissions#
Some useful permissions apps can request that require ADB to grant:
# Allow an app to modify system settings
adb shell pm grant com.example.app android.permission.WRITE_SECURE_SETTINGS
# Allow read call logs (for call recording apps)
adb shell pm grant com.example.app android.permission.READ_CALL_LOG
Check Device Logs (Logcat)#
adb logcat
Filter to a specific app:
adb logcat --pid=$(adb shell pidof com.example.app)
This is invaluable for diagnosing app crashes.
Wireless ADB (Android 11+)#
You can use ADB over WiFi without a cable:
- Enable Wireless debugging in Developer options
- Tap Pair device with pairing code
- Note the IP address and port shown
- On your computer:
adb pair IP:PORT
# Enter the 6-digit code shown on your phone
adb connect IP:PORT
Frequently Asked Questions#
Do I need root to use ADB?
No. ADB works without root for the vast majority of commands. A few commands (like accessing /data directory or killing system processes) require root.
Can I use ADB without a computer, entirely from my phone? Yes — apps like "ADB on Phone" or "Termux + ADB" allow some ADB operations phone-to-phone via WiFi. Not a full replacement but useful for quick tasks.
Is USB debugging a security risk? Only if you leave it enabled and connect to untrusted computers. When you connect to a new computer, Android asks you to authorize it. Disable USB debugging when you don't need it.
Why does my phone not show up in adb devices?
Check: USB cable (data cable, not charge-only), USB debugging enabled, approved the computer on the phone, installed the right USB driver (Windows often needs a manufacturer driver).
Can ADB brick my phone?
Standard ADB commands can't brick your device. Flashing wrong firmware via fastboot (a different tool in the same package) can cause problems — but standard ADB shell commands are safe.
Jake Morrison
Senior Android EditorTested on: Pixel 8 Pro · OnePlus 12 · Galaxy S24 Ultra
Did this help? Share it:
Related Guides
Complete guide to installing APK files on Android 8 through 15. Enable unknown sources, fix install blocked errors, and do it safely in under 5 minutes.
We tested 8 Android launchers for 30 days each. Nova, Niagara, Lawnchair, and more — real performance data, not spec sheet comparisons.
How to install and use AltStore PAL on iPhone in EU countries. Sideload any IPA file legally without a Mac, jailbreak, or developer account.
Complete guide to sideloading apps on iPhone in 2025. Covers AltStore PAL, TrollStore, developer mode, and the EU App Marketplace — step by step.