Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea893985 authored by Janis Danisevskis's avatar Janis Danisevskis
Browse files

Multi-threaded Keystore

Reflect that IKeystoreInterface was moved to keystore namespace.

Bug: 111443219
Change-Id: Idfc4d584686aa50853ef6f6effcdd670d7e818a5
parent 76b420f3
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -25,7 +25,7 @@
#include <unistd.h>
#include <unistd.h>
#include <memory>
#include <memory>


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