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

Commit 38697d11 authored by Eric Biggers's avatar Eric Biggers Committed by Automerger Merge Worker
Browse files

Merge "Load Weaver HAL if needed in destroyWeaverSlot()" into udc-dev am: 76bbdfda am: 1a0dd669

parents 3eefd332 1a0dd669
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -780,6 +780,10 @@ class SyntheticPasswordManager {
        int slot = loadWeaverSlot(protectorId, userId);
        destroyState(WEAVER_SLOT_NAME, protectorId, userId);
        if (slot != INVALID_WEAVER_SLOT) {
            if (!isWeaverAvailable()) {
                Slog.e(TAG, "Cannot erase Weaver slot because Weaver is unavailable");
                return;
            }
            Set<Integer> usedSlots = getUsedWeaverSlots();
            if (!usedSlots.contains(slot)) {
                Slog.i(TAG, "Destroy weaver slot " + slot + " for user " + userId);