Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adb reverse not working #12

Closed
AlphaBs opened this issue Mar 19, 2023 · 1 comment
Closed

adb reverse not working #12

AlphaBs opened this issue Mar 19, 2023 · 1 comment

Comments

@AlphaBs
Copy link

AlphaBs commented Mar 19, 2023

Describe the bug
adb reverse command does not work without any error.

To Reproduce
Steps to reproduce the behavior:

run the commands on termux:
termux-adb reverse tcp:22222 tcp:22222
nc -l -p 22222

open web browser from connected android device and go to http://localhost:2222
or run nc localhost 22222 on termux of connected android device

Expected behavior
nc -l -p 22222 should output any data receiving from connected android device, but it does not.

Screenshots
termux-adb:
Screenshot_20230319_182747_Termux

connected device:
Screenshot_20230319_181752_Termux
Screenshot_20230319_181727_Chrome

Smartphone (please complete the following information):

  • Device: Galaxy S21
  • Android version: Android 13
  • Connected Device: Galaxy Tab S8+
  • Connected Android version: Android 13

Attach output of the following commands

  • RUST_LOG=debug ./termux-adb (run with debug logs enabled)
  • pkg show android-tools (show package info)
  • adb version (show adb version)
~ $ pkg show android-tools
Package: android-tools
Version: 34.0.0-1
Maintainer: @termux
Installed-Size: 10.2 MB
Depends: abseil-cpp, brotli, libc++, liblz4, libprotobuf, libusb, pcre2, zlib, zstd
Homepage: https://developer.android.com/
Download-Size: 1665 kB
APT-Sources: https://mirrors.sahilister.in/termux/termux-main stable/main aarch64 Packages
Description: Android platform tools

~ $ termux-adb version
Android Debug Bridge version 1.0.41
Version 31.0.3p1-android-tools
Installed as /data/data/com.termux/files/usr/bin/termux-adb

Attach contents of the following files (after running with debug logs enabled)

  • /data/data/com.termux/files/usr/tmp/adb.10233.log
  • /data/data/com.termux/files/usr/tmp/termux-adb.10233.log

adb.10600.log

Additional context

I ran below command to run adb on Samsung device (there was an issue about adb on samsung device)
export ADB_SERVER_SOCKET=localfilesystem:$(pwd)/adb_socket

@AlphaBs
Copy link
Author

AlphaBs commented Mar 19, 2023

fixed by #6.

ANDROID_NO_USE_FWMARK_CLIENT=1 fakeroot adb reverse tcp:22222 tcp:22222

it works! thank you for great project.

@AlphaBs AlphaBs closed this as completed Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant