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

Commit b34e3822 authored by Raphael Kim's avatar Raphael Kim
Browse files

[AVF] Fix binder calling issue when scheduling a job to fetch certificate revocation list.

Bug: 400812444
Test: atest CtsCompanionDeviceManagerMultiDeviceTests
Flag: EXEMPT bug fix
Change-Id: I3bc56420c2cb4f324d30f2d32f7f30f58a9e7825
parent 9848646d
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import android.content.ComponentName;
import android.content.Context;
import android.net.NetworkCapabilities;
import android.net.NetworkRequest;
import android.os.Binder;
import android.os.Environment;
import android.util.AtomicFile;
import android.util.Slog;
@@ -119,7 +120,7 @@ class CertificateRevocationStatusManager {
        } catch (IOException | JSONException ex) {
            Slog.d(TAG, "Fallback to check stored revocation status", ex);
            if (ex instanceof IOException && mShouldScheduleJob) {
                scheduleJobToFetchRemoteRevocationJob();
                Binder.withCleanCallingIdentity(this::scheduleJobToFetchRemoteRevocationJob);
            }
            try {
                revocationList = getStoredRevocationList();
@@ -210,7 +211,7 @@ class CertificateRevocationStatusManager {
            return;
        }
        Slog.d(TAG, "Scheduling job to fetch remote CRL.");
        jobScheduler.schedule(
        jobScheduler.forNamespace(TAG).schedule(
                new JobInfo.Builder(
                                JOB_ID,
                                new ComponentName(