summaryrefslogtreecommitdiff
path: root/apex/apex_singleton.go
diff options
context:
space:
mode:
author Chan Wang <chanwang@google.com> 2025-01-10 10:23:21 +0000
committer Chan Wang <chanwang@google.com> 2025-01-10 13:35:53 +0000
commita8c8e20d0da3c6231906c225099f38d983ade041 (patch)
tree0cd50b7539921b71020f1c992ccc3ac3b4204c74 /apex/apex_singleton.go
parent473f6be94715dbf33d19509b7523de1e03405314 (diff)
Collect dependencies of updatable apexes only for AOSP APEX
Bug: 380222284 Test: m nothing --no-skip-soong-tests Change-Id: Ic629fce1d3cde728e6bd4b67f76ae72244669f54
Diffstat (limited to 'apex/apex_singleton.go')
-rw-r--r--apex/apex_singleton.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/apex/apex_singleton.go b/apex/apex_singleton.go
index 7b3acb509..263e0a52c 100644
--- a/apex/apex_singleton.go
+++ b/apex/apex_singleton.go
@@ -18,6 +18,7 @@ package apex
import (
"encoding/json"
+ "strings"
"github.com/google/blueprint"
@@ -94,7 +95,9 @@ func (s *apexDepsInfoSingleton) GenerateBuildActions(ctx android.SingletonContex
apexInfo, _ := android.OtherModuleProvider(ctx, module, android.ApexInfoProvider)
if path := binaryInfo.FlatListPath(); path != nil {
if binaryInfo.Updatable() || apexInfo.Updatable {
- updatableFlatLists = append(updatableFlatLists, path)
+ if strings.HasPrefix(module.String(), "com.android.") {
+ updatableFlatLists = append(updatableFlatLists, path)
+ }
}
}
}