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!

Aliffan
  • 49
  • 1
  • 1
  • 5

2 Answers2

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

taras
  • 6,566
  • 10
  • 39
  • 50
wombalton
  • 143
  • 2
  • 6
  • 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 Nov 04 '19 at 06:01
  • Thank god this saved my life. I didn't have to flash another ROM. – Alif Hasnain Sep 05 '20 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.

Arildo Junior
  • 796
  • 1
  • 8
  • 15