Skip to content

Inaccurate android detection when outside of termux environment #1210

Open
@alexytomi

Description

@alexytomi

Describe the bug
When attempting to use a Minecraft Java mod (Distant Horizons) under PojavLauncher (a Minecraft Java launcher for phones) which uses this library to store level data, it picks the drivers for Linux instead of Linux-Android, failing and crashing

Environment:

  • OS: Android 13 OneUI 5.1
  • CPU architecture: arm64
  • sqlite-jdbc version: sqlite-3.43.0.0

Additional context
Using -Dos.name seems to be something that should work, but due to Minecraft just outright crashing when it's set to Android, it's not an option for this situation.

The current workaround is to either load the Linux-Android libraries using another mod, putting it inside the JRE, or overwriting the Linux libraries with Linux-Android ones.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions