Android 4.2.2 adb can't find devices

后端 未结 14 2182
天涯浪人
天涯浪人 2021-02-05 08:01

With the new update to 4.2.2 to my Galaxy Nexus and Nexus 7, I can\'t find both my devices under adb.

These are the steps I took:

  • Updated to 4
14条回答
  •  耶瑟儿~
    2021-02-05 08:35

    From the adb docs

    When you connect a device running Android 4.2.2 or higher to your computer, the system shows a dialog asking whether to accept an RSA key that allows debugging through this computer. This security mechanism protects user devices because it ensures that USB debugging and other adb commands cannot be executed unless you're able to unlock the device and acknowledge the dialog. This requires that you have adb version 1.0.31 (available with SDK Platform-tools r16.0.1 and higher) in order to debug on a device running Android 4.2.2 or higher

    So, unplug, wait, replug in the cable, and hit ok (on modal dialog that appears on your device)

    If you hit cancel, the device will show up as offline via adb devices

提交回复
热议问题