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

Commit 6a3d7119 authored by Guojing Yuan's avatar Guojing Yuan Committed by Android (Google) Code Review
Browse files

Merge "[CDM] updateAutoRevokeExemptions needs to be called by clean Binder identity" into main

parents 8288748f b19afb38
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -239,8 +239,10 @@ public class CompanionDeviceManagerService extends SystemService {
        // Notify and bind the app after the phone is unlocked.
        mDevicePresenceProcessor.sendDevicePresenceEventOnUnlocked(user.getUserIdentifier());

        Binder.withCleanCallingIdentity(() -> {
            ExecutorService executor = Executors.newSingleThreadExecutor();
            executor.execute(mCompanionExemptionProcessor::updateAutoRevokeExemptions);
        });
    }

    private void onPackageRemoveOrDataClearedInternal(