diff options
| author | 2022-04-15 18:17:04 -0700 | |
|---|---|---|
| committer | 2022-04-15 20:03:23 -0700 | |
| commit | 7800278203eae2e224f01579539498eb3df26413 (patch) | |
| tree | 97aaa1c325280d69bb13617ef4909f6723e0aac2 /libs/androidfw/StringPool.cpp | |
| parent | 22c046e137e124dc36d8c0d0f974e102a7590221 (diff) | |
Deferred BOOT_COMPLETED broadcast does not mean queue is not idle.
"adb shell am wait-for-broadcast-idle" calls BroadcastDispatcher's isEmpty() method, which return false if there is any deferred BOOT_COMPLETED broadcast. This is wrong because deferred BOOT_COMPLETED is deferred until first time the uid's process is started, this can be indefinitely.
The fix is to create a BroadcastDispatcher.isIdle() method which does not count deferred BOOT_COMPLETED broadcast.
Bug: 229426300
Test: restart device, unlock screen, issue "adb shell am wait-for-broadcast-idle"
Change-Id: Ic660982e0d6daa0728b9eabfd4808f137677e037
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions