Skip to content

Native crash on Android 16 (SDK 36) - Moto G 2025 #217

@sb981

Description

@sb981

Device: Motorola Moto G 2025
Android: 16 (SDK 36)
Firestack commit: 0fdd34c (n2 branch)

Issue

Firestack native library crashes immediately when the service class is loaded on Android 16. The crash happens before any Java code can run (no onCreate logs appear).

Build setup

  • Go 1.25rc1
  • NDK 26.3.11579264
  • gomobile from ignoramous/mobile fork
  • CGO_LDFLAGS with 16KB page alignment: -Wl,-z,max-page-size=16384
  • ARM-only build (arm64-v8a, armeabi-v7a)

Verification

  • Native libs show correct 0x4000 (16KB) LOAD alignment via readelf
  • Same app with DNS-only VPN (no firestack) works fine on the device
  • Crash is 100% isolated to firestack

Crash timing

After user grants permissions, startForegroundService() is called. The service class (which references firestack Bridge interfaces) loads, and native crash occurs before Service.onCreate() runs.

Question

Does Rethink DNS work on Android 16? If so, is there a special build flag or initialization sequence needed?

Any guidance appreciated.

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