Ensure default permissions not dropped on data wipe
bug:21954760 Change-Id: I15de766012e66e171d2089af574687ad513a5d57
This commit is contained in:
@@ -12726,6 +12726,9 @@ public class PackageManagerService extends IPackageManager.Stub {
|
||||
}
|
||||
}
|
||||
|
||||
// Ensure default permissions are never cleared.
|
||||
mDefaultPermissionPolicy.grantDefaultPermissions(userId);
|
||||
|
||||
if (needsWrite) {
|
||||
mSettings.writeRuntimePermissionsForUserLPr(userId, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user