Skip to content

Commit

Permalink
Make the app work without root via VpnService
Browse files Browse the repository at this point in the history
  • Loading branch information
benhylau committed Apr 28, 2016
1 parent 00279a1 commit 89b8ee5
Show file tree
Hide file tree
Showing 22 changed files with 1,576 additions and 417 deletions.
11 changes: 9 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ build/
local.properties
*.iml
*.class
src/main/assets/x86/
src/main/libs/
src/main/obj/
src/main/assets/armeabi/
src/main/assets/armeabi-v7a/
src/main/assets/cjdroute.conf
src/main/assets/arm64-v8a/
src/main/assets/x86/
src/main/assets/x86_64/
src/main/assets/mips/
src/main/assets/mips64/
src/main/assets/all/
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:1.3.1'
classpath 'com.android.tools.build:gradle:2.0.0'
}
}

Expand All @@ -27,6 +27,10 @@ android {
versionCode 1
versionName "1.0.0-SNAPSHOT"
}
sourceSets.main {
jni.srcDirs = []
jniLibs.srcDir 'src/main/libs'
}
signingConfigs {
release
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.12-all.zip
4 changes: 4 additions & 0 deletions install_debug
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

ndk-build NDK_DEBUG=true NDK_PROJECT_PATH=src/main/
./gradlew installDebug
4 changes: 4 additions & 0 deletions install_release
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

ndk-build NDK_DEBUG=false NDK_PROJECT_PATH=src/main/

This comment has been minimized.

Copy link
@sssemil

sssemil Oct 8, 2016

Contributor

Running ndk-build NDK_DEBUG=false NDK_PROJECT_PATH=src/main gives an error:
src/main/jni/Android.mk:13: *** missing separator. Stop.. I'm using android-ndk-r12b.

./gradlew installRelease
3 changes: 3 additions & 0 deletions src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
</activity>

<service android:name=".CjdnsService" />
<service
android:name=".CjdnsVpnService"
android:permission="android.permission.BIND_VPN_SERVICE" />

</application>
</manifest>
Loading

0 comments on commit 89b8ee5

Please sign in to comment.