Change signing configuration to use AOSP platform key

* https://stackoverflow.com/a/40145242

Change-Id: I12d09f299f4f0f7d8879a631d4f3298a18409683
diff --git a/app/build.gradle b/app/build.gradle
index 9b5b5c2..3159d38 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -66,23 +66,19 @@
         }
     }
 
-    // optional signingConfigs
-    def keystorePropertiesFile = rootProject.file("keystore.properties")
-    if (keystorePropertiesFile.exists()) {
-        def keystoreProperties = new Properties()
-        keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
-
-        signingConfigs {
-            release {
-                keyAlias keystoreProperties['keyAlias']
-                keyPassword keystoreProperties['keyPassword']
-                storeFile file(keystoreProperties['storeFile'])
-                storePassword keystoreProperties['storePassword']
-            }
+    signingConfigs {
+        aosp {
+            // Generated from the AOSP platform key:
+            // https://android.googlesource.com/platform/build/+/refs/tags/android-11.0.0_r29/target/product/security/platform.pk8
+            keyAlias "platform"
+            keyPassword "platform"
+            storeFile file("platform.jks")
+            storePassword "platform"
         }
-        buildTypes.release.signingConfig = signingConfigs.release
-        buildTypes.debug.signingConfig = signingConfigs.release
     }
+
+    buildTypes.release.signingConfig = signingConfigs.aosp
+    buildTypes.debug.signingConfig = signingConfigs.aosp
 }
 
 apply from: '../gradle/dependencies.gradle'
diff --git a/app/platform.jks b/app/platform.jks
new file mode 100644
index 0000000..25ac308
--- /dev/null
+++ b/app/platform.jks
Binary files differ