Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
255 views
in Technique[技术] by (71.8m points)

debugging - Android (specifically Nexus 7 2012) adb unauthorized no RSA popup

I had a fully working USB debugging between my Windows 10 PC and my Nexus 7. However after a cleanup of my drives I somehow managed to mess it up. (Presumably I deleted the .android folder containing the RSA keys) I should still be able to reset the keys and get the RSA popup just like in the case of a new computer. However I get no popup and I have tried nearly everything.

The PC:

  • Windows 10 64 bit
  • adb version 1.0.32 (latest)
  • Latest Google usb drivers

The tablet:

  • Nexus 7 2012 wifi edition (grouper)
  • Stock 5.1.1 (Lollipop)

Things I've tried:

  • Delete RSA keys in Users/username/.android
  • Update USB drivers (they were up to date)
  • Update ADB
  • Revoking USB authorization
  • Switching USB debugging on and off multiple times
  • Checking MTP/PTP/none in the USB storage options

Ever since no RSA popup has appeared and adb devices -l is obviously listing the tablet as "unauthorized"

Is there a possible fix to this behaviour or is Windows just confused and needs a reset? Is it likely that an OS reinstall would solve the issue?

EDIT: Ended up reinstalling Windows and it is working properly. Probably somewhere drivers may have got messed up.

Thanks in advance.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

There could be multiple .android locations in your system - make sure to delete the right one (or all of them)

from http://ktnr74.blogspot.com/2014/11/adb-device-detection-in-windows.html :

if ANDROID_SDK_HOME is set, adb will use %ANDROID_SDK_HOME%.android instead


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...