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

Commit b19afb38 authored by Guojing Yuan's avatar Guojing Yuan
Browse files

[CDM] updateAutoRevokeExemptions needs to be called by clean Binder identity

Bug: 407947267
Fix: 409902253
Flag: EXEMPT bugfix
Test: CTS
Change-Id: Iaa319aa7e98f51f1b89d3a8b1a5e56d59e795cc2
parent 189c8410
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(