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

Skip to content
Commit 5c65b1ee authored by Eric Biggers's avatar Eric Biggers
Browse files

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
parent 22b672bb
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