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