当你在adb shell命令下执行am命令: am 启动appam start -n {packageName}/.{activityName} 杀app的进程am kill <packageName> 强制停止一切am force-stop <packageName> 启动服务am startservice 停止服务am stopservice 打开简书am start -a android.intent.action.VIEW -d http://www.jianshu.com/ 拨打1...
adb shell am start-n <package>/<activity>: 启动应用程序。 adb shell input text<text>: 在设备上输入文本。 adb shell input tap<x> <y>: 在设备上点击坐标。 adb shell screencap-p /sdcard/screenshot.png: 在设备上进行截屏操作。 adb shell am force-stop <package>: 强制停止应用程序。 adb s...
adb shell am 1. 1、start [options] <INTENT> 根据Intent 启动Activity options参数如下: -D:开启debug模式 -W:等待启动完成 --start-profiler<FILE>:将profiler中的结果输出到指定文件中 -P:和--start-profiler一样,区别在于,在app进入idle状态时profiler结束 -R <Count>: 重复启动Activity,但每次重复启动...
adb shell am start –n com.android.camera/.Camera 启动相机 adb shell am start –S com.android.camera/.Camera 先停止目标应用,再启动 adb shell am start –W com.android.camera/.Camera 等待应用完成启动 adb shell am start –a android.intent.action.VIEW –d http://testerhome.com 启动默认浏览...
adb shell am display-size 1280x800重写模拟器/设备显示大小 adb shell am display-density 480重写模拟器/设备显示密度 adb shell am start -n com.xxx.apps.xxx.overseas/ui.StartPageActivity -d paramStr//启动某个app的某个activity(可能需要配置android:exported="true",获取参数:getIntent().getDataString...
am命令 am全称activity manager,你能使用am去模拟各种系统的行为,例如去启动一个activity,强制停止进程,发送广播进程,修改设备屏幕属性等等。当你在adb shell命令下执行am命令: am 你也可以在adb shell前执行am命令: adb shell am start -a android.intent.action.VIEW 关于一些am...
adb shell am start com.huawei.notepad ::关闭 QQ adb shell am force-stop com.tencent.mobileqq ::拉起服务adb shell am startservice-a com.example.test.DemoService ::发送广播 adb shell am broadcast -a com.example.test.ACTION ...
查看应用详细信息命令:adb shell dumpsys package “packagename”调起 Activity命令格式:adb shell am start [options] 例如:adb shell am start -n com.tencent.mm/.ui.LauncherUI表示调起微信主界面 调起Service命令格式:adb shell am startservice [options] 例如:adb shell am startservice -n com.tencent...
adb shell am kill com.example.app # 终止所有后台进程 adb shell am kill-all 1. 2. 3. 4. 5. 6. 7. 8. Activity相关操作 # 启动activity adb shell am start -n com.example.app/.ExampleActivity # 在指定屏幕上启动activity # - 屏幕displayid:多屏安卓设备的屏幕编号,从0开始 ...
可配合am start <pkg>/<act>; 让app打开并跳转到指定界面adb shell dumpsys battery列出电池状态adb shell dumpsys battery set level 150修改电池百分比为150adb shell dumpsys battery reset恢复真实百分比adb shell dumpsys meminfo列出内存状态adb shell dumpsys cpuinfo列出CPU状态adb shell dumpsys gfxinfo列出...