Bug:
65718620
Test: Add user, remove user, look at "adb shell su 1000 keystore_cli_v2 list"
and make sure nothing remains.
Change-Id: I2cf862c35117faed38fdfe5c43ceece4e8dbc3c4
}
public void removeUser(int userId) {
- if (isWeaverAvailable()) {
- for (long handle : mStorage.listSyntheticPasswordHandlesForUser(WEAVER_SLOT_NAME,
- userId)) {
- destroyWeaverSlot(handle, userId);
- }
+ for (long handle : mStorage.listSyntheticPasswordHandlesForUser(SP_BLOB_NAME, userId)) {
+ destroyWeaverSlot(handle, userId);
+ destroySPBlobKey(getHandleName(handle));
}
}