Fix build_prop module to use partition() instead of PartitionTag()

PartitionTag() returns the partition the module is installed in.
We don't want this because a system_ext_specific module could be
installed in the system partition if system_ext partition doesn't
exist.
Instead we want system_ext specific modules to always refer to
SystemExtPropFiles().

Bug: 359624775
Bug: 322090587
Test: build aosp_arm64 and verify system/system_ext/etc/build.prop
Change-Id: Ie67ec9c5e5a07e781515e0aafb42122f72447cf3
This commit is contained in:
Yi-Yo Chiang 2024-08-15 07:07:49 +00:00 committed by Bartłomiej Rudecki
parent 3448cf213b
commit 08cb1af507
Signed by: przekichane
GPG key ID: 751F23C6F014EF76

View file

@ -56,7 +56,7 @@ func (p *buildPropModule) stem() string {
} }
func (p *buildPropModule) propFiles(ctx ModuleContext) Paths { func (p *buildPropModule) propFiles(ctx ModuleContext) Paths {
partition := p.PartitionTag(ctx.DeviceConfig()) partition := p.partition(ctx.DeviceConfig())
if partition == "system" { if partition == "system" {
return ctx.Config().SystemPropFiles(ctx) return ctx.Config().SystemPropFiles(ctx)
} else if partition == "system_ext" { } else if partition == "system_ext" {