mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-09-19 01:43:18 +08:00
adb-{connect, disconnect, pair, forward, uninstall}: add Chinese translation (#17584)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
# adb connect
|
||||
|
||||
> 通过无线连接到 Android 设备。
|
||||
> 更多信息:<https://developer.android.com/tools/adb>.
|
||||
|
||||
- 与一个安卓设备配对(可在开发者选项中,找到地址和配对码):
|
||||
|
||||
`adb pair {{ip_地址}}:{{端口}}`
|
||||
|
||||
- 与一个安卓设备连接(端口与配对时存在差异):
|
||||
|
||||
`adb connect {{ip_地址}}:{{端口}}`
|
||||
|
||||
- 断开与设备的连接:
|
||||
|
||||
`adb disconnect {{ip_地址}}:{{端口}}`
|
||||
@@ -0,0 +1,7 @@
|
||||
# adb disconnect
|
||||
|
||||
> 该命令已移动到 `adb connect`.
|
||||
|
||||
- 查看 `adb disconnect` 的文档:
|
||||
|
||||
`tldr adb connect`
|
||||
@@ -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`
|
||||
@@ -0,0 +1,7 @@
|
||||
# adb pair
|
||||
|
||||
> 该命令已移动到 `adb connect`.
|
||||
|
||||
- 查看 `adb pair` 的文档:
|
||||
|
||||
`tldr adb connect`
|
||||
@@ -0,0 +1,12 @@
|
||||
# adb uninstall
|
||||
|
||||
> 卸载一个软件包。
|
||||
> 更多信息:<https://manned.org/adb>.
|
||||
|
||||
- 卸载一个软件包:
|
||||
|
||||
`adb uninstall {{com.example.app}}`
|
||||
|
||||
- 卸载软件包,但是保留用户数据:
|
||||
|
||||
`adb uninstall -k {{com.example.app}}`
|
||||
Reference in New Issue
Block a user