Skip to content

Encrypt user data stored in the shared prefs and strip logs - #493

Merged
onyxvd merged 1 commit into
masterfrom
feat/encrypt-credentials-strip-logs
Aug 4, 2026
Merged

onyxvd merged 1 commit into
masterfrom
feat/encrypt-credentials-strip-logs

Conversation

@onyxvd

@onyxvd onyxvd commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator
  • Encrypted secret storage New synchronous SecureStore seam backed by an in-house Android Keystore AES-256-GCM wrapper (KeystoreCrypto + EncryptedSecureStore). UserPrefs (token/username/password/userId/email) and session cookies are now encrypted.
  • One-time migration. LegacyPrefsMigration copies existing plaintext UserPrefs + PREF_COOKIES into the encrypted stores on first run, then wipes the plaintext originals. Idempotent and interruption-safe.
  • Logging removed. Deleted email/password logs (AuthenticationManager), auth-token logs (AuthenticationInterceptor), and precise-location log (TrackingService); HttpLoggingInterceptor → NONE in non-debug.
  • R8 log-stripping. minifyEnabled true for release+beta with -dontobfuscate (shrink+optimize on, obfuscation off) and -assumenosideeffects on android.util.Log, plus keep rules for EventBus/Gson/Room. A reintroduced Log.* can no longer ship.

@onyxvd
onyxvd merged commit 45ac0b3 into master Aug 4, 2026
6 checks passed
@onyxvd
onyxvd deleted the feat/encrypt-credentials-strip-logs branch August 4, 2026 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant