From 4a344125dacb3e9ea81aea1344427be081ee2a97 Mon Sep 17 00:00:00 2001 From: wuliushuan Date: Wed, 11 Jun 2025 16:44:20 +0800 Subject: [PATCH] =?UTF-8?q?dlopen=20=E5=8F=96=E6=B6=88=E7=BB=9D=E5=AF=B9?= =?UTF-8?q?=E8=B7=AF=E5=BE=84250611?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wuliushuan Change-Id: I4a4f137921f9542c9e612ec5776fb8235eac4d5e --- interfaces/innerkits/nativetoken/test/mock/src/cJSON.c | 6 +----- .../innerkits/nativetoken/test/mock/src/secure_function.c | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/interfaces/innerkits/nativetoken/test/mock/src/cJSON.c b/interfaces/innerkits/nativetoken/test/mock/src/cJSON.c index 91ac13617..e72ad0cfc 100644 --- a/interfaces/innerkits/nativetoken/test/mock/src/cJSON.c +++ b/interfaces/innerkits/nativetoken/test/mock/src/cJSON.c @@ -48,11 +48,7 @@ void GetHandle(void) if (g_handle != NULL) { return; } -#if defined(__LP64__) - g_handle = dlopen("/system/lib64/chipset-pub-sdk/libcjson.z.so", RTLD_LAZY); -#else - g_handle = dlopen("/system/lib/chipset-pub-sdk/libcjson.z.so", RTLD_LAZY); -#endif + g_handle = dlopen("libcjson.z.so", RTLD_LAZY); } cJSON* cJSON_GetObjectItem(const cJSON* const object, const char* const string) diff --git a/interfaces/innerkits/nativetoken/test/mock/src/secure_function.c b/interfaces/innerkits/nativetoken/test/mock/src/secure_function.c index 486301aab..040345377 100644 --- a/interfaces/innerkits/nativetoken/test/mock/src/secure_function.c +++ b/interfaces/innerkits/nativetoken/test/mock/src/secure_function.c @@ -26,11 +26,7 @@ static void GetHandle(void) if (g_handle != NULL) { return; } -#if defined(__LP64__) - g_handle = dlopen("/system/lib64/chipset-pub-sdk/libsec_shared.z.so", RTLD_LAZY); -#else - g_handle = dlopen("/system/lib/chipset-pub-sdk/libsec_shared.z.so", RTLD_LAZY); -#endif + g_handle = dlopen("libsec_shared.z.so", RTLD_LAZY); } int strcpy_s(char *strDest, size_t destMax, const char *strSrc) -- Gitee