MCPcopy Create free account
hub / github.com/M66B/NetGuard / isPlayStoreInstall

Method isPlayStoreInstall

app/src/main/java/eu/faircode/netguard/Util.java:445–454  ·  view source on GitHub ↗
(Context context)

Source from the content-addressed store, hash-verified

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))

Callers 12

onPrepareOptionsMenuMethod · 0.95
upgradeMethod · 0.95
handleIntentMethod · 0.95
householdingMethod · 0.95
onPreExecuteMethod · 0.95
onResumeMethod · 0.95
getIntentProMethod · 0.95
onPostCreateMethod · 0.95
hasXposedMethod · 0.95
sendCrashReportMethod · 0.95
uncaughtExceptionMethod · 0.95

Calls 2

equalsMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected