Skip to content

Native crash at startup on Pixel 9a / Pixel 10a (Tensor G4/G5): emulator hardware checks #12

Description

@lele872

Environment

  • Library: rasp-android 0.7.1 (latest)
  • Devices affected: Pixel 9a (Tensor G4) and Pixel 10a (Tensor G5)
  • Works fine on: Pixel 8 (Tensor G3, hw "zuma"), Pixel 7, Pixel 6
  • OS: GrapheneOS (also reported by users on stock-like hardened setups), build 2026081300
  • Symptom: app crashes at install or immediately at first launch, before any UI

Description

We use SecureApp.init() in onCreate and a SecureAppChecker with all three check groups enabled (emulator/debugger/root). On the newer Tensor SoCs the app dies at startup. On Tensor G3 and older everything works. This looks very similar to issue #5 (crashes on certain hardware, emulator_checks_DeviceChecks_*), where the cause was hardware not recognized by the emulator checks.

Workaround we applied

We now skip only checkEmulator on SoCs we haven't tested (allowlist on Build.SOC_MODEL/HARDWARE), keeping root/debugger checks active — this stops the crash on 9a/10a. Sharing in case it helps other users.

Ask

Could the emulator hardware checks be made resilient (fail-safe returning "unknown" instead of crashing) when the SoC is not in the known list? Happy to provide a crash logcat from an affected device if useful.

Thanks for the library!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions