我正在运行新安装的Debian 7.0 Wheezy 64位。我在本教程http://bernaerts.dyndns.org/linux/280-debian-wheezy-android-tools-adb-fastboot-qtadb
之后使用Debian构建工具向后移植了adb我对ADB有以下问题。它确实启动,但它不是创建TCPIP套接字,而是在/ tmp中使用端口名创建文件套接字。我尝试从root开始使用adb服务器但同样的问题。这是shel输出,例如
hydrogen ~ # adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
hydrogen ~ # adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
** daemon still not running
error: cannot connect to daemon
hydrogen ~ # netstat -a | grep 5037
unix 2 [ ACC ] STREAM LISTENING 30187 /tmp/5037
unix 2 [ ACC ] STREAM LISTENING 28409 /tmp/5037
hydrogen ~ # lsof -la /tmp/5037
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
adb 7531 0 6u unix 0xffff8800bcb0e5c0 0t0 30187 /tmp/5037
adb 7535 0 5u unix 0xffff8801106efc00 0t0 28409 /tmp/5037
我可以搜索此问题的任何提示吗?
答案 0 :(得分:0)
是的,
the Debian bug report中建议的最后一个补丁解决了这个问题。
hydrogen android # adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
hydrogen android # adb devices
List of devices attached
hydrogen android # netstat -a | grep adb
hydrogen android # netstat -a | grep 5037
unix 2 [ ACC ] STREAM LISTENING 483635 /tmp/5037
对不起噪音。问题解决了。
答案 1 :(得分:0)
您可以使用socat
创建TCP套接字,以将连接重定向到unix套接字:
socat TCP-LISTEN:5037,reuseaddr,fork UNIX-CONNECT:/tmp/5037
)