Show valid fingerprint logcat/version

This commit is contained in:
M66B 2015-11-14 10:33:56 +01:00
parent 5f6dc85409
commit f8ef70d5a6
2 changed files with 3 additions and 0 deletions

View File

@ -542,6 +542,8 @@ public class ActivityMain extends AppCompatActivity implements SharedPreferences
// Show version // Show version
tvVersion.setText(Util.getSelfVersionName(this)); tvVersion.setText(Util.getSelfVersionName(this));
if (!Util.hasValidFingerprint(TAG, this))
tvVersion.setTextColor(Color.GRAY);
// Handle license // Handle license
tvLicense.setMovementMethod(LinkMovementMethod.getInstance()); tvLicense.setMovementMethod(LinkMovementMethod.getInstance());

View File

@ -164,6 +164,7 @@ public class Util {
sb.append(String.format("Host: %s\r\n", Build.HOST)); sb.append(String.format("Host: %s\r\n", Build.HOST));
sb.append(String.format("Display: %s\r\n", Build.DISPLAY)); sb.append(String.format("Display: %s\r\n", Build.DISPLAY));
sb.append(String.format("Id: %s\r\n", Build.ID)); 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))); sb.append(String.format("VPN dialogs: %b\r\n", isPackageInstalled("com.android.vpndialogs", context)));
ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);