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

Runtime.getRuntime().exec("uname -m"); #1068

Open
tmxdyf opened this issue Apr 18, 2022 · 2 comments
Open

Runtime.getRuntime().exec("uname -m"); #1068

tmxdyf opened this issue Apr 18, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@tmxdyf
Copy link

tmxdyf commented Apr 18, 2022

version:3.1.2

class NativeLibraryLoader

line 204 :
Runtime.getRuntime().exec("uname -m");

Does not meet GMS requirements

@tmxdyf tmxdyf added the bug Something isn't working label Apr 18, 2022
@ivahnenkoAnna
Copy link
Contributor

Can you please elaborate on the associated part of the GMS requirements?

@greenrobot-team greenrobot-team added more info required Further information is requested enhancement New feature or request and removed bug Something isn't working more info required Further information is requested labels Apr 25, 2022
@greenrobot-team
Copy link
Member

greenrobot-team commented Apr 26, 2022

Thanks for reporting! As a quick solution you could fork this library and remove the non-Android parts from NativeLibraryLoader.java (or just remove getCpuArchOSOrNull()).

This is likely talking about system (pre-installed) software passing the Compatibility Test Suite from Google that is required so a device can ship with Google services. However, I couldn't find the relevant part in the documents, e.g. for Android 12.

At this point we don't think this warrants a change (e.g. by creating a separate Android-only library or removing the architecture detection). Edit: Play Store policy does not seem to prohibit using this API, so apps deployed via Play Store should be fine.

If more people are affected though, please thumbs up the first post!

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

No branches or pull requests

3 participants