Android ADB stop application command like “force-stop” for non rooted device

后端 未结 4 1690
Happy的楠姐
Happy的楠姐 2020-11-27 10:52

I\'m trying to stop application on Android 2.3.7 device. But in this version of Android I can\'t use \"force-stop\" command. Do you know any other ways to close application

4条回答
  •  自闭症患者
    2020-11-27 11:38

    If you want to kill the Sticky Service,the following command NOT WORKING:

    adb shell am force-stop 
    adb shell kill 
    

    The following command is WORKING:

    adb shell pm disable 
    

    If you want to restart the app,you must run command below first:

    adb shell pm enable 
    

提交回复
热议问题