MCPcopy Create free account
hub / github.com/M66B/FairEmail / hasValidFingerprint

Method hasValidFingerprint

app/src/main/java/eu/faircode/email/Helper.java:3319–3336  ·  view source on GitHub ↗
(Context context)

Source from the content-addressed store, hash-verified

3317 }
3318
3319 static boolean hasValidFingerprint(Context context) {
3320 if (hasValidFingerprint == null) {
3321 hasValidFingerprint = false;
3322
3323 String signed = getFingerprint(context);
3324 String[] fingerprints = new String[]{
3325 context.getString(R.string.fingerprint),
3326 context.getString(R.string.fingerprint_amazon)
3327 };
3328
3329 for (String fingerprint : fingerprints)
3330 if (Objects.equals(signed, fingerprint)) {
3331 hasValidFingerprint = true;
3332 break;
3333 }
3334 }
3335 return hasValidFingerprint;
3336 }
3337
3338 static boolean isSignedByFDroid(Context context) {
3339 String signed = getFingerprint(context);

Callers 13

checkReviewMethod · 0.95
checkFingerprintMethod · 0.95
onCreateViewMethod · 0.95
getAnnotatedVersionMethod · 0.95
getSupportUriMethod · 0.95
getIntentIssueMethod · 0.95
onHelpMethod · 0.95
getReleaseTypeMethod · 0.95
onMenuItemClickMethod · 0.95
updateExtraMethod · 0.95
checkUpdateMethod · 0.95
getVersionInfoMethod · 0.95

Calls 3

getFingerprintMethod · 0.95
getStringMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected