Stopping an Android app from console

前端 未结 11 723
情书的邮戳
情书的邮戳 2020-11-27 09:30

Is it possible to stop an Android app from the console? Something like:

adb stop com.my.app.package

It would speed up our testing process s

11条回答
  •  我在风中等你
    2020-11-27 09:44

    The clean way of stopping the app is:

    adb shell am force-stop com.my.app.package
    

    This way you don't have to figure out the process ID.

提交回复
热议问题