summaryrefslogtreecommitdiff
path: root/filesystem/filesystem.go
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2025-01-31 14:47:49 -0800
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2025-01-31 14:47:49 -0800
commit52dc1a7f9533c82d27a2c75cfabd0cbeb763f6ac (patch)
tree2f2b3950c1782129432bdaa0fd38eddd3fb93329 /filesystem/filesystem.go
parent733a91ac018275cd0d4ae5b0116d560b171c06b7 (diff)
parent0d3fd565f7c9c4f0442b9728fba0e10a023186aa (diff)
Merge "Install apex symbol file" into main
Diffstat (limited to 'filesystem/filesystem.go')
-rw-r--r--filesystem/filesystem.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go
index e3f3ce866..660603741 100644
--- a/filesystem/filesystem.go
+++ b/filesystem/filesystem.go
@@ -469,6 +469,13 @@ func (f *filesystem) FilterPackagingSpec(ps android.PackagingSpec) bool {
if ps.SkipInstall() {
return false
}
+ // "apex" is a fake partition used to install files in out/target/product/<device>/apex/.
+ // Don't include these files in the partition. We should also look into removing the following
+ // TODO to check the PackagingSpec's partition against this filesystem's partition for all
+ // modules, not just autogenerated ones, which will fix this as well.
+ if ps.Partition() == "apex" {
+ return false
+ }
if proptools.Bool(f.properties.Is_auto_generated) { // TODO (spandandas): Remove this.
pt := f.PartitionType()
return ps.Partition() == pt || strings.HasPrefix(ps.Partition(), pt+"/")