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?
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It only takes a minute to sign up.
Sign up to join this communityIf 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.
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.
I found it. Eventually, I checked my system variable for ANDROID_SDK
and it was wrong (changed with the last update of Android Studio).