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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
|
<!-- mobsf-ignore: android_task_hijacking2 -->
<!-- This is added due to requiring launchMode="singleInstance" on activity aliases,
but launchMode does nothing on activity aliases -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<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=".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 28 or higher
since after that it has been patched on a OS level.
-->
<activity
android:name="net.mullvad.mullvadvpn.ui.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>
<!-- Alternative icons names -->
<!-- Default -->
<activity-alias
android:name="net.mullvad.mullvadvpn.ui.obfuscation.MainActivityAltDefault"
android:enabled="true"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:banner="@mipmap/ic_launcher"
android:label="@string/app_name"
android:targetActivity="net.mullvad.mullvadvpn.ui.MainActivity"
tools:ignore="DiscouragedApi,UnusedAttribute">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.service.quicksettings.action.QS_TILE_PREFERENCES" />
</intent-filter>
<intent-filter>
<action android:name="net.mullvad.mullvadvpn.request_vpn_permission" />
</intent-filter>
</activity-alias>
<!-- Game -->
<activity-alias
android:name="net.mullvad.mullvadvpn.ui.obfuscation.MainActivityAltGame"
android:enabled="false"
android:exported="true"
android:icon="@mipmap/ic_launcher_game"
android:banner="@mipmap/ic_banner_game"
android:label="@string/app_name_game"
android:targetActivity="net.mullvad.mullvadvpn.ui.MainActivity"
tools:ignore="DiscouragedApi,UnusedAttribute">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.service.quicksettings.action.QS_TILE_PREFERENCES" />
</intent-filter>
<intent-filter>
<action android:name="net.mullvad.mullvadvpn.request_vpn_permission" />
</intent-filter>
</activity-alias>
<!-- Weather -->
<activity-alias
android:name="net.mullvad.mullvadvpn.ui.obfuscation.MainActivityAltWeather"
android:enabled="false"
android:exported="true"
android:icon="@mipmap/ic_launcher_weather"
android:banner="@mipmap/ic_banner_weather"
android:label="@string/app_name_weather"
android:targetActivity="net.mullvad.mullvadvpn.ui.MainActivity"
tools:ignore="DiscouragedApi,UnusedAttribute">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.service.quicksettings.action.QS_TILE_PREFERENCES" />
</intent-filter>
<intent-filter>
<action android:name="net.mullvad.mullvadvpn.request_vpn_permission" />
</intent-filter>
</activity-alias>
<!-- Notes -->
<activity-alias
android:name="net.mullvad.mullvadvpn.ui.obfuscation.MainActivityAltNotes"
android:enabled="false"
android:exported="true"
android:icon="@mipmap/ic_launcher_notes"
android:banner="@mipmap/ic_banner_notes"
android:label="@string/app_name_notes"
android:targetActivity="net.mullvad.mullvadvpn.ui.MainActivity"
tools:ignore="DiscouragedApi,UnusedAttribute">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.service.quicksettings.action.QS_TILE_PREFERENCES" />
</intent-filter>
<intent-filter>
<action android:name="net.mullvad.mullvadvpn.request_vpn_permission" />
</intent-filter>
</activity-alias>
<!-- Ninja -->
<activity-alias
android:name="net.mullvad.mullvadvpn.ui.obfuscation.MainActivityAltNinja"
android:enabled="false"
android:exported="true"
android:icon="@mipmap/ic_launcher_ninja"
android:banner="@mipmap/ic_banner_ninja"
android:label="@string/app_name_ninja"
android:targetActivity="net.mullvad.mullvadvpn.ui.MainActivity"
tools:ignore="DiscouragedApi,UnusedAttribute">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.service.quicksettings.action.QS_TILE_PREFERENCES" />
</intent-filter>
<intent-filter>
<action android:name="net.mullvad.mullvadvpn.request_vpn_permission" />
</intent-filter>
</activity-alias>
<!-- Browser -->
<activity-alias
android:name="net.mullvad.mullvadvpn.ui.obfuscation.MainActivityAltBrowser"
android:enabled="false"
android:exported="true"
android:icon="@mipmap/ic_launcher_browser"
android:banner="@mipmap/ic_banner_browser"
android:label="@string/app_name_browser"
android:targetActivity="net.mullvad.mullvadvpn.ui.MainActivity"
tools:ignore="DiscouragedApi,UnusedAttribute">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.service.quicksettings.action.QS_TILE_PREFERENCES" />
</intent-filter>
<intent-filter>
<action android:name="net.mullvad.mullvadvpn.request_vpn_permission" />
</intent-filter>
</activity-alias>
<!--
foregroundServiceType="systemExempted" is required in Android 14+
https://developer.android.com/guide/components/fg-service-types#system-exempted
-->
<service android:name="net.mullvad.mullvadvpn.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.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.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=".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>
|