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
- Go to Settings → About Phone
- Tap Build Number 7 times (enables Developer Options)
- Go back to Settings → Developer Options
- Enable USB Debugging
- Connect device to computer
- 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.