2024-05-13 17:16:47 +08:00
2024-05-13 15:56:21 +08:00
2024-05-13 15:36:08 +08:00
2024-05-13 17:16:47 +08:00
2024-05-11 13:04:22 +08:00
2024-05-11 15:12:03 +08:00
2024-05-13 15:56:21 +08:00
2024-05-13 15:56:21 +08:00

ZeroTier for Magisk - run ZeroTier in the background

[中文 | English]

Run zerotier in the background after booting!

No conflicts with other android VPN service!

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 release from github.
  2. install with magisk.
  3. modify the config file at /sdcard/Android/zerotier/network_id.txt and put your 16-character network id in it.
  4. restart and enjoy.

To restart, execute (in root) sh /data/adb/zerotier/zerotier.sh restart; An android application to control zerotier (networkid, restart, ...) has been added to the todo list.

Files

/data/adb/zerotier/
 | - run/
 |   | - pipe                   # pipe to service.sh
 |   | - daemon.log             # service.sh log
 |   ` - zerotier.log           # zerotier-one log
 | - home/                      # zerotier-one home directory
 |   ` - ...
 | - lib/
 |   ` - libc++_shared.so       # NDK dynamic library
 | - zerotier.sh                # tool to communicate with service.sh
 | - zerotier-one               # zerotier-one executable
 | - zerotier-cli -> zerotier-one
 ` - zerotier-idtool -> zerotier-one

all the scripts and binaries are placed in /data/adb/zerotier/.

zerotier.sh writes commands to the pipe at run/pipe and service.sh read from it.

Usage: sh zerotier.sh {start|stop|restart|join|leave}

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

Build binaries yourself

The binaries are built with Android NDK toolchains on Github Action, see .github/workflow/build.yml for detailed information.

S
Description
ZeroTier for magisk App controller
Readme GPL-3.0
4.3 MiB
Languages
HTML 63.2%
Dart 32.3%
Shell 2.6%
Python 1.8%