Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 207cd287 authored by Hui Yu's avatar Hui Yu
Browse files

Defer LOCKED_BOOT_COMPLETED and BOOT_COMPLETED broadcasts.

Until the first time any process in the UID is started.

This feature is enabled by device_config flag "defer_boot_completed_broadcast" which has possible value:
0 defer none.
1 defer LOCKED_BOOT_COMPLETED and BOOT_COMPLETED broadcasts of all apps.
2 defer UID that is background restricted.
4 defer UID that has targetSdkVersion T+.
Except value -1 and 1, other values can be bit-OR-ed to combine multiple
conditions.

The default is to defer apps that are both background restricted AND targetSdkVersion T+.

Bug: 203704822
Test: atest services/tests/servicestests/src/com/android/server/am/BroadcastRecordTest#testDeferBootCompletedBroadcast and #testDeferBootCompletedBroadcast_dispatcher
Change-Id: Ia48ca3704a2f371e8bbe4d93df90652191dc2f99
parent 5479e1e0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment