Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
dependencies ▾

Modern-Apps.git / vpn / src / main / AndroidManifest.xml

AndroidManifest.xml82 lines · 4.4 KiBRaw
1<?xml version="1.0" encoding="utf-8"?>
2<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3 xmlns:tools="http://schemas.android.com/tools">
4
5 <!-- MAOS: opt out of the GrapheneOS Sensors permission (OTHER_SENSORS). -->
6 <!-- This app uses no motion/environment sensors; MAOS withholds the -->
7 <!-- Sensors permission at install instead of auto-granting it. -->
8 <uses-permission android:name="com.vayunmathur.permission.SENSORS_OPTOUT" />
9
10 <uses-permission android:name="android.permission.INTERNET" />
11 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
12 <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
13 <uses-permission android:name="android.permission.FOREGROUND_SERVICE_SYSTEM_EXEMPTED" />
14 <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
15 <!-- The bypass list enumerates every installed app (BypassHelpers.getInstalledApplications):
16 the set of packages is "all of them", so a <queries> declaration cannot express it. -->
17 <uses-permission
18 android:name="android.permission.QUERY_ALL_PACKAGES"
19 tools:ignore="QueryAllPackagesPermission" />
20
21 <application
22 android:allowBackup="true"
23 android:dataExtractionRules="@xml/data_extraction_rules"
24 android:icon="@mipmap/ic_launcher"
25 android:label="@string/app_name"
26 android:roundIcon="@mipmap/ic_launcher"
27 android:supportsRtl="true"
28 android:networkSecurityConfig="@xml/network_security_config"
29 android:theme="@style/Theme.General"
30 tools:replace="android:networkSecurityConfig">
31 <activity
32 android:name=".MainActivity"
33 android:configChanges="mcc|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|keyboardHidden|layoutDirection|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode"
34 android:exported="true"
35 android:theme="@style/Theme.General">
36 <intent-filter>
37 <action android:name="android.intent.action.MAIN" />
38 <category android:name="android.intent.category.LAUNCHER" />
39 </intent-filter>
40 <intent-filter>
41 <action android:name="android.intent.action.APPLICATION_PREFERENCES" />
42 <category android:name="android.intent.category.DEFAULT" />
43 </intent-filter>
44 <!-- .mavpn bundles are ZIP files under a custom extension, so file
45 managers report them as zip/octet-stream (or with no useful
46 type): match on content/file URIs scoped by the .mavpn path,
47 the same shape notes/ uses for .md and email/ for .eml.
48 MainActivity.handleIntent already routes VIEW data URIs to
49 the bundle importer. -->
50 <intent-filter>
51 <action android:name="android.intent.action.VIEW" />
52 <category android:name="android.intent.category.DEFAULT" />
53 <category android:name="android.intent.category.BROWSABLE" />
54 <data android:scheme="content" />
55 <data android:scheme="file" />
56 <data android:host="*" />
57 <data android:mimeType="application/zip" />
58 <data android:mimeType="application/x-zip-compressed" />
59 <data android:mimeType="application/octet-stream" />
60 <data android:pathSuffix=".mavpn" />
61 <data android:pathPattern=".*\\.mavpn" />
62 </intent-filter>
63 </activity>
64
65 <!-- systemExempted is the FGS type for preinstalled system apps; this VPN ships in
66 /system/priv-app and holds FOREGROUND_SERVICE_SYSTEM_EXEMPTED above. The exact-alarm
67 permissions lint pairs with this type gate user-facing exact-alarm features, which
68 a tunnel service does not have. -->
69 <service
70 android:name=".service.VpnTunnelService"
71 android:permission="android.permission.BIND_VPN_SERVICE"
72 android:exported="true"
73 android:foregroundServiceType="systemExempted"
74 tools:ignore="ForegroundServicePermission">
75 <intent-filter>
76 <action android:name="android.net.VpnService" />
77 </intent-filter>
78 <meta-data android:name="android.net.VpnService.SUPPORTS_ALWAYS_ON" android:value="true" />
79 </service>
80 </application>
81
82</manifest>