Revert "Use a partition packaging spec filter for android_filesystem"
This reverts commit 8a49643e6b727490898ea94b41667eecf24685f2.
Reason for revert: <DroidMonitor created revert due to b/374395492.Will be verified through ABTD for standard investigation>
Change-Id: I4494f15f1681bf2456439151771e84c7d1f221b7
diff --git a/filesystem/system_image.go b/filesystem/system_image.go
index 7dbf986..57239ae 100644
--- a/filesystem/system_image.go
+++ b/filesystem/system_image.go
@@ -103,6 +103,6 @@
// partition. Note that "apex" module installs its contents to "apex"(fake partition) as well
// for symbol lookup by imitating "activated" paths.
func (s *systemImage) filterPackagingSpec(ps android.PackagingSpec) bool {
- return !ps.SkipInstall() &&
+ return s.filesystem.filterInstallablePackagingSpec(ps) &&
(ps.Partition() == "system" || ps.Partition() == "root")
}