failed to authenticate to | adb wifi

前端 未结 3 944
情话喂你
情话喂你 2021-02-04 00:57

When connecting a device with ADB Wireless, got failed to authenticate to

adb devices gives the device shows up as unauthorized.

3条回答
  •  情歌与酒
    2021-02-04 01:07

    Solution

    1 Connect device(over USB) to computer (WINDOWS).

    2 Authorize adb device, so it can communicate(handshake over USB) with computer

    3 Check that the device is connected

    $adb devices
    
    List of devices attached
    
    SC8SDQWGKBT4JVS4        device
    

    4 Change to tcpip mode

    $adb tcpip 5555
    
    restarting in TCP mode port: 5555
    

    5 Connect device(over WIFI) to computer, make sure both are on the same network

    $adb connect 192.168.1.100
    
    connected to 192.168.1.100:5555
    

    6 Authorize adb device, so it can communicate(handshake over WIFI) with computer

    7 Check that the device is connected

    $adb devices
    
    List of devices attached
    
    SC8SDQWGKBT4JVS4        device
    
    192.168.1.100:5555      unauthorized
    

    Although I authorized the device, adb is seeing things differently.

    To get things working correctly, unplug device from USB because there is a connection over WIFI.

    8 Kill the adb server

    $adb kill-server
    

    9 Connect again over WIFI

    $adb connect 192.168.1.100
    
    * daemon not running. starting it now on port 5037 *
    
    * daemon started successfully *
    
    connected to 192.168.1.100:5555
    

    10 Finally, Check that the device is connect

    $adb devices
    
    List of devices attached
    
    192.168.1.100:5555      device
    

    Device is now authorized, you can start debugging over WIFI.

提交回复
热议问题