(Context context)
| 443 | } |
| 444 | |
| 445 | public static boolean isPlayStoreInstall(Context context) { |
| 446 | if (BuildConfig.PLAY_STORE_RELEASE) |
| 447 | return true; |
| 448 | try { |
| 449 | return "com.android.vending".equals(context.getPackageManager().getInstallerPackageName(context.getPackageName())); |
| 450 | } catch (Throwable ex) { |
| 451 | Log.e(TAG, ex.toString() + "\n" + Log.getStackTraceString(ex)); |
| 452 | return false; |
| 453 | } |
| 454 | } |
| 455 | |
| 456 | public static boolean hasXposed(Context context) { |
| 457 | if (true || !isPlayStoreInstall(context)) |
no test coverage detected