Revert^6 "Add TARGET_SYSTEM_PROP to system build.prop"

530c32acbee136ff3475192335cc7594589de096

Change-Id: I9dc817855e3db7b96320a977b24b84d72e762893
This commit is contained in:
Inseob Kim 2024-07-31 02:00:41 +00:00 committed by Bartłomiej Rudecki
parent 262fa746b8
commit ce0cfaaf3f
Signed by: przekichane
GPG key ID: 751F23C6F014EF76
3 changed files with 15 additions and 4 deletions

View file

@ -31,10 +31,6 @@ type buildPropProperties struct {
// properties in prop_files.
Block_list []string
// Path to the input prop files. The contents of the files are directly
// emitted to the output
Prop_files []string `android:"path"`
// Files to be appended at the end of build.prop. These files are appended after
// post_process_props without any further checking.
Footer_files []string `android:"path"`
@ -56,6 +52,14 @@ func (p *buildPropModule) stem() string {
return proptools.StringDefault(p.properties.Stem, "build.prop")
}
func (p *buildPropModule) propFiles(ctx ModuleContext) Paths {
partition := p.PartitionTag(ctx.DeviceConfig())
if partition == "system" {
return ctx.Config().SystemPropFiles(ctx)
}
return nil
}
func (p *buildPropModule) GenerateAndroidBuildActions(ctx ModuleContext) {
p.outputFilePath = PathForModuleOut(ctx, "build.prop").OutputPath
if !ctx.Config().KatiEnabled() {
@ -94,6 +98,7 @@ func (p *buildPropModule) GenerateAndroidBuildActions(ctx ModuleContext) {
cmd.FlagWithInput("--platform-preview-sdk-fingerprint-file=", ApiFingerprintPath(ctx))
cmd.FlagWithInput("--product-config=", PathForModuleSrc(ctx, proptools.String(p.properties.Product_config)))
cmd.FlagWithArg("--partition=", partition)
cmd.FlagForEachInput("--prop-files=", ctx.Config().SystemPropFiles(ctx))
cmd.FlagWithOutput("--out=", p.outputFilePath)
postProcessCmd := rule.Command().BuiltTool("post_process_props")

View file

@ -2105,3 +2105,7 @@ func (c *config) UseDebugArt() bool {
return Bool(c.productVariables.Eng)
}
func (c *config) SystemPropFiles(ctx PathContext) Paths {
return PathsForSource(ctx, c.productVariables.SystemPropFiles)
}

View file

@ -532,6 +532,8 @@ type ProductVariables struct {
OemProperties []string `json:",omitempty"`
ArtTargetIncludeDebugBuild *bool `json:",omitempty"`
SystemPropFiles []string `json:",omitempty"`
}
type PartitionQualifiedVariablesType struct {