Please check the confirmation dialog on your devic

2020-03-10 09:56发布

问题:

I am trying to connect adb device and it showing "Please check the confirmation dialog on your device" ..but there is no adb confirmation(rssi) dialog.

Same adb setup for other device. I checked with https://stackoverflow.com/a/23086501/2624806 and some other post as well. But it's not working for me.

Any suggestion!

回答1:

This usually happens when you miss accepting the RSA Key Notification at first.
Best would be to reset the setting.

Do as follows:

  1. Switch OFF Developer's option.

  2. Under Developer Setting, Tap on Revoke USB Authorization

  3. Switch ON Developer's option

  4. Enable USB Debugging, and you would see RSA Key Notification on device

    You should immediately see the above notifiaction.

  5. Select Always allow from this computer and Ok.
    To avoid further denial.

The link mentioned in your question should also work.
Might be some issue.

Update:
This might also be an Issue with your adb binary version.
Check adb version using:

$ adb version
Android Debug Bridge version 1.0.31

If you are using an older version please update.



回答2:

For me, selecting the Revoke USB debugging authorizations would crash the entire Settings app. Here's a simple method that worked for me (I had root access to the device):

The method is to simply copy your machine's adbkey.pub from the ~/.android/ directory, and put it into the Android device's sdcard (using Web or MTP) named as adb_keys, then copy the file into the correct path:

# On the problematic device
cp /sdcard/adbkey.pub /data/misc/adb/adb_keys

(Note: there's a similar answer on SO that goes into further details for this method.)

I have explained a bit more about this here, if anyone's interested.