Set adb vendor keys

前端 未结 7 1828
滥情空心
滥情空心 2020-12-05 02:01

EDIT: I figured out the problem, i think. ADB found out I wasn\'t on the latest updates (at&t released a stagefright udpate and i didnt know) so ADB didn\'t let me debug

7条回答
  •  醉话见心
    2020-12-05 02:38

    I tried almost anything but no help...

    Everytime was just this

    ➜  ~ adb devices    
    List of devices attached
    * daemon not running. starting it now on port 5037 *
    * daemon started successfully *
    aeef5e4e    unauthorized
    

    However I've managed to connect device!

    There is tutor, step by step.

    1. Remove existing adb keys on PC:

    $ rm -v .android/adbkey* .android/adbkey .android/adbkey.pub

    1. Remove existing authorized adb keys on device, path is /data/misc/adb/adb_keys

    2. Now create new adb keypair

    ➜ ~ adb keygen .android/adbkey adb I 47453 711886 adb_auth_host.cpp:220] generate_key '.android/adbkey' adb I 47453 711886 adb_auth_host.cpp:173] Writing public key to '.android/adbkey.pub'

    1. Manually copy from PC .android/adbkey.pub (pubkic key) to Device on path /data/misc/adb/adb_keys

    2. Reboot device and check adb devices :

    ➜ ~ adb devices List of devices attached aeef5e4e device

    Permissions of /data/misc/adb/adb_keys are (766/-rwxrw-rw-) on my device

提交回复
热议问题