Merge "[LockSettings] clear secure user id when user is removed" into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f1900b500f
@@ -700,6 +700,15 @@ public class LockSettingsService extends ILockSettings.Stub {
|
|||||||
|
|
||||||
final KeyStore ks = KeyStore.getInstance();
|
final KeyStore ks = KeyStore.getInstance();
|
||||||
ks.onUserRemoved(userId);
|
ks.onUserRemoved(userId);
|
||||||
|
|
||||||
|
try {
|
||||||
|
final IGateKeeperService gk = getGateKeeperService();
|
||||||
|
if (gk != null) {
|
||||||
|
gk.clearSecureUserId(userId);
|
||||||
|
}
|
||||||
|
} catch (RemoteException ex) {
|
||||||
|
Slog.w(TAG, "unable to clear GK secure user id");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final String[] VALID_SETTINGS = new String[] {
|
private static final String[] VALID_SETTINGS = new String[] {
|
||||||
|
|||||||
Reference in New Issue
Block a user