Skip to content
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

Improved isAndroid check in SharedLibraryLoader Should fix #5863 #5897

Closed
wants to merge 1 commit into from
Closed

Improved isAndroid check in SharedLibraryLoader Should fix #5863 #5897

wants to merge 1 commit into from

Conversation

mquickmann
Copy link
Contributor

Improved Android check for newer Versions. Should fix #5863

@mquickmann mquickmann changed the title Improved Android check for newer Versions. Should fix #5863 Improved isAndroid check in SharedLibraryLoader Should fix #5863 Jan 28, 2020
Copy link
Contributor

@EtK2000 EtK2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if you checked just for "Android".
Should still be correct, and might catch weird custom ROMs that change it, all without changing much.

IDK about case sensitivity though.

@PokeMMO
Copy link
Contributor

PokeMMO commented Jan 29, 2020

Detecting Android is not a problem. The only "Problem" was that certain debug strings were printing incorrect data.

https://github.com/libgdx/libgdx/blob/master/gdx/src/com/badlogic/gdx/utils/SharedLibraryLoader.java#L124-L125

This change is unnecessary.

@mquickmann
Copy link
Contributor Author

What if you checked just for "Android".
Should still be correct, and might catch weird custom ROMs that change it, all without changing much.

IDK about case sensitivity though.

@EtK2000 you might be right, checking some properties with case sensitivity would make it possible to catch custom roms and might fix just some library loading issues depending on some special devices.

Detecting Android is not a problem. The only "Problem" was that certain debug strings were printing incorrect data.

https://github.com/libgdx/libgdx/blob/master/gdx/src/com/badlogic/gdx/utils/SharedLibraryLoader.java#L124-L125

This change is unnecessary.

@PokeMMO Yes, that's correct. I've seen to late that the Exception is thrown on Line 119, like descriped in #5863 (comment):

System.loadLibrary(platformName);

So what do you recommend closing pr or change the check of the Properties (and rename the pr) to support custom roms, described by @EtK2000 's answer (#5897 (review))?

@PokeMMO
Copy link
Contributor

PokeMMO commented Jan 29, 2020

I am not aware of any custom rom not being properly detected, so I would recommend closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crashes not loading libgdx.so on certain devices
3 participants