adb相关

 

查看设备

adb devices

 

杀应用

adb shell am force-stop com.tf1379.starliveapp

安装
adb install

卸载
adb uninstall com.tf1379.starliveapp

输出ip
adb shell ip route > d://addrs.txt




---------------------------------------------
adb logcat |find "nafio" >c:/logcat.txt




另外也可以进入adb shell中打印
adb shell
logcat |grep nafio




cmd编码设置


默认是gbk,修改utf8方法
chcp 65001
然后属性中字体改为Lucida Console


默认gbk是 chcp 936






使用logcat输出命令后,可以使用ctrl+c退出
---------------------------------------------
adb查看端口暂用


手机连接问题
adb start-server如果不成功,就查下端口


netstat -ano|findstr "5037"


任务管理器中干掉PID为5037的的进程
---------------------------------------------


eclipse中使用logcat乱码可以通过修改设置解决,依次打开“windows>preferences>android>logCat>”,将字体修改为“新宋体”,设置完成后重启eclipse。

posted @ 2015-12-10 14:02  00000000O  阅读(97)  评论(0编辑  收藏  举报