Merge "Allow the launcher to get all instant apps" into oc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f8c35ac848
@@ -8526,8 +8526,10 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
if (HIDE_EPHEMERAL_APIS || isEphemeralDisabled()) {
|
||||
return null;
|
||||
}
|
||||
mContext.enforceCallingOrSelfPermission(Manifest.permission.ACCESS_INSTANT_APPS,
|
||||
"getEphemeralApplications");
|
||||
if (!canViewInstantApps(Binder.getCallingUid(), userId)) {
|
||||
mContext.enforceCallingOrSelfPermission(Manifest.permission.ACCESS_INSTANT_APPS,
|
||||
"getEphemeralApplications");
|
||||
}
|
||||
enforceCrossUserPermission(Binder.getCallingUid(), userId,
|
||||
true /* requireFullPermission */, false /* checkShell */,
|
||||
"getEphemeralApplications");
|
||||
@@ -8612,9 +8614,10 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
return null;
|
||||
}
|
||||
|
||||
mContext.enforceCallingOrSelfPermission(Manifest.permission.ACCESS_INSTANT_APPS,
|
||||
"getInstantAppIcon");
|
||||
|
||||
if (!canViewInstantApps(Binder.getCallingUid(), userId)) {
|
||||
mContext.enforceCallingOrSelfPermission(Manifest.permission.ACCESS_INSTANT_APPS,
|
||||
"getInstantAppIcon");
|
||||
}
|
||||
enforceCrossUserPermission(Binder.getCallingUid(), userId,
|
||||
true /* requireFullPermission */, false /* checkShell */,
|
||||
"getInstantAppIcon");
|
||||
|
||||
Reference in New Issue
Block a user