diff options
author | Arne Schwabe <arne@rfc2549.org> | 2014-01-24 12:04:14 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2014-01-24 12:04:14 +0100 |
commit | 3dbcc517f0f060c46adf0a54024bff85d54a5982 (patch) | |
tree | 7bb0b72fcad08d67b98926323f376243a89c9133 /src/de/blinkt/openvpn | |
parent | 8b7b77b9b1916337daf601338d1c571f20cd5407 (diff) |
recognize F-droid
Diffstat (limited to 'src/de/blinkt/openvpn')
-rw-r--r-- | src/de/blinkt/openvpn/core/VpnStatus.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/de/blinkt/openvpn/core/VpnStatus.java b/src/de/blinkt/openvpn/core/VpnStatus.java index d6ce0e29..f2953240 100644 --- a/src/de/blinkt/openvpn/core/VpnStatus.java +++ b/src/de/blinkt/openvpn/core/VpnStatus.java @@ -107,9 +107,12 @@ public class VpnStatus { } } + // keytool -printcert -jarfile de.blinkt.openvpn_85.apk public static final byte[] officalkey = {-58, -42, -44, -106, 90, -88, -87, -88, -52, -124, 84, 117, 66, 79, -112, -111, -46, 86, -37, 109}; public static final byte[] officaldebugkey = {-99, -69, 45, 71, 114, -116, 82, 66, -99, -122, 50, -70, -56, -111, 98, -35, -65, 105, 82, 43}; public static final byte[] amazonkey = {-116, -115, -118, -89, -116, -112, 120, 55, 79, -8, -119, -23, 106, -114, -85, -56, -4, 105, 26, -57}; + public static final byte[] fdroidkey = {-92, 111, -42, -46, 123, -96, -60, 79, -27, -31, 49, 103, 11, -54, -68, -27, 17, 2, 121, 104}; + private static ConnectionStatus mLastLevel=ConnectionStatus.LEVEL_NOTCONNECTED; @@ -261,7 +264,9 @@ public class VpnStatus { apksign = c.getString(R.string.debug_build); else if (Arrays.equals(digest, amazonkey)) apksign = "amazon version"; - else + else if (Arrays.equals(digest, fdroidkey)) + apksign = "F-Droid built and signed version"; + else apksign = c.getString(R.string.built_by,cert.getSubjectX500Principal().getName()); PackageInfo packageinfo = c.getPackageManager().getPackageInfo(c.getPackageName(), 0); |