Giter VIP home page Giter VIP logo

termux-gnirehtet's Introduction

Tethering from Android to Android via USB cable

Requirements

Usage

  1. Download file from release and extract it.
  2. Run ./install.sh.
  3. Connect to device.
  4. Run ./gnirehtet run.

USB ADB Connecting

Tethering device: The device sharing its internet connection.

Tethered deivce: The device want to connect to internet through 'tethering device'.

  1. Make sure to turn on USB debugging on tethered device.
  2. Run adb start-server on tethering deivce.
  3. Connect two android device via USB cable.
  4. Set USB controlling mode:
    • Tethering device: USB controlled by connected device
    • Tethered device: USB controlled by this device
  5. Allow permission to access file system and USB debugging.
  6. Running adb devices on tethering device should print connected device.

How it works

gnirehtet was originally for reverse-tethering, sharing PC's internet connection to Android device, using adb. I recompiled gnirehtet to make it executable on aarch64 Termux.

To run adb and connect to another device on Android, I used termux-adb.

Build

gnirehtet relay server

The binary of relay server (gnirehtet) in this repository was built for Termux, aarch64. However, you may want to build relay server yourself to run on difference environment.

To build relay server:

  1. Install cargo to build Rust.
  2. Run build-gnirehtet.sh script.

Compiled binary (named gnirehtet) will be located in the same directory where the script is executed.

gnirehtet android app

Normally gnirehtet android app would works on most device so you don't need to build it yourself. The apk file in this repository is from official gnirehtet release.

To build android app: gnirehtet/DEVELOP.md

Related projects

termux-gnirehtet's People

Contributors

alphabs avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

termux-gnirehtet's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.