Skip to content

Commit 29d3fb7

Browse files
committed
ii
0 parents  commit 29d3fb7

File tree

197 files changed

+15299
-0
lines changed

Some content is hidden

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

197 files changed

+15299
-0
lines changed

.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
V2rayNG/app/src/main/res/layout/activity_inapp_buy.xml
2+
V2rayNG/app/src/main/assets/geoip.dat
3+
V2rayNG/app/src/main/assets/geosite.dat
4+
V2rayNG/app/src/main/java/com/v2ray/ang/InappBuyActivity.java
5+
V2rayNG/gradle/wrapper/gradle-wrapper.properties
6+
V2rayNG/gradle/wrapper/gradle-wrapper.properties
7+
*.aar
8+
*.dat
9+
*.jks
10+
V2rayNG/gradle/wrapper/gradle-wrapper.properties
11+
V2rayNG/gradle/wrapper/gradle-wrapper.properties
12+
V2rayNG/app/release/output.json

CR.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
v2rayNG 隐私条款
2+
3+
最后更新 2017-11-22
4+
5+
v2rayNG 尊重并保护所有用户的个人隐私权,为此我们向大众公开这份隐私条款。**您使用 v2rayNG 即代表您以阅读并同意了这份条款,如果您不同意这份条款请立即停止使用并卸载 v2rayNG。**
6+
7+
1. 信息收集
8+
9+
v2rayNG 软件自身不会发送任何信息到开发者,但是您下载软件的应用市场(如 Google Play)可能会收集关于应用运行状态的相关信息并提供给 v2rayNG 开发者。有关这些信息,请阅读您使用的应用市场所提供的隐私条款。
10+
11+
v2rayNG 软件中可能包含需要通过 IAP 支付解锁的功能,您的支付信息将由相关的 IAP 渠道进行处理,而我们对支付信息没有访问权。
12+
13+
当您向 v2rayNG 开发者反馈软件运行中的错误时,开发者可能会要求您提供软件以及系统的日志以帮助确认问题的原因。因日志中可能包括敏感信息,此类信息只能由您自己操作发送。**我们不对任何传输服务的安全性和隐私性做任何明示或暗示的担保,请您在传送相关信息时选择可以您自身可以接受的方式。**
14+
15+
2. 信息共享
16+
17+
我们不会向任何第三方出售收集到的用户数据。我们可能向外部开发者提供信息以协助软件的开发,但是在提供信息之前我们会传达相关保密义务并确定其可以遵守。
18+
19+
3. 信息存留
20+
21+
除非有相关法律规定,我们会在 30 天内清除不需要继续使用的用户数据,或将统计数据整合为无法识别单个用户的综合报告。
22+
23+
4. 信息泄露
24+
25+
我们会使用合理的技术和安全手段尽力保护用户的数据,但是无法保证数据的绝对安全。如果我们确认数据发生了泄露,我们会在 7 天内通过可用的渠道通知用户。**您同意不向我们追责任何因不可抗力而造成的损失。**
26+
27+
5. 条款修改
28+
29+
我们保留修改这份隐私条款的权利,但是会确保在更新条款前至少 30 天通过我们的可用渠道和应用内提示来通知用户。**在新条款生效后继续使用软件即表示您同意修改后的隐私条款。**

LICENSE

+674
Large diffs are not rendered by default.

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# v2rayNG
2+
3+
<a href="https://play.google.com/store/apps/details?id=com.v2ray.ang">
4+
<img alt="Get it on Google Play" src="https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png" width="165" height="64" />
5+
</a>
6+

V2rayNG/.gitignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea
5+
.DS_Store
6+
/build
7+
/captures
8+
*.apk
9+
signing.properties

V2rayNG/app/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/build
2+
/google-services.json

V2rayNG/app/build.gradle

+129
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
apply plugin: 'com.android.application'
2+
apply plugin: 'kotlin-android'
3+
apply plugin: 'kotlin-android-extensions'
4+
5+
android {
6+
compileSdkVersion 27
7+
buildToolsVersion '27.0.3'
8+
9+
compileOptions {
10+
targetCompatibility = "8"
11+
sourceCompatibility = "8"
12+
}
13+
14+
defaultConfig {
15+
applicationId "com.v2ray.ang"
16+
minSdkVersion 17
17+
targetSdkVersion Integer.parseInt("$targetSdkVer")
18+
multiDexEnabled true
19+
versionCode 206
20+
versionName "0.6.21"
21+
}
22+
23+
signingConfigs {
24+
release {
25+
storeFile file("../key.jks")
26+
keyAlias 'ang'
27+
keyPassword '123456'
28+
storePassword '123456'
29+
}
30+
debug {
31+
storeFile file("../key.jks")
32+
keyAlias 'ang'
33+
keyPassword '123456'
34+
storePassword '123456'
35+
}
36+
}
37+
38+
buildTypes {
39+
release {
40+
minifyEnabled false
41+
zipAlignEnabled false
42+
shrinkResources false
43+
signingConfig signingConfigs.release
44+
// proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
45+
}
46+
debug {
47+
minifyEnabled false
48+
zipAlignEnabled false
49+
shrinkResources false
50+
signingConfig signingConfigs.release
51+
}
52+
}
53+
54+
sourceSets {
55+
main.java.srcDirs += 'src/main/kotlin'
56+
}
57+
58+
splits {
59+
abi {
60+
enable true
61+
reset()
62+
include 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a' //select ABIs to build APKs for
63+
universalApk true //generate an additional APK that contains all the ABIs
64+
}
65+
}
66+
67+
// map for the version code
68+
project.ext.versionCodes = ['armeabi-v7a': 1, 'arm64-v8a': 2, 'x86': 3, 'x86_64': 4]
69+
70+
android.applicationVariants.all { variant ->
71+
// assign different version code for each output
72+
variant.outputs.each { output ->
73+
output.versionCodeOverride =
74+
project.ext.versionCodes.get(output.getFilter(com.android.build.OutputFile.ABI), 0) *
75+
1000000 + android.defaultConfig.versionCode
76+
}
77+
}
78+
}
79+
80+
dependencies {
81+
implementation fileTree(include: ['*.jar'], dir: 'libs')
82+
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
83+
testImplementation 'junit:junit:4.12'
84+
implementation project(':dpreference')
85+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
86+
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
87+
// Android support library
88+
implementation "com.android.support:support-v4:$supportLibVersion"
89+
implementation "com.android.support:appcompat-v7:$supportLibVersion"
90+
implementation "com.android.support:design:$supportLibVersion"
91+
implementation "com.android.support:cardview-v7:$supportLibVersion"
92+
implementation "com.android.support:preference-v7:$supportLibVersion"
93+
implementation "com.android.support:recyclerview-v7:$supportLibVersion"
94+
// DSL
95+
implementation "org.jetbrains.anko:anko-sdk15:$ankoVersion"
96+
implementation "org.jetbrains.anko:anko-support-v4:$ankoVersion"
97+
implementation "org.jetbrains.anko:anko-appcompat-v7:$ankoVersion"
98+
implementation "org.jetbrains.anko:anko-design:$ankoVersion"
99+
implementation 'com.google.code.gson:gson:2.8.2'
100+
implementation 'io.reactivex:rxjava:1.3.4'
101+
implementation 'io.reactivex:rxandroid:1.2.1'
102+
implementation 'com.tbruyelle.rxpermissions:rxpermissions:0.9.4@aar'
103+
implementation 'com.dinuscxj:recycleritemdecoration:1.0.0'
104+
implementation 'io.reactivex:rxkotlin:0.60.0'
105+
implementation 'me.dm7.barcodescanner:core:1.9.8'
106+
implementation 'me.dm7.barcodescanner:zxing:1.9.8'
107+
implementation 'com.github.jorgecastilloprz:fabprogresscircle:1.01@aar'
108+
implementation 'com.beust:klaxon:3.0.1'
109+
implementation 'com.android.support:multidex:1.0.3'
110+
111+
implementation(name: 'libv2ray', ext: 'aar')
112+
//implementation(name: 'tun2socks', ext: 'aar')
113+
}
114+
115+
buildscript {
116+
repositories {
117+
google()
118+
jcenter()
119+
maven { url 'https://maven.google.com' }
120+
}
121+
dependencies {
122+
classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlinVersion"
123+
}
124+
}
125+
repositories {
126+
flatDir {
127+
dirs 'libs'
128+
}
129+
}

V2rayNG/app/proguard-rules.pro

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in G:\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+
#}
18+
19+
# Gson uses generic type information stored in a class file when working with fields. Proguard
20+
# removes such information by default, so configure it to keep all of it.
21+
-keepattributes Signature
22+
23+
# For using GSON @Expose annotation
24+
-keepattributes *Annotation*
25+
26+
# Gson specific classes
27+
-keep class sun.misc.Unsafe { *; }
28+
29+
-dontwarn org.apache.commons.**
30+
-keep class org.apache.commons.** { *;}
31+
32+
# Disable debug info output
33+
-assumenosideeffects class android.util.Log {
34+
public static boolean isLoggable(java.lang.String,int);
35+
public static int v(...);
36+
public static int i(...);
37+
public static int w(...);
38+
public static int d(...);
39+
public static int e(...);
40+
}
41+
-assumenosideeffects class kotlin.jvm.internal.Intrinsics {
42+
static void checkParameterIsNotNull(java.lang.Object, java.lang.String);
43+
static void checkExpressionValueIsNotNull(java.lang.Object, java.lang.String);
44+
static void throwUninitializedPropertyAccessException(java.lang.String);
45+
}
46+
47+
-dontwarn org.jetbrains.anko.internals.**
48+
-keep class org.jetbrains.anko.internals.** { *;}
49+
50+
-dontwarn rx.internal.util.unsafe.**
51+
-keep class rx.internal.util.unsafe.** { *;}
52+
53+
-dontwarn app.dinus.**
54+
-keep class app.dinus.** { *;}
55+
56+
-keepclassmembers class ** {
57+
@com.hwangjr.rxbus.annotation.Subscribe public *;
58+
@com.hwangjr.rxbus.annotation.Produce public *;
59+
}
60+
61+
-keep class libv2ray.** { *;}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.v2ray.ang;
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+
}
+125
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.v2ray.ang">
4+
5+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
6+
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>
7+
<uses-permission android:name="android.permission.INTERNET" />
8+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
9+
<!-- <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> -->
10+
<uses-permission android:name="android.permission.CAMERA" />
11+
<uses-permission android:name="com.android.vending.BILLING" />
12+
13+
<!-- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> -->
14+
<application
15+
android:name=".AngApplication"
16+
android:allowBackup="true"
17+
android:icon="@mipmap/ic_launcher"
18+
android:label="@string/app_name"
19+
android:supportsRtl="true"
20+
android:theme="@style/AppTheme">
21+
<activity
22+
android:name=".ui.MainActivity"
23+
android:theme="@style/AppTheme.NoActionBar"
24+
android:launchMode="singleTask">
25+
<intent-filter>
26+
<action android:name="android.intent.action.MAIN" />
27+
28+
<category android:name="android.intent.category.LAUNCHER" />
29+
</intent-filter>
30+
<intent-filter>
31+
<action android:name="android.intent.action.SEND" />
32+
33+
<category android:name="android.intent.category.DEFAULT" />
34+
35+
<data android:mimeType="text/plain" />
36+
</intent-filter>
37+
<intent-filter>
38+
<action android:name="android.service.quicksettings.action.QS_TILE_PREFERENCES" />
39+
</intent-filter>
40+
41+
<meta-data
42+
android:name="android.app.shortcuts"
43+
android:resource="@xml/shortcuts" />
44+
</activity>
45+
<activity
46+
android:name=".ui.ServerActivity"
47+
android:windowSoftInputMode="stateUnchanged" />
48+
<activity
49+
android:name=".ui.Server2Activity"
50+
android:windowSoftInputMode="stateUnchanged" />
51+
<activity
52+
android:name=".ui.Server3Activity"
53+
android:windowSoftInputMode="stateUnchanged" />
54+
<activity
55+
android:name=".ui.Server4Activity"
56+
android:windowSoftInputMode="stateUnchanged" />
57+
<activity android:name=".ui.SettingsActivity" />
58+
<activity android:name=".ui.PerAppProxyActivity" />
59+
<activity android:name=".ui.ScannerActivity" />
60+
<activity android:name=".InappBuyActivity" />
61+
<activity android:name=".ui.LogcatActivity" />
62+
<activity
63+
android:name=".ui.RoutingSettingsActivity"
64+
android:windowSoftInputMode="stateUnchanged" />
65+
<activity android:name=".ui.SubSettingActivity" />
66+
67+
<activity android:name=".ui.SubEditActivity" />
68+
<activity android:name=".ui.ScScannerActivity" />
69+
<activity android:name=".ui.ScSwitchActivity" />
70+
71+
<service
72+
android:name=".service.V2RayVpnService"
73+
android:enabled="true"
74+
android:exported="false"
75+
android:label="@string/app_name"
76+
android:permission="android.permission.BIND_VPN_SERVICE"
77+
android:process=":RunSoLibV2RayDaemon">
78+
<intent-filter>
79+
<action android:name="android.net.VpnService" />
80+
</intent-filter>
81+
<meta-data
82+
android:name="android.net.VpnService.SUPPORTS_ALWAYS_ON"
83+
android:value="true" />
84+
</service>
85+
86+
<!--<receiver android:name=".receiver.WidgetProvider">-->
87+
<!--<meta-data-->
88+
<!--android:name="android.appwidget.provider"-->
89+
<!--android:resource="@xml/app_widget_provider" />-->
90+
91+
<!--<intent-filter>-->
92+
<!--<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />-->
93+
<!--<action android:name="com.v2ray.ang.action.widget.click" />-->
94+
<!--</intent-filter>-->
95+
<!--</receiver>-->
96+
97+
<service
98+
android:name=".service.QSTileService"
99+
android:icon="@drawable/ic_v"
100+
android:label="@string/app_tile_name"
101+
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
102+
<intent-filter>
103+
<action android:name="android.service.quicksettings.action.QS_TILE" />
104+
</intent-filter>
105+
</service>
106+
<!-- =====================Tasker===================== -->
107+
<activity
108+
android:name=".ui.TaskerActivity"
109+
android:icon="@mipmap/ic_launcher"
110+
android:label="@string/app_name">
111+
<intent-filter>
112+
<action android:name="com.twofortyfouram.locale.intent.action.EDIT_SETTING" />
113+
</intent-filter>
114+
</activity>
115+
116+
<receiver android:name=".receiver.TaskerReceiver">
117+
<intent-filter>
118+
<action android:name="com.twofortyfouram.locale.intent.action.FIRE_SETTING" />
119+
</intent-filter>
120+
</receiver>
121+
<!-- =====================Tasker===================== -->
122+
123+
</application>
124+
125+
</manifest>

0 commit comments

Comments
 (0)