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

Commit 9b93f4de authored by Michael Jurka's avatar Michael Jurka Committed by Android (Google) Code Review
Browse files

Merge "Fix security check for private allocateAppWidgetId api" into jb-mr1-dev

parents 7451f15e 03bdc8a8
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1398,8 +1398,7 @@ class AppWidgetServiceImpl {

    int enforceSystemOrCallingUid(String packageName) throws IllegalArgumentException {
        int callingUid = Binder.getCallingUid();
        int uid = Process.myUid();
        if (UserHandle.getAppId(uid) == Process.SYSTEM_UID || uid == 0) {
        if (UserHandle.getAppId(callingUid) == Process.SYSTEM_UID || callingUid == 0) {
            return callingUid;
        }
        return enforceCallingUid(packageName);