A rule-based tunnel in Go. This module is wrapper for clash
- arm64 ABI
See also https://github.com/Dreamacro/clash
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
- Clash status file
RUNNING
orSTOPPED
- Custom proxy mode directory
mode.d
Data Path {InternalStorage}/Android/data/com.github.kr328.clash
Create the following file to control clash
START
- Start clash if stoppedSTOP
- Stop clash if runningRESTART
- Restart clash
-
On PC
Run command
adb logcat -s Clash
-
On Android
Run command
logcat -s Clash
Custom Mode Directory {InternalStorage}/Android/data/com.github.kr328.clash/mode.d
-
Create directory with mode name
-
Create script
on-start.sh
andon-stop.sh
Example for thus script link
-
Change
mode
instarter.yaml
-
Install JDK ,Gradle ,Android SDK ,Android NDK
-
Create
local.properties
on project root directorysdk.dir=/path/to/android-sdk ndk.dir=/path/to/android-ndk cmake.dir=/path/to/android-cmake/*version*
-
Run command
./gradlew build
-
Pick clash-for-magisk.zip from module/build/outputs