Collect dependencies of updatable apexes only for AOSP APEX
Bug: 380222284
Test: m nothing --no-skip-soong-tests
Change-Id: Ic629fce1d3cde728e6bd4b67f76ae72244669f54
diff --git a/apex/apex_singleton.go b/apex/apex_singleton.go
index 7b3acb5..263e0a5 100644
--- a/apex/apex_singleton.go
+++ b/apex/apex_singleton.go
@@ -18,6 +18,7 @@
import (
"encoding/json"
+ "strings"
"github.com/google/blueprint"
@@ -94,7 +95,9 @@
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)
+ }
}
}
}