【问题标题】:How to use ADB to connect to smartwatch? Smartphone is connected with PC over WiFi while smartwatch is paired with the smartphone using Bluetooth?如何使用 ADB 连接智能手表?智能手机通过WiFi与PC连接,而智能手表通过蓝牙与智能手机配对?
【发布时间】:2018-12-21 19:46:21
【问题描述】:

我知道您可以通过 adb connect <IP>:<PORT> 单独连接。但是,我希望设置采用以下方式:

  • PC 到智能手机 => wifi
  • 智能手机到配对的智能手表 => 蓝牙

我不想直接使用 WiFi 连接到智能手表。

【问题讨论】:

    标签: android adb android-wifi


    【解决方案1】:

    找到了解决办法。以下是连接智能手机和智能手表的 shell 命令。

    adb connect <smartphone IP>:5555
    adb -s <smartphone IP>:5555 forward tcp:4444 localabstract:/adb-hub
    adb -s <smartphone IP>:5555 connect 127.0.0.1:4444
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多