From 2287480ec201f102ab9a5935f2dd8cc200c8edd8 Mon Sep 17 00:00:00 2001 From: subrahmanyaman Date: Fri, 18 Mar 2022 00:35:07 +0000 Subject: [PATCH 1/2] Used checkService instead of getService to avoid blocking keymint HAL --- HAL/OmapiTransport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HAL/OmapiTransport.cpp b/HAL/OmapiTransport.cpp index b7e1dc0c..7c353d8c 100644 --- a/HAL/OmapiTransport.cpp +++ b/HAL/OmapiTransport.cpp @@ -38,7 +38,7 @@ bool OmapiTransport::initialize() { LOG(DEBUG) << "Initialize the secure element connection"; // Get OMAPI vendor stable service handler - ::ndk::SpAIBinder ks2Binder(AServiceManager_getService(omapiServiceName)); + ::ndk::SpAIBinder ks2Binder(AServiceManager_checkService(omapiServiceName)); omapiSeService = aidl::android::se::omapi::ISecureElementService::fromBinder(ks2Binder); if (omapiSeService == nullptr) { From 1baf41aa3e96e13e45913739374ba41d311d9ddd Mon Sep 17 00:00:00 2001 From: subrahmanyaman Date: Fri, 18 Mar 2022 02:37:53 +0000 Subject: [PATCH 2/2] Added AID_JC_STRONGBOX to the rc file --- HAL/android.hardware.security.keymint-service.strongbox.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HAL/android.hardware.security.keymint-service.strongbox.rc b/HAL/android.hardware.security.keymint-service.strongbox.rc index 9419c350..7bb96f0e 100644 --- a/HAL/android.hardware.security.keymint-service.strongbox.rc +++ b/HAL/android.hardware.security.keymint-service.strongbox.rc @@ -1,3 +1,3 @@ service vendor.keymint-strongbox /vendor/bin/hw/android.hardware.security.keymint-service.strongbox class early_hal - user nobody + user jc_strongbox