summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Eric Biggers <ebiggers@google.com> 2022-10-19 17:58:53 +0000
committer Eric Biggers <ebiggers@google.com> 2022-10-20 03:21:57 +0000
commit5c65b1ee1023c7d9aa449cfcfb22830afac0900f (patch)
tree12e2cc1d721e91df5d7b34fe8990edb61614f9d5 /libs/androidfw/StringPool.cpp
parent22b672bb94f6893af5ea3f6721e3e22b46c0c1da (diff)
Don't prepare CE storage on user creation
Since the CE key is now always protected by the synthetic password, it is no longer saved to disk before PHASE_BOOT_COMPLETED. Unfortunately, that means that if the device is rebooted after a user was created but before the CE key was written to disk, then the CE key needs to be regenerated. But that doesn't work if CE storage was already prepared. Address this by not preparing the user's CE storage at creation time. It has never actually been necessary, since the CE storage will be prepared when the user is unlocked anyway. This is also how user 0 works already (with the exception of the /data/data directory). Bug: 232452368 Bug: 251213447 Change-Id: I78ba39030bbd3d1561f822fc7711d7169a21c467
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions