java - 问一个关于adb shell kill的问题
伊谢尔伦
伊谢尔伦 2017-04-17 16:49:56
0
3
329

因为android无法使用grep 所以在adb shell中无法获取指定进程的pid
然后现在通过代码获取了 指定进程的pid号之后 该怎么去kill这个进程呢 假使需要获得pid的进程是com.example.cr pid是1234 (这个是在代码中实现的) 然后在写脚本的时候要怎么去调用这个pid去kill这个进程啊

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(3)
Peter_Zhu

Similar questions have been asked before,

adb shell gpreg processname

Can’t get the pid? What version system is yours?
Moreover, has your process obtained root privileges? Killing without root permissions is meaningless.

PHPzhong

adb shell kill -9 pid

Peter_Zhu

adb shell kill 1234?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!