Linux command
adb-shell-pm-list-packages 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List
adb shell pm list packages
Example
adb shell pm list packages -f
Example
adb shell pm list packages -s
Example
adb shell pm list packages -3
Search
adb shell pm list packages | grep [keyword]
说明
pm list packages enumerates installed applications on an Android device. This is the same command as adb shell pm list but specifically for listing packages. Output is in the format package:com.example.app with one package per line. Use grep or other tools to filter results.
参数
- -f
- Include APK file path
- -d
- Only disabled packages
- -e
- Only enabled packages
- -s
- Only system packages
- -3
- Only third-party (user-installed) packages
- -i
- Show package installer
- -u
- Include uninstalled packages with data
FAQ
What is the adb-shell-pm-list-packages command used for?
pm list packages enumerates installed applications on an Android device. This is the same command as adb shell pm list but specifically for listing packages. Output is in the format package:com.example.app with one package per line. Use grep or other tools to filter results.
How do I run a basic adb-shell-pm-list-packages example?
Run `adb shell pm list packages` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -f do in adb-shell-pm-list-packages?
Include APK file path