Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4f2dcfd4 authored by Svet Ganov's avatar Svet Ganov
Browse files

Fix permission check imposed by broadcast sender.

Change-Id: Id105b00aad7b369fa0337fa63753ce7ea71b3383
parent 8b625dbe
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -765,7 +765,8 @@ public final class BroadcastQueue {
                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;
                }
+3 −0
Original line number Diff line number Diff line
@@ -93,6 +93,9 @@ public final class PermissionsState {
     * @param other The other instance.
     */
    public void copyFrom(PermissionsState other) {
        if (other == this) {
            return;
        }
        if (mPermissions != null) {
            if (other.mPermissions == null) {
                mPermissions = null;