mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-09-24 23:11:29 +08:00
adb-shell-{pm, pm-list, pm-list-packages}: add Simplified Chinese translation (#19241)
* adb-shell-pm: add Chinese translation * adb-shell-pm-list: add Chinese translation * abd-shell-pm-list-packages: add Chinese translation * Replace '程序包' with '软件包'
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
# adb shell pm list packages
|
||||
|
||||
> 列出安卓设备上,已安装的,已知的或经过自定义筛选后的软件包。
|
||||
> 更多信息:<https://developer.android.com/tools/adb>.
|
||||
|
||||
- 列出所有已安装的软件包:
|
||||
|
||||
`adb shell pm list packages`
|
||||
|
||||
- 列出所有软件包,以及与它们关联的 APK 文件的路径:
|
||||
|
||||
`adb shell pm list packages -f`
|
||||
|
||||
- 仅列出禁用的软件包:
|
||||
|
||||
`adb shell pm list packages -d`
|
||||
|
||||
- 仅列出启用的软件包:
|
||||
|
||||
`adb shell pm list packages -e`
|
||||
|
||||
- 仅列出系统软件包:
|
||||
|
||||
`adb shell pm list packages -s`
|
||||
|
||||
- 仅列出第三方(非系统)的软件包:
|
||||
|
||||
`adb shell pm list packages -3`
|
||||
|
||||
- 显示每个包的安装来源:
|
||||
|
||||
`adb shell pm list packages -i`
|
||||
@@ -0,0 +1,32 @@
|
||||
# adb shell pm list
|
||||
|
||||
> 列出软件包管理器中所管理的用户,软件包,权限,插桩测试 (instrumentation),权限组,功能和库。
|
||||
> 更多信息:<https://developer.android.com/tools/adb>.
|
||||
|
||||
- 列出所有已安装的包:
|
||||
|
||||
`adb shell pm list packages`
|
||||
|
||||
- 显示系统上的所有用户:
|
||||
|
||||
`adb shell pm list users`
|
||||
|
||||
- 显示所有已知的权限组:
|
||||
|
||||
`adb shell pm list permission-groups`
|
||||
|
||||
- 显示所有已知的权限:
|
||||
|
||||
`adb shell pm list permissions`
|
||||
|
||||
- 显示所有的测试包:
|
||||
|
||||
`adb shell pm list instrumentation`
|
||||
|
||||
- 显示系统上的所有功能:
|
||||
|
||||
`adb shell pm list features`
|
||||
|
||||
- 显示当前设备支持的所有库:
|
||||
|
||||
`adb shell pm list libraries`
|
||||
@@ -0,0 +1,36 @@
|
||||
# adb shell pm
|
||||
|
||||
> 安卓软件包管理工具。
|
||||
> 更多信息:<https://developer.android.com/tools/adb>.
|
||||
|
||||
- 列出已安装的包:
|
||||
|
||||
`adb shell pm list packages`
|
||||
|
||||
- 从指定路径,安装软件包:
|
||||
|
||||
`adb shell pm install /{{路径/到/软件包.apk}}`
|
||||
|
||||
- 从设备卸载一个包:
|
||||
|
||||
`adb shell pm uninstall {{软件包}}`
|
||||
|
||||
- 清除单个软件包的所有数据文件:
|
||||
|
||||
`adb shell pm clear {{软件包}}`
|
||||
|
||||
- 启用软件包或组件:
|
||||
|
||||
`adb shell pm enable {{包名_或_类名}}`
|
||||
|
||||
- 禁用软件包或组件:
|
||||
|
||||
`adb shell pm disable-user {{包名_或_类名}}`
|
||||
|
||||
- 为应用授予权限:
|
||||
|
||||
`adb shell pm grant {{包名}} {{android.permission.CAMERA|android.permission.ACCESS_FINE_LOCATION|android.permission.READ_CONTACTS|...}}`
|
||||
|
||||
- 撤销应用权限:
|
||||
|
||||
`adb shell pm revoke {{包名}} {{android.permission.CAMERA|android.permission.ACCESS_FINE_LOCATION|android.permission.READ_CONTACTS|...}}`
|
||||
Reference in New Issue
Block a user