()
| 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) { |
no test coverage detected