5

I have a Nexus S running Cyanogen 10.1.2 (Android 4.2.2).

I require adb authorization, but I accidentally "permanently" authorized a device. How do I remove the "permanent" authorization, so that every time it asks me again?

3 Answers 3

7
+50

If your device is rooted, as it probably is with CM, you can also do this via adb:

adb shell rm /data/misc/adb/adb_keys

Depending on your build you probably have to run adb as root(1) or call the su binary(2).

(1) adb root or adb kill-server; sudo $(which adb) start-server --> adb shell rm /data/misc/adb/adb_keys

(2)adb shell --> su --> rm /data/misc/adb/adb_keys

Or delete this file with a root explorer. If you authorized more than one device open this file and remove the public key of the desired device only.

3

Go to Settings -> Developer options and under the "Debugging" section tap on the Revoke USB debugging authorizations option. Keep in mind that it will remove all of the devices you're authorized, and you'll need to re-authorize them again.

5
  • It's not there... maybe that's another Android version?
    – o0'.
    Oct 3, 2013 at 16:25
  • @Lohoris What is not there? The Developer options?
    – geffchang
    Oct 3, 2013 at 23:29
  • 5
    Oh, sorry. The Developer options are there, and there is the Debugging section. However yhere's no "Revoke USB debugging authorizations", nor anything resembling anything like that in any section of the developer options.
    – o0'.
    Oct 4, 2013 at 7:34
  • 1
    @Chahk, indeed, there's no "Revoke USB debugging authorizations" option under "Debugging" section. What else could be done? Feb 4, 2014 at 10:33
  • The "Revoke USB debugging authorizations" option is present on my Nexus 5 running Lollipop (it may be a new option in Lollipop that was not present in previous versions).
    – bmdixon
    Nov 27, 2014 at 15:38
0

I found it. Eventually, I checked my system variable for ANDROID_SDK and it was wrong (changed with the last update of Android Studio).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .