summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceTimer.cpp
diff options
context:
space:
mode:
author Eric Biggers <ebiggers@google.com> 2022-09-29 19:25:11 +0000
committer Eric Biggers <ebiggers@google.com> 2022-10-05 02:02:42 +0000
commit157f3aa56cd8ceb978c4a171f738a000ef073ff2 (patch)
tree3789195348af201f759efbc949436fdbd9a1def7 /libs/androidfw/ResourceTimer.cpp
parente436b2988aebfebe44fdc7a07a4a7cadc5f3ca48 (diff)
UserController: simplify and fix the delayed user unlocking logic
There's no reason for the "delay user unlocking until boot complete" logic to be conditional on HSUM (Headless System User Mode), since non-HSUM doesn't unlock users too early, and if it did then it would need the same fix anyway. Therefore, make this logic unconditional. As part of this, merge onBootCompletedOnHeadlessSystemUserModeDevices() into sendBootCompleted(), and rename it to onBootComplete(). As a side effect this fixes a bug where in HSUM, the BOOT_COMPLETED broadcast could be sent before LOCKED_BOOT_COMPLETED. That isn't known to have been causing problems, but it differed from non-HSUM devices. Finally, update some comments to be more useful. Test: atest UserControllerTest # with cf_x86_phone Test: atest UserControllerTest # with cf_x86_64_auto Bug: 232452368 Bug: 241929666 Change-Id: Icb2060061740ff76e5288eb579c490fb3ab66872
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions