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.
2 parents 7451f15 + 03bdc8a commit 9b93f4dCopy full SHA for 9b93f4d
services/java/com/android/server/AppWidgetServiceImpl.java
@@ -1398,8 +1398,7 @@ int getUidForPackage(String packageName) throws PackageManager.NameNotFoundExcep
1398
1399
int enforceSystemOrCallingUid(String packageName) throws IllegalArgumentException {
1400
int callingUid = Binder.getCallingUid();
1401
- int uid = Process.myUid();
1402
- if (UserHandle.getAppId(uid) == Process.SYSTEM_UID || uid == 0) {
+ if (UserHandle.getAppId(callingUid) == Process.SYSTEM_UID || callingUid == 0) {
1403
return callingUid;
1404
}
1405
return enforceCallingUid(packageName);
0 commit comments