objectbox-java icon indicating copy to clipboard operation
objectbox-java copied to clipboard

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

Open tmxdyf opened this issue 2 years ago • 2 comments

version:3.1.2

class NativeLibraryLoader

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

Does not meet GMS requirements

tmxdyf avatar Apr 18 '22 08:04 tmxdyf

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

ivahnenkoAnna avatar Apr 21 '22 08:04 ivahnenkoAnna

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!

greenrobot-team avatar Apr 26 '22 08:04 greenrobot-team