Files
amnezia-client/client/android/AndroidManifest.xml
T

158 lines
6.9 KiB
XML
Raw Normal View History

2021-08-08 18:10:09 +03:00
<?xml version="1.0"?>
2023-11-14 23:09:20 +03:00
<!-- Leave package attribute for androiddeployqt -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2022-12-26 14:00:45 +03:00
package="org.amnezia.vpn"
android:versionName="-- %%INSERT_VERSION_NAME%% --"
android:versionCode="-- %%INSERT_VERSION_CODE%% --"
android:installLocation="auto">
2021-09-30 15:56:48 +03:00
2023-11-14 23:09:20 +03:00
<uses-feature android:name="android.hardware.camera" android:required="false" />
<uses-feature android:name="android.hardware.camera.any" android:required="false" />
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
2023-11-14 23:09:20 +03:00
<!-- The following comment will be replaced upon deployment with default features based on the dependencies
of the application. Remove the comment if you do not require these default features. -->
2021-08-08 18:10:09 +03:00
<!-- %%INSERT_FEATURES -->
2023-11-14 23:09:20 +03:00
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<!-- Enable when VPN-per-app mode will be implemented -->
<!-- <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/> -->
2022-12-26 14:00:45 +03:00
<application
2023-11-16 20:16:28 +03:00
android:name=".AmneziaApplication"
2022-12-26 14:00:45 +03:00
android:label="-- %%INSERT_APP_NAME%% --"
android:allowNativeHeapPointerTagging="false"
2023-11-17 15:30:13 +03:00
android:icon="@mipmap/icon"
android:roundIcon="@mipmap/icon_round"
2023-11-14 23:09:20 +03:00
android:theme="@style/Theme.AppCompat.NoActionBar">
2022-12-26 14:00:45 +03:00
<activity
2023-11-16 20:16:28 +03:00
android:name=".AmneziaActivity"
2023-11-14 23:09:20 +03:00
android:configChanges="uiMode|screenSize|smallestScreenSize|screenLayout|orientation|density
|fontScale|layoutDirection|locale|keyboard|keyboardHidden|navigation|mcc|mnc"
2022-12-26 14:00:45 +03:00
android:launchMode="singleInstance"
android:exported="true">
2023-11-14 23:09:20 +03:00
2021-08-08 18:10:09 +03:00
<intent-filter>
2023-11-14 23:09:20 +03:00
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
2021-08-08 18:10:09 +03:00
</intent-filter>
2023-11-14 23:09:20 +03:00
2023-03-29 16:09:46 +03:00
<intent-filter>
2023-11-16 20:16:28 +03:00
<action android:name="org.amnezia.vpn.IMPORT_CONFIG" />
2023-03-29 16:09:46 +03:00
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<meta-data
android:name="android.app.lib_name"
2023-11-14 23:09:20 +03:00
android:value="-- %%INSERT_APP_LIB_NAME%% --" />
2023-03-29 16:09:46 +03:00
<meta-data
android:name="android.app.extract_android_style"
android:value="minimal" />
</activity>
2023-11-14 23:09:20 +03:00
2023-03-29 16:09:46 +03:00
<activity
2023-11-16 20:16:28 +03:00
android:name=".CameraActivity"
2023-03-29 16:09:46 +03:00
android:exported="false" />
2023-11-14 23:09:20 +03:00
2023-03-29 16:09:46 +03:00
<activity
2023-11-16 20:16:28 +03:00
android:name=".ImportConfigActivity"
2023-11-14 23:09:20 +03:00
android:exported="true">
<intent-filter android:label="AmneziaVPN">
2023-11-14 23:09:20 +03:00
<action android:name="android.intent.action.SEND" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="file" />
<data android:scheme="content" />
<data android:mimeType="*/*" />
<data android:host="*" />
<data android:pathPattern=".*\\.vpn" />
<data android:pathPattern=".*\\..*\\.vpn" />
<data android:pathPattern=".*\\..*\\..*\\.vpn" />
<data android:pathPattern=".*\\..*\\..*\\..*\\.vpn" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.vpn" />
</intent-filter>
2023-11-14 23:09:20 +03:00
<intent-filter android:label="AmneziaVPN">
2023-11-14 23:09:20 +03:00
<action android:name="android.intent.action.SEND" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="file" />
<data android:scheme="content" />
<data android:mimeType="*/*" />
<data android:host="*" />
<data android:pathPattern=".*\\.cfg" />
<data android:pathPattern=".*\\..*\\.cfg" />
<data android:pathPattern=".*\\..*\\..*\\.cfg" />
<data android:pathPattern=".*\\..*\\..*\\..*\\.cfg" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.cfg" />
</intent-filter>
2023-11-14 23:09:20 +03:00
<intent-filter android:label="AmneziaVPN">
2023-11-14 23:09:20 +03:00
<action android:name="android.intent.action.SEND" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="file" />
<data android:scheme="content" />
<data android:mimeType="*/*" />
<data android:host="*" />
<data android:pathPattern=".*\\.conf" />
<data android:pathPattern=".*\\..*\\.conf" />
<data android:pathPattern=".*\\..*\\..*\\.conf" />
<data android:pathPattern=".*\\..*\\..*\\..*\\.conf" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.conf" />
</intent-filter>
</activity>
2022-12-23 17:32:20 +03:00
2022-12-26 14:00:45 +03:00
<service
2023-11-16 20:16:28 +03:00
android:name=".AmneziaVpnService"
2022-12-26 14:00:45 +03:00
android:process=":QtOnlyProcess"
android:permission="android.permission.BIND_VPN_SERVICE"
2023-11-14 23:09:20 +03:00
android:foregroundServiceType="specialUse"
2022-12-26 14:00:45 +03:00
android:exported="true">
2023-11-14 23:09:20 +03:00
<intent-filter>
<action android:name="android.net.VpnService" />
</intent-filter>
<property android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE" android:value="vpn" />
</service>
2023-11-14 23:09:20 +03:00
2022-12-26 14:00:45 +03:00
<service
2023-11-16 20:16:28 +03:00
android:name=".VPNPermissionHelper"
2022-12-26 14:00:45 +03:00
android:permission="android.permission.BIND_VPN_SERVICE"
2023-11-14 23:09:20 +03:00
android:foregroundServiceType="specialUse"
2022-12-26 14:00:45 +03:00
android:exported="true">
2023-11-14 23:09:20 +03:00
<property android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE" android:value="vpn" />
</service>
2023-11-14 23:09:20 +03:00
<!-- For adding service(s) please check: https://wiki.qt.io/AndroidServices -->
2022-12-26 14:00:45 +03:00
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="org.amnezia.vpn.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
2023-11-14 23:09:20 +03:00
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/fileprovider" />
</provider>
2021-08-08 18:10:09 +03:00
</application>
</manifest>