mirror of https://github.com/M66B/NetGuard.git
Show valid fingerprint logcat/version
This commit is contained in:
parent
5f6dc85409
commit
f8ef70d5a6
|
@ -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());
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue