Repository navigation
fix: keep the Einsatzstelle and Kartenpakete out of Android backup - #80
Merged
Merged
Conversation
Android's Auto Backup copied all of the app's preferences and files into the user's Google account, including the Hydrantenkarte's Einsatzstelle, which is where a real Einsatz is. It also copied the Kartenpakete under files/maps, which can push the app past the backup quota, after which Android backs up nothing at all. Backup rules exclude whole files, not keys, so the Einsatzstelle moves to a second preferences file, helper-settings-device, reached through the new HelperServices.DeviceOnlySettings. data_extraction_rules.xml (Android 12+) and backup_rules.xml (older) exclude it and maps/ from cloud backup; a device-to-device transfer still carries everything. An Einsatzstelle saved by 0.2.1 or older moves over on first open and is blanked in the backed-up file. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Christian Arlt <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
2 tasks
DeepDiver1975
added a commit
to CodeForFire/codeforfire.github.io
that referenced
this pull request
Nov 22, 2026
Since the Hydrantenkarte (FwAssist 0.2.0) the app asks for Internet, Standort and Vibration, so "kein Netzzugriff, keine Berechtigungen" was no longer true. The policy now says what each permission is for, lists what the newer helpers keep (Hydrantenkarte, Kennzeichnungen, Strahlenschutz, Sandsack, helper order) and notes that from 0.3.0 Android's cloud backup leaves out the Einsatzstelle and the Kartenpakete (CodeForFire/FwAssist#80). The FwAssist start page gets the same fix. Co-authored-by: ChrArlt <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Thomas Müller <[email protected]>
DeepDiver1975
added a commit
to CodeForFire/codeforfire.github.io
that referenced
this pull request
Nov 22, 2026
* docs: add FwAssist privacy policy Google Play requires a privacy policy URL for the listing. This page states what the app does: it stores no personal data, has no account, requests no permissions and has no network access. It also lists the few view preferences kept in app-private storage, and notes that Android's own Google backup may copy them. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Thomas Müller <[email protected]> * docs: distinguish processing from storage in the FwAssist privacy policy The Buchstabieralphabet processes what is typed, which can be a name, in memory. Say so instead of claiming no personal data is processed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Thomas Müller <[email protected]> * docs: describe FwAssist's permissions in the privacy policy Since the Hydrantenkarte (FwAssist 0.2.0) the app asks for Internet, Standort and Vibration, so "kein Netzzugriff, keine Berechtigungen" was no longer true. The policy now says what each permission is for, lists what the newer helpers keep (Hydrantenkarte, Kennzeichnungen, Strahlenschutz, Sandsack, helper order) and notes that from 0.3.0 Android's cloud backup leaves out the Einsatzstelle and the Kartenpakete (CodeForFire/FwAssist#80). The FwAssist start page gets the same fix. Co-authored-by: ChrArlt <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Thomas Müller <[email protected]> --------- Signed-off-by: Thomas Müller <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: ChrArlt <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
FwAssist never configured Android backup, so the default Auto Backup copied all of the app's preferences and files into the user's Google account. Two things should not go there:
hydranten.einsatzstelle("lat,lon"). It marks where a real Einsatz is, and AGENTS.md treats Einsatz data as confidential.files/maps/. They can push the app past Android's 25 MB backup quota, and then Android backs up nothing at all.The small preferences, such as the Funkalphabet table and the helper order, keep going to backup, so they still follow the user to a new phone.
Changes
HelperServices.DeviceOnlySettings: a new optionalIHelperSettingsfor values that must never leave the phone. Every existing caller is unchanged.HydrantenModulegives the Hydrantenkarte the device-only settings. An Einsatzstelle saved by 0.2.1 or older moves over the first time the helper opens, so an update made mid-Einsatz keeps the pin. The old copy is then blanked in the backed-up file.AndroidHelperSettingsnow takes its file name:helper-settings(backed up) orhelper-settings-device(device-only).Resources/xml/data_extraction_rules.xml(Android 12+) andbackup_rules.xml(Android 11 and older) excludehelper-settings-device.xmlandmaps/from cloud backup.DeviceOnlySettings.No new permission, and no change to the Play data-safety answers: the app still sends nothing. The backup paragraph of the policy page (CodeForFire/codeforfire.github.io#30) can then say that the Einsatzstelle and the Kartenpakete are not backed up.
Test plan
HydrantenModuleTests: where the Einsatzstelle is read and written, the move from the old file, and which copy wins;BackupRulesTests: the manifest names both rule files, and both exclude the device-only file andmaps/.make cisteps run directly): 11 test assemblies, 0 warnings.aapt2 dumpshowsdataExtractionRulesandfullBackupContentin the manifest, and both rule files packaged underres/xml/.make codeql: not run, because the script has no CodeQL bundle for Windows; the PR's CodeQL check covers it.adb shell bmgr backupnow de.codeforfire.helfer, and check the backup holdshelper-settings.xmlbut nothelper-settings-device.xmlormaps/. Not done yet.No UI change, so no screenshots.
🤖 Generated with Claude Code