Merge "Check outInfo is not null" into jb-mr2-dev
This commit is contained in:
@@ -8647,14 +8647,16 @@ public class PackageManagerService extends IPackageManager.Stub {
|
||||
mSettings.writeLPr();
|
||||
}
|
||||
}
|
||||
// A user ID was deleted here. Go through all users and remove it from
|
||||
// KeyStore.
|
||||
final int appId = outInfo.removedAppId;
|
||||
if (appId != -1) {
|
||||
final KeyStore keyStore = KeyStore.getInstance();
|
||||
if (keyStore != null) {
|
||||
for (final int userId : sUserManager.getUserIds()) {
|
||||
keyStore.clearUid(UserHandle.getUid(userId, appId));
|
||||
if (outInfo != null) {
|
||||
// A user ID was deleted here. Go through all users and remove it
|
||||
// from KeyStore.
|
||||
final int appId = outInfo.removedAppId;
|
||||
if (appId != -1) {
|
||||
final KeyStore keyStore = KeyStore.getInstance();
|
||||
if (keyStore != null) {
|
||||
for (final int userId : sUserManager.getUserIds()) {
|
||||
keyStore.clearUid(UserHandle.getUid(userId, appId));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user