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

Commit 76bbdfda authored by Eric Biggers's avatar Eric Biggers Committed by Android (Google) Code Review
Browse files

Merge "Load Weaver HAL if needed in destroyWeaverSlot()" into udc-dev

parents 61475006 8f5189dd
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);