Update cheatsheets

This commit is contained in:
ivuorinen
2025-10-29 00:20:46 +00:00
parent b758660fa5
commit 44de08faea
28 changed files with 364 additions and 37 deletions

View File

@@ -5,13 +5,17 @@ source: https://github.com/tldr-pages/tldr.git
---
# adb forward
> Connect to an Android device wirelessly.
> Forward socket connections to a connected Android device or emulator.
> More information: <https://developer.android.com/tools/adb>.
- Forward a TCP port:
- Forward a TCP port to the only connected emulator or device:
`adb forward tcp:{{local_port}} tcp:{{remote_port}}`
- Forward a TCP port to a specific emulator or device (by device ID / [s]erial number):
`adb -s {{device_ID}} forward tcp:{{local_port}} tcp:{{remote_port}}`
- List all forwardings:
`adb forward --list`