From 2c1b47a40eaaeae67aea7059c82545e5023447c6 Mon Sep 17 00:00:00 2001 From: y00620503 Date: Mon, 25 Aug 2025 21:42:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=BF=E6=8D=A2loadlibrary=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: y00620503 Change-Id: I1543a59766170f5753df107843f2fae60d94ea36 --- interfaces/taihe/deviceInfo/idl/ohos.deviceInfo.taihe | 2 +- interfaces/taihe/syscap/idl/internal.full.global.taihe | 2 +- .../idl/ohos.systemParameterEnhance.taihe | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/interfaces/taihe/deviceInfo/idl/ohos.deviceInfo.taihe b/interfaces/taihe/deviceInfo/idl/ohos.deviceInfo.taihe index 4315fe600..9fc4181e3 100644 --- a/interfaces/taihe/deviceInfo/idl/ohos.deviceInfo.taihe +++ b/interfaces/taihe/deviceInfo/idl/ohos.deviceInfo.taihe @@ -15,7 +15,7 @@ @!namespace("@ohos.deviceInfo") @!sts_inject(""" -loadLibrary("deviceInfo_taihe_native.z") +loadLibraryWithPermissionCheck("deviceInfo_taihe_native.z", "@ohos.deviceInfo") """) @class diff --git a/interfaces/taihe/syscap/idl/internal.full.global.taihe b/interfaces/taihe/syscap/idl/internal.full.global.taihe index cafb2b150..7fbeee677 100644 --- a/interfaces/taihe/syscap/idl/internal.full.global.taihe +++ b/interfaces/taihe/syscap/idl/internal.full.global.taihe @@ -15,6 +15,6 @@ @!namespace("@internal.full.global") @!sts_inject(""" - loadLibrary("global_taihe_native.z") + loadLibraryWithPermissionCheck("global_taihe_native.z", "@internal.full.global") """) function canIUse(syscap: String): bool; \ No newline at end of file diff --git a/interfaces/taihe/systemParameterEnhance/idl/ohos.systemParameterEnhance.taihe b/interfaces/taihe/systemParameterEnhance/idl/ohos.systemParameterEnhance.taihe index fa60c6f39..1b4556e46 100644 --- a/interfaces/taihe/systemParameterEnhance/idl/ohos.systemParameterEnhance.taihe +++ b/interfaces/taihe/systemParameterEnhance/idl/ohos.systemParameterEnhance.taihe @@ -15,7 +15,7 @@ @!namespace("@ohos.systemParameterEnhance", "systemParameterEnhance") @!sts_inject(""" -static { loadLibrary("systemParameterEnhance_taihe_native.z") } +static { loadLibraryWithPermissionCheck("systemParameterEnhance_taihe_native.z", "@ohos.systemParameterEnhance") } """) function getSync(key: String, def: Optional): String; -- Gitee