Android allow USB debugging not showing

My Android Studio shows 'Allow USB debugging from your device', but my device does not show that dialog:

Android allow USB debugging not showing

I have tried the following, but nothing worked:

  1. Adb kill-server
  2. Adb start-server
  3. Kill adb process from Task Manager
  4. Restarted both the computer and the device
  5. Selected both MTP and PTP connections in my device's USB debugging settings.

Android allow USB debugging not showing

Joachim

2295 silver badges15 bronze badges

asked May 22, 2019 at 7:54

2

Can you Please Following Below step:

1) Go to Phone Setting > Developer options > Revoke USB debugging.

2) Turn off USB debugging and Restart Again.

It will work definitely, in my case it worked.

answered May 22, 2019 at 8:01

Android allow USB debugging not showing

3

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.

answered Mar 25, 2020 at 21:37

Android allow USB debugging not showing

JoachimJoachim

2295 silver badges15 bronze badges

1

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

answered Oct 23, 2021 at 15:56

ADFADF

611 silver badge1 bronze badge

2

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.

  • browse to the C:/Users//.android directory and delete adbkey and adbkey.pub
  • do adb kill-server
  • do adb devices
  • watch for an "Allow USB debugging" prompt in the headset

Source

answered Sep 26, 2020 at 21:28

JesusIniestaJesusIniesta

8,7081 gold badge29 silver badges23 bronze badges

1

Try this step:

  1. Tools > Connection Assistant (it will appear in the right side of the android studio once you click it)
  2. Click the Rescan USB devices
  3. Click the next buttons
  4. It should appear the device connected to your computer or try to restart ADB Server if device does not appears in the panel.

sample screenshot below

Android allow USB debugging not showing

Hope it helps to fix your problem

answered May 22, 2019 at 10:42

Android allow USB debugging not showing

No NameNo Name

4721 gold badge6 silver badges19 bronze badges

For anyone who is interested, here is how I authorized my PC without the Dialog showing for unkown reseaons (requires device to be rooted):

  1. Go to C:\Users.android\adbkey.pub
  2. Copy the file to any location in your phone using USB cable.
  3. Using Root Explorer, move the adbkey.pub onto this location: /data/misc/adb/
  4. rename it from adbkey.pub to adb_keys and allow read and write permissions
  5. Reboot the device.

Now, your devices will be authorized as if you clicked the Authorize button on the Dialog.

answered Apr 23, 2021 at 21:40

You have to update the driver on your system with respect to attached device

In window system

  • Go to manage by right click on My computer
  • System tool then Device manager
  • Check your device here
  • Right click on device and Update Driver software

answered May 22, 2019 at 13:10

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)

answered Jul 12 at 21:05

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.

answered Oct 4, 2021 at 14:00

Why is USB debugging grayed out?

Try selecting the default mode as Internet connection. Go to Settings -> Connectivity -> Default Mode -> Internet Connection. Now enable the USB Debugging mode under Applications -> Development -> USB Debugging.

Can ADB enable USB debugging?

To use adb with a device connected over USB, you must enable USB debugging in the device system settings, under Developer options. To use adb with a device connected over Wi-Fi, see Connect to a device over Wi-Fi. On Android 4.2 and higher, the Developer options screen is hidden by default.

Is USB debugging enabled by default?

On modern Android devices, you'll find USB Debugging in the Developer Options menu, which is hidden by default. To unlock it, head to Settings and scroll down to About phone. Scroll down again on the next menu, and you'll see a Build number entry at the bottom.