Skip to content

Commit bc27750

Browse files
committed
Backup for myself
0 parents  commit bc27750

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+4198
-0
lines changed

DNSman.iml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module external.linked.project.id="DNSman" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
3+
<component name="FacetManager">
4+
<facet type="java-gradle" name="Java-Gradle">
5+
<configuration>
6+
<option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/build" />
7+
<option name="BUILDABLE" value="false" />
8+
</configuration>
9+
</facet>
10+
</component>
11+
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6" inherit-compiler-output="true">
12+
<exclude-output />
13+
<content url="file://$MODULE_DIR$">
14+
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
15+
</content>
16+
<orderEntry type="inheritedJdk" />
17+
<orderEntry type="sourceFolder" forTests="false" />
18+
</component>
19+
</module>

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# DNS man
2+
3+
DNS resolver setting tool for Android.
4+
5+
#PLAN
6+
===
7+
0.10:
8+
- VPN mode
9+
10+
0.11:
11+
- Control notification
12+
- Xposed, auto click method
13+
- Built-in DNS list
14+
- Network check service(e.g. To detect mobile network fallback to 3G from 4G, and Android 7 support)
15+
16+
How to build
17+
===
18+
19+
$ ./depending_repos.sh
20+
$ ./gradlew build
21+
22+
Help my work
23+
===
24+
25+
Alipay: yugen.dev#gmail.com (# replace to @)
26+
27+
[Translate](https://crowdin.com/project/dnsman)
28+
29+
Thanks to
30+
===
31+
32+
[libsuperuser](https://github.com/Chainfire/libsuperuser)
33+
34+
[OpenCC](https://github.com/BYVoid/OpenCC)
35+
36+
[GNOME](https://www.gnome.org)
37+
38+
[Twidere](https://github.com/TwidereProject/Twidere-Android)
39+
40+
[shadowsocks-android](https://github.com/shadowsocks/shadowsocks-android)
41+
42+
[fqrouter](https://github.com/fqrouter/fqrouter)
43+
44+
License: GNU GPL v3
45+
46+
Copyright (c) 2015-2016 otakuchiyan <codeotakuchiyan[at]gmail.com>

app/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

app/build.gradle

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 23
5+
buildToolsVersion '23.0.3'
6+
7+
defaultConfig {
8+
applicationId "io.github.otakuchiyan.dnsman"
9+
minSdkVersion 16
10+
targetSdkVersion 23
11+
versionCode 101
12+
versionName "0.10.1"
13+
}
14+
buildTypes {
15+
release {
16+
minifyEnabled true
17+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18+
}
19+
}
20+
//workaround
21+
lintOptions {
22+
abortOnError false
23+
}
24+
}
25+
26+
dependencies {
27+
provided fileTree(include: ['*.jar'], dir: 'libs')
28+
compile project(':libsuperuser')
29+
compile 'com.android.support:support-v4:23.3.0'
30+
}

app/libs/XposedBridgeApi-54.jar

115 KB
Binary file not shown.

app/local.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
sdk.dir=/home/vagrant/android-sdk
2+
sdk-location=/home/vagrant/android-sdk
3+
ndk.dir=/home/vagrant/android-ndk/r10e
4+
ndk-location=/home/vagrant/android-ndk/r10e

app/proguard-rules.pro

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in /home/nanafa/bin/android-sdk/tools/proguard/proguard-android.txt
4+
# You can edit the include path and order by changing the proguardFiles
5+
# directive in build.gradle.
6+
#
7+
# For more details, see
8+
# http://developer.android.com/guide/developing/tools/proguard.html
9+
10+
# Add any project specific keep options here:
11+
12+
# If your project uses WebView with JS, uncomment the following
13+
# and specify the fully qualified class name to the JavaScript interface
14+
# class:
15+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16+
# public *;
17+
#}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package io.github.otakuchiyan.dnsman;
2+
3+
import android.app.Application;
4+
import android.test.ApplicationTestCase;
5+
6+
/**
7+
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
8+
*/
9+
public class ApplicationTest extends ApplicationTestCase<Application> {
10+
public ApplicationTest() {
11+
super(Application.class);
12+
}
13+
}

app/src/main/AndroidManifest.xml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="io.github.otakuchiyan.dnsman">
4+
5+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
6+
<uses-permission android:name="android.permission.INTERNET" />
7+
8+
<application
9+
android:allowBackup="true"
10+
android:label="DNS man"
11+
android:icon="@mipmap/ic_launcher"
12+
android:theme="@style/AppTheme">
13+
<!--
14+
<meta-data
15+
android:name="xposedmodule"
16+
android:value="true" />
17+
<meta-data
18+
android:name="xposeddescription"
19+
android:value="@string/xposed_description" />
20+
<meta-data
21+
android:name="xposedminversion"
22+
android:value="20" />
23+
-->
24+
25+
<activity android:name=".MainActivity">
26+
<intent-filter>
27+
<action android:name="android.intent.action.MAIN" />
28+
29+
<category android:name="android.intent.category.LAUNCHER" />
30+
</intent-filter>
31+
</activity>
32+
33+
<activity
34+
android:name=".DnsEditActivity"
35+
android:parentActivityName=".MainActivity"
36+
android:windowSoftInputMode="adjustResize|stateAlwaysVisible" />
37+
38+
<activity
39+
android:name=".SettingsActivity"
40+
android:label="@string/title_activity_settings"
41+
android:parentActivityName=".MainActivity">
42+
<meta-data
43+
android:name="android.support.PARENT_ACTIVITY"
44+
android:value=".MainActivity" />
45+
</activity>
46+
47+
<activity
48+
android:name=".VpnWrapperActivity"
49+
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
50+
51+
52+
53+
<service
54+
android:name=".ExecuteIntentService"
55+
android:exported="false" />
56+
57+
<service
58+
android:name=".DnsVpnService"
59+
android:permission="android.permission.BIND_VPN_SERVICE">
60+
<intent-filter>
61+
<action android:name="android.net.VpnService" />
62+
</intent-filter>
63+
</service>
64+
65+
<service android:name=".ControlNotification$ChangeAutoSettingService"/>
66+
67+
<receiver
68+
android:name=".NetworkChangeReceiver"
69+
android:enabled="true"
70+
android:exported="true">
71+
<intent-filter>
72+
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
73+
</intent-filter>
74+
</receiver>
75+
76+
</application>
77+
</manifest>

0 commit comments

Comments
 (0)