AndroidKeyStore: replace call sites
Remove the call sites that don't have the flags specified. This is to
ensure that callers know what flags they're setting.
Bug: 8122243
Change-Id: I207cc0152f73c779af71a3410e5de3d8c35a259b
diff --git a/support/src/com/android/keychain/tests/support/KeyChainServiceTestSupport.java b/support/src/com/android/keychain/tests/support/KeyChainServiceTestSupport.java
index 843c18c..1d429f8 100644
--- a/support/src/com/android/keychain/tests/support/KeyChainServiceTestSupport.java
+++ b/support/src/com/android/keychain/tests/support/KeyChainServiceTestSupport.java
@@ -41,11 +41,11 @@
}
@Override public boolean keystorePut(String key, byte[] value) {
Log.d(TAG, "keystorePut");
- return mKeyStore.put(key, value);
+ return mKeyStore.put(key, value, KeyStore.UID_SELF, KeyStore.FLAG_ENCRYPTED);
}
@Override public boolean keystoreImportKey(String key, byte[] value) {
Log.d(TAG, "keystoreImport");
- return mKeyStore.importKey(key, value);
+ return mKeyStore.importKey(key, value, KeyStore.UID_SELF, KeyStore.FLAG_ENCRYPTED);
}
@Override public void revokeAppPermission(final int uid, final String alias)