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

Commit 6322e778 authored by Rubin Xu's avatar Rubin Xu Committed by Android (Google) Code Review
Browse files

Merge "Delete synthetic password keystore keys when user is removed."

parents c65b49e0 2f22ee4d
Loading
Loading
Loading
Loading
+3 −5
Original line number Original line Diff line number Diff line
@@ -390,11 +390,9 @@ public class SyntheticPasswordManager {
    }
    }


    public void removeUser(int userId) {
    public void removeUser(int userId) {
        if (isWeaverAvailable()) {
        for (long handle : mStorage.listSyntheticPasswordHandlesForUser(SP_BLOB_NAME, userId)) {
            for (long handle : mStorage.listSyntheticPasswordHandlesForUser(WEAVER_SLOT_NAME,
                    userId)) {
            destroyWeaverSlot(handle, userId);
            destroyWeaverSlot(handle, userId);
            }
            destroySPBlobKey(getHandleName(handle));
        }
        }
    }
    }