diff options
author | Keun young Park <keunyoung@google.com> | 2020-06-18 16:01:05 -0700 |
---|---|---|
committer | Keun young Park <keunyoung@google.com> | 2020-06-22 09:35:28 -0700 |
commit | 37a49da1aa47f1bb23dfa26c1fa7d2720f82ac6b (patch) | |
tree | d079b9fe5effe9d01822e412873329999edb99d5 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | cc498f3e695a18879b1e6cbb6ca348f654d1cf01 (diff) |
Restore lost unlocked users after vold reset
- In automotive, vold reset / resetIfBootedAndConnected() call can
lose pending unlock request for a user if boot completion and
unlock happens at the same time. In automotive, user unlock
can happen before boot complete.
- After vold reset, check for such lost user (=marked unlocking or
unlocked in UserManager level but is still locked in StorageManager
level) and retry unlocking.
- This also undo previous CL to keep handler messages as that cannot
prevent all the race, especially race of vold reset right after
onUnlockUser call. But handler update is kept inside the service.
- The restoration is done only for automotive device for now as phone
does not have such case.
Bug: 151457974
Test: try reboot in auto devices where this race can happen.
Change-Id: I3b50750f5602c805e79f79f061eed44f880b25bd
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions