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