每次执行命令(issue command)需要带上adb shell开头的前缀 例如: adb shell pm list packages -s -d|nl 统计被禁用(冻结)的包 进入shell再运行 这比较适合需要执行大量命令交互的情况下 adb shell pm ...或am ... 下面默认当前已经进入了adb shell模式,采用第二种方式运行 手机端终端应用(terminal for androi...
adb shell pmclearcom.qihoo360.mobilesafe 1 表示清除 360 手机卫士的数据和缓存。 查看前台 Activity 命令: adb shell dumpsys activity activities |grepmFocusedActivity 1 输出示例: mFocusedActivity:ActivityRecord{8079d7e u0com.cyanogenmod.trebuchet/com.android.launcher3.Launcher t42} 1 其中的com.cyanogenm...
[xuxu:~]$ adb shell pm path com.tencent.mobileqq package:/data/app/com.tencent.mobileqq-1.apk pm list instrumentation , 列出含有单元测试 case 的应用,后面可跟参数 -f (与 pm list package 中一样),以及 [TARGET-PACKAGE] pm dump , 后跟包名,列出指定应用的 dump 信息,里面有各种信息,自行查看...
[xuxu:~]$ adb shell pm path com.tencent.mobileqq package:/data/app/com.tencent.mobileqq-1.apk 1. 2. pm list instrumentation , 列出含有单元测试 case 的应用,后面可跟参数 -f (与 pm list package 中一样),以及 [TARGET-PACKAGE] pm dump , 后跟包名,列出指定应用的 dump 信息,里面有各种信息...
::查看当前界面运行的 activity 及其包名 adb shell dumpsys window|findstr"mCurrentFocus"::查看应用版本号adb shellpm dump com.example.test|findstr"versionName"::查看指定命令的参数 adbcommand--help adb shellcommand--help 打印方法调用堆栈: android.util.Log.d("TAG",android.util.Log.getStackTraceStrin...
adb shell pm path <package-name> 4.3 与应用交互 与应用交互主要是使用 am <command> 命令,常用的 <command> 如下: command 用途 start [options] <intent> 启动 <intent> 指定的 Activity startservice [options] <intent> 启动 <intent> 指定的 Serv...
adb 命令、adb shell 命令、linux 命令 adb 命令 在开发或者测试的过程中,我们可以通过 adb 来管理多台设备,其一般的格式为: adb [-e | -d | -s <设备序列号>] <子命令> 在配好环境变量的前提下,在命令窗口当中输入 adb help 或者直接输入 adb ,将会列出所有的选项说明及子命令。
pm 的源码Pm.java, 直接运行 adb shell pm 可以获取到该命令的帮助信息 pm list package 列出安装在设备上的应用 不带任何选项:列出所有的应用的包名(不知道怎么找应用的包名的同学看这里) adb shell pm list package -s:列出系统应用 adb shell pm list package-s ...
2.1.12.卸载应用-adb shell adb shell pm uninstall 包名 2.1.13. 清除应用数据 adb shell pm clear 包名 2.1.14. 设置应用安装位置 adb shell pm set-install-location 0/1/2 0:默认 1:内存 2:sdcard 2.1.15. 获取应用安装位置 adb shell pm get-install-location ...
【摘要】 adb 常用命令1、显示已连接的设备列表adb devicesscc$ adb devicesList of devices attachedX1PVWP742B deviced13d7184 device2、进入设备adb shell , 如果有多台设备会报错,因为不知道进入那台设备。scc$ adb shelladb: more than one device/emulat... ...