-
Notifications
You must be signed in to change notification settings - Fork 619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inaccurate android detection when outside of termux environment #1210
Comments
this is how the detection works for Android now: sqlite-jdbc/src/main/java/org/sqlite/util/OSInfo.java Lines 120 to 130 in 4a41998
Most likely the launcher you are using does not fit in those 2 cases. |
It doesn't fit in isAndroidTermux() but I can set -Djava.runtime.name=android yet that has no effect. I also tried -Djava.runtime.name="Java for Android" yet it also has no effect |
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:
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.
The text was updated successfully, but these errors were encountered: