1) Fixed theme
2) Fixed VPN connection
This commit is contained in:
parent
6c614a4b3c
commit
82165eaf37
2 changed files with 77 additions and 21 deletions
|
@ -1,5 +1,10 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<manifest package="org.amnezia.vpn" xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="-- %%INSERT_VERSION_NAME%% --" android:versionCode="-- %%INSERT_VERSION_CODE%% --" android:installLocation="auto">
|
<manifest
|
||||||
|
package="org.amnezia.vpn"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:versionName="-- %%INSERT_VERSION_NAME%% --"
|
||||||
|
android:versionCode="-- %%INSERT_VERSION_CODE%% --"
|
||||||
|
android:installLocation="auto">
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.INTERNET"/>
|
<uses-permission android:name="android.permission.INTERNET"/>
|
||||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
|
||||||
|
@ -16,14 +21,36 @@
|
||||||
Remove the comment if you do not require these default features. -->
|
Remove the comment if you do not require these default features. -->
|
||||||
<!-- %%INSERT_FEATURES -->
|
<!-- %%INSERT_FEATURES -->
|
||||||
|
|
||||||
<supports-screens android:largeScreens="true" android:normalScreens="true" android:anyDensity="true" android:smallScreens="true"/>
|
<supports-screens
|
||||||
|
android:largeScreens="true"
|
||||||
|
android:normalScreens="true"
|
||||||
|
android:anyDensity="true"
|
||||||
|
android:smallScreens="true"/>
|
||||||
|
|
||||||
<application android:name=".qt.AmneziaApp" android:hardwareAccelerated="true" android:label="-- %%INSERT_APP_NAME%% --" android:extractNativeLibs="true" android:icon="@drawable/icon">
|
<application
|
||||||
<activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density" android:name=".qt.VPNActivity" android:label="-- %%INSERT_APP_NAME%% --" android:screenOrientation="unspecified" android:launchMode="singleInstance" android:taskAffinity="" android:theme="@style/splashScreenTheme">
|
android:name=".qt.AmneziaApp"
|
||||||
|
android:hardwareAccelerated="true"
|
||||||
|
android:label="-- %%INSERT_APP_NAME%% --"
|
||||||
|
android:extractNativeLibs="true"
|
||||||
|
android:requestLegacyExternalStorage="true"
|
||||||
|
android:allowNativeHeapPointerTagging="false"
|
||||||
|
android:icon="@drawable/icon">
|
||||||
|
|
||||||
|
<activity
|
||||||
|
android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density"
|
||||||
|
android:name=".qt.VPNActivity"
|
||||||
|
android:label="-- %%INSERT_APP_NAME%% --"
|
||||||
|
android:screenOrientation="unspecified"
|
||||||
|
android:launchMode="singleInstance"
|
||||||
|
android:exported="true">
|
||||||
|
|
||||||
|
<!-- android:theme="@style/splashScreenTheme"-->
|
||||||
|
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN"/>
|
<action android:name="android.intent.action.MAIN"/>
|
||||||
<category android:name="android.intent.category.LAUNCHER"/>
|
<category android:name="android.intent.category.LAUNCHER"/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
|
||||||
<intent-filter android:label="AmneziaVPN">
|
<intent-filter android:label="AmneziaVPN">
|
||||||
<action android:name="android.intent.action.SEND"/>
|
<action android:name="android.intent.action.SEND"/>
|
||||||
<action android:name="android.intent.action.VIEW"/>
|
<action android:name="android.intent.action.VIEW"/>
|
||||||
|
@ -38,6 +65,7 @@
|
||||||
<data android:pathPattern=".*\\..*\\..*\\..*\\.vpn"/>
|
<data android:pathPattern=".*\\..*\\..*\\..*\\.vpn"/>
|
||||||
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.vpn"/>
|
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.vpn"/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
|
||||||
<intent-filter android:label="AmneziaVPN">
|
<intent-filter android:label="AmneziaVPN">
|
||||||
<action android:name="android.intent.action.SEND"/>
|
<action android:name="android.intent.action.SEND"/>
|
||||||
<action android:name="android.intent.action.VIEW"/>
|
<action android:name="android.intent.action.VIEW"/>
|
||||||
|
@ -52,6 +80,7 @@
|
||||||
<data android:pathPattern=".*\\..*\\..*\\..*\\.cfg"/>
|
<data android:pathPattern=".*\\..*\\..*\\..*\\.cfg"/>
|
||||||
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.cfg"/>
|
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.cfg"/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
|
||||||
<intent-filter android:label="AmneziaVPN">
|
<intent-filter android:label="AmneziaVPN">
|
||||||
<action android:name="android.intent.action.SEND"/>
|
<action android:name="android.intent.action.SEND"/>
|
||||||
<action android:name="android.intent.action.VIEW"/>
|
<action android:name="android.intent.action.VIEW"/>
|
||||||
|
@ -67,22 +96,50 @@
|
||||||
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.conf"/>
|
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.conf"/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
|
||||||
<meta-data android:name="android.app.lib_name" android:value="-- %%INSERT_APP_LIB_NAME%% --"/>
|
<meta-data
|
||||||
<meta-data android:name="android.app.extract_android_style" android:value="minimal" />
|
android:name="android.app.lib_name"
|
||||||
<meta-data android:name="android.app.background_running" android:value="false"/>
|
android:value="-- %%INSERT_APP_LIB_NAME%% --"/>
|
||||||
|
|
||||||
|
<meta-data
|
||||||
|
android:name="android.app.extract_android_style"
|
||||||
|
android:value="minimal" />
|
||||||
|
|
||||||
|
<meta-data
|
||||||
|
android:name="android.app.background_running"
|
||||||
|
android:value="false"/>
|
||||||
|
|
||||||
|
<meta-data
|
||||||
|
android:name="android.app.arguments"
|
||||||
|
android:value="-- %%INSERT_APP_ARGUMENTS%% --" />
|
||||||
|
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<service android:name=".VPNService" android:process=":QtOnlyProcess">
|
<service
|
||||||
<meta-data android:name="android.app.lib_name" android:value="-- %%INSERT_APP_LIB_NAME%% --"/>
|
android:name=".VPNService"
|
||||||
|
android:process=":QtOnlyProcess"
|
||||||
|
android:permission="android.permission.BIND_VPN_SERVICE"
|
||||||
|
android:exported="true">
|
||||||
|
<meta-data android:name="android.app.lib_name" android:value="-- %%INSERT_APP_LIB_NAME%% --"/>
|
||||||
|
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.net.VpnService"/>
|
||||||
|
</intent-filter>
|
||||||
</service>
|
</service>
|
||||||
<service android:name=".qt.VPNPermissionHelper">
|
|
||||||
<meta-data android:name="android.app.lib_name" android:value="-- %%INSERT_APP_LIB_NAME%% --"/>
|
<service
|
||||||
|
android:name=".qt.VPNPermissionHelper"
|
||||||
|
android:permission="android.permission.BIND_VPN_SERVICE"
|
||||||
|
android:exported="true">
|
||||||
|
<meta-data android:name="android.app.lib_name" android:value="-- %%INSERT_APP_LIB_NAME%% --"/>
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
<!-- For adding service(s) please check: https://wiki.qt.io/AndroidServices -->
|
<!-- For adding service(s) please check: https://wiki.qt.io/AndroidServices -->
|
||||||
<provider android:name="androidx.core.content.FileProvider" android:authorities="org.amnezia.vpn.fileprovider" android:exported="false" android:grantUriPermissions="true">
|
<provider
|
||||||
|
android:name="androidx.core.content.FileProvider"
|
||||||
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/fileprovider"/>
|
android:authorities="org.amnezia.vpn.fileprovider"
|
||||||
|
android:exported="false"
|
||||||
|
android:grantUriPermissions="true">
|
||||||
|
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/fileprovider"/>
|
||||||
</provider>
|
</provider>
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
|
|
|
@ -46,8 +46,6 @@ HEADERS += \
|
||||||
debug.h \
|
debug.h \
|
||||||
defines.h \
|
defines.h \
|
||||||
managementserver.h \
|
managementserver.h \
|
||||||
platforms/android/androidutils.h \
|
|
||||||
platforms/android/androidvpnactivity.h \
|
|
||||||
platforms/ios/MobileUtils.h \
|
platforms/ios/MobileUtils.h \
|
||||||
platforms/linux/leakdetector.h \
|
platforms/linux/leakdetector.h \
|
||||||
protocols/protocols_defs.h \
|
protocols/protocols_defs.h \
|
||||||
|
@ -110,8 +108,6 @@ SOURCES += \
|
||||||
debug.cpp \
|
debug.cpp \
|
||||||
main.cpp \
|
main.cpp \
|
||||||
managementserver.cpp \
|
managementserver.cpp \
|
||||||
platforms/android/androidutils.cpp \
|
|
||||||
platforms/android/androidvpnactivity.cpp \
|
|
||||||
platforms/ios/MobileUtils.cpp \
|
platforms/ios/MobileUtils.cpp \
|
||||||
platforms/linux/leakdetector.cpp \
|
platforms/linux/leakdetector.cpp \
|
||||||
protocols/protocols_defs.cpp \
|
protocols/protocols_defs.cpp \
|
||||||
|
@ -264,13 +260,16 @@ android {
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
platforms/android/android_controller.h \
|
platforms/android/android_controller.h \
|
||||||
platforms/android/android_notificationhandler.h \
|
platforms/android/android_notificationhandler.h \
|
||||||
protocols/android_vpnprotocol.h
|
protocols/android_vpnprotocol.h \
|
||||||
|
platforms/android/androidutils.h \
|
||||||
|
platforms/android/androidvpnactivity.h
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
platforms/android/android_controller.cpp \
|
platforms/android/android_controller.cpp \
|
||||||
platforms/android/android_notificationhandler.cpp \
|
platforms/android/android_notificationhandler.cpp \
|
||||||
protocols/android_vpnprotocol.cpp
|
protocols/android_vpnprotocol.cpp \
|
||||||
|
platforms/android/androidutils.cpp \
|
||||||
|
platforms/android/androidvpnactivity.cpp
|
||||||
|
|
||||||
DISTFILES += \
|
DISTFILES += \
|
||||||
android/AndroidManifest.xml \
|
android/AndroidManifest.xml \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue