Files
tldr/pages.zh/common/adb-reverse.md
Vitor Henrique 006abfda34 pages*: sync https://developer.android.com more info links (#12288)
* pages*: sync https://developer.android.com more info links

* dalvikvm: fix wrong link
2024-02-22 17:53:50 +05:30

21 lines
600 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# adb reverse
> 安卓调试桥-反射: 反向映射安卓模拟器实例或者已连接的实体设备的套接字连接。
> 更多信息:<https://developer.android.com/tools/adb>.
- 列出所有来自模拟器和设备的映射连接:
`adb reverse --list`
- 将 TCP 端口从安卓模拟器或设备中映射到 localhost
`adb reverse tcp:{{远程端口}} tcp:{{本地端口}}`
- 从安卓模拟器或设备移除一个反向 socket 连接:
`adb reverse --remove tcp:{{远程端口}}`
- 从安卓模拟器或设备移除所有反向 socket 连接:
`adb reverse --remove-all`