Android 的特有linux指令

来源:互联网 发布:php一天的时间戳计算 编辑:程序博客网 时间:2024/06/06 04:00

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

0 0