Skip to content
项目

关于

基于 sing-box 的 Root Android 网络连接与流量路由,支持按应用设置规则、DNS 和 Tailscale。支持 Magisk、KernelSU 和 APatch。

系统与基础设施

这些数字如何统计

实测星标增长

24小时
0
7天
+3
15天
+5
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文
MagicNet icon

MagicNet

A transparent networking control plane for rooted Android.

Android release Recipe License

English · Русский · Download · Evidence

MagicNet manages subscriptions, app/domain/Wi-Fi/hotspot routing, DNS, selectors and Tailscale through a multilingual web console and CLI. It supports explicit tun|ebpf modes, defaults to TUN, and packages a sing-box-compatible runtime for Android root/arm64 with Magisk, KernelSU or APatch.

Start here

Goal Entry point
Install and use MagicNet Releases and v1.9.6 installation notes
Build the maintained implementation Source repository and build guide
Rebuild from requirements Product recipe and acceptance
Publish a version Release guide

Current state

Layer Current state
Published Android package v1.9.6 / 10624
Recipe 0.3.45
Fixed implementation commit 465457bbb72e98abd9f0133beb189efb1d6161b5
Fixed sing-box core 3a155d21872b22e6b9b75326c98d11f7ff159a2e / 1.15.0-alpha.13

The recipe defines required behavior; the pinned source provides the maintained implementation; Releases provide installable artifacts. Verification records source tests, package checks, Android emulator results and physical-device observations separately.

A locally built v1.9.1 / 10619 candidate from source 5169e071 has been checked on one ARM64 phone: upgrade with configuration retention, HTTPS from an ordinary app UID with a real subscription, navigation across 14 pages, a physical tap opening Zashboard with local node data, and a 10-second cellular interruption followed by 180 seconds of observation. Application HTTPS recovered after the interruption, while the strict upstream connectivity check retained an endpoint-specific degraded result. This device evidence belongs to that candidate; the newer implementation pinned above has separate CI evidence.

Broader OEM coverage, minimum Android/WebView versions and sustained mobile performance remain open; see verification, performance and Issue tracking.

Build the maintained implementation

git clone --recurse-submodules https://github.com/LIghtJUNction/MagicNet.git
cd MagicNet
git submodule update --init --recursive generated/magicnet-android
cd generated/magicnet-android
kam build -j 2

Follow the build guide for the pinned Rust, Go, Node, Java and Android toolchains. The complete local package is generated/magicnet-android/dist/MagicNet.zip relative to the primary repository.

Rebuild from the recipe

Install Git and the Recipkg CLI, then render the complete requirements for an implementation agent:

set -eu
recipkg check recipes/magicnet
recipe_tmp="$(mktemp -d)"
trap 'rm -rf "$recipe_tmp"' EXIT
recipkg pack recipes/magicnet -o "$recipe_tmp/magicnet.recipe.tar.gz"
recipkg check "$recipe_tmp/magicnet.recipe.tar.gz"
recipkg build "$recipe_tmp/magicnet.recipe.tar.gz" --lang zh-CN

recipkg build renders a prompt. The agent must implement the product and execute ACCEPTANCE.md. Independent reconstruction starts with an empty implementation directory and the complete Markdown dependency closure; its permitted external assets are defined in the recipe. Keep .env, subscriptions, credentials and private device data outside source, archives and prompts.

The eight packages cover the product, control plane, network runtime, packet engine, routing policy, web console, module delivery and shared quality requirements. DEPENDENCIES.md maps their responsibilities.

Development and release

Update affected recipes, interfaces and acceptance cases with behavior changes. Verify and push source changes before updating the primary repository's gitlink. Build and release MagicNet supports build, verify and publish, version bumping and exact versions; releasing.md owns the inputs and recovery procedure.

Local checks:

python3 scripts/check-recipes.py
python3 scripts/test-release.py
python3 scripts/test-release-plan.py
python3 scripts/test-check-recipes.py

Sources and license

SOURCE_AUDIT.md records inspected source; PROVENANCE.md retains attribution and historical anchors, including the v1.8.0 import. MagicNet uses the MIT License; third-party components retain their own licenses.

探索相关项目

加载中…