二、启动service: $ adb shell $ am startservice -n{包名}/{包名}.{服务名称} 如:启动一个名叫MyService的服务 # am startservice -n com.example.test/com.example.test.MyService 三、发送broadcast: $ adb shell $am broadcast -a <action> am broadcast 后面的参数有: [-a <ACTION>] [-d <DAT...
adb shell am activity/service/broadcast -a ACTION -c CATEGORY -n NAME 1. 启动activity/service 在adb shell中,通过am命令行启动一个Activity程序: 从superuser源代码中摘录一段使用示例: am start -a android.intent.action.MAIN -n com.koushikdutta.superuser/com.koushikdutta.superuser.SuperuserRequestActi...
adb shell am start[options]<intent> 例如: 代码语言:javascript 代码运行次数:0 运行 AI代码解释 adb shell am start-a android.settings.SETTINGS# 打开系统设置页面 adb shell am start-a android.intent.action.DIAL-d tel:10086# 打开拨号页面 options 是一些改变其行为的选项,支持的可选参数及含义如下: -...
adb shell dumpsys window displays #显示屏参数 adb shell service list #查看后台services信息 adb shell settings put global adb_enabled0#关闭USB调试模式 adb shell uiautomator dump #获取当前界面的控件信息 adb shell ime list-s #设备上的输入法 3).进程 代码语言:javascript 代码运行次数:0 运行 AI代码...
adb shell am start -a android.intent.action.VIEW http://www.qq.com/##浏览器打开指定网址 start 相关说明:https://blog.csdn.net/yegshun/article/details/80982404 5-1-2.adb shell am startservice adb shell am startservice [options] <INTENT> ...
adb shell am startservice –n com.vincent.julie/.service.JulieService 40、adb命令向所有的app发送广播:adb shell am broadcast [options] 栗子:adb shell am broadcast –a android.intent action BOOT_COMPLETED 41、adb命令向某个app(我的app:com.vincent.julie)某个广播接收类发送android.intent.BOOT_COMPLE...
adb shell am startservice 发送一个广播 adb shell am broadcast 发短信消息 adb shell am start-a android.intent.action.SENDTO-d smsto:发送号码--es sms_body 短信内容 查询短信消息: 1.手机需ROOT; 2.需找到短信数据库文件 数据库文件路径:'/data/data/com.android.providers.telephony/databases/mmssms...
android.intent.action.CALL -d tel:10086#启动拨号10086adb shell am startservice -n 服务#开启服务adb shell am stopservice 服务#停止服务adb shell am force-stop bluetooth#杀死蓝牙进程adb shell am kill 进程号#杀掉进程adb shell am broadcast -a android.intent.action.BOOT_COMPLETED#向所有组件广播设备...
adb shell am start -n com.android.camera/.Camera //打开拨号界面,并传递一个DATA_URI数据给拨号界面 am start -a android.intent.action.CALL -d tel:10086 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 2、startservice [options] <INTENT> ...
adb shell am startservice [options] <intent> 一个典型的用例是,若设备上原本应该显示虚拟按键但是没有显示,可以试试这个: adb shell am startservice -n com.android.systemui/.SystemUIService 4.3.3 停止 Service adb shell am stopservice [options] <intent> 4.3.4 强制停止应用 adb she...