我正在使用猴子在Android设备上进行测量。我启动了一系列应用程序,一定时间后我应该杀死一个应用程序。可以在不解锁智能手机上的根本权限的情况下执行此操作吗?
我尝试了几个命令,包括:
adb shell am force-stop com.samsung.android.calendar
adb shell am kill com.samsung.android.calendar
不幸的是,这些命令无法正常工作,或者它们当场工作,但是几秒钟后,猴子重新启动了应用程序。
我发现其他命令需要您解锁智能手机上的根本权限,我应该避免使用。
I am using Monkey to take measurements on an Android device. I launch a series of applications and after a certain amount of time I should kill one. Is it possible to do this without unlocking the root permissions on the smartphone?
I've tried several commands, including:
adb shell am force-stop com.samsung.android.calendar
adb shell am kill com.samsung.android.calendar
Unfortunately these commands don't work or maybe they work on the spot, but after a few seconds Monkey relaunches the application.
I found other commands that however require you to unlock the root permissions on the smartphone, which I should avoid.
发布评论