๐Ÿซ
PancreasAI

Release Notes

Version history ยท Android ยท Personal health project

v1.0.4 Bug Fixes & Editable Logs Feb 28, 2026

Session stability fix + editable insulin & food log entries.

  • ๐Ÿ”’
    Fixed intermittent "AccountPasswordInvalid" error on refresh

    The app was re-authenticating with Dexcom on every single data refresh. Transient Dexcom server errors were being misread as genuine password failures, triggering a scary red error card even for valid credentials. The app now caches your session and only re-authenticates when it genuinely expires.

  • ๐Ÿ”
    Improved Google SSO account detection and error messaging

    When Dexcom explicitly rejects a password, the app now stops retrying immediately. Gmail/Google accounts get a specific explanation about needing a native Dexcom password, with step-by-step instructions. The Diagnostics tool also now flags this inline with a โš ๏ธ warning.

  • โœŽ
    Editable insulin log entries

    Insulin doses can now be edited after saving. Tap the new cyan โœŽ button on any entry to reopen the log dialog pre-filled with the original units, type, time, and note. Saving updates the entry in place and preserves its position on the glucose chart.

  • โœŽ
    Editable food / meal log entries

    Meals can now be edited after saving. Tap โœŽ on any food entry to reopen the dialog with food name, carbs, calories, meal type, time, and note pre-filled. Changes reflect immediately on the chart and in the 24-hour totals.

v1.0.3 Security & Encryption Feb 27, 2026

All locally stored health data is now encrypted at rest with AES-256-GCM.

  • ๐Ÿ”‘
    New: SecureFileStore (SecureFileStore.kt)

    All three health data logs now route through a new encryption layer using AES-256-GCM-HKDF-4KB via AndroidX EncryptedFile. Encryption keys are stored in the Android Keystore hardware-backed secure enclave and can never be extracted. Old plain-text files are zeroed out during migration.

  • ๐Ÿงฌ
    Glucose, Insulin & Food logs now encrypted

    Previously stored as plain JSON โ€” glucose_log.json, insulin_log.json, and food_log.json are now encrypted at rest. Existing users are migrated automatically and silently on first launch. No data is lost.

  • โš ๏ธ
    Known limitation: Exported HTML reports are unencrypted

    When you export and share a report, a temporary HTML file is written in plain text so the receiving app can read it. Treat exported reports as sensitive โ€” delete them from Downloads or your sharing destination once used.

Data Storage method Encryption
Dexcom credentialsEncryptedSharedPreferencesAES-256-GCM โœ…
OAuth tokensEncryptedSharedPreferencesAES-256-GCM โœ…
API keys (Claude, etc.)EncryptedSharedPreferencesAES-256-GCM โœ…
Personal infoEncryptedSharedPreferencesAES-256-GCM โœ…
App settings & thresholdsEncryptedSharedPreferencesAES-256-GCM โœ…
Glucose readings logEncryptedFile (SecureFileStore)AES-256-GCM โœ…
Insulin dose logEncryptedFile (SecureFileStore)AES-256-GCM โœ…
Food / meal logEncryptedFile (SecureFileStore)AES-256-GCM โœ…
Exported HTML reportsTemporary plain file (shared)โš ๏ธ Unencrypted
v1.0.2 Personal Info, Thresholds & Notifications

Three new Settings cards plus a live alert engine.

  • ๐Ÿ‘ค
    Personal Info card

    Height (in), weight (lbs), age, and sex fields โ€” saved with a single button. All fields are passed to the AI Insights prompt so suggestions are personalized to you.

  • ๐Ÿ“Š
    Glucose Thresholds card

    High threshold slider (120โ€“300 mg/dL, default 180) and low threshold slider (50โ€“100 mg/dL, default 70). Changes apply live across the entire app โ€” chart reference lines, HIGH/IN RANGE/LOW labels, time-in-range stats, and notification triggers all update instantly.

  • ๐Ÿ””
    Notifications card

    Master toggle (requests Android 13+ permission), sub-toggles for projected highs (orange) and lows (red), and a projection window slider (10โ€“40 min, default 20). Alert engine runs after every refresh using a weighted rate-of-change across the last 3โ€“4 readings with a 30-minute per-alert cooldown. Tapping a notification opens the app.

v1.0.1 Chart Fixes & Insulin Decimals

Precision insulin tracking and overhauled response charts.

  • ๐Ÿ’‰
    Decimal insulin units (2 decimal places)

    Units input now accepts values like 12.95. Dose display in the log list, 24-hour totals, and save confirmation toast all updated to show 2 decimal places.

  • ๐Ÿฝ๏ธ
    Post-Meal Response Chart โ€” overhaul

    Critical bug fixed: green target zone was rendering on top of all curve lines โ€” now drawn first. Zone is now semi-transparent (50% alpha). Chart height increased 120โ†’160dp. Y-axis labels (+0, +40, +80 mg/dL), horizontal grid lines, thicker individual meal lines, 3dp average line, and "โ€” avg rise" legend label all added.

  • ๐Ÿ’‰
    Post-Insulin Response Chart โ€” overhaul

    Same zone-ordering fix. Zone color changed to semi-transparent cyan. Chart height increased 120โ†’160dp. Y-axis labels (-0, -30, -60 mg/dL), horizontal grid lines, thicker individual dose lines, 3dp average line, and "โ€” avg drop" legend label all added.

โš ๏ธ Medical Disclaimer
PancreasAI is a personal project and is not a medical device or certified HIPAA Business Associate. Always consult your healthcare team before making any changes to your insulin regimen. Encryption updates implement best-practice technical safeguards but do not constitute formal compliance certification.