Make sure there is always a user.
Bug: 269072872 Test: atest com.android.server.pm.UserManagerTest Change-Id: Ic6c523ede4538cc8152214812f840c146659a7cf
This commit is contained in:
@@ -3635,6 +3635,13 @@ public class UserManagerService extends IUserManager.Stub {
|
||||
} finally {
|
||||
IoUtils.closeQuietly(fis);
|
||||
}
|
||||
|
||||
synchronized (mUsersLock) {
|
||||
if (mUsers.size() == 0) {
|
||||
Slog.e(LOG_TAG, "mUsers is empty, fallback to single user");
|
||||
fallbackToSingleUserLP();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user