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

Skip to content
Commit 361674de authored by Eric Biggers's avatar Eric Biggers
Browse files

Avoid redundant unlock of newly created key

IVold.createUserKey unlocks the key that it creates, so the later call
to IVold.unlockUserKey is unnecessary and just triggers a warning:

    W vold    : Tried to unlock already-unlocked key for user 10

Avoid this by making the createUserKey and destroyUserKey methods of
StorageManagerService update the mLocalUnlockedUsers array, so that the
StorageManagerService state stays in sync with the vold state.

Test: pm create-user 10; am start-user 10; checked logcat
Bug: 232452368
Change-Id: I238b2b218582e2791b25998e8ebaa1004ca0466d
parent 7d532c8d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment