Fennec: Is it necessary to opt out of the ADB backups?

Thanks for the info.

I compiled Fennec with the following patch:

diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index efb94c3c0..4f20148f4 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -20,7 +20,8 @@

     <application
         android:name=".FenixApplication"
-        android:allowBackup="false"
+        android:allowBackup="true"
+        android:fullBackupContent="@xml/backup"
         android:icon="@mipmap/ic_launcher"
         android:label="@string/app_name"
         android:requestLegacyExternalStorage="true"
diff --git a/app/src/main/res/xml/backup.xml b/app/src/main/res/xml/backup.xml
new file mode 100644
index 000000000..b5bb1bf4f
--- /dev/null
+++ b/app/src/main/res/xml/backup.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<full-backup-content>
+    <include domain="root" path="." requireFlags="clientSideEncryption" />
+    <include domain="file" path="." requireFlags="clientSideEncryption" />
+    <include domain="database" path="." requireFlags="clientSideEncryption" />
+    <include domain="sharedpref" path="." requireFlags="clientSideEncryption" />
+</full-backup-content>

Can anyone test backup and restore? It’s parallel-installable with the regular Fennec: https://cloud.woelkli.com/s/rPPG4BgfWoj87F4, password: nai7Wo?th+a

1 Like