From f8ef70d5a6b49f20ee261fdba647bb6b3b78f118 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 14 Nov 2015 10:33:56 +0100 Subject: [PATCH] Show valid fingerprint logcat/version --- app/src/main/java/eu/faircode/netguard/ActivityMain.java | 2 ++ app/src/main/java/eu/faircode/netguard/Util.java | 1 + 2 files changed, 3 insertions(+) diff --git a/app/src/main/java/eu/faircode/netguard/ActivityMain.java b/app/src/main/java/eu/faircode/netguard/ActivityMain.java index 07201c86..bc136345 100644 --- a/app/src/main/java/eu/faircode/netguard/ActivityMain.java +++ b/app/src/main/java/eu/faircode/netguard/ActivityMain.java @@ -542,6 +542,8 @@ public class ActivityMain extends AppCompatActivity implements SharedPreferences // Show version tvVersion.setText(Util.getSelfVersionName(this)); + if (!Util.hasValidFingerprint(TAG, this)) + tvVersion.setTextColor(Color.GRAY); // Handle license tvLicense.setMovementMethod(LinkMovementMethod.getInstance()); diff --git a/app/src/main/java/eu/faircode/netguard/Util.java b/app/src/main/java/eu/faircode/netguard/Util.java index 43aa82f0..036b202d 100644 --- a/app/src/main/java/eu/faircode/netguard/Util.java +++ b/app/src/main/java/eu/faircode/netguard/Util.java @@ -164,6 +164,7 @@ public class Util { sb.append(String.format("Host: %s\r\n", Build.HOST)); sb.append(String.format("Display: %s\r\n", Build.DISPLAY)); sb.append(String.format("Id: %s\r\n", Build.ID)); + sb.append(String.format("Fingerprint: %b\r\n", hasValidFingerprint(tag, context))); sb.append(String.format("VPN dialogs: %b\r\n", isPackageInstalled("com.android.vpndialogs", context))); ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);