hex/android/app
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 1cd7a720e5 android: nothing Hex keeps goes to a new phone (data extraction rules)
The policy says Learn from my fixes and Adaptive touch keep their data "on
this phone only", and the feedback install ID's comment says it is "not
backed up (allowBackup is off)". That was true of cloud backup but not of a
device-to-device transfer. Android 12 and later ignore allowBackup="false"
for D2D when an app targets 31 or later (AOSP BackupEligibilityRules,
IGNORE_ALLOW_BACKUP_IN_D2D). Hex targets 36, so a cable or Wi-Fi
transfer to a new phone carried shared_prefs: speech.xml (settings,
vocabulary, learned word pairs), adaptiveTouch.xml, typing.xml, feedback,
setup, and files/.

The manifest now names res/xml/data_extraction_rules.xml. It excludes
every domain, credential- and device-encrypted, from both cloud-backup and
device-transfer, so a file added later is left out too. allowBackup stays
false. No fullBackupContent: minSdk is 31, and those rules only apply to
Android 11 and lower. Cross-platform transfer (Android 16 QPR2) is opt-in,
and Hex declares none.

Changed behaviour: a transfer to a new phone no longer brings Hex's
settings, vocabulary, setup progress or learned data. Hex starts fresh, as
it already did after a cloud restore. The speech model was never carried
(it lives in noBackupFilesDir).

Verified:
- On anomastudio: assembleDebug and AdaptiveTouchTest (12 tests, including
  the new manifest/rules check).
- lintDebug reports nothing about backup. Its one error is the existing
  VoiceSubtype NewApi on dev.
- On emulator-5870 (API 35, Google's D2D transport in test mode): dev reads
  speech.xml, adaptiveTouch.xml, typing.xml and files/. With this change
  nothing is read. Cloud backup is refused before and after.
2026-11-24 22:29:32 -05:00
..
src android: nothing Hex keeps goes to a new phone (data extraction rules) 2026-11-24 22:29:32 -05:00
build.gradle.kts Android: Hex words files (Word replacements, review sheet, export) (#2781) 2026-11-24 19:42:04 -05:00
proguard-rules.pro Android: faster English dictation (Labs) (#2704) 2026-11-24 13:36:38 -05:00