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

Commit 60fb1aa9 authored by Thiébaud Weksteen's avatar Thiébaud Weksteen
Browse files

Disable CertPinInstallReceiver.onReceive if flagged

Test: presubmit
Bug: 391205997
Flag: com.android.server.flags.certpininstaller_removal
Change-Id: I08e15abbfe5624b5f8f22bea1f74998ab52c82cb
parent 73828253
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -16,9 +16,19 @@

package com.android.server.updates;

import android.content.Context;
import android.content.Intent;

public class CertPinInstallReceiver extends ConfigUpdateInstallReceiver {

    public CertPinInstallReceiver() {
        super("/data/misc/keychain/", "pins", "metadata/", "version");
    }

    @Override
    public void onReceive(final Context context, final Intent intent) {
        if (!com.android.server.flags.Flags.certpininstallerRemoval()) {
            super.onReceive(context, intent);
        }
    }
}