1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-23 20:04:03 +02:00

adb-{connect, disconnect, pair, forward, uninstall}: add Chinese translation (#17584)

This commit is contained in:
Sam Hou 2025-08-21 21:55:37 +08:00 committed by GitHub
parent 5985ae9bf0
commit 7d00085a72
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 62 additions and 0 deletions

View file

@ -0,0 +1,16 @@
# adb connect
> 通过无线连接到 Android 设备。
> 更多信息:<https://developer.android.com/tools/adb>.
- 与一个安卓设备配对(可在开发者选项中,找到地址和配对码):
`adb pair {{ip_地址}}:{{端口}}`
- 与一个安卓设备连接(端口与配对时存在差异):
`adb connect {{ip_地址}}:{{端口}}`
- 断开与设备的连接:
`adb disconnect {{ip_地址}}:{{端口}}`

View file

@ -0,0 +1,7 @@
# adb disconnect
> 该命令已移动到 `adb connect`.
- 查看 `adb disconnect` 的文档:
`tldr adb connect`

View file

@ -0,0 +1,20 @@
# adb forward
> 通过无线连接到一个 Android 设备。
> 更多信息:<https://developer.android.com/tools/adb>.
- 转发一个 TCP 端口:
`adb forward tcp:{{本地_端口}} tcp:{{远程_端口}}`
- 列出所有转发规则:
`adb forward --list`
- 移除转发规则:
`adb forward --remove tcp:{{本地_端口}}`
- 移除所有转发规则:
`adb forward --remove-all`

View file

@ -0,0 +1,7 @@
# adb pair
> 该命令已移动到 `adb connect`.
- 查看 `adb pair` 的文档:
`tldr adb connect`

View file

@ -0,0 +1,12 @@
# adb uninstall
> 卸载一个软件包。
> 更多信息:<https://manned.org/adb>.
- 卸载一个软件包:
`adb uninstall {{com.example.app}}`
- 卸载软件包,但是保留用户数据:
`adb uninstall -k {{com.example.app}}`