Merge "Load Weaver HAL if needed in destroyWeaverSlot()" into udc-dev
This commit is contained in:
@@ -780,6 +780,10 @@ class SyntheticPasswordManager {
|
|||||||
int slot = loadWeaverSlot(protectorId, userId);
|
int slot = loadWeaverSlot(protectorId, userId);
|
||||||
destroyState(WEAVER_SLOT_NAME, protectorId, userId);
|
destroyState(WEAVER_SLOT_NAME, protectorId, userId);
|
||||||
if (slot != INVALID_WEAVER_SLOT) {
|
if (slot != INVALID_WEAVER_SLOT) {
|
||||||
|
if (!isWeaverAvailable()) {
|
||||||
|
Slog.e(TAG, "Cannot erase Weaver slot because Weaver is unavailable");
|
||||||
|
return;
|
||||||
|
}
|
||||||
Set<Integer> usedSlots = getUsedWeaverSlots();
|
Set<Integer> usedSlots = getUsedWeaverSlots();
|
||||||
if (!usedSlots.contains(slot)) {
|
if (!usedSlots.contains(slot)) {
|
||||||
Slog.i(TAG, "Destroy weaver slot " + slot + " for user " + userId);
|
Slog.i(TAG, "Destroy weaver slot " + slot + " for user " + userId);
|
||||||
|
|||||||
Reference in New Issue
Block a user