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:
~/.android
)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.
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.