pediatric-ai-scribe-v3/mobile/android/app
Daniel 931d75c55c Mobile app hardening — security + Android 14 compat
capacitor.config.json:
  - webContentsDebuggingEnabled: true → false
    (was leaving Chrome DevTools able to attach to released builds)
  - allowMixedContent: true → false
    (API is HTTPS-only; no need to permit cleartext loads)
  - server.allowNavigation: ["*"] → restricted to pedshub.com /
    peds.danvics.com origins
    (prevents WebView following an attacker-controlled redirect)

AndroidManifest.xml:
  - android:allowBackup="false" + data_extraction_rules.xml
    (Android system backup would otherwise copy EncryptedSharedPreferences
     containing the auth token into Google Cloud backups)
  - Removed USE_BIOMETRIC permission (feature removed earlier)

AudioRecordingService.java:
  - startForeground(id, notif, TYPE_MICROPHONE) on Android 14+
    (without the explicit type Android 14 kills the service with
     MissingForegroundServiceTypeException)
  - WakeLock cap: 1h → 8h (still bounded, onDestroy releases early)

MainActivity.java:
  - Removed dead biometric code path and androidx.biometric imports

mobile/package.json:
  - Dropped @aparajita/capacitor-biometric-auth — orphan dependency
2026-04-14 04:15:27 +02:00
..
build Add Capacitor native mobile app (PedScribe) for iOS + Android 2026-04-11 02:18:06 +02:00
src Mobile app hardening — security + Android 14 compat 2026-04-14 04:15:27 +02:00
.gitignore Add Capacitor native mobile app (PedScribe) for iOS + Android 2026-04-11 02:18:06 +02:00
build.gradle Native Android: biometric auth, foreground service bridge, mic fix 2026-04-11 03:42:23 +02:00
capacitor.build.gradle Add biometric auth, ntfy push notifications, mobile improvements 2026-04-11 02:35:07 +02:00
proguard-rules.pro Add Capacitor native mobile app (PedScribe) for iOS + Android 2026-04-11 02:18:06 +02:00