码迷,mamicode.com
首页 > 其他好文 > 详细

远程调试

时间:2015-08-03 19:14:03      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:

1、adb shell netcfg
guoqifa@guoqifa:~$ adb shell netcfg
wlan0    UP                               172.29.107.21/21  0x00001043 00:08:22:7e:a1:fe
tunl0    DOWN                                   0.0.0.0/0   0x00000080 00:00:00:00:00:00
sit0     DOWN                                   0.0.0.0/0   0x00000080 00:00:00:00:00:00
p2p0     UP                                     0.0.0.0/0   0x00001003 02:08:22:7e:a1:fe
ifb1     DOWN                                   0.0.0.0/0   0x00000082 a6:66:ac:ac:06:05
ifb0     DOWN                                   0.0.0.0/0   0x00000082 1e:1a:54:6c:0c:6c
lo       UP                                   127.0.0.1/8   0x00000049 00:00:00:00:00:00
ccmni1   DOWN                                   0.0.0.0/0   0x00000080 56:8e:59:12:7a:02
ccmni0   DOWN                                   0.0.0.0/0   0x00000080 f2:19:3e:86:d5:6e
ccmni2   DOWN                                   0.0.0.0/0   0x00000080 7e:33:e6:f8:16:f1
ip6tnl0  DOWN                                   0.0.0.0/0   0x00000080 00:00:00:00:00:00
2、adb tcpip num,指定一个端口号,端口号随意指定
guoqifa@guoqifa:~$ adb tcpip 5555
guoqifa@guoqifa:~$ adb tcpip 5555
restarting in TCP mode port: 5555
3、adb connect pid:num,远程连接
guoqifa@guoqifa:~$ adb connect 172.29.107.21:5555
connected to 172.29.107.21:5555
4、adb devices,查看连接成功
guoqifa@guoqifa:~$ adb devices
List of devices attached 
0123456789ABCDEF device
172.29.107.21:5555 device
5、可以愉快的远程使用adb命令了,比如adb logcat等

版权声明:本文为博主原创文章,未经博主允许不得转载。

远程调试

标签:

原文地址:http://blog.csdn.net/guoqifa29/article/details/47258551

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!