000 - 準備工做ADB wifi鏈接多臺鴻蒙設備進行調試

  • 首先將兩臺鴻蒙設備插入電腦的usb上git

  • 查看兩臺鴻蒙設備的deviceidgithub

    C:\Users\Administrator>adb devices
    * daemon not running; starting now at tcp:5037
    * daemon started successfully
    List of devices attached
    FRU6R2011500QWER        unauthorized
    MVT5T1970300ABCD        unauthorized
     
  • 切換成wifi調試,將如下命令依次輸入bash

    adb -s MVT5T1970300ABCD tcpip 55555
    restarting in TCP mode port: 55555
    adb -s FRU6R2011500QWER tcpip 55556
    restarting in TCP mode port: 55556
     
  • 依次進入每臺鴻蒙設備看一下上面的ip地址tcp

  • 依次鏈接兩臺鴻蒙設備工具

    C:\Users\Administrator>adb connect 192.168.0.10:55555
    connected to 192.168.0.10:55555
    C:\Users\Administrator>adb connect 192.168.0.20:55556
    connected to 192.168.0.20:55556
    
    #試錯,看看重複連會怎麼樣
    C:\Users\Administrator>adb connect 192.168.0.10:55555
    already connected to 192.168.0.10:55555
     
  • 使用scrcpy 鏈接一臺鴻蒙設備開發工具

    C:\Users\Administrator>scrcpy -s 192.168.0.10:55555
    INFO: scrcpy 1.17 <https://github.com/Genymobile/scrcpy>
    C:\ProgramData\chocolatey\lib\scrcpy\tools\scrcpy-server: 1 file pushed, 0 skipped. 1.0 MB/s (34930 bytes in 0.034s)
    [server] INFO: Device: HUAWEI TAS-AL00 (Android 10)
    INFO: Renderer: direct3d
    INFO: Initial texture: 1080x2336
     

000 - 準備工做ADB wifi鏈接多臺鴻蒙設備進行調試

  • 使用鴻蒙專用deveco開發工具鏈接:運行

000 - 準備工做ADB wifi鏈接多臺鴻蒙設備進行調試

使用鴻蒙專用deveco開發工具鏈接:調試人工智能

000 - 準備工做ADB wifi鏈接多臺鴻蒙設備進行調試

  • 結論:鴻蒙系統兼容adb wifi調試,對於想不要約束的開發者,可使用.

做者:人工智能姬url

想了解更多內容,請訪問51CTO和華爲合做共建的鴻蒙社區:https://harmonyos.51cto.comspa

相關文章
相關標籤/搜索