3

I need help with USB Debugging...

I've been trying to allow my computer to debug my phone for ages. It has been frustrating. I have installed all required drivers. My device is detected through adb devices but it is unauthorized. No matter how much i try, the authorization dialog on my android is not showing up.

If you want to tell me to go to do something to the root files, i can't. My phone is still original, and unrooted. Yes, i have changed to PTP. I also have installed the latest sdk platform tools from SDK Manager. I use windows, and using adb with cmd.

Please help!

3
  • Did you enable USB debugging in the developer settings on the phone?
    – CherryDT
    Commented May 17, 2016 at 15:05
  • i have changed to PTP. Try changing to MTP.
    – user6339740
    Commented May 17, 2016 at 16:20
  • I have tried both modes. And, of course I have enabled the USB Debugging setting...
    – Aliffan
    Commented May 19, 2016 at 9:24

2 Answers 2

5

I had the same Problem.
I solved it by manually copying my adbkey.pub (from ~/.android/) to the phone at /data/misc/adb/ and name it adb_keys. I placed the file via mtp on the internal sdcard and moved and renamed it in place with a filebrowser on the phone. Obviously you need a rooted phone to do that....

In short:
copy from your computer ~/.android/adbkey.pub to the phone as /data/misc/adb/adb_keys

2
  • Hi, I cannot see "~/.android" folder in my PC, for me "Allow USB Debugging" option is not showing up when mobile connected to PC.Please help me on this.
    – Naveen
    Commented Nov 4, 2019 at 6:01
  • Thank god this saved my life. I didn't have to flash another ROM. Commented Sep 5, 2020 at 16:06
-1

I had the same issue and tried everything from deleting the whole ~/.android folder to all possibles adb's terminal commands. The only solution was completely uninstalling Android Studio and Android SDK using these steps: How to completely uninstall Android Studio?

After that, I installed the latest version of Android Studio and everything worked normally. The authorization dialog appeared and the device was recognized. With me the issue happened after upgrading my MacOS to High Sierra.

Not the answer you're looking for? Browse other questions tagged or ask your own question.