Merge pull request #220 from chirayudesai/aosp-key
Change signing configuration to use AOSP platform key
This commit is contained in:
commit
e38f958f9c
2 changed files with 11 additions and 15 deletions
|
@ -66,23 +66,19 @@ android {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// optional signingConfigs
|
signingConfigs {
|
||||||
def keystorePropertiesFile = rootProject.file("keystore.properties")
|
aosp {
|
||||||
if (keystorePropertiesFile.exists()) {
|
// Generated from the AOSP platform key:
|
||||||
def keystoreProperties = new Properties()
|
// https://android.googlesource.com/platform/build/+/refs/tags/android-11.0.0_r29/target/product/security/platform.pk8
|
||||||
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
keyAlias "platform"
|
||||||
|
keyPassword "platform"
|
||||||
signingConfigs {
|
storeFile file("platform.jks")
|
||||||
release {
|
storePassword "platform"
|
||||||
keyAlias keystoreProperties['keyAlias']
|
|
||||||
keyPassword keystoreProperties['keyPassword']
|
|
||||||
storeFile file(keystoreProperties['storeFile'])
|
|
||||||
storePassword keystoreProperties['storePassword']
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
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'
|
apply from: '../gradle/dependencies.gradle'
|
||||||
|
|
BIN
app/platform.jks
Normal file
BIN
app/platform.jks
Normal file
Binary file not shown.
Loading…
Reference in a new issue