如何杀死从“亚行壳'本土applciations? [英] How to kill native applciations from 'adb shell'?
本文介绍了如何杀死从“亚行壳'本土applciations?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我能够开始使用本机应用程序上午开始-a -n行动包名/活动
。我怎么能杀/停止亚行外壳本机应用程序
?
I am able to start native applications using am start -a action -n packagename/activity
. How can I kill/stop a native application from adb shell
?
推荐答案
奇拉格删除了,所以在这里要再次重申:
Chirag deleted it, so here it is again:
adb shell ps | grep com.myapp | awk '{print $2}' | xargs adb shell kill
这是要在仿真器之外运行。这是一个长的Unix命令,用目视间隔不四个命令。 |
是语法,由您(Ubuntu的)外壳,PTED除$ P $然后管道从亚洲开发银行中,grep等的输出,进入下一个。只有 PS
在模拟器中被执行。
This is to be run outside of the emulator. It is one long Unix command, not four commands with a visual separation. |
is syntax, interpreted by your (Ubuntu's) shell, which then pipes the output from adb, grep, etc., into the next. Only ps
is executed in the emulator.
这篇关于如何杀死从“亚行壳'本土applciations?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文