adb断开< ip地址&gt ;,由两个用户使用的相同服务器上的相同设备断开连接 [英] adb disconnect <ip-address >,disconnected the same device on the same server using by two user

查看:393
本文介绍了adb断开< ip地址&gt ;,由两个用户使用的相同服务器上的相同设备断开连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

两个用户通过腻子连接了相同的android设备。

Two user connected same android device through putty.

看到adb设备后,可以看到设备已连接到两个腻子用户。

After seen adb devices can seen device is connected to both the putty users.

在同一服务器上,一个用户通过腻子执行 adb断开< ip-address> 也会断开另一用户的腻子设备。

Doing adb disconnect <ip-address> by one user on the same server by putty is disconnecting the other user putty devices too.

示例:


  1. 用户都是通过linux服务器爸爸连接的。

  2. 同时打开用户的腻子并通过相同的ip地址连接android设备。

  3. 现在,如果一个用户通过命令断开android设备的连接adb断开< ip-address> ,另一个用户也断开了连接。

  4. 运行 adb设备,可以

  1. Both the user connected through linux server daddy.
  2. Open putty both the user and connect the android device through ip address which is same.
  3. Now if one user disconnect the android device by command adb disconnect <ip-address>, another user too disconnected.
  4. run adb devices,can't see any device connected through both the user.


推荐答案

如果不同的用户拥有不同的用户在Android设备(不同的客户端)上,您可以使不同的用户在不同的端口启动其adb服务器,以监听connectio ns。然后,不同的用户可以控制他们的客户端而不会互相干扰。

If different users have their different Android devices (different clients), you can make different user start their adb server in different ports to listen the connections. Then different users can control their clients without interfere with each others.

$ adb -P 5038 start-server
$ adb -P 5038 connect 192.168.1.100:7777
$ adb -P 5038 disconnect

如果服务器中的不同用户连接到同一设备(客户端),因此无法让不同用户同时控制该设备。原因是,使用命令 adb tcpip 7777 启动设备时,只能允许设备上的adb守护程序监听一个端口。

If different users in your server connect to the same device (client), there is no way to let different users to control the device at the same time. The reason is the adb daemon on the device can only be allowed listen to one port when you start it with command adb tcpip 7777.

这篇关于adb断开&lt; ip地址&gt ;,由两个用户使用的相同服务器上的相同设备断开连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