From 3936a02e1a752a6f17baf55a276a8edfb88cfc66 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Mon, 8 Feb 2016 18:06:03 +0100 Subject: [PATCH] Add Classroom signature to Google whitelist, fixes #89 --- .../src/main/java/org/microg/gms/common/PackageUtils.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/play-services-core/src/main/java/org/microg/gms/common/PackageUtils.java b/play-services-core/src/main/java/org/microg/gms/common/PackageUtils.java index 598f09f9..b52b9f80 100644 --- a/play-services-core/src/main/java/org/microg/gms/common/PackageUtils.java +++ b/play-services-core/src/main/java/org/microg/gms/common/PackageUtils.java @@ -32,7 +32,11 @@ import static org.microg.gms.common.Constants.GMS_PACKAGE_SIGNATURE_SHA1; public class PackageUtils { - private static final String[] KNOWN_GOOGLE_SIGNATURES = {GMS_PACKAGE_SIGNATURE_SHA1, "58e1c4133f7441ec3d2c270270a14802da47ba0e", "24bb24c05e47e0aefa68a58a766179d9b613a600"}; + private static final String[] KNOWN_GOOGLE_SIGNATURES = { + GMS_PACKAGE_SIGNATURE_SHA1 /* Google platform key */, + "58e1c4133f7441ec3d2c270270a14802da47ba0e" /* Android Wear */, + "24bb24c05e47e0aefa68a58a766179d9b613a600" /* Google Fit/Glass */, + "46f6c8987311e131f4f558d8e0ae145bebab6da3" /* Google Classroom */}; public static boolean isGoogleSignedPackages(Context context, String packageName) { return Arrays.asList(KNOWN_GOOGLE_SIGNATURES).contains(firstSignatureDigest(context, packageName));