diff options
author | Ram Periathiruvadi <ramperry@google.com> | 2020-02-25 10:12:44 -0800 |
---|---|---|
committer | Ram Periathiruvadi <ramperry@google.com> | 2020-02-25 10:24:49 -0800 |
commit | 29c75abfe17c603cf075075beda32eb5d163d6c0 (patch) | |
tree | 9ff79af84ec0a77301286616fe53cb10e81f8b89 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 353d26c89790e85273d3922bdf7736209c15bffd (diff) |
Resolve trust agents on USER_STARTED in addition to USER_ADDED.
ACTION_USER_ADDED is a broadcast that is sent once when the user is
created. TrustManagerService resolves the enabled trust agents for an
user only when the user is created. However, if there is a reboot or
power loss before the broadcast is received, the trust agents are never
resolved for that user.
This change also registers for ACTION_USER_STARTED, so the service
checks for enabled trust agents on every boot. If the trust agents have
been already resolved and initialized for that users, there is already a
Secure Settings key (TRUST_AGENTS_INITIALIZED) that is turned on, so we
wouldn't be doing this more than once per user.
Bug: 150145767
Test: TrustManagerService resolves trust agents only once - either on
USER_ADDED or USER_STARTED.
Change-Id: I83c2dd02d4b476f8b85af1aa4d9d0c77095207ce
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions