summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author Adam Bookatz <bookatz@google.com> 2023-02-01 19:38:08 -0800
committer Adam Bookatz <bookatz@google.com> 2023-02-02 10:38:29 -0800
commite5a06ca619fb37bc20e5b8d38ab8f2c19f9257cb (patch)
tree6a1cbef2964885a8eb6c67923b2aaff418c405f1 /libs/androidfw/ApkParsing.cpp
parentc0bcd9afb8a79393ece6d920f0e3631ff93f7fc0 (diff)
HsumBootUserInitializer creates MainUser earlier
Previously, on first boot, an HSUM device would unlock the system user, then create the MainUser (if needed), and then switch to the boot user, all at around the same time. This cl reorders these events and spreads them out: * first, early on (just prior to PHASE_SYSTEM_SERVICES_READY), the MainUser is created (if needed) * later (after PHASE_THIRD_PARTY_APPS_CAN_START), the system user is unlocked * then we promptly switch to the boot user. This needs to be after PHASE_THIRD_PARTY_APPS_CAN_START since special apps may designate a different boot user. This will ensure that the MainUser can be retrieved much earlier on by system services whose operations may depend on it. Also, the structure of BootUserInitializer is renamed to better reflect its role, and its structure is modified slightly to allow SystemServer to use it more easily. Bug: 262438904 Bug: 266098768 Test: flashed HSUM and confirmed that MainUser was created as needed Test: atest FrameworksMockingServicesTests:com.android.server.pm.UserManagerServiceTest Change-Id: Ic84b1be538234b2bfde3ae792c9a923ace55f24c
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions