adb shell

adb shell用adb.exe打开

adb.exe在Android SDK的文件目录下路径为:android-sdk_r20-windowsandroid-sdk-windowsplatform-tools

windows系统下用cmd打开该目录之后输入:“adb shell” 进入$ 状态

之后可以选择性启动 activity service broadcast

启动Activity:

$ am start -n {manifest.xml的包名}/{具体的文件类包名}.{活动(activity)名称}

启动service:

$ am startservice -n {manifest.xml的包名}/{具体的文件类包名}.{服务(service)名称}  (注,花括号不算入编辑内容)

启动broadcast:

am broadcast -a 广播名

Stay hungry, Stay foolish, Life is always tough, Be brave!
原文地址:https://www.cnblogs.com/kinyoung/p/3995097.html