Open emptywalker opened 3 years ago
See Local Services section in the documentation: https://android.googlesource.com/platform/system/core/+/5aa0e4241029c80617a8e98b07f7f48ab6b3a3d7/adb/SERVICES.TXT
Anyone make forward work? I try adb.open("forward:tcp:1234:tcp:1234")
but it report exception.
Anyone make forward work? I try
adb.open("forward:tcp:1234:tcp:1234")
but it report exception.
It should be forward:tcp:1234;tcp:1234
. Note the semicolon separator.
Reference
Changed that but still the same:
02-08 10:08:44.311 16802 16890 I MyExam : forward:tcp:1234;tcp:1234
02-08 10:08:44.329 16802 16890 E AndroidRuntime: FATAL EXCEPTION: pool-2-thread-1
02-08 10:08:44.329 16802 16890 E AndroidRuntime: Process: com.sample.atest, PID: 16802
02-08 10:08:44.329 16802 16890 E AndroidRuntime: java.lang.RuntimeException: java.net.ConnectException: Stream open actively rejected by remote peer
02-08 10:08:44.329 16802 16890 E AndroidRuntime: at com.sample.atest.Adb$1.run(Adb.java:100)
Changed that but still the same:
02-08 10:08:44.311 16802 16890 I MyExam : forward:tcp:1234;tcp:1234 02-08 10:08:44.329 16802 16890 E AndroidRuntime: FATAL EXCEPTION: pool-2-thread-1 02-08 10:08:44.329 16802 16890 E AndroidRuntime: Process: com.sample.atest, PID: 16802 02-08 10:08:44.329 16802 16890 E AndroidRuntime: java.lang.RuntimeException: java.net.ConnectException: Stream open actively rejected by remote peer 02-08 10:08:44.329 16802 16890 E AndroidRuntime: at com.sample.atest.Adb$1.run(Adb.java:100)
Is this solved?
I'm doubt about what is destination at
AdbConnection$open(String destination)
, the code:i don't clearly that how many
the specified destination
; I want to executeadb forward tcp:$port localabstract: $remotePort
, what should I set destination ? why ?