如何使用ADB连接到SmartWatch?智能手机通过WiFi与PC连接,而智能手表通过蓝牙与智能手机配对吗?

时间:2018-12-21 19:46:21

标签: android adb android-wifi

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

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

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

1 个答案:

答案 0 :(得分:0)

找到了解决方案。这是可同时连接到智能手机和智能手表的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
相关问题