set-debug-app [options] :设置package包应用为debug模式。参数选项:-w|--persistent:等待进入调试模式,保留值。 clear-debug-app :清空之前用set-debug-app命令设置的package包应用。 启动:adb shell app am start -n {packageName}/.{activityName} 杀app的进程:adb shell am kill <packageName> 强制停止一...
am clear-debug-app: clear the previously set-debug-app. -w启动时等待Debugger Attacth --persistent每次启动都开启调试模式,没有这个标志则表示一次性的 开启调试某个app adb shell am set-debug-app -w com.micro.demo 运行上面命令后,app启动,并弹出Waiting For Debugger的弹窗提示, 此时打开AS的Attach de...
profile stop :停止profile。 set-debug-app [options] :设置package包应用为debug模式。参数选项:-w|--persistent:等待进入调试模式,保留值。 clear-debug-app :清空之前用set-debug-app命令设置的package包应用。 启动:adb shell app am start -n {packageName}/.{activityName} 杀app的进程:adb shell am ki...
adb shell am dumpheap -n 17495 /mnt/sdcard/dumpheap.txt 1. 11、set-debug-app [options] <PACKAGE> 设置特定包名的应用程序开启debug options参数如下: -w: 等待应用程序启动 --persistent: 持久化 1. 2. 命令样例: adb shell am set-debug-app -w com.some.package 1. 12、clear-debug-app 取消...
set-debug-app [options] <PACKAGE> :设置package包应用为debug模式。参数选项:-w|--persistent:等待进入调试模式,保留值。 clear-debug-app :清空之前用set-debug-app命令设置的package包应用。 以下命令查看官网: monitor [options] screen-compat [on|off] <PACKAGE> ...
adb shell amset-debug-app -wcom.some.package 12、clear-debug-app 取消设置debug状态的应用程序 命令样例: adbshellamclear-debug-app 13、monitor [options] 监视Crash 或者ANR错误 options参数如下: --gdb:在给定的端口上启动gdbserv监控crash/ANR错误. ...
adb shell am set-debug-app -w com.xxx.apps.android.xxx adb shell am set-debug-app -w --persistent com.xxx.app.xxx adb shell am clear-debug-app清除app调试模式 adb shell /system/bin/logcat -b main查看logcat adb shell dumpsys window displays(简单方式:adb shell wm size) 获取屏幕分辨率...
adb shell am set-debug-app -w com.xxx.apps.android.xxx adb shell am set-debug-app -w --persistent com.xxx.app.xxx adb shell am clear-debug-app清除app调试模式 adb shell /system/bin/logcat -b main查看logcat adb shell dumpsys window displays(简单方式:adb shell wm size) 获取屏幕分辨率...
am dumpheap [--user <USER_ID> current] [-n] <PROCESS> <FILE> am set-debug-app [-w] [--persistent] <PACKAGE> am clear-debug-app am monitor [--gdb <port>] am hang [--allow-restart] am restart am idle-maintenance am screen-compat [on|off] <PACKAGE> ...
Android adb shell am 命令介绍 am这个指令是 activity manager的缩写。这个命令可以启动Activity、打开或关闭进程、发送广播等操作。 am命令格式如下 1 1 1、 根据Intent 启动Activity options参数如下: -D:开启debug模式 -W:等待启动完成 --start-profiler<FILE>:将profiler中的结果输出到指定文件中 ...