Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5bac3b6f authored by Inseob Kim's avatar Inseob Kim
Browse files

Use board api level for seapp coredomain check

Rather than PRODUCT_SHIPPING_API_LEVEL, use board api level
(BOARD_API_LEVEL or BOARD_SHIPPING_API_LEVEL) to determine whether we
check coredomain violations or not.

Also provides a Makefile variable to override the flag, for targets that
want to turn on the check optionally.

Bug: 280547417
Test: see build command of vendor_seapp_contexts
Change-Id: Ic7c4a53d0df0cccd45eb699e236a92c8c0bc2d56
parent 4e6c42d4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2081,3 +2081,7 @@ func (c *config) SetApiLibraries(libs []string) {
func (c *config) GetApiLibraries() map[string]struct{} {
	return c.apiLibraries
}

func (c *deviceConfig) CheckVendorSeappViolations() bool {
	return Bool(c.config.productVariables.CheckVendorSeappViolations)
}
+2 −0
Original line number Diff line number Diff line
@@ -486,6 +486,8 @@ type ProductVariables struct {
	ReleaseAconfigFlagDefaultPermission string `json:",omitempty"`

	KeepVndk *bool `json:",omitempty"`

	CheckVendorSeappViolations *bool `json:",omitempty"`
}

func boolPtr(v bool) *bool {