Merge "Resolve trust agents on USER_STARTED in addition to USER_ADDED." into qt-qpr1-dev am: 8a4f32305c am: c766bd16d9 am: 2a93d843dd am: 05772e44dd am: 5e27bc7ca6
Change-Id: If4ec8a1027e469b1df2c912786d59f8188b1cb1a
This commit is contained in:
@@ -1437,7 +1437,8 @@ public class TrustManagerService extends SystemService {
|
||||
if (DevicePolicyManager.ACTION_DEVICE_POLICY_MANAGER_STATE_CHANGED.equals(action)) {
|
||||
refreshAgentList(getSendingUserId());
|
||||
updateDevicePolicyFeatures();
|
||||
} else if (Intent.ACTION_USER_ADDED.equals(action)) {
|
||||
} else if (Intent.ACTION_USER_ADDED.equals(action) || Intent.ACTION_USER_STARTED.equals(
|
||||
action)) {
|
||||
int userId = getUserId(intent);
|
||||
if (userId > 0) {
|
||||
maybeEnableFactoryTrustAgents(mLockPatternUtils, userId);
|
||||
@@ -1478,6 +1479,7 @@ public class TrustManagerService extends SystemService {
|
||||
filter.addAction(DevicePolicyManager.ACTION_DEVICE_POLICY_MANAGER_STATE_CHANGED);
|
||||
filter.addAction(Intent.ACTION_USER_ADDED);
|
||||
filter.addAction(Intent.ACTION_USER_REMOVED);
|
||||
filter.addAction(Intent.ACTION_USER_STARTED);
|
||||
context.registerReceiverAsUser(this,
|
||||
UserHandle.ALL,
|
||||
filter,
|
||||
|
||||
Reference in New Issue
Block a user