Skip to content

UnsatisfiedLinkError: unsupported DT_REL crash on Android 15 emulators #6

@Artemius-dev

Description

@Artemius-dev

Thank you for this great library and all your hard work!

When initializing the RASP native library via System.loadLibrary("native"), the app immediately crashes on Android 15 with:
java.lang.UnsatisfiedLinkError: dlopen failed: unsupported DT_REL in ".../lib/arm64-v8a/libnative.so"
This only occurs on Android 15. The same build works correctly on Android 14 and 16 devices and emulators.
Tested On:

Physical devices

  • Samsung Galaxy A17 5G (Android 14) → No crash
  • Google Pixel 9 Pro (Android 16) → No crash

LambdaTest real devices

  • Google Pixel 9 Pro XL (Android 15) → No crash
  • Samsung Galaxy S25 Ultra (Android 15) → No crash

Emulators

  • BlueStacks Air (Android 13) → No crash, Library loads, detects emulator correctly

Android Studio emulators (various images) →

  • Android 14 → No crash, Library loads, detects emulator correctly
  • Android 15 → Crashes with DT_REL error
  • Android 16 → No crash, Library loads, detects emulator correctly

Steps to Reproduce:

  • Integrate com.securevale:rasp-android into an app.
  • Call System.loadLibrary("native") (e.g. via SecureApp.init()).
  • Run the app on an Android 15 device or emulator.

Expected Behavior:
The native library should load successfully on all supported Android versions.

Actual Behavior:
The loader rejects the .so due to legacy DT_REL relocations, causing an immediate crash on Android 15 only.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions