Merge "Add sepolicy prebuilt API dirs to soong config"

This commit is contained in:
Treehugger Robot 2022-02-17 01:26:04 +00:00 committed by Gerrit Code Review
commit 1d7209b820
2 changed files with 15 additions and 0 deletions

View file

@ -1530,6 +1530,18 @@ func (c *deviceConfig) BoardProductPrivatePrebuiltDirs() []string {
return c.config.productVariables.BoardProductPrivatePrebuiltDirs
}
func (c *deviceConfig) SystemExtSepolicyPrebuiltApiDir() string {
return String(c.config.productVariables.SystemExtSepolicyPrebuiltApiDir)
}
func (c *deviceConfig) ProductSepolicyPrebuiltApiDir() string {
return String(c.config.productVariables.ProductSepolicyPrebuiltApiDir)
}
func (c *deviceConfig) IsPartnerTrebleSepolicyTestEnabled() bool {
return c.SystemExtSepolicyPrebuiltApiDir() != "" || c.ProductSepolicyPrebuiltApiDir() != ""
}
func (c *deviceConfig) DirectedVendorSnapshot() bool {
return c.config.productVariables.DirectedVendorSnapshot
}

View file

@ -364,6 +364,9 @@ type productVariables struct {
PlatformSepolicyVersion *string `json:",omitempty"`
TotSepolicyVersion *string `json:",omitempty"`
SystemExtSepolicyPrebuiltApiDir *string `json:",omitempty"`
ProductSepolicyPrebuiltApiDir *string `json:",omitempty"`
PlatformSepolicyCompatVersions []string `json:",omitempty"`
VendorVars map[string]map[string]string `json:",omitempty"`