adb shell am start -a android.intent.action.MUSIC_PLAYER //打开音乐播放器 adb shell am broadcast -a {广播动作} //发送广播 adb shell am startservice {服务名称} //打开服务 adb shell am stopservice {服务名称} //关闭服务 adb shell am
adb shell am start -W com.android.browser/.BrowserActivity [统计启动时间] adb shell am start -a android.intent.action.VIEW -dhttp://www.baidu.com[打开网址] adb shell am stack list [查看所有activity的堆栈和任务信息] 六、pm命令(PackageManager):adb shell pm help adb shell pm list packages...
adb shell pm clear <包名>am命令 #列出所有的Activity任务栈信息 adb shell am stack list#强制停止应用,可用于杀进程 adb shell am force-stop <包名>#启动指定的 Activity adb shell am start [options] #启动 指定的 Service adb shell am startservice [options] #发送指定的广播 adb shell am broadcast...
am stack info <STACK_ID> am lock-task <TASK_ID> am lock-task stop am get-config am start: start an Activity. Options are:后面都接intent 通过指定的intent参数启动activity,具体的intent参数见官方列表 start [options] <INTENT> : adbshellam start -a android.intent.action.VIEW ...
(pause表示不关闭cmd窗口,这样就可以看到执行的结果了) 查看进程加载的库 可以根据进程id,查看进程加载了哪些库,cat /proc/pid/maps kill 干掉进程 adb shell am force-stop 作用:强制关闭一个应用程序 举例:adb shell am force-stop com.lt.test adb shell am force-stop比使用 kill -9 要方便 参考http:/...
adb shell dumpsys window | findstr mCurrentFocus 命令查看当前运行的包名和Activity adb shell am start -n<package_name>/.<activity_class_name> C:\Users\lenovo>adb shell venus:/ $ ^C C:\Users\lenovo>adb shell dumpsys window | findstrmCurrentFocus ...
6、启动activity: adb shell am start -n <package_name>/.<activity_class_name> 7、获得应用的启动时间,可以很方便地获取应用的启动时间: adb shell am start -W <package_name>/.<activity_class_name> 试验结果如下: adb shell am start -W com.cc.test/com.painter.test.PainterMainActivity Starting...
adb shell monkey -p com.gibb.easyclick 1monkey 表示压力测试-p 表示指定包名com.gibb.easyclick 表示需要测试的包名1 表示时间,单位毫秒大部分情况用来启动某个已知包名的应用,参考来源于Stack Overflow adb shell mkdir testmkdir 表示创建文件夹test 表示创建新文件夹的名称 ...
adb shell pm list packages 后面可以跟一些可选参数进行过滤查看不同的列表, 可用参数及含义如下: 参数 显示列表 无 所有应用 -f 显示应用关联的 apk 文件 -d 仅显示 disabled 的应用 -e 仅显示 enabled 的应用 -s 仅显示系统应用 -3 仅显示第三方应用 -i 显示应用的 installer -u 包含已卸载应用 <...
adb shell am start -n com.android.settings/.TetherSettings 15、通过cmd wifi命令集操作 设备需要root权限,输入"cmd wifi"查询支持的命令 cmd wifi Wi-Fi (wifi) commands: help or -h Print this help text. get-country-code Gets country code as a two-letter string ...