From 4eccc329532cea133091a25f309ad4c7bb64d9d5 Mon Sep 17 00:00:00 2001 From: Soonoh Date: Mon, 15 Jun 2026 05:05:19 +0900 Subject: [PATCH] fix(android): keep the API bearer token out of device backups MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The voice companion stores its Doorkeeper bearer token — which grants full mobile-API access to the user's Collavre account — in the collavre_voice Preferences DataStore. That file is app-private but plaintext, and the manifest shipped with allowBackup="true" (the default), so Android Auto Backup and adb backup could exfiltrate the token in cleartext (CWE-312, OWASP MASVS-STORAGE-2). Set allowBackup="false" to block Auto Backup / adb backup on all versions, and add dataExtractionRules excluding the file/sharedpref/database domains so a device-to-device transfer on Android 12+ (governed separately from allowBackup) also can't copy the token. --- .../app/src/main/AndroidManifest.xml | 3 ++- .../main/res/xml/data_extraction_rules.xml | 22 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 tools/android-app/app/src/main/res/xml/data_extraction_rules.xml diff --git a/tools/android-app/app/src/main/AndroidManifest.xml b/tools/android-app/app/src/main/AndroidManifest.xml index fdbacc61c..defbd2f44 100644 --- a/tools/android-app/app/src/main/AndroidManifest.xml +++ b/tools/android-app/app/src/main/AndroidManifest.xml @@ -21,7 +21,8 @@ + + + + + + + + + + + + +