Loading gatekeeperd/gatekeeperd.cpp +4 −2 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ #include <utils/String16.h> #include <keystore/IKeystoreService.h> #include <keystore/keystore.h> // For error code #include <hardware/gatekeeper.h> namespace android { Loading Loading @@ -106,8 +107,9 @@ public: sp<IBinder> binder = sm->getService(String16("android.security.keystore")); sp<IKeystoreService> service = interface_cast<IKeystoreService>(binder); if (service != NULL) { if (service->addAuthToken(*auth_token, *auth_token_length) != NO_ERROR) { ALOGE("Falure sending auth token to KeyStore"); status_t ret = service->addAuthToken(*auth_token, *auth_token_length); if (ret != ResponseCode::NO_ERROR) { ALOGE("Falure sending auth token to KeyStore: %d", ret); } } else { ALOGE("Unable to communicate with KeyStore"); Loading Loading
gatekeeperd/gatekeeperd.cpp +4 −2 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ #include <utils/String16.h> #include <keystore/IKeystoreService.h> #include <keystore/keystore.h> // For error code #include <hardware/gatekeeper.h> namespace android { Loading Loading @@ -106,8 +107,9 @@ public: sp<IBinder> binder = sm->getService(String16("android.security.keystore")); sp<IKeystoreService> service = interface_cast<IKeystoreService>(binder); if (service != NULL) { if (service->addAuthToken(*auth_token, *auth_token_length) != NO_ERROR) { ALOGE("Falure sending auth token to KeyStore"); status_t ret = service->addAuthToken(*auth_token, *auth_token_length); if (ret != ResponseCode::NO_ERROR) { ALOGE("Falure sending auth token to KeyStore: %d", ret); } } else { ALOGE("Unable to communicate with KeyStore"); Loading