Method 2: Enable USB Debugging on Android with Black Screen via ADB
Sometimes, a broken screen could lead to a black screen, which renders OTG useless. But there is still hope to enable USB debugging if you use ADB or Android Debug Bridge. It’s a tool that you can download on your computer and it can send commands to your Android with a broken screen.
- USB cable for your phone
- ADB tool
- Windows computer
When you have all the requirements, these are the steps you need to follow:
On your computer, download the ADB Tool and then unzip it to a new folder. For ADB to work, USB Debugging should be enabled. Since you can’t do it due to the black screen, boot the phone into Recovery Mode instead.
To enter the Recovery Mode, press and hold the Volume Down and Power buttons together for 10 seconds. You should feel a sudden vibration when it works.
Then, connect your phone to the PC using the USB cable. Launch the Command Prompt. You can do it by clicking on the search bar near the Windows icon and search type in “Command Prompt”.
In the Command window, enter “adb devices”. Your phone should be on the list to confirm the connection. Then, type in the commands below individually:
- adb shell
- mount data
- mount system
After entering those commands, you need to get the “persist.sys.usb.config” file from your phone to your computer. You can do this by using this command:
- adb pull/data/property/persist.sys.usb.config C:\Users\[PC Username]\Desktop\
Once the file is on your desktop, open it using a text editor and change it to “mtp,adb”. After that, push the modified file back to your phone by running the same code in reverse:
- adb push ”C:\Users\[PC Username]\Desktop/persist.sys.usb.config”/data/property
Next, download the file: build.prop from your Android phone. Use the command below to do it:
- adb pull/system/build.prop C:\Users\[PC Username]\Desktop\
Then, open the build.prop file on a text editor. Add the codes below and save the changes.
You need to put back the file to your phone by using this command:
- adb push “\C:\Users\[PC Username]\Desktop/build.prop” /system/
Finally, restart your phone by entering the command “abd reboot”.
The USB Debugging should be enabled after that, and you should be able to have access to your phone using your PC.