Merge "Fix clearPackagePreferredActivities to check appid"
This commit is contained in:
committed by
Android (Google) Code Review
commit
eb77f51bf4
@@ -19138,7 +19138,7 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
// writer
|
||||
synchronized (mPackages) {
|
||||
PackageParser.Package pkg = mPackages.get(packageName);
|
||||
if (pkg == null || pkg.applicationInfo.uid != callingUid) {
|
||||
if (pkg == null || !isCallerSameApp(packageName, callingUid)) {
|
||||
if (mContext.checkCallingOrSelfPermission(
|
||||
android.Manifest.permission.SET_PREFERRED_APPLICATIONS)
|
||||
!= PackageManager.PERMISSION_GRANTED) {
|
||||
|
||||
Reference in New Issue
Block a user