GithubHelp home page GithubHelp logo

zhangmx / clashformagisk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wojtek8668/clashformagisk

0.0 1.0 1.0 7.06 MB

A rule-based tunnel in Go. This module is wrapper for clash

License: GNU General Public License v3.0

CMake 0.82% Shell 32.08% C 3.13% Java 47.48% Kotlin 16.49%

clashformagisk's Introduction

Clash for Magisk

A rule-based tunnel in Go. This module is wrapper for clash

中文说明

Requirements

  • arm64 ABI

License

See also NOTICE and LICENSE

Feature

See also https://github.com/Dreamacro/clash

Configure

Data Path {InternalStorage}/Android/data/com.github.kr328.clash

In data directory

  • Clash configure file config.yaml
  • Clash GEOIP database Country.mmdb
  • Clash starter configure file starter.yaml [example]
  • Clash status file RUNNING or STOPPED
  • Custom proxy mode directory mode.d

Control

Data Path {InternalStorage}/Android/data/com.github.kr328.clash

Create the following file to control clash

  • START - Start clash if stopped
  • STOP - Stop clash if running
  • RESTART - Restart clash

Read logs

  • On PC

    Run command

    adb logcat -s Clash

  • On Android

    Run command

    logcat -s Clash

Custom Proxy Mode

Custom Mode Directory {InternalStorage}/Android/data/com.github.kr328.clash/mode.d

  1. Create directory with mode name

  2. Create script on-start.sh and on-stop.sh

    Example for thus script link

  3. Change mode in starter.yaml

Build

  1. Install JDK, Android SDK, Android NDK, Go, Git

  2. Clone repo

    git clone https://github.com/Kr328/ClashForMagisk && cd ClashForMagisk
  3. Initialize git submodule

    git submodule init
    git submodule upate
  4. Create local.properties on project root directory

    sdk.dir=/path/to/android-sdk
    ndk.dir=/path/to/android-ndk
  5. Run command

    ./gradlew build
  6. Get clash-for-magisk.zip on module/build/outputs

clashformagisk's People

Contributors

kr328 avatar

Watchers

 avatar

Forkers

sararyans7

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.