Allow BG-launch FGS if it is on DeviceIdleController's allowList.
Add a device_config flag default_fgs_starts_temp_allowlist_enabled to
allow BG-launch FGS if the uid is on DeviceIdleController's allowList.
To enable this feature, turn on BG-launch restriction flag first.
adb shell device_config put activity_manager default_fgs_starts_restriction_enabled true
Then turn on allowList flag:
adb shell device_config put activity_manager default_fgs_starts_temp_allowlist_enabled true
Bug: 157473819
Test: adb shell device_config put activity_manager default_fgs_starts_temp_allowlist_enabled true
adb shell device_config get activity_manager default_fgs_starts_temp_allowlist_enabled
Change-Id: Id249ae98bf0e2f06efcee4ab28e5796530f64b2b
2 files changed