#Crash on Startup: Segmentation Fault in libpairipcore.so Due to SELinux Denials

1 messages · Page 1 of 1 (latest)

ionic wharfBOT
#

Reported by @quasi pewter

Bug Report: Crash on Startup: Segmentation Fault in libpairipcore.so Due to SELinux Denials
`Steps to Reproduce`

Steps to Reproduce:

Install the App: Deploy the application that includes the native library (libpairipcore.so) via the dynamic split APK (split_config.arm64_v8a.apk) on a device running Android 15.

Launch the App: Open the application on a device with a build fingerprint similar to "google/husky/husky:15/BP1A.250405.007.B1/…" and targetSdk 35.

Observe SELinux Access: Notice in the logcat that multiple SELinux permission denials occur, such as failed reads for properties like "u:object_r:user

`Expected Result`

The application crashes immediately upon startup with a segmentation fault. The logs indicate that the crash occurs in libpairipcore.so, likely triggered by the inability to access restricted system properties/files due to SELinux policy denials.

`Actual Result`

The application should gracefully handle permission issues. Instead of crashing, the native layer should check and handle failed property/file reads and either fall back on safe defaults or propagate an error that prevents a crash.

`Environment`

OS: Android 15 Build Fingerprint: google/husky/husky:15/BP1A.250405.007.B1/… Architecture: ARM64 Target SDK: 35

#
Additional Information

Please provide relevant details to help resolve the issue, such as:

  • ChatGPT Shared Link (if applicable).
  • Screenshots or videos demonstrating the problem.

-# ➜ Need to contact support? Visit the OpenAI Help Center.