Loading android/module.go +7 −1 Original line number Diff line number Diff line Loading @@ -548,6 +548,9 @@ type commonProperties struct { SkipInstall bool `blueprint:"mutated"` // Disabled by mutators. If set to true, it overrides Enabled property. ForcedDisabled bool `blueprint:"mutated"` NamespaceExportedToMake bool `blueprint:"mutated"` MissingDeps []string `blueprint:"mutated"` Loading Loading @@ -1022,6 +1025,9 @@ func (m *ModuleBase) PartitionTag(config DeviceConfig) string { } func (m *ModuleBase) Enabled() bool { if m.commonProperties.ForcedDisabled { return false } if m.commonProperties.Enabled == nil { return !m.Os().DefaultDisabled } Loading @@ -1029,7 +1035,7 @@ func (m *ModuleBase) Enabled() bool { } func (m *ModuleBase) Disable() { m.commonProperties.Enabled = proptools.BoolPtr(false) m.commonProperties.ForcedDisabled = true } func (m *ModuleBase) SkipInstall() { Loading Loading
android/module.go +7 −1 Original line number Diff line number Diff line Loading @@ -548,6 +548,9 @@ type commonProperties struct { SkipInstall bool `blueprint:"mutated"` // Disabled by mutators. If set to true, it overrides Enabled property. ForcedDisabled bool `blueprint:"mutated"` NamespaceExportedToMake bool `blueprint:"mutated"` MissingDeps []string `blueprint:"mutated"` Loading Loading @@ -1022,6 +1025,9 @@ func (m *ModuleBase) PartitionTag(config DeviceConfig) string { } func (m *ModuleBase) Enabled() bool { if m.commonProperties.ForcedDisabled { return false } if m.commonProperties.Enabled == nil { return !m.Os().DefaultDisabled } Loading @@ -1029,7 +1035,7 @@ func (m *ModuleBase) Enabled() bool { } func (m *ModuleBase) Disable() { m.commonProperties.Enabled = proptools.BoolPtr(false) m.commonProperties.ForcedDisabled = true } func (m *ModuleBase) SkipInstall() { Loading