OMS: handle target or overlay package disabled
Update what happens when the package manager disables a package:
- if a target is disabled, update its overlays to STATE_MISSING_TARGET
- if an overlay is disabled, update its state to the new state
STATE_OVERLAY_NOT_AVAILABLE
In both cases, OverlayInfo.isEnabled will return false.
Note: if the package manager only disables a single component, nothing
happens to the overlays: OMS only looks at ApplicationInfo.enabled, not
the individual ComponentInfo.enabled fields.
Test: atest OverlayHostTests
Change-Id: I8c417acc0175739002a0350eed1913c32cc73337
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
3 files changed