Merge "Fix permission check for unbundled sharesheet" into tm-qpr-dev
This commit is contained in:
@@ -1641,7 +1641,7 @@ public class ShortcutService extends IShortcutService.Stub {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
int uid = injectGetPackageUid(systemChooser.getPackageName(), UserHandle.USER_SYSTEM);
|
int uid = injectGetPackageUid(systemChooser.getPackageName(), UserHandle.USER_SYSTEM);
|
||||||
return uid == callingUid;
|
return UserHandle.getAppId(uid) == UserHandle.getAppId(callingUid);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void enforceSystemOrShell() {
|
private void enforceSystemOrShell() {
|
||||||
|
|||||||
Reference in New Issue
Block a user