How to Enable USB Debugging from PC Using ADB Command? (2024)

Android Debug Bridge (ADB) is a tool through which the command console of our PC act as a bridge between it and the phone. Thanks to it, we can send different instructions to the smartphone and upload files from one platform to another.

To start working with ADB, you need to enable USB Debugging. So, what is this USB Debugging mean? This function is initially intended for developers but to which everyone can have access. In this article, we will guide you through using USB Debugging and how to allow USB Debugging on Android device from the PC.

How to Enable USB Debugging from PC Using ADB Command? (1)

When Do You Need to Turn on USB Debugging?

USB Debugging is a tool that allows your Android device to communicate with the Android SDK (Software Development Kit) through the USB cable. That is, it allows an Android device to receive commands and files from a computer, as well as it allows the computer to obtain important information such as log files from the Android device.

Reasons to enable USB Debugging

  • Most of the apps require USB Debugging for proper functioning and to debug Android phone
  • Mode to establish the connection between the phone and the PC

How to enable USB Debugging in Phone

How to Enable USB Debugging from PC Using ADB Command? (2)

  1. Open the Settings app and tap on the About option
  2. Tap on the Build Number option 7 times to enable developer mode
  3. Go back to the Settings screen and enable the USB Debugging option in the list

Now let’s see how to set up ADB on the PC before using USB Debugging.

How to Enable USB Debugging Using ADB Command?

You can follow the below steps to enable the USB Debugging using the ADB command. This method is useful when users have an Android device with a broken or damaged screen. This method can only be used when the Android device is bootloader unlocked.

Step 1: Put the device into Recovery Mode. For Samsung users, we have a comprehensive guide on how to boot the device into recovery mode.

Step 2: Download the latest SDK platform tools and extract the zip file into the PC.

How to Enable USB Debugging from PC Using ADB Command? (3)

Step 3: Go inside the extracted folder and find the “platform-tools” folder. Click on the File option on the left top corner and select “Open Windows PowerShell” to launch a new command window.

Step 4: Then type “adb devices” and press Enter.

Step 5: If the device ID is visible as an alphanumeric number, then it means ADB can detect the device in the Recovery mode.

How to Enable USB Debugging from PC Using ADB Command? (4)

Step 6: You need to type the following commands to mount the relevant directories and press Enter after each command.

  • adb shell
  • $ mount data
  • $ mount system

Step 7: Next, you must transfer the “persist.sys.usb.config” file from phone to the PC. This can be done using the below command. To save it in the desired PC location, users can replace it with their folder location.

  • adb pull /data/property/persist.sys.usb.config C:\Users\Technastic\Desktop\

Step 8: To edit the “persist.sys.usb.config” file, right-click on it, and select the text editor you have. Then add the “mtp,adb” options to the file and push it back to the phone using the below command.

  • adb push “C:\Users\Technastic\Desktop/persist.sys.usb.config” /data/property

Step 9: Then download the “build.prop” file from phone to the PC.

  • adb pull /system/build.prop C:\Users\Technastic\Desktop\

Step 10: You can open the “build.prop” file using the same text editor used before. Then add the below lines into the file.

  • persist.service.adb.enable=1
  • persist.service.debuggable=1
  • persist.sys.usb.config=mtp,adb

Step 11: Save the file and push it back to the phone using the below command. After typing the below command, press Enter.

  • adb push “C:\Users\Technastic\Desktop/build.prop” /system/

Step 12: After following the above steps, you should be good with enabling USB Debugging. Then execute the below command to reboot the device.

  • adb reboot

After the reboot, users can execute ADB commands again if needed since the USB Debugging is still enabled. Every time you execute the command, it will prompt a command window to allow USB Debugging or verify the RSA key fingerprint on your phone.

How to Enable USB Debugging from PC Software?

Sometimes it isn’t easy to follow the ADB commands to enable the USB Debugging when you don’t have any previous experience in coding. As a solution, iToolab has introduced UnlockGo (Android) software that can enable USB Debugging with a few steps. During the FRP lock removal process, the software will guide you through setting up a USB Debugging app and turning on USB Debugging.

