summaryrefslogtreecommitdiff
path: root/android/module.go
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2025-02-12 06:37:16 -0800
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2025-02-12 06:37:16 -0800
commit1a49813031ed2829f70d0de92454ff53f4c3da84 (patch)
treea2fcd3d9f9aa5bc0fb5b489f199395bc86a17932 /android/module.go
parent719a8807c9d47b192d9f15e0eaa7a4a248d4e17a (diff)
parent11ad4e940b342fb0bdf700276f9a7b513c3656b0 (diff)
Merge "Install VINTF fragment modules in the APEX" into main
Diffstat (limited to 'android/module.go')
-rw-r--r--android/module.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/android/module.go b/android/module.go
index 80275a309..3295e93be 100644
--- a/android/module.go
+++ b/android/module.go
@@ -1091,6 +1091,10 @@ var vintfDepTag = struct {
InstallAlwaysNeededDependencyTag
}{}
+func IsVintfDepTag(depTag blueprint.DependencyTag) bool {
+ return depTag == vintfDepTag
+}
+
func addVintfFragmentDeps(ctx BottomUpMutatorContext) {
// Vintf manifests in the recovery partition will be ignored.
if !ctx.Device() || ctx.Module().InstallInRecovery() {
@@ -1109,7 +1113,7 @@ func addVintfFragmentDeps(ctx BottomUpMutatorContext) {
// of nil pointer dereference errors, but we should resolve the missing dependencies.
continue
}
- if vintfModule, ok := vintf.(*vintfFragmentModule); ok {
+ if vintfModule, ok := vintf.(*VintfFragmentModule); ok {
vintfPartition := vintfModule.PartitionTag(deviceConfig)
if modPartition != vintfPartition {
ctx.ModuleErrorf("Module %q(%q) and Vintf_fragment %q(%q) are installed to different partitions.",