Multi-threaded Keystore

Reflect that IKeystoreInterface was moved to keystore namespace.

Bug: 111443219
Change-Id: Idfc4d584686aa50853ef6f6effcdd670d7e818a5
This commit is contained in:
Janis Danisevskis 2018-11-02 15:27:51 -07:00
parent 76b420f38d
commit ea893985be

View file

@ -25,7 +25,7 @@
#include <unistd.h>
#include <memory>
#include <android/security/IKeystoreService.h>
#include <android/security/keystore/IKeystoreService.h>
#include <binder/IPCThreadState.h>
#include <binder/IServiceManager.h>
#include <binder/PermissionCache.h>
@ -318,8 +318,8 @@ public:
// TODO: cache service?
sp<IServiceManager> sm = defaultServiceManager();
sp<IBinder> binder = sm->getService(String16("android.security.keystore"));
sp<security::IKeystoreService> service =
interface_cast<security::IKeystoreService>(binder);
sp<security::keystore::IKeystoreService> service =
interface_cast<security::keystore::IKeystoreService>(binder);
if (service != NULL) {
std::vector<uint8_t> auth_token_vector(*auth_token,
(*auth_token) + *auth_token_length);