Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[android][ensu] Disable Android backups

laurenspriem4d03874cf6ad
diff --git a/android/apps/ensu/app/src/main/AndroidManifest.xml b/android/apps/ensu/app/src/main/AndroidManifest.xml
index 31cbb53937..58fc539e32 100644
--- a/android/apps/ensu/app/src/main/AndroidManifest.xml
+++ b/android/apps/ensu/app/src/main/AndroidManifest.xml
@@ -13,6 +13,9 @@
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:largeHeap="true"
+ android:allowBackup="false"
+ android:fullBackupContent="false"
+ android:dataExtractionRules="@xml/data_extraction_rules"
android:theme="@style/Theme.Ensu"
android:usesCleartextTraffic="true">
<activity
diff --git a/android/apps/ensu/app/src/main/res/xml/data_extraction_rules.xml b/android/apps/ensu/app/src/main/res/xml/data_extraction_rules.xml
new file mode 100644
index 0000000000..21d7076b54
--- /dev/null
+++ b/android/apps/ensu/app/src/main/res/xml/data_extraction_rules.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<data-extraction-rules>
+ <cloud-backup>
+ <exclude domain="root" path="." />
+ <exclude domain="file" path="." />
+ <exclude domain="database" path="." />
+ <exclude domain="sharedpref" path="." />
+ <exclude domain="external" path="." />
+ <exclude domain="device_root" path="." />
+ <exclude domain="device_file" path="." />
+ <exclude domain="device_database" path="." />
+ <exclude domain="device_sharedpref" path="." />
+ </cloud-backup>
+
+ <device-transfer>
+ <exclude domain="root" path="." />
+ <exclude domain="file" path="." />
+ <exclude domain="database" path="." />
+ <exclude domain="sharedpref" path="." />
+ <exclude domain="external" path="." />
+ <exclude domain="device_root" path="." />
+ <exclude domain="device_file" path="." />
+ <exclude domain="device_database" path="." />
+ <exclude domain="device_sharedpref" path="." />
+ </device-transfer>
+</data-extraction-rules>