MCPcopy Create free account
hub / github.com/facebook/SoLoader / is64Bit

Method is64Bit

java/com/facebook/soloader/SysUtil.java:412–425  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

410 }
411
412 @SuppressLint("CatchGeneralException")
413 public static boolean is64Bit() {
414 boolean is64bit = false;
415 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
416 is64bit = MarshmallowSysdeps.is64Bit();
417 } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
418 try {
419 is64bit = LollipopSysdeps.is64Bit();
420 } catch (Exception e) {
421 LogUtil.e(TAG, String.format("Could not read /proc/self/exe. Err msg: %s", e.getMessage()));
422 }
423 }
424 return is64bit;
425 }
426
427 public static boolean isSupportedDirectLoad(@Nullable Context context, int appType) {
428 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {

Callers 2

addSystemLibSoSourceMethod · 0.95
is64BitMethod · 0.45

Calls 3

is64BitMethod · 0.95
is64BitMethod · 0.95
eMethod · 0.95

Tested by

no test coverage detected