Getting “error: closed” twice on “adb reverse”

前端 未结 6 1095
走了就别回头了
走了就别回头了 2020-12-04 18:01

I am trying to reverse-forward port through ADB, but it just returns cryptic error of error: closed. Normal forwarding works. Session snippet:

$         


        
6条回答
  •  粉色の甜心
    2020-12-04 18:02

    adb reverse requires Android 5.0+. For devices previous to that, you'll need to use a workaround like so.

    If you have busybox installed on your Android device (most Genymotion images do), you can emulate adb reverse using this incantation:

    adb shell busybox nc -ll -p {guest port} -e busybox nc {host IP} {host port}

    In this case, "guest" is the Android OS running in the emulator and "host" is the computer running the emulator.

提交回复
热议问题