Define additional exception functions for container enforcement

These exception functions allow restriction to be loosened for some
inter-container dependencies.

Note that these functions are still no-op. Restriction enforcement will
be done in the child change.

Test: m nothing
Bug: 338660802
Change-Id: I63c7c33e33f271d4c2a84cc6070eb4896e030ab4
This commit is contained in:
Jihoon Kang
2024-08-12 22:38:16 +00:00
parent 334efc0fb1
commit 224ea08ee6
3 changed files with 131 additions and 9 deletions

View File

@@ -563,8 +563,14 @@ type Module struct {
var _ android.InstallableModule = (*Module)(nil)
// To satisfy the InstallableModule interface
func (j *Module) EnforceApiContainerChecks() bool {
return true
func (j *Module) StaticDependencyTags() []blueprint.DependencyTag {
return []blueprint.DependencyTag{staticLibTag}
}
// To satisfy the InstallableModule interface
func (j *Module) DynamicDependencyTags() []blueprint.DependencyTag {
return []blueprint.DependencyTag{libTag, sdkLibTag, bootClasspathTag, systemModulesTag,
instrumentationForTag, java9LibTag}
}
// Overrides android.ModuleBase.InstallInProduct()