From b08b1f55f7936e954c750719fb526e26b8ffa609 Mon Sep 17 00:00:00 2001 From: Chirayu Desai Date: Fri, 19 Feb 2021 22:05:47 +0530 Subject: [PATCH] Change signing configuration to use AOSP platform key * https://stackoverflow.com/a/40145242 Change-Id: I12d09f299f4f0f7d8879a631d4f3298a18409683 --- app/build.gradle | 26 +++++++++++--------------- app/platform.jks | Bin 0 -> 2899 bytes 2 files changed, 11 insertions(+), 15 deletions(-) create mode 100644 app/platform.jks diff --git a/app/build.gradle b/app/build.gradle index 9b5b5c24..3159d385 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -66,23 +66,19 @@ android { } } - // 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 0000000000000000000000000000000000000000..25ac30812d94bab16ff1ddd0d934a13494ace648 GIT binary patch literal 2899 zcmY+EcQ_l08pb1n5{foft*Skn*d?)NjoPa*YSs=hT0}K!&vH>(J9^OChlbipQnjgF ztM-mrT6*34+1}wmWenPRJQ>ZW{&Hv@A=jdNa zlvyeiJW+-{dci<+Gk7qnH4r*bH#ldo7%_HuAe^I_z>h+EqlbmAP5M&BpVz*`Rs_0f z^~w&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