adb-idea icon indicating copy to clipboard operation
adb-idea copied to clipboard

Feature request: "adb kill" command

Open DarkMinstrel opened this issue 9 years ago • 2 comments

Current "ADB kill app" actually performs "am force-stop" command, instead of expected "am kill" one. It would be great to support both commands.

DarkMinstrel avatar Apr 28 '16 09:04 DarkMinstrel

Hi, Can someone please tell if am kill <package-name> has to be added to KillCommand class to run along with am force-stop <package-name>.

nsaiisasidhar avatar Dec 11 '17 05:12 nsaiisasidhar

We would use one or the other. I would still use force-stop when we restart an app but I would use kill to actually kill it and test that the app can be recreated after being killed.

KillCommand would be the right place to put it though. Ideally it would work the same way as the built-in button in android studio, which uses this: http://grepcode.com/file/repo1.maven.org/maven2/com.github.adedayo.intellij.sdk/android/142.1/com/android/tools/idea/ddms/actions/TerminateVMAction.java#TerminateVMAction

pbreault avatar Dec 12 '17 14:12 pbreault