Coder Social home page Coder Social logo

nonomal / zerotier-magisk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eventlowop/zerotier-magisk

0.0 0.0 0.0 4.18 MB

ZeroTier for magisk ✅ App controller ✅

License: GNU General Public License v3.0

Shell 23.92% Python 19.32% Kotlin 0.74% Dart 56.02%

zerotier-magisk's Introduction

ZeroTier for Magisk Icon

ZeroTier for Magisk

[中文 | English]

Run zerotier in the background after booting!

No conflicts with other Android VPN service!

Use Android App to control ZeroTier

Requirements

  1. a version is built with Android NDK Toolchain, supporting api 28 (Android 9.0) and above.

  2. another version is build with GCC toolchain, linking to Linux Syscalls statically

Unofficial planet supported; SSO (zeroidc) supported in the version built with GCC for AArch64

AArch64 suppots ARMv8-A and above; Arm version supports ARMv7-A (compiling with -march=armv7-a)

Installation

  1. Download magisk module zip file from github release; install.
  2. Download controller app apk file from github release; install.
  3. Reboot your phone.
  4. Open controller app; enter your 16-character network id; join.
  5. Enjoy 😋

Usage

Controller App

Needs root privilege

Feature Supported?
status
start/stop
join/leave network
join/leave planet
ZeroTier for Magisk Icon ZeroTier for Magisk Icon

Command line tools

Use zerotier.sh to start/stop or inspect status.

Usage: zerotier.sh {start|stop|restart|status}

Use zerotier-cli / zerotier-idtool for ZeroTierOne command line operations.

(zerotier-one not copied to /system/bin)

Files

/data/adb/zerotier
├── home                                    # zerotier-one home directory
│   ├── authtoken.secret                    # zerotier-one http interface authtoken
│   ├── zerotier-one.pid                    # zerotier-one pid
│   ├── zerotier-one.port                   # zerotier-one port
│   └── ...
├── lib                                     # only in NDK compiled module
│   └── libc++_shared.so                    # NDK dynamic library
├── run
│   ├── daemon.log                          # service.sh log
│   ├── pipe                                # named pipe to interact with service.sh
│   ├── zerotier.log                        # zerotier-one log
│   └── ...
├── zerotier-cli -> zerotier-one            # zerotier-one command line interface
├── zerotier-idtool -> zerotier-one         # zerotier-one id tool
├── zerotier-one                            # zerotier-one executable
└── zerotier.sh

all the scripts and binaries are placed in /data/adb/zerotier/, and all copied to /system/bin (in PATH) to be executed directly (except zerotier-one)

zerotier.sh uses named pipe to communicate with service.sh, preventing ZeroTier to start as a subprocess of Shell.

log files are placed in run, daemon.log for service.sh and zerotier.log for ZeroTierOne.

Build binaries yourself

refer to .github/workflow/build-{gcc|ndk}.yml for detailed information.

zerotier-magisk's People

Contributors

eventlowop avatar yu1chaofan avatar

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.