We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d86077c commit 03bdc8aCopy full SHA for 03bdc8a
services/java/com/android/server/AppWidgetServiceImpl.java
@@ -1394,8 +1394,7 @@ int getUidForPackage(String packageName) throws PackageManager.NameNotFoundExcep
1394
1395
int enforceSystemOrCallingUid(String packageName) throws IllegalArgumentException {
1396
int callingUid = Binder.getCallingUid();
1397
- int uid = Process.myUid();
1398
- if (UserHandle.getAppId(uid) == Process.SYSTEM_UID || uid == 0) {
+ if (UserHandle.getAppId(callingUid) == Process.SYSTEM_UID || callingUid == 0) {
1399
return callingUid;
1400
}
1401
return enforceCallingUid(packageName);
0 commit comments