杀死后台adb进程

来源:互联网 发布:淘宝店开店流程手机版 编辑:程序博客网 时间:2024/05/16 08:11

在shell中使用&将当前测试项放到后台执行

adb -s 123456 shell am instrument -w -r -e debug false -e class com.abc.Coexistence#testcase1 com.abc.test/android.support.test.runner.AndroidJUnitRunner&

执行ps命令:


 PID TTY          TIME CMD
 4917 pts/5    00:00:00 bash
 4966 pts/5    00:00:00 adb
 4967 pts/5    00:00:00 ps

杀死后台所有adb的进程项

killall -p adb 

killall -9 adb

0 0
原创粉丝点击