Merge "DO NOT MERGE: Fixes NPE when preparing app data during init" into qt-qpr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
22f1bf64db
@@ -22971,9 +22971,9 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
mSettings.writeKernelMappingLPr(ps);
|
||||
}
|
||||
|
||||
final UserManager um = mContext.getSystemService(UserManager.class);
|
||||
final UserManagerService um = sUserManager;
|
||||
UserManagerInternal umInternal = getUserManagerInternal();
|
||||
for (UserInfo user : um.getUsers()) {
|
||||
for (UserInfo user : um.getUsers(false /* excludeDying */)) {
|
||||
final int flags;
|
||||
if (umInternal.isUserUnlockingOrUnlocked(user.id)) {
|
||||
flags = StorageManager.FLAG_STORAGE_DE | StorageManager.FLAG_STORAGE_CE;
|
||||
|
||||
Reference in New Issue
Block a user