Remove obsolete allowlisting call.

The integrity service has moved inside of the system server. There's
no need to put the system on the temp allowlist.

Bug: 142420609
Test: atest AppIntegrityManagerServiceImplTest
Test: atest CtsContentTestCases
Test: atest FrameworksCorePackageManagerTests
Change-Id: If8297fd7e5f40221e6916fc3ec49c36198a974eb
This commit is contained in:
Kweku Adams
2021-01-13 11:28:59 -08:00
parent 0c613c20a6
commit 2bff47105e

View File

@@ -17325,15 +17325,7 @@ public class PackageManagerService extends IPackageManager.Stub
// send to integrity component only.
integrityVerification.setPackage("android");
DeviceIdleInternal idleController =
mInjector.getLocalService(DeviceIdleInternal.class);
final long idleDuration = getVerificationTimeout();
idleController.addPowerSaveTempWhitelistAppDirect(Process.myUid(),
idleDuration,
false, "integrity component");
final BroadcastOptions options = BroadcastOptions.makeBasic();
options.setTemporaryAppWhitelistDuration(idleDuration);
mContext.sendOrderedBroadcastAsUser(integrityVerification, UserHandle.SYSTEM,
/* receiverPermission= */ null,