cglacet
cglacet

Reputation: 10962

ADB devices stuck authorizing

I'm stuck in "authorizing" status on ADB. I can't bring the "USB debug authorization view" back. On the other hand my phone does says "USB debugging connected. Tap to turn off USB debugging".

❯ adb devices
List of devices attached
xxxxxxxx    authorizing

This used to work properly (for 2-3 years), I haven't changed my setup (same host, same physical device, same USB port, same cable). I updated OSX a few days ago so this may be related to this issue.

❯ adb --version
Android Debug Bridge version 1.0.41
Version 31.0.3-7562133

❯ sw_vers
ProductName:    macOS
ProductVersion: 11.6.1
BuildVersion:   20G224

The mobile device is a ONEPLUS A6013, running on android 11.

I've tried several things:

  1. unplug/replug the USB cable (changing cable/port)
  2. restart both my machine and mobile
  3. quit/join again the developper mode on my mobile
  4. revoking USB authorizations on my mobile
  5. removing private/public ADB keys on my laptop (I also tried completely recreating ~/.android)
  6. uninstalling/reinstalling all android build/platform tools (in android studio)
  7. updating one plus' Oxygen OS

None of these allowed me to show the prompt asking for the USB debug authorization on my phone.

EDIT

We've also tried connecting another phone to my laptop (it didn't work either). We tried connecting my phone to another laptop and it worked as expected (I also was able to check "always allow", then I successfully revoked this authorization). So it's definitively a problem on my laptop side.

I found something weird too, I have two ADB installed, one in ${ANDROID_HOME}/platform-tools/adb and another in /usr/local/bin/adb. I tried repeating all above tests using explicitly ${ANDROID_HOME}/platform-tools/adb, yielding the same results.

Upvotes: 5

Views: 6511

Answers (6)

Dinith
Dinith

Reputation: 1049

If you use a MAC, it can happen because of USB hub. Try to connect to direct to laptop.

Upvotes: 0

lesimoes
lesimoes

Reputation: 936

I did work, disable and enable USB debugging options on device, then disconnect and connect USB cable on device, after that should apper on mac and device a prompt to confirm connection.

Upvotes: 0

Musab Gulfam
Musab Gulfam

Reputation: 172

In my case, third party cables work just fine with MacBook. What worked for me is to allow the device on my MacBook.

System settings -> Allow accessories to connect

Switch the option to "Ask every time". Reconnect the device, a prompt will popup, click allow.

Upvotes: 0

Mulder
Mulder

Reputation: 153

Just came across this as I was having the same issue. In my case, I used a USB-C cable from a charger to connect and this was what was causing the device to get stuck in "authorizing" - I switched to a different cable and all is fine.

Upvotes: 1

Gustavo Brandan
Gustavo Brandan

Reputation: 11

Thank you for bringing this loop. The problem appears with hubs that are not officially made or approved by apple. With an official(very expensive) hub it's working as expected. I hope this helps. (mine is a satechi usb-c hub)

Upvotes: 1

Sunil Gupta
Sunil Gupta

Reputation: 832

One thing that worked for me was to change the USB hub I was connecting to on my MacBook M1. I had daisy chained two hubs and the device was connected to the second one.

So if your issue is with a USB hub, you can troubleshoot here as well.

Upvotes: 20

Related Questions