If we want to identify all the installed packages on an android device, we need to use below adb command, $ adb shell cmd package list packages In the older versions of android, you can also try using $ pm list packages For “cmd package” command following more options are available, l...
adb shell list packages -3 (list third party package names) adb shell list packages -s (list only system packages) adb shell list packages -u (list package names + uninstalled) adb shell dumpsys package packages (list info on all apps) adb shell dump <name> (list info on one package)...
即在adb shell pm list packages 的基础上可以加一些参数进行过滤查看不同的列表,支持的过滤参数如下: 所有应用 命令: 输出示例: package:com.android.smoketestpackage:com.example.android.livecubespackage:com.android.providers.telephonypackage:com.google.android.googlequicksearchboxpackage:com.android.providers.ca...
pm list instrumentation: use to list all test packages; optionally supply <TARGET-PACKAGE> to list the test packages for a particular application. Options: -f: list the .apk file for the test package. pm list features: prints all features of the system. pm list users: prints all users on...
Using this command with no additional arguments will disconnect from all connected TCP/IP devices. #> $ adb devices List of devices attached 192.168.17.39:5555 device 127.0.0.1:59865 device $ adb disconnect 192.168.17.39 disconnected 192.168.17.39 ...
adb devices– list the devices available (including emulators and phones or tablets attached to your computer) adb install– install APK files adb shell– execute commands on the Android system, for example: adb shell pm list packages– list all the packages installed ...
使用-3参数:adb shell pm list packages -3,只输出第三方的包。 使用-i参数:adb shell pm list packages -i,只输出包和安装信息(安装来源)。 使用-u参数:adb shell pm list packages -u,只输出包和未安装包信息(安装来源) 使用–user参数:adb shell pm list packages --user <USER_ID>,根据用户id查询...
sync a local buildfrom$ANDROID_PRODUCT_OUT to the device (defaultall) -l:listfiles that would be copied, but don't copy them shell: shell [-e ESCAPE] [-n] [-Tt] [-x] [COMMAND...] run remote shell command (interactive shell if no command given) ...
adb <command> 为命令指定目标设备 如果有多个设备/模拟器连接,则需要为命令指定目标设备。 serialNumber 可以通过 adb devices 命令获取,如: C:\Users\Administrator>adb devicesList of devices attached 0123456789ABCDEF device 比如这时想指定 0123456789ABCDEF 这个设备来运行 adb 命令获取屏幕分辨率: ...
https://developer.android.com/studio/command-line/shell.html#othershellcommands adb shell 命令的官方网站,如果对于adb shell命令有任何问题,可以去android官网去查看权威的说明。 Using activity manager (am) 启动activity adb shell am start -a android.intent.action.VIEW ...