summaryrefslogtreecommitdiffhomepage
path: root/android/app/src/main/AndroidManifest.xml
blob: 972a4b0e1f9c74b994efb64d59eac872e1760286 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    tools:ignore="MissingLeanbackLauncher">
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <!-- Suppress warning, just using queries tag is not enough for our all, we need access to all
    packages to allow the user to select apps for split tunneling -->
    <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"
        tools:ignore="QueryAllPackagesPermission" />
    <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
    <!-- https://developer.android.com/guide/components/fg-service-types#system-exempted -->
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE_SYSTEM_EXEMPTED" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <!-- Added by work manager, it is not required for our use case. -->
    <uses-permission
        android:name="android.permission.WAKE_LOCK"
        tools:node="remove" />
    <uses-feature android:name="android.hardware.touchscreen"
                  android:required="false" />
    <uses-feature android:name="android.hardware.faketouch"
                  android:required="false" />
    <uses-feature android:name="android.hardware.screen.portrait"
                  android:required="false" />
    <uses-feature android:name="android.hardware.screen.landscape"
                  android:required="false" />
    <uses-feature android:name="android.software.leanback"
                  android:required="false" />
    <uses-feature android:glEsVersion="0x00020000"
                  android:required="false" />

    <application android:name=".app.MullvadApplication"
                 android:allowBackup="false"
                 tools:targetApi="33"
                 android:memtagMode="async"
                 android:fullBackupContent="@xml/full_backup_content"
                 android:dataExtractionRules="@xml/data_extraction_rules"
                 android:icon="@mipmap/ic_launcher"
                 android:label="@string/app_name"
                 android:roundIcon="@mipmap/ic_launcher"
                 android:theme="@style/Theme.App.Starting"
                 android:localeConfig="@xml/locales_config"
                 android:supportsRtl="true"
                 tools:ignore="CredManMissingDal,CredentialDependency,GoogleAppIndexingWarning">

        <!--
            This disables the Firebase logging that is added by the billing library.
        -->
        <service
                android:name="com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService"
                tools:node="remove"
                tools:ignore="MissingClass" />

        <profileable
                android:enabled="true"
                android:shell="true" />

        <!--
            MainActivity
            Must be exported in order to be launchable.
            Launch mode should singleInstance to avoid this vulnerability;
            https://developer.android.com/privacy-and-security/risks/strandhogg
            This can be disregarded when the minimum supported version is 29 or higher
            since after that it has been patched on a OS level.
        -->
        <activity
            android:name="net.mullvad.mullvadvpn.app.MainActivity"
            android:enableOnBackInvokedCallback="true"
            android:launchMode="singleInstance"
            android:screenOrientation="fullUser"
            android:windowSoftInputMode="adjustResize"
            android:enabled="true"
            android:exported="false"
            android:icon="@mipmap/ic_launcher"
            android:banner="@mipmap/ic_banner"
            android:targetActivity="net.mullvad.mullvadvpn.ui.MainActivity"
            tools:ignore="DiscouragedApi,UnusedAttribute">

            <intent-filter>
                <action android:name="net.mullvad.mullvadvpn.request_vpn_permission" />
            </intent-filter>
        </activity>
        <!--
            foregroundServiceType="systemExempted" is required in Android 14+
            https://developer.android.com/guide/components/fg-service-types#system-exempted
            -->
        <service android:name="net.mullvad.mullvadvpn.app.service.MullvadVpnService"
                 android:exported="false"
                 android:foregroundServiceType="systemExempted"
                 android:permission="android.permission.BIND_VPN_SERVICE"
                 android:stopWithTask="false"
                 tools:ignore="ForegroundServicePermission">
            <intent-filter>
                <action android:name="android.net.VpnService" />
            </intent-filter>
            <intent-filter>
                <action android:name="net.mullvad.mullvadvpn.connect_action" />
            </intent-filter>
            <intent-filter>
                <action android:name="net.mullvad.mullvadvpn.disconnect_action" />
            </intent-filter>
            <intent-filter>
                <action android:name="net.mullvad.mullvadvpn.quit_action" />
            </intent-filter>
        </service>
        <!--
            MullvadTileService
            Tile services must be exported and protected by the bind tile permission
            (android.permission.BIND_QUICK_SETTINGS_TILE).
        -->
        <service android:name="net.mullvad.mullvadvpn.app.tile.MullvadTileService"
                 android:exported="true"
                 android:icon="@drawable/small_logo_black"
                 android:label="@string/toggle_vpn"
                 android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
            <meta-data android:name="android.service.quicksettings.TOGGLEABLE_TILE"
                android:value="true" />
            <intent-filter>
                <action android:name="android.service.quicksettings.action.QS_TILE" />
            </intent-filter>
        </service>
        <provider android:name="net.mullvad.mullvadvpn.feature.problemreport.impl.provider.MullvadFileProvider"
                  android:authorities="${applicationId}.FileProvider"
                  android:exported="false"
                  android:grantUriPermissions="true">
            <meta-data android:name="android.support.FILE_PROVIDER_PATHS"
                       android:resource="@xml/provider_paths" />
        </provider>
        <receiver android:name=".receiver.LocaleChangedBroadcastReceiver"
                  android:exported="false">
            <intent-filter>
                <action android:name="android.intent.action.LOCALE_CHANGED" />
            </intent-filter>
        </receiver>
        <receiver
                android:name=".lib.pushnotification.receiver.NotificationAlarmReceiver"
                android:exported="false" />
        <receiver
                android:name=".receiver.AutoStartVpnBootCompletedReceiver"
                android:enabled="false"
                android:exported="false">
            <intent-filter android:priority="999">
                <action android:name="android.intent.action.QUICKBOOT_POWERON" />
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
        </receiver>
        <receiver
                android:name=".receiver.ScheduleNotificationBootCompletedReceiver"
                android:exported="false">
            <intent-filter>
                <action android:name="android.intent.action.QUICKBOOT_POWERON" />
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
        </receiver>
        <!--
         Receiver to warn Android 16 users about VPN upgrade issue
         https://issuetracker.google.com/issues/441315112
         -->
        <receiver
            android:name=".receiver.Android16UpdateWarningReceiver"
            android:enabled="true"
            android:exported="false">
            <intent-filter>
                <action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
            </intent-filter>
        </receiver>
    </application>
</manifest>