iToolab UnlockGo (Android) is a great tool that can remove any type of screen lock, including PIN, Pattern, Password, and Fingerprints. Apart from that, users can bypass the Google FRP lock on Samsung phones and tablets with Android 13/12. With the extended support of 15 brands, including Samsung, Huawei, Honor, LG, etc., and 2000+ Android phone and tablet models, UnlockGo (Android) has become one of the favorites among users. More importantly, it is easy to use, and no technical knowledge is required.

UnlockGo (Android)

Android Unlocker

  • Zero technical and coding hassle
  • Allow USB Debugging on Android from Windows and Mac
  • Bypass FRP lock on Android 13/12/11/10/9/8/7/6/5
  • Remove all Android compatible screen locks
  • Unlock Samsung device without data loss

FREE DOWNLOAD

for Windows 11/10/8/7

FREE DOWNLOAD

for Mac 10.11 or later

How to allow USB debugging without Settings menu

Step 1: Connect the phone to the PC

After installing the UnlockGo (Android) on the PC, connect the phone using the USB cable. After that, open the installed software and click on the Remove Google Lock (FRP).

How to Enable USB Debugging from PC Using ADB Command? (6)

Step 2: Select the first option

On the next screen, click on the Start button. Then select the top option which help you enable USB debugging with internal codes.

How to Enable USB Debugging from PC Using ADB Command? (7)

Step 3: Enter the secret code

Now follow the on-screen instruction, dial the codes from emergency call. After that, a pop-up with “Allow USB debugging” texting should appear. Do not disconnect the phone during the whole process.

How to Enable USB Debugging from PC Using ADB Command? (8)

Step 4: Reboot the device

When you give a permission to “this computer”, your Samsung will be restarted automaticall.

Tips: How to Turn Off USB Debugging?

To turn off the USB Debugging on your Samsung device, follow the below steps.

Step 1: Open the Settings app and tap on the System option. On Android 7 and below, you may not find the System option.

Step 2: Under the System option, tap on the Developer options.

How to Enable USB Debugging from PC Using ADB Command? (9)

Step 3: Select the USB Debugging and turn the toggle to Off. This will disable USB Debugging. If you can’t find the USB Debugging option in the list, use the search option on the top to get it.

Conclusion

We have brought you the easiest way to enable USB Debugging when the device is broken or hard to enable it manually. Now users can enable USB Debugging Android from PC using the iToolab UnlockGo (Android). We hope this guide help all Android users, and we highly recommend trying UnlockGo (Android) to solve many Android-related issues.

FREE DOWNLOAD for Windows 11/10/8/7 FREE DOWNLOAD for Mac 10.11 or later
How to Enable USB Debugging from PC Using ADB Command? (2024)

FAQs

How to enable USB debugging using adb command? ›

Enable adb debugging on your device

To use adb with a device connected over USB, you must enable USB debugging in the device system settings, under Developer options. On Android 4.2 (API level 17) and higher, the Developer options screen is hidden by default. To make it visible, enable Developer options.

How to enable USB debugging on Android from PC remotely? ›

Open the Developer Options screen on your Android. See Configure On-Device Developer Options. Select Enable USB Debugging.

How to enable USB debugging in broken phone using adb command? ›

Use the volume buttons to navigate to the “Recovery mode” option and press the power button to select it. Your phone will boot into recovery mode. Use the volume buttons to navigate to the “Advanced” or “Options” menu. Use the power button to select the “ADB debugging” option.

How to enable USB debugging using PC cmd? ›

Install the Android SDK platform tool.
  1. Navigate to C:\Users\USERNAME\AppData\Local\Android\tools\bin.
  2. Open a command window (Shift-Right click, Open Powershell window here, type cmd in the Powershell window).
  3. Run the command sdkmanager platform-tools to install the Android SDK platform tools.

How do I enable USB debugging on my phone from my computer? ›

Enabling USB Debugging on an Android Device
  1. On the device, go to Settings > About <device>.
  2. Tap the Build number seven times to make Settings > Developer options available.
  3. Then enable the USB Debugging option. ...
  4. If you are running Windows 8, you must configure the USB connection as Camera (PTP).

How to USB debug Android from PC? ›

Step 1: Discover your Android device
  1. Open the Developer Options screen on your Android. ...
  2. Select Enable USB Debugging.
  3. On your development machine, open Chrome.
  4. Make sure. ...
  5. Connect your Android device directly to your development machine using a USB cable.

How do I enable USB debugging without my phone? ›

Use OTG to Enable USB Debugging on Android with Black Screen. If your phone has USB OTG support, you can use a computer mouse to control it and enable USB Debugging mode even if the screen is broken and unresponsive.

How to enable ADB debugging without developer mode? ›

First, make sure the Chromebook is not in developer mode⁠ . Then go to settings and turn on Linux (if you haven't done so before). Once Linux is available open the Linux settings and you'll find a new option 'Develop Android apps', open that option. Toggle enable ADB debugging and the computer will restart.

How to enable USB debugging using fastboot command? ›

USB Debugging responsible for ADB communication and not fastboot, both are different and if you want to mess with ADB then you need USB Debugging but for fastboot there's no need. But you can enable USB Debugging in Android by going to settings > about > build number > tap it several times and done !!

How do I force enable USB debugging on Android? ›

Enabling USB-Debugging
  1. On the Android device, open the settings.
  2. Tap Developer Settings. The developer settings are hidden by default. ...
  3. In the Developer settings window, check USB-Debugging.
  4. Set the USB mode of the device to Media device (MTP), which is the default setting.

Can adb work without USB debugging? ›

No, ADB (Android Debug Bridge) commands require a USB cable connection or a network connection to work. While you can use ADB over a network connection if both your device and your computer are connected to the same Wi-Fi network, you cannot use ADB commands while your device is in fastboot mode or fastbootd.

How do I authorize an adb device? ›

Authorize Android Device
  1. Disconnect your Android device from the computer.
  2. Revoke USB Debugging on the device: Open the Settings app on your device. ...
  3. Reconnect the device: The device will prompt you to agree to connect the computer. ...
  4. The computer is now authorized for debugging!

How to connect broken display phone to PC without USB debugging? ›

If you cannot enable USB debugging on your phone due to the broken screen, you need another way to mirror it. Fortunately, there is an easier and more secure way to mirror broken Android screens without USB debugging. Downloading the Screen Stream over HTTP software from Google Play Store is the way to go.

How do I enable USB debugging manually? ›

On the device, go to Settings > About <device>. Tap the Build number seven times to make Settings > Developer options available. Then enable the USB Debugging option. Tip: You might also want to enable the Stay awake option, to prevent your Android device from sleeping while plugged into the USB port.

How to enable ADB debugging without Developer mode? ›

First, make sure the Chromebook is not in developer mode⁠ . Then go to settings and turn on Linux (if you haven't done so before). Once Linux is available open the Linux settings and you'll find a new option 'Develop Android apps', open that option. Toggle enable ADB debugging and the computer will restart.

How to enable USB tethering using adb command? ›

The following commands call ConnectivityManager. setUsbTethering(boolean enable) in Android 4.3: adb shell su -c service call connectivity 34 i32 1 turns on USB tethering. adb shell su -c service call connectivity 34 i32 0 turns off USB tethering.

Top Articles
Latest Posts
Article information

Author: Reed Wilderman

Last Updated:

Views: 5822

Rating: 4.1 / 5 (52 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Reed Wilderman

Birthday: 1992-06-14

Address: 998 Estell Village, Lake Oscarberg, SD 48713-6877

Phone: +21813267449721

Job: Technology Engineer

Hobby: Swimming, Do it yourself, Beekeeping, Lapidary, Cosplaying, Hiking, Graffiti

Introduction: My name is Reed Wilderman, I am a faithful, bright, lucky, adventurous, lively, rich, vast person who loves writing and wants to share my knowledge and understanding with you.