What is USB Debugging in Android? And How to Enable it
Table of Contents
Android has a lot of nifty hidden options and one of them is ‘USB Debugging’. It is required to be turned on in order to establish a successful connection between your PC and your Android device over ADB (Android Debug Bridge). This comprehensive guide will show you how to enable USB Debugging on any Android device, irrespective of the device manufacturer (OEM).
Page Contents [hide]
- 1 What is USB Debugging in Android?
- 2 How to Enable USB Debugging on Android?
- 2.1 Step 1: Enable Developer Options in Android Device Settings
- 2.2 Step 2: Enable USB Debugging on Android
- 3 Some Commonly Used ADB Commands
What is USB Debugging in Android?
‘USB Debugging‘ is a developer option in Android that is used to establish a successful ADB connection between a PC and an Android device. It is generally hidden within the Android device’s settings menu and is disabled by default.
So, the question is, why would you need to enable USB Debugging on your Android device? A straight answer to that is: ADB won’t be able to recognize your phone if USB Debugging is disabled. Once enabled, it allows you to execute ADB commands to perform several actions, like debugging an app, capturing a bug report to provide feedback to developers (logcat), force-reboot your Android device into recovery mode/fastboot mode, etc.
Here on our blog, we cover several tutorials for which you will need to enable the USB Debugging option on your Android device first. The process is short and it feels redundant to mention the steps every time in every tutorial where it is required. And thus, we thought of creating a separate tutorial which will not only help you turn ON USB Debugging on your phone, but will also allow you to learn about what it actually is and when you might need it.
How to Enable USB Debugging on Android?
Like I mentioned earlier, USB Debugging resides inside the ‘Developer options’ menu in the Android device settings. This menu is hidden on all Android devices by default to prevent accidental access. So, we have split the instructions into two steps. The first step will guide to enable Developer Options and then finally enable the USB Debugging option within it.
This guide supports any device, irrespective of the OEM, running the following Android OS versions:
- Ice Cream Sandwich (4.0)
- Jelly Bean (4.1, 4.2, 4.3)
- KitKat (4.4)
- Lollipop (5.0, 5.1)
- Marshmallow (6.0)
- Nougat (7.0, 7.1)
- Oreo (8.0, 8.1)
- Pie (9.0)
- Android 10
Step 1: Enable Developer Options in Android Device Settings
- Go to the ‘Settings‘ menu on your Android device.
- Scroll through the settings and tap on ‘About phone‘.
- Find the ‘Build number‘ section in the ‘About phone’ menu.
- Now, continuously tap on the build number section for five (5) times to enable Developer Options.
- Enter the lock screen PIN, Password, or Pattern when prompted.
- You should now see a confirmation message like ‘You’re now a developer!‘, ‘Developer mode has been enabled.‘ or a similar message on the phone’s screen.
Note: In case of certain OEM devices, the Build Number section would be nested in another sub-menu. For example: In the case of Samsung Galaxy devices, you will find the ‘Build number’ section in Settings > About phone > Software information.
Step 2: Enable USB Debugging on Android
- Go to the ‘Settings‘ menu on your Android device.
- Select ‘System‘ and tap on ‘Advanced‘ (Only on Android 8.0 and above).
- Now tap on ‘Developer options‘.
- Scroll down to the ‘Debugging‘ section.
- Turn ON the ‘USB debugging‘ toggle.
- You should now see a confirmation prompt on the screen.
- Finally, tap on ‘OK‘ to confirm and enable USB Debugging on your Android device.
Note: In the case of Samsung Galaxy or certain other OEM devices, you will simply need to go to Settings > Developer options.
This is it! With the option now enabled, you can now go ahead, connect your phone to the PC and use the desired ADB commands.
Some Commonly Used ADB Commands
Before you head off, you can check the below list of some of the most common ADB commands that you might need and use from time-to-time.
COMMAND | DESCRIPTION | EXAMPLE |
---|---|---|
adb devices | List all the devices currently communicating with the PC over ADB. | N/A |
adb version | Check the ADB version currently installed and being used on the PC. Also check the location where the ADB.exe binary is installed. | N/A |
adb kill-server | Kill the adb server process. Helps resolve adb connection issues. | N/A |
adb sideload | Sideload an OTA update package to the device. | adb sideload ota-update.zip |
adb reboot | Remotely reboot the device. | N/A |
adb reboot-bootloader | Remotely reboot the device directly into Bootloader/Fastboot Mode | N/A |
adb reboot-recovery | Remotely reboot the device into Android recovery mode. | N/A |
adb shell screencap | Take a screenshot of the current device display. | adb shell screencap /sdcard/screenshot.png |
adb install | Push an app package to the device and install it. | adb install com.google.android.apps.photos.apk |
adb uninstall | Uninstall an app package from the device and clear its data and cache. | adb uninstall com.google.android.apps.photos.apk |
adb push | Push/Transfer a file or a folder from the PC to a specific directory on the device's storage | adb push c:\test.apk /sdcard |
adb pull | Pull/Transfer a file or folder from the device back to the PC. | adb pull /sdcard/test.apk c:\ |
adb bugreport | Take a bugreport of the device and transfer it to a specified directory on the PC. | adb bugreport c:\mybugreports |
adb logcat -v long > logcat-filename.txt | Take the log data and print it on the screen. | adb logcat -v long > logcat.txt |
adb help | Display the complete list of ADB commands available for use. | N/A |
More from our Android 101 (Basics) Series:
- Backup Android Device Completely (Root & No-root)
- Enable OEM Unlocking on Android [OEM Unlock]
- How to Unlock Bootloader using Fastboot on Android (Detailed Guide)
- Install Android SDK Platform-tools on Windows, Linux, and macOS
So, this was our tutorial on how to enable USB Debugging on any Android device. If you have questions, you can simply leave a comment below.
Post a Comment
COMMENT NO NAME / UNKNOWN NO RESPON !!!...