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

Commit f26e1728 authored by Mark Renouf's avatar Mark Renouf
Browse files

Fix permission check for unbundled sharesheet

Only the calling appId should be compared, not the full uid.

Fix: 269106787
Change-Id: I29cd9644a872d1db3eedb6db1fdc3fa6f4dc072b
parent dc94ae96
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1641,7 +1641,7 @@ public class ShortcutService extends IShortcutService.Stub {
            return false;
        }
        int uid = injectGetPackageUid(systemChooser.getPackageName(), UserHandle.USER_SYSTEM);
        return uid == callingUid;
        return UserHandle.getAppId(uid) == UserHandle.getAppId(callingUid);
    }

    private void enforceSystemOrShell() {