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

Commit 0d8af78b authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Fix permission check on ContentProvider to be multi-user aware.

Change-Id: I1e504fe6561caef99d478e37660e2294fec7ea8b
parent 79af1dd5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -279,7 +279,7 @@ public abstract class ContentProvider implements ComponentCallbacks2 {
            final int uid = Binder.getCallingUid();
            String missingPerm = null;

            if (uid == mMyUid) {
            if (UserHandle.isSameApp(uid, mMyUid)) {
                return;
            }

@@ -340,7 +340,7 @@ public abstract class ContentProvider implements ComponentCallbacks2 {
            final int uid = Binder.getCallingUid();
            String missingPerm = null;

            if (uid == mMyUid) {
            if (UserHandle.isSameApp(uid, mMyUid)) {
                return;
            }