Merge "Remove the owner userid of cross-profile intent filters."
This commit is contained in:
committed by
Android (Google) Code Review
commit
8458e531bf
@@ -1662,7 +1662,7 @@ final class ApplicationPackageManager extends PackageManager {
|
||||
int flags) {
|
||||
try {
|
||||
mPM.addCrossProfileIntentFilter(filter, mContext.getOpPackageName(),
|
||||
mContext.getUserId(), sourceUserId, targetUserId, flags);
|
||||
sourceUserId, targetUserId, flags);
|
||||
} catch (RemoteException e) {
|
||||
// Should never happen!
|
||||
}
|
||||
@@ -1674,8 +1674,7 @@ final class ApplicationPackageManager extends PackageManager {
|
||||
@Override
|
||||
public void clearCrossProfileIntentFilters(int sourceUserId) {
|
||||
try {
|
||||
mPM.clearCrossProfileIntentFilters(sourceUserId, mContext.getOpPackageName(),
|
||||
mContext.getUserId());
|
||||
mPM.clearCrossProfileIntentFilters(sourceUserId, mContext.getOpPackageName());
|
||||
} catch (RemoteException e) {
|
||||
// Should never happen!
|
||||
}
|
||||
|
||||
@@ -261,9 +261,9 @@ interface IPackageManager {
|
||||
void clearPackagePersistentPreferredActivities(String packageName, int userId);
|
||||
|
||||
void addCrossProfileIntentFilter(in IntentFilter intentFilter, String ownerPackage,
|
||||
int ownerUserId, int sourceUserId, int targetUserId, int flags);
|
||||
int sourceUserId, int targetUserId, int flags);
|
||||
|
||||
void clearCrossProfileIntentFilters(int sourceUserId, String ownerPackage, int ownerUserId);
|
||||
void clearCrossProfileIntentFilters(int sourceUserId, String ownerPackage);
|
||||
|
||||
/**
|
||||
* Report the set of 'Home' activity candidates, plus (if any) which of them
|
||||
|
||||
Reference in New Issue
Block a user