summaryrefslogtreecommitdiffhomepage
path: root/android
diff options
context:
space:
mode:
authorDavid Göransson <david.goransson@mullvad.net>2024-10-04 11:11:43 +0200
committerDavid Göransson <david.goransson@mullvad.net>2024-10-08 15:33:15 +0200
commita2529bd3c09ba9b00b43d6b81e379d9b8344bb50 (patch)
tree495575ec0e287095631daf371f481cc511447968 /android
parent64b4e0b5f4c258123f77eb870cc1ae00ef54b034 (diff)
downloadmullvadvpn-a2529bd3c09ba9b00b43d6b81e379d9b8344bb50.tar.xz
mullvadvpn-a2529bd3c09ba9b00b43d6b81e379d9b8344bb50.zip
Fix AndroidManifest warnings
Diffstat (limited to 'android')
-rw-r--r--android/app/src/main/AndroidManifest.xml9
-rw-r--r--android/app/src/main/res/xml/data_extraction_rules.xml21
-rw-r--r--android/app/src/main/res/xml/full_backup_content.xml16
3 files changed, 44 insertions, 2 deletions
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index 8dc3c4e385..f9cda6c084 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -3,7 +3,10 @@
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.INTERNET" />
- <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
+ <!-- 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" />
@@ -21,8 +24,10 @@
<uses-feature android:glEsVersion="0x00020000"
android:required="false" />
<application android:name=".MullvadApplication"
- android:allowBackup="false"
android:banner="@drawable/banner"
+ android:allowBackup="false"
+ android:fullBackupContent="@xml/full_backup_content"
+ android:dataExtractionRules="@xml/data_extraction_rules"
android:extractNativeLibs="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
diff --git a/android/app/src/main/res/xml/data_extraction_rules.xml b/android/app/src/main/res/xml/data_extraction_rules.xml
new file mode 100644
index 0000000000..b762ef705c
--- /dev/null
+++ b/android/app/src/main/res/xml/data_extraction_rules.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?><!--
+ Sample data extraction rules file; uncomment and customize as necessary.
+ See https://developer.android.com/about/versions/12/backup-restore#xml-changes
+ for details.
+-->
+<data-extraction-rules>
+ <cloud-backup>
+ <exclude domain="root" />
+ <exclude domain="file" />
+ <exclude domain="database" />
+ <exclude domain="sharedpref" />
+ <exclude domain="external" />
+ </cloud-backup>
+ <device-transfer>
+ <exclude domain="root" />
+ <exclude domain="file" />
+ <exclude domain="database" />
+ <exclude domain="sharedpref" />
+ <exclude domain="external" />
+ </device-transfer>
+</data-extraction-rules>
diff --git a/android/app/src/main/res/xml/full_backup_content.xml b/android/app/src/main/res/xml/full_backup_content.xml
new file mode 100644
index 0000000000..e88e6597d9
--- /dev/null
+++ b/android/app/src/main/res/xml/full_backup_content.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?><!--
+ Full backup content file
+ See https://developer.android.com/guide/topics/manifest/application-element#fullBackupContent
+ for details.
+-->
+<full-backup-content>
+ <exclude domain="file" />
+ <exclude domain="database" />
+ <exclude domain="sharedpref" />
+ <exclude domain="external" />
+ <exclude domain="root" />
+ <exclude domain="device_file" />
+ <exclude domain="device_database" />
+ <exclude domain="device_sharedpref" />
+ <exclude domain="device_root" />
+</full-backup-content>