Merge "Keystore 2.0 SPI: Implement modification time." am: d2e7c2e000 am: f462515bea am: 01cd87c421

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1530772

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib7eeb2f1733c724a241f6ce0a5a52a60444def83
This commit is contained in:
Treehugger Robot
2020-12-17 05:12:01 +00:00
committed by Automerger Merge Worker

View File

@@ -250,13 +250,10 @@ public class AndroidKeyStoreSpi extends KeyStoreSpi {
return null;
}
// TODO add modification time to key metadata.
return null;
// if (response.metadata.modificationTime == -1) {
// return null;
// }
// return new Date(response.metadata.modificationTime);
if (response.metadata.modificationTimeMs == -1) {
return null;
}
return new Date(response.metadata.modificationTimeMs);
}
@Override