From ebba2b10e0b69b7c31d1d1feb9bd2e7672d9cd30 Mon Sep 17 00:00:00 2001 From: Tellen Yu Date: Wed, 01 Nov 2017 03:07:15 +0000 Subject: Merge "treble: enable full treble mode [5/9]" into o-amlogic --- diff --git a/Android.mk b/Android.mk index dc0165b..aa85c8f 100644 --- a/Android.mk +++ b/Android.mk @@ -30,10 +30,11 @@ LOCAL_MODULE_RELATIVE_PATH := hw LOCAL_SRC_FILES := \ GKPModule.cpp \ - trusty/trusty_gatekeeper_ipc.c \ - trusty/trusty_gatekeeper.cpp \ soft/SoftGateKeeperDevice.cpp +# trusty/trusty_gatekeeper_ipc.c \ +# trusty/trusty_gatekeeper.cpp \ + LOCAL_STATIC_LIBRARIES := libscrypt_static LOCAL_C_INCLUDES := \ external/boringssl/src/include/ \ @@ -46,7 +47,6 @@ LOCAL_SHARED_LIBRARIES := \ libgatekeeper \ liblog \ libcutils \ - libtrusty \ libcrypto LOCAL_MODULE_TAGS := optional diff --git a/GKPModule.cpp b/GKPModule.cpp index 15ed4d8..6bcb60d 100644 --- a/GKPModule.cpp +++ b/GKPModule.cpp @@ -20,10 +20,10 @@ #include #include -#include "trusty/trusty_gatekeeper.h" +//#include "trusty/trusty_gatekeeper.h" #include "soft/SoftGateKeeperDevice.h" -using gatekeeper::TrustyGateKeeperDevice; +//using gatekeeper::TrustyGateKeeperDevice; using android::SoftGateKeeperDevice; static int gatekeeper_open(const hw_module_t *module, const char *name, @@ -40,9 +40,9 @@ static int gatekeeper_open(const hw_module_t *module, const char *name, *device = gatekeeper->sw_device(); } else { - TrustyGateKeeperDevice *gatekeeper = new TrustyGateKeeperDevice(module); - if (gatekeeper == NULL) return -ENOMEM; - *device = gatekeeper->hw_device(); + //TrustyGateKeeperDevice *gatekeeper = new TrustyGateKeeperDevice(module); + //if (gatekeeper == NULL) return -ENOMEM; + //*device = gatekeeper->hw_device(); } return 0; -- cgit