Can't connect Nexus 4 to adb: unauthorized

后端 未结 26 1651
你的背包
你的背包 2020-12-02 07:44

I have a Nexus 4 with Android 4.3 and I am trying to connect the device to a computer with Windows 7 64bit.

I installed the latest drivers and the latest adb

26条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 07:55

    I think it has an error when the device tries to display the screen asking for permission, so it does not appear.

    This works for me (commands are given in the adb shell):

    1. rm /data/misc/adb/adb_keys;
    2. I sent the public key (adbkey.pub in ~/.android/) from my computer to my device via email;
    3. Invoke stop adbd;
    4. cat adbkey.pub >> /data/misc/adb/adb_keys (authorize myself);
    5. start adbd (restart adb with new keys).

提交回复
热议问题