manual merge of 2ef16cfcd4
to rvc-dev-plus-aosp
Test: I solemnly swear I tested this conflict resolution. Bug: None Change-Id: I768c3fe568fee764cb0b533e73a3fef719adf30c
This commit is contained in:
@@ -691,9 +691,9 @@ func processMainCert(m android.ModuleBase, certPropValue string, certificates []
|
||||
systemCertPath := ctx.Config().DefaultAppCertificateDir(ctx).String()
|
||||
if strings.HasPrefix(certPath, systemCertPath) {
|
||||
enforceSystemCert := ctx.Config().EnforceSystemCertificate()
|
||||
whitelist := ctx.Config().EnforceSystemCertificateWhitelist()
|
||||
allowed := ctx.Config().EnforceSystemCertificateAllowList()
|
||||
|
||||
if enforceSystemCert && !inList(m.Name(), whitelist) {
|
||||
if enforceSystemCert && !inList(m.Name(), allowed) {
|
||||
ctx.PropertyErrorf("certificate", "The module in product partition cannot be signed with certificate in system.")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user