From 7f9f5af7e6448606b4f94e913db29cfd12a5d9ba Mon Sep 17 00:00:00 2001
From: Linus Rath <139418639+rathlinus@users.noreply.github.com>
Date: Sat, 29 Aug 2026 18:11:07 +0200
Subject: [PATCH] fix: keep the mail cache and outbox out of Android
auto-backup
---
android/app/src/main/AndroidManifest.xml | 2 +-
app.config.js | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index 30262e95..c6647b77 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -13,7 +13,7 @@
-
+
diff --git a/app.config.js b/app.config.js
index e228b2b0..ceb0fb41 100644
--- a/app.config.js
+++ b/app.config.js
@@ -56,6 +56,11 @@ module.exports = {
edgeToEdgeEnabled: true,
predictiveBackGestureEnabled: false,
package: 'com.anonymous.bulwarkmobile',
+ // The AsyncStorage database holds cached message bodies, the outbox and
+ // the account registry; the platform backup would ship all of it to the
+ // user's Google account. Credentials live in SecureStore (excluded by
+ // its own rules) but the mail cache must not leave the device either.
+ allowBackup: false,
},
web: {
favicon: './assets/favicon.png',