Reputation: 869
My Android Studio shows 'Allow USB debugging from your device', but my device does not show that dialog:
I have tried the following, but nothing worked:
Upvotes: 20
Views: 97246
Reputation: 1
I tried this for my HONOR magic 6 pro and it worked:
.\adb kill-server
.\adb start-server
.\adb devices
and that is it
Upvotes: 0
Reputation: 21
I might have had a different problem to everyone else, but in my case, I had some stale public/private keys for USB debugging. The fix was to:
C:\Users\myUserName\.android
(if you're using Windows)adbkey
and adbkey.pub
filesAfter I plugged in the Link cable, the familiar Windows USB chime sounded (which wasn't working at all before) — and I got the "Allow USB Debugging" notification on the headset.
Upvotes: 2
Reputation: 549
I tried everything else listed here (as of this post datetime), and the trick I used to finally get it to show up on a Samsung Note 9 was to:
Upvotes: 0
Reputation: 309
Try turning your USB-C cable around.
I met this problem using a Sony Xperia XZ2 Compact with a slightly noname USB-A to USB-C cable. None of the other options helped, but as soon as I turned around my cable it worked each time. Still have to find out which is the erroneous one (phone connector or cable).
Upvotes: 2
Reputation: 61
I just solved this problem on my Samsung by going into developer options>debugging and selecting "Revoke USB debugging authorizations. After this I reconnected my phone to my PC and the dialog finally appeared.
Upvotes: 6
Reputation: 2561
If anyone comes across this. Resolved using factor reset, none of the other solutions worked for me.
Upvotes: 0
Reputation: 113
On my Zebra device (Android 7.1.2) I had to change "Select USB Configuration" which is under "Networking" in the "Developer Options" from MTP (Media Transfer Protocol) to Charging for the dialog to show.
Upvotes: 0
Reputation: 29
for me it was vice versa. "from Charging to MTP(Media Transfer Protocol) for the dialog to show" but from MTP to charging (i prefer charging in general)
Upvotes: 1
Reputation: 221
In my case I have to set the "Select USB Configuration" which is under "Networking" in the "Developer Options" from Charging to MTP(Media Transfer Protocol) for the dialog to show
Upvotes: 22
Reputation: 62
I ran into this issue with my phone Android 11 after I rooted it. I resolved the issue by disabling and then re-enabling Developer options
Disable Developer options in the Developer options menu.
Upvotes: -1
Reputation: 37
For anyone who is interested, here is how I authorized my PC without the Dialog showing for unkown reseaons (requires device to be rooted):
Now, your devices will be authorized as if you clicked the Authorize button on the Dialog.
Upvotes: 1
Reputation: 12519
This is what solved my problem, appears that the public key might have been missing from my computer, causing the issue. Removing the private key solved the issue.
Upvotes: 5
Reputation: 299
A different, hardware-oriented approach:
Are you sure the cable you're using does allow for data transfer?
Some cheaper cables - usually sold with chargers - don't allow for anything else than charging.
Try another cable, and see if that works.
Upvotes: 18
Reputation: 1
You have to update the driver on your system with respect to attached device
In window system
Upvotes: 0
Reputation: 470
Try this step:
sample screenshot below
Hope it helps to fix your problem
Upvotes: 2