()
13 | for (row in data) {
14 | // skip China root CA
15 | if (row.getByName("Geographic Focus").contains("China")) continue
16 | if (!row.getByName("Trust Bits").contains("Websites")) continue
17 |
18 | val name = row.getByName("Common Name or Certificate Name")
19 | val cert = row.getByName("PEM Info")
20 | list.add("$name\n" + cert.substring(1, cert.length - 1))
21 | }
22 | val pem = File(assets, "mozilla_included.pem")
23 | pem.writeText(list.joinToString("\n\n"))
24 | File(pem.parent, pem.name + ".sha256sum").writeText(DigestUtil.sha256Hex(pem))
25 | }
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | ## For more details on how to configure your build environment visit
2 | # http://www.gradle.org/docs/current/userguide/build_environment.html
3 | #
4 | # Specifies the JVM arguments used for the daemon process.
5 | # The setting is particularly useful for tweaking memory settings.
6 | # Default value: -Xmx1024m -XX:MaxPermSize=256m
7 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
8 | #
9 | # When configured, Gradle will run in incubating parallel mode.
10 | # This option should only be used with decoupled projects. More details, visit
11 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
12 | # org.gradle.parallel=true
13 | #Sat Aug 21 15:08:31 CST 2021
14 | kotlin.code.style=official
15 | android.bundle.enableUncompressedNativeLibs=false
16 | org.gradle.jvmargs=-XX\:MaxPermSize\=8192m -Dkotlin.daemon.jvm.options\="-Xmx2048M" -Xmx2048M -XX\:+UseParallelGC -Dfile.encoding\=UTF-8
17 | android.useAndroidX=true
18 | android.enableJetifier=true
19 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionSha256Sum=b586e04868a22fd817c8971330fec37e298f3242eb85c374181b12d637f80302
--------------------------------------------------------------------------------
/library/include/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("com.android.library")
3 | }
4 |
5 | setupCommon()
6 |
7 | dependencies {
8 | implementation("androidx.annotation:annotation:1.3.0")
9 | }
--------------------------------------------------------------------------------
/library/include/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/library/include/src/main/java/com.wireguard/crypto/KeyFormatException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright © 2018-2019 WireGuard LLC. All Rights Reserved.
3 | * SPDX-License-Identifier: Apache-2.0
4 | */
5 |
6 | package com.wireguard.crypto;
7 |
8 | /**
9 | * An exception thrown when attempting to parse an invalid key (too short, too long, or byte
10 | * data inappropriate for the format). The format being parsed can be accessed with the
11 | * {@link #getFormat} method.
12 | */
13 | public final class KeyFormatException extends Exception {
14 | private final Key.Format format;
15 | private final Type type;
16 |
17 | KeyFormatException(final Key.Format format, final Type type) {
18 | this.format = format;
19 | this.type = type;
20 | }
21 |
22 | public Key.Format getFormat() {
23 | return format;
24 | }
25 |
26 | public Type getType() {
27 | return type;
28 | }
29 |
30 | public enum Type {
31 | CONTENTS,
32 | LENGTH
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/library/include/src/main/java/java/nio/file/Path.java:
--------------------------------------------------------------------------------
1 | package java.nio.file;
2 |
3 | public interface Path {}
4 |
--------------------------------------------------------------------------------
/library/proto-stub/build.gradle.kts:
--------------------------------------------------------------------------------
1 | import com.google.protobuf.gradle.*
2 |
3 | plugins {
4 | id("com.android.library")
5 | kotlin("android")
6 | id("com.google.protobuf")
7 | }
8 |
9 | setupKotlinCommon()
10 |
11 | val protobufVersion = "3.19.1"
12 |
13 | dependencies {
14 | protobuf(project(":library:proto"))
15 |
16 | api("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2")
17 | api("com.google.protobuf:protobuf-java:$protobufVersion")
18 | }
19 |
20 | protobuf {
21 | protoc {
22 | artifact = "com.google.protobuf:protoc:$protobufVersion"
23 | }
24 | generateProtoTasks {
25 | all().forEach {
26 | it.plugins {
27 | create("java")
28 | }
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/library/proto-stub/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/library/proto/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | `java-library`
3 | }
4 |
5 | java {
6 | sourceSets.getByName("main").resources.srcDir(rootProject.file("external/v2ray-core"))
7 | }
8 |
--------------------------------------------------------------------------------
/library/stub/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("com.android.library")
3 | }
4 |
5 | setupCommon()
--------------------------------------------------------------------------------
/library/stub/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/library/stub/src/main/java/android/net/NetworkUtils.java:
--------------------------------------------------------------------------------
1 | package android.net;
2 |
3 | public class NetworkUtils {
4 |
5 | public static boolean protectFromVpn(int socketfd) {
6 | return false;
7 | }
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/metadata/en-US/description.txt:
--------------------------------------------------------------------------------
1 | DOCUMENTS
2 | https://sagernet.org
3 | Protocols
4 | The application is designed to be used whenever possible.
5 | Proxy
6 |
7 | - SOCKS
8 | - HTTP(S)
9 | - Shadowsocks
10 | - ShadowsocksR
11 | - VMess
12 | - VLESS
13 | - Trojan
14 | - VLESS / Trojan + XTLS ( xtls-plugin )
15 | - Trojan-Go ( trojan-go-plugin )
16 | - NaïveProxy ( naive-plugin )
17 | - Ping Tunnel ( pingtunnel-plugin )
18 | - relaybaton ( relaybaton-plugin )
19 | - Brook ( brook-plugin )
20 |
21 | Subscription
22 |
23 | - Universal base64 format
24 | - Shadowsocks SIP008
25 | - Just My Socks' proprietary format
26 | - Clash
27 |
28 | Features
29 |
30 | - Full basic features
31 | - V2Ray WebSocket browser forwarding
32 | - Option to change the notification update interval
33 | - A Chinese apps scanner (based on dex classpath scanning, so it may be slower)
34 | - Proxy chain
35 | - Advanced routing with outbound profile selection support
36 |
37 |
--------------------------------------------------------------------------------
/metadata/en-US/images/phoneScreenshots/0.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/metadata/en-US/images/phoneScreenshots/0.jpg
--------------------------------------------------------------------------------
/metadata/en-US/images/phoneScreenshots/1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/metadata/en-US/images/phoneScreenshots/1.jpg
--------------------------------------------------------------------------------
/metadata/en-US/images/phoneScreenshots/2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/metadata/en-US/images/phoneScreenshots/2.jpg
--------------------------------------------------------------------------------
/metadata/en-US/images/phoneScreenshots/3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/metadata/en-US/images/phoneScreenshots/3.jpg
--------------------------------------------------------------------------------
/metadata/en-US/images/phoneScreenshots/4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/metadata/en-US/images/phoneScreenshots/4.jpg
--------------------------------------------------------------------------------
/metadata/en-US/images/phoneScreenshots/5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/metadata/en-US/images/phoneScreenshots/5.jpg
--------------------------------------------------------------------------------
/metadata/en-US/images/phoneScreenshots/6.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/metadata/en-US/images/phoneScreenshots/6.jpg
--------------------------------------------------------------------------------
/metadata/en-US/name.txt:
--------------------------------------------------------------------------------
1 | SagerNet
--------------------------------------------------------------------------------
/metadata/en-US/summary.txt:
--------------------------------------------------------------------------------
1 | The universal proxy toolchain for Android
--------------------------------------------------------------------------------
/plugin/api/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("com.android.library")
3 | kotlin("android")
4 | id("kotlin-parcelize")
5 | }
6 |
7 | setupKotlinCommon()
--------------------------------------------------------------------------------
/plugin/api/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | -repackageclasses ''
2 | -allowaccessmodification
--------------------------------------------------------------------------------
/plugin/api/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/plugin/brook/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("com.android.application")
3 | }
4 |
5 | setupPlugin("brook")
--------------------------------------------------------------------------------
/plugin/brook/src/main/ic_launcher-playstore.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/brook/src/main/ic_launcher-playstore.png
--------------------------------------------------------------------------------
/plugin/brook/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/plugin/brook/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/plugin/brook/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/brook/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/brook/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/brook/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/brook/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/brook/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/brook/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/brook/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/brook/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/brook/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/brook/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/brook/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/brook/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/brook/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/brook/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/brook/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/brook/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/brook/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/brook/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/brook/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/brook/src/main/res/values/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #E91E63
4 |
--------------------------------------------------------------------------------
/plugin/hysteria/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("com.android.application")
3 | }
4 |
5 | setupPlugin("hysteria")
--------------------------------------------------------------------------------
/plugin/hysteria/src/main/ic_launcher-playstore.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/hysteria/src/main/ic_launcher-playstore.png
--------------------------------------------------------------------------------
/plugin/hysteria/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/plugin/hysteria/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/plugin/hysteria/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/hysteria/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/hysteria/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/hysteria/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/hysteria/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/hysteria/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/hysteria/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/hysteria/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/hysteria/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/hysteria/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/hysteria/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/hysteria/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/hysteria/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/hysteria/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/hysteria/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/hysteria/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/hysteria/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/hysteria/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/hysteria/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/hysteria/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/hysteria/src/main/res/values/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #E91E63
4 |
--------------------------------------------------------------------------------
/plugin/naive/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("com.android.application")
3 | }
4 |
5 | setupPlugin("naive")
--------------------------------------------------------------------------------
/plugin/naive/src/main/ic_launcher-playstore.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/naive/src/main/ic_launcher-playstore.png
--------------------------------------------------------------------------------
/plugin/naive/src/main/jni/BUILD.gn:
--------------------------------------------------------------------------------
1 | # Copyright 2019 The Chromium Authors. All rights reserved.
2 | # Use of this source code is governed by a BSD-style license that can be
3 | # found in the LICENSE file.
4 | config("cpu_features_include") {
5 | include_dirs = [ "sources/android/cpufeatures" ]
6 | }
7 | config("cpu_features_warnings") {
8 | if (is_clang) {
9 | # cpu-features.c has few unused functions on x86 b/26403333
10 | cflags = [ "-Wno-unused-function" ]
11 | }
12 | }
13 | source_set("cpu_features") {
14 | sources = [
15 | "sources/android/cpufeatures/cpu-features.c",
16 | ]
17 | public_configs = [ ":cpu_features_include" ]
18 | configs -= [ "//build/config/compiler:chromium_code" ]
19 | configs += [
20 | "//build/config/compiler:no_chromium_code",
21 | # Must be after no_chromium_code for warning flags to be ordered correctly.
22 | ":cpu_features_warnings",
23 | ]
24 | }
--------------------------------------------------------------------------------
/plugin/naive/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/plugin/naive/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/plugin/naive/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/naive/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/naive/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/naive/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/naive/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/naive/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/naive/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/naive/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/naive/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/naive/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/naive/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/naive/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/naive/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/naive/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/naive/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/naive/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/naive/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/naive/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/naive/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/naive/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/naive/src/main/res/values/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #E91E63
4 |
--------------------------------------------------------------------------------
/plugin/pingtunnel/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("com.android.application")
3 | }
4 |
5 | setupPlugin("pingtunnel")
--------------------------------------------------------------------------------
/plugin/pingtunnel/src/main/ic_launcher-playstore.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/pingtunnel/src/main/ic_launcher-playstore.png
--------------------------------------------------------------------------------
/plugin/pingtunnel/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/plugin/pingtunnel/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/plugin/pingtunnel/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/pingtunnel/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/pingtunnel/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/pingtunnel/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/pingtunnel/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/pingtunnel/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/pingtunnel/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/pingtunnel/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/pingtunnel/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/pingtunnel/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/pingtunnel/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/pingtunnel/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/pingtunnel/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/pingtunnel/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/pingtunnel/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/pingtunnel/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/pingtunnel/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/pingtunnel/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/pingtunnel/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/pingtunnel/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/pingtunnel/src/main/res/values/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #E91E63
4 |
--------------------------------------------------------------------------------
/plugin/relaybaton/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("com.android.application")
3 | }
4 |
5 | setupPlugin("relaybaton")
--------------------------------------------------------------------------------
/plugin/relaybaton/src/main/ic_launcher-playstore.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/relaybaton/src/main/ic_launcher-playstore.png
--------------------------------------------------------------------------------
/plugin/relaybaton/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/plugin/relaybaton/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/plugin/relaybaton/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/relaybaton/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/relaybaton/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/relaybaton/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/relaybaton/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/relaybaton/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/relaybaton/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/relaybaton/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/relaybaton/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/relaybaton/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/relaybaton/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/relaybaton/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/relaybaton/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/relaybaton/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/relaybaton/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/relaybaton/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/relaybaton/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/relaybaton/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/relaybaton/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/relaybaton/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/relaybaton/src/main/res/values/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #E91E63
4 |
--------------------------------------------------------------------------------
/plugin/trojan-go/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("com.android.application")
3 | }
4 |
5 | setupPlugin("trojan_go")
--------------------------------------------------------------------------------
/plugin/trojan-go/src/main/ic_launcher-playstore.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/trojan-go/src/main/ic_launcher-playstore.png
--------------------------------------------------------------------------------
/plugin/trojan-go/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/plugin/trojan-go/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/plugin/trojan-go/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/trojan-go/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/trojan-go/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/trojan-go/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/trojan-go/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/trojan-go/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/trojan-go/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/trojan-go/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/trojan-go/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/trojan-go/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/trojan-go/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/trojan-go/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/trojan-go/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/trojan-go/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/trojan-go/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/trojan-go/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/trojan-go/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/trojan-go/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/plugin/trojan-go/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/plugin/trojan-go/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/plugin/trojan-go/src/main/res/values/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #E91E63
4 |
--------------------------------------------------------------------------------
/plugin/trojan/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("com.android.application")
3 | }
4 |
5 | System.setProperty("SKIP_BUILD_TROJAN", "on")
6 |
7 | setupCommon()
8 | setupNdk()
9 | setupPlugin("trojan")
10 |
11 | android {
12 | defaultConfig {
13 | minSdkVersion(23)
14 | externalNativeBuild {
15 | cmake {
16 | arguments("-DANDROID_CPP_FEATURES=rtti exceptions")
17 | }
18 | }
19 | }
20 |
21 | externalNativeBuild {
22 | cmake {
23 | path(file("src/main/cpp/CMakeLists.txt"))
24 | }
25 | }
26 | }
--------------------------------------------------------------------------------
/release.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nekohasekai/SagerNet/805c94c883bf5889808aaa28a3cd5c7e7bd58d58/release.keystore
--------------------------------------------------------------------------------
/repositories.gradle.kts:
--------------------------------------------------------------------------------
1 | rootProject.extra.apply {
2 | set("androidPluginVersion", "7.0.4")
3 | set("kotlinVersion", "1.6.10")
4 | set("hutoolVersion", "5.7.18")
5 | }
6 |
7 | repositories {
8 | google()
9 | mavenCentral()
10 | gradlePluginPortal()
11 | maven(url = "https://jitpack.io")
12 | }
--------------------------------------------------------------------------------
/run:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | EXEC=""
4 | TARGET="bin"
5 | declare -A PARAMS
6 | declare -i INDEX=0
7 |
8 | for e in $@; do
9 | TARGET="$TARGET/$e"
10 | PARAMS[$INDEX]=$e
11 | INDEX=$INDEX+1
12 | shift
13 | if [ -x "${TARGET}.sh" ]; then
14 | EXEC="${TARGET}.sh"
15 | PARAMS=()
16 | INDEX=0
17 | fi
18 | done
19 |
20 | echo ">> $EXEC"
21 | exec "$EXEC" $PARAMS
22 |
--------------------------------------------------------------------------------
/sager.properties:
--------------------------------------------------------------------------------
1 | PACKAGE_NAME=io.nekohasekai.sagernet
2 | VERSION_NAME=0.7-beta03
3 | VERSION_CODE=145
4 |
5 | NAIVE_VERSION_NAME=97.0.4692.71-2
6 | NAIVE_VERSION=10
7 |
8 | PINGTUNNEL_VERSION_NAME=2.5
9 | PINGTUNNEL_VERSION=1
10 |
11 | RELAYBATON_VERSION_NAME=0.6.0-ech-1
12 | RELAYBATON_VERSION=2
13 |
14 | TROJAN_GO_VERSION_NAME=0.10.6
15 | TROJAN_GO_VERSION=5
16 |
17 | BROOK_VERSION_NAME=20210601
18 | BROOK_VERSION=2
19 |
20 | TROJAN_VERSION_NAME=1.16.0
21 | TROJAN_VERSION=1
22 |
23 | HYSTERIA_VERSION_NAME=0.9.3
24 | HYSTERIA_VERSION=9
--------------------------------------------------------------------------------