Enable USB Debugging

Dilawar
January 14, 2017

USB Debugging is a developer option that allows your Android device to communicate with a computer running the Android SDK (Software Development Kit) via USB connection.

What is USB Debugging?

USB Debugging enables ADB (Android Debug Bridge) commands from a computer. It's required for development, rooting, and many advanced operations.

How to Enable USB Debugging

  1. Go to SettingsAbout Phone
  2. Tap Build Number 7 times (enables Developer Options)
  3. Go back to SettingsDeveloper Options
  4. Enable USB Debugging
  5. Connect device to computer
  6. Allow USB debugging permission when prompted

Uses of USB Debugging

  • Install apps via ADB
  • Run shell commands
  • Debug applications
  • Unlock bootloader
  • Flash firmware/ROMs
  • Screen mirroring (scrcpy)
  • Backup and restore

Common ADB Commands

adb devices          # List connected devices
adb shell            # Open device shell
adb install app.apk  # Install APK
adb push file /path  # Copy file to device
adb pull /path file  # Copy file from device
adb reboot recovery  # Reboot to recovery
adb reboot bootloader # Reboot to bootloader

Security Note

Only enable USB debugging when needed, and only authorize trusted computers.

Related Terms

← Back to Glossary

D
Dilawar
Chief of all operations at Softstribe