惯用android shell命令记录

常用android shell命令记录1.ANDROID命令行HOST操作adb push C:\Users\Xiaopeng\Desktop\hosts /system/et

常用android shell命令记录
1.ANDROID命令行HOST操作
adb push C:\Users\Xiaopeng\Desktop\hosts /system/etc/hosts  导入


adb pull /system/etc/hosts e:/host.txt  导出


cat /system/etc/hosts 查看


2.命令行打印过滤TAG的LOG
adb logcat TaoApplication:W *:S >e:/m.txt  打出TAG为TaoApplication,waring级别以上的LOG
LOG ADB操作参考: http://blog.csdn.net/xyz_lmn/article/details/7004710


3.运行某个自动化用命
adb shell am instrument -w -e class com.taobao.taobao.test.DetailTest 


com.taobao.taobao.test/android.test.InstrumentationTestRunner >d:/detail.txt