Skip to content

Crash on startup in GrapheneOS secondary profile - SharedPreferences not available until user unlocked #489

@majkeltg

Description

@majkeltg

Description:
The app crashes on startup, hanging on the black screen with the logo. It worked fine before the recent GrapheneOS update (2025102800) on the main profile, and the crash likely started after that (but I'm not sure if that's the exact cause). This happens on a secondary profile (user id 12) on Pixel 8 Pro.

Error from logs:
java.lang.IllegalStateException: SharedPreferences in credential encrypted storage are not available until after user (id 12) is unlocked
at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:642)
...
Caused by service com.flux.flutter_boot_receiver.BootHandlerService.

Full log attached (system log chrono.txt).

Steps to reproduce:

  1. Install Chrono on secondary profile in GrapheneOS.
  2. Update GrapheneOS to latest.
  3. Launch app – hangs on logo.

Device info:

  • GrapheneOS version: 2025102800
  • Pixel 8 Pro
  • Profile: Secondary (user id 12)
  • Sandboxed Google Play: Installed, no login

Expected behavior:
App should launch and load saved alarms/reminders.

Actual behavior:
Crash on boot service, no access to storage.

This seems related to Flutter plugins (flutter_boot_receiver, androidalarmmanager) not handling encrypted storage on secondary profiles.

Thanks for the app – hope for a fix!

System log _ chrono e528a2fcfadf.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions