使用wifi连接adb shell
2015-06-24 15:50
495 查看
本人需要wifi连接,具体如下:
1. 手机端开启adb tcp连接端口
:/$setprop service.adb.tcp.port 5555
:/$stop adbd
:/$start adbd
或者通过杀死adbd进程来重启,
$ps | grep adbd
$kill -9 进程id
其中setprop是用来设置系统属性的,这里不需要root权限,su即可。可通过adb shell设置,亦可通过手机上安装的Android terminal设置。
2. 电脑端的设置和使用
连接adb,其中phone_ipaddress和portnumber是指手机的ip和前面设置的监听端口号(如5555)
adb connect phone_ipaddress:portnumber
直接adb shell或adb -s 设备shell连接设备
如若要断开则如下:
adb disconnect phone_ipaddress:port
adb shell下查看wifi ip地址
$ netcfg
reference:http://www.cnblogs.com/rainduck/p/3577181.html
1. 手机端开启adb tcp连接端口
:/$setprop service.adb.tcp.port 5555
:/$stop adbd
:/$start adbd
或者通过杀死adbd进程来重启,
$ps | grep adbd
$kill -9 进程id
其中setprop是用来设置系统属性的,这里不需要root权限,su即可。可通过adb shell设置,亦可通过手机上安装的Android terminal设置。
2. 电脑端的设置和使用
连接adb,其中phone_ipaddress和portnumber是指手机的ip和前面设置的监听端口号(如5555)
adb connect phone_ipaddress:portnumber
直接adb shell或adb -s 设备shell连接设备
如若要断开则如下:
adb disconnect phone_ipaddress:port
adb shell下查看wifi ip地址
$ netcfg
reference:http://www.cnblogs.com/rainduck/p/3577181.html
相关文章推荐
- shell脚本中的数学运算
- wdcp的环境搭建shell脚本分析--lanmp.sh
- shell 备忘录
- mongDB学习分享1
- Length of string in bash
- 详解Linux bash中的变量
- [linux]shell 快捷键
- 如何在 Bash 中删除“除某些文件外的所有文件”?
- shell脚本中一些常见的特殊符号
- Shell编程中if的语法和常见判断用法
- shell学习二十五天----神器的管道符
- Xshell无法连接Ubuntu的解决办法
- linux shell sleep/wait(转载)
- Linux shell的&&和||
- shell中遍历目录
- Bash/KSH/SH Shell: Find The Length Of a String On a UNIX, Linux, BSD, and OS X
- Linux下常用的shell命令记录
- acl权限控制详解
- wdcp的环境搭建shell脚本分析--lanmp.sh---lib/apache.sh
- Shell常用命令整理