Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2bff4710 authored by Kweku Adams's avatar Kweku Adams
Browse files

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
parent 0c613c20
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -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,