WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Howto: Reverse Tethering NoRoot with Android using usb cable  (Read 5225 times)

Offline neonix

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 392
Howto: Reverse Tethering NoRoot with Android using usb cable
« on: March 22, 2019, 11:16:52 AM »
ReverseTethering NoRoot allows you to share your computer's Internet connection with your Android device via a USB cable.

DISADVANTAGES:
Some Apps may not work wiith usb Internet. For example. SoundHound works only if I record a song in history an then I have to close SoundHound and reopen it again. Crazy Taxi works only if I turn on mobile Internet or WiFi Internet for a few seconds and then I can use usb Internet for the rest of a time.

Install ReversThetering App on your Android 4.0
https://play.google.com/store/apps/details?id=com.floriandraschbacher.reversetethering.free&hl=en

Code: [Select]
tce-load -iw openjdk-8-jre.tcz
wget http://bit.ly/RevTetServerJava120
unzip RevTetServerJava120
cd ReverseTetheringServer_1.2.0
/usr/local/openjdk-8/jre/bin/java -jar *.jar

Now connect USB cable to your smartphone.
After few seconds ReversThetering App will ask you to accept VPN connection.
Done

Offline neonix

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 392
Re: Howto: Reverse Tethering NoRoot with Android using usb cable
« Reply #1 on: November 03, 2019, 10:09:02 AM »
Here is how to compile adb for TC 8.x (without whole SDK)
I needed i586 version of adb and most versions on the Internet are only i686 compatible.
Based on:
https://aaporantalainen.wordpress.com/2015/12/05/building-adb-for-ubuntu-without-whole-sdk/

Code: [Select]
tce-load -iw openssl-dev.tcz
tce-load -iw compiletc.tcz
tce-load -iw git.tcz

git clone https://android.googlesource.com/platform/system/core
cd core/adb
git checkout 0b8ecb32908f0ccde550dd510f4a562239085806

#Create Makefile
echo -e '
# standalone Makefile for adb
SRCS_CPP+= adb.cpp
SRCS_CPP+= adb_auth.cpp
SRCS_CPP+= adb_io.cpp
SRCS_CPP+= adb_listeners.cpp
SRCS_CPP+= sockets.cpp
SRCS_CPP+= transport.cpp
SRCS_CPP+= transport_local.cpp
SRCS_CPP+= transport_usb.cpp
SRCS_CPP+= fdevent.cpp
SRCS_CPP+= get_my_path_linux.cpp
SRCS_CPP+= usb_linux.cpp
SRCS_CPP+= adb_auth_host.cpp
SRCS_CPP+= services.cpp
SRCS_CPP+= adb_main.cpp
SRCS_CPP+= console.cpp
SRCS_CPP+= commandline.cpp
SRCS_CPP+= adb_client.cpp
SRCS_CPP+= file_sync_client.cpp

SRCS+= ../libcutils/socket_inaddr_any_server.c
SRCS+= ../libcutils/socket_local_client.c
SRCS+= ../libcutils/socket_local_server.c
SRCS+= ../libcutils/socket_loopback_client.c
SRCS+= ../libcutils/socket_loopback_server.c
SRCS+= ../libcutils/socket_network_client.c
SRCS+= ../libcutils/load_file.c
 
  CPPFLAGS+= -DADB_HOST=1
  CPPFLAGS+= -DHAVE_FORKEXEC=1
  CPPFLAGS+= -DHAVE_SYMLINKS
  CPPFLAGS+= -DHAVE_TERMIO_H
  CPPFLAGS+= -DHAVE_SYS_SOCKET_H
  CPPFLAGS+= -DHAVE_OFF64_T
  CPPFLAGS+= -D_GNU_SOURCE
  CPPFLAGS+= -D_XOPEN_SOURCE
  CPPFLAGS+= -I.
  CPPFLAGS+= -I../include
 
  CXXFLAGS+= $(CPPFLAGS)
  CXXFLAGS+= -fpermissive -std=c++11
  CFLAGS += -march=i486 -mtune=i686 -pipe
 
  LIBS= -lcrypto -lpthread -lrt -lz
  CC= gcc
  LD= g++
   
   OBJS= $(SRCS:.c=.o)
   OBJS_CPP= $(SRCS_CPP:.cpp=.o)
   
    all: adb
     
     adb: $(OBJS) $(OBJS_CPP)
     \t$(LD) -o $@ $(LDFLAGS) $(OBJS) $(OBJS_CPP) $(LIBS)
     
      clean:
      \trm -rf *.o ../libcutils/*.o adb
      ' > standalone_Makefile

make -f standalone_Makefile

#Use
./adb --version
#Android Debug Bridge version 1.0.32

#TC Dependency
openssl.tcz