打开

am start -n <软件包名>/<软件类名>;

关闭

am force-stop <软件包名>;

例如:

打开小米自带的Carwith,使用指令(需要Root权限):

am start -n com.miui.carlink/com.carwith.launcher.settings.phone.UCarScreenSettingsActivity;

关闭Carwith,使用指令(需要Root权限):

am force-stop com.miui.carlink;

其他的软件,以此类推。若是系统自带的服务需要Root权限;若是第三方软件大部分不需要,小部分需要

By admin

发表回复