您的位置:首页 > 运维架构 > Linux

Android 的特有linux指令

2016-06-10 21:54 537 查看
1、am:指令

am start:开启activity

am startservice: 开启 Service.

am force-stop: force stop everything associated with .

am kill: Kill all processes associated with .

am kill-all: Kill all background processes.

am broadcast:发送广播

am instrument: start an Instrumentation.

示例:

am start -n com.android.hello/com.android.hello.MainActivity

am kill com.android.hello //只能杀死能杀死的进程

am force-stop com.android.hello //可以杀死全部进程

2、pm:包管理器

usage: pm list packages [-f] [-d] [-e] [-s] [-3] [-i] [-u] [FILTER]

pm list permission-groups

pm list permissions [-g] [-f] [-d] [-u] [GROUP]

pm list instrumentation [-f] [TARGET-PACKAGE]

pm list features

pm list libraries

pm path PACKAGE

pm install [-l] [-r] [-t] [-i INSTALLER_PACKAGE_NAME] [-s] [-f]

[–algo –key –iv
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  android linux kill