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

Commit fb9bd09d authored by Christopher Tate's avatar Christopher Tate
Browse files

Treat the intent filter verifier app as foreground

Similarly to other install-time validation, its work is a direct
extension of the OS's processing of a user-initiated install action,
so it's appropriately modeled as being "foreground" work.

Bug 37502027
Test: manual

Change-Id: Ib6426fa3c7cb05c4e758ddad3356011e4753629e
parent 1e28c8fa
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -955,6 +955,11 @@ public class PackageManagerService extends IPackageManager.Stub
            verificationIntent.setComponent(mIntentFilterVerifierComponent);
            verificationIntent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
            DeviceIdleController.LocalService idleController = getDeviceIdleController();
            idleController.addPowerSaveTempWhitelistApp(Process.myUid(),
                    mIntentFilterVerifierComponent.getPackageName(), getVerificationTimeout(),
                    userId, false, "intent filter verifier");
            UserHandle user = new UserHandle(userId);
            mContext.sendBroadcastAsUser(verificationIntent, user);
            if (DEBUG_DOMAIN_VERIFICATION) Slog.d(TAG,
@@ -13975,7 +13980,8 @@ public class PackageManagerService extends IPackageManager.Stub
    }
    /**
     * Get the verification agent timeout.
     * Get the verification agent timeout.  Used for both the APK verifier and the
     * intent filter verifier.
     *
     * @return verification timeout in milliseconds
     */