Change-Id: Id105b00aad7b369fa0337fa63753ce7ea71b3383
try {
perm = AppGlobals.getPackageManager().
checkPermission(r.requiredPermission,
- info.activityInfo.applicationInfo.packageName, r.userId);
+ info.activityInfo.applicationInfo.packageName,
+ UserHandle.getUserId(info.activityInfo.applicationInfo.uid));
} catch (RemoteException e) {
perm = PackageManager.PERMISSION_DENIED;
}
* @param other The other instance.
*/
public void copyFrom(PermissionsState other) {
+ if (other == this) {
+ return;
+ }
if (mPermissions != null) {
if (other.mPermissions == null) {
mPermissions = null;