Revert "Mitigate the app visibility gap"

This reverts commit 51b96648d5.

Reason for revert: This may conflict with b/238420313, and will
                   have another CL to address the original problem.

Change-Id: Idd19907384af665ebf3dc387119d1955c99a876f
This commit is contained in:
Jackal Guo
2022-08-04 01:35:56 +00:00
parent 51b96648d5
commit b04fd48189

View File

@@ -3555,11 +3555,6 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
final CallerIdentity caller = getCallerIdentity();
Preconditions.checkCallAuthorization(hasFullCrossUsersPermission(caller, userHandle));
if (mInjector.getPackageManagerInternal().filterAppAccess(packageName, caller.getUid(),
userHandle)) {
return false;
}
synchronized (getLockObject()) {
DevicePolicyData policy = getUserData(userHandle);
final int N = policy.mAdminList.size();