# Kill myphoneexplorer process on SP
adb shell "am force-stop com.fjsoft.myphoneexplorer.client"
sleep 2
# Kill com.android.commands.monkey process on SP
adb shell "run-as com.android.commands.monkey"
adb shell "ps | grep com.android.commands.monkey"
for item in $(adb shell "ps | grep com.android.commands.monkey"); do
if test "$item" != ""
then
arr+=($item)
echo ${arr[1]}
adb shell "kill -9 ${arr[1]}"
fi
done
sleep 2
sleep 10
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句