Check system certificate violation for product apks

Only if enforcement option is enable, it makes build error when there is apk located at system partition but signed with system certificate.

Bug: 74699609

Test: m -j

Change-Id: I23c41f2665dd97abac3e77d1c82d81ff91b894eb
This commit is contained in:
Jeongik Cha
2019-01-07 12:07:27 +09:00
parent 10ed054a6b
commit c9464144a8
3 changed files with 25 additions and 0 deletions

View File

@@ -950,6 +950,14 @@ func (c *config) FlattenApex() bool {
return Bool(c.productVariables.FlattenApex)
}
func (c *config) EnforceSystemCertificate() bool {
return Bool(c.productVariables.EnforceSystemCertificate)
}
func (c *config) EnforceSystemCertificateWhitelist() []string {
return c.productVariables.EnforceSystemCertificateWhitelist
}
func stringSlice(s *[]string) []string {
if s != nil {
return *s