如何写一个脚本来杀掉某个应用
#!/system/bin/sh
pstest=`ps | grep -A com.test.demo`
echo $pskuwo
if [ -z "$pstest" ]
then
echo "test not find"
else
field=2
while true
do
pid=`ps | grep -A com.test.demo | busybox cut -d " " -f $field`
if [ -z $pid ]
then
field=$(($field+1))
else
break
fi
done
kill -9 $pid
echo pid = $pid
echo "kill com.test.demo"
fi