From 84e3a5fe67fbd888f2f27643e293fba111806b8b Mon Sep 17 00:00:00 2001 From: y00620503 Date: Mon, 25 Aug 2025 21:05:26 +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: Iea0855d83d1050c6760d31b6e23f074ff6f48baf --- frameworks/ets/ets/@ohos.notificationManager.ets | 2 +- frameworks/ets/ets/@ohos.notificationSubscribe.ets | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/ets/ets/@ohos.notificationManager.ets b/frameworks/ets/ets/@ohos.notificationManager.ets index a2e06ea12..dd261bb73 100644 --- a/frameworks/ets/ets/@ohos.notificationManager.ets +++ b/frameworks/ets/ets/@ohos.notificationManager.ets @@ -46,7 +46,7 @@ const successCallbackError: BusinessError = {code: ERROR_OK, data: undefined}; const errorParamInvalid: BusinessError = {code: ERROR_PARAM_INVALID, message: "Invalid parameter"}; export default namespace notificationManager { - loadLibrary("notification_manager_ani.z") + loadLibraryWithPermissionCheck("notification_manager_ani.z", "@ohos.notificationManager") export enum SlotType { UNKNOWN_TYPE = 0, SOCIAL_COMMUNICATION = 1, diff --git a/frameworks/ets/ets/@ohos.notificationSubscribe.ets b/frameworks/ets/ets/@ohos.notificationSubscribe.ets index 7390087a7..593e663b9 100644 --- a/frameworks/ets/ets/@ohos.notificationSubscribe.ets +++ b/frameworks/ets/ets/@ohos.notificationSubscribe.ets @@ -53,7 +53,7 @@ function isInvalidParameter(bundle: BundleOption): BusinessError } export default namespace notificationSubscribe { - loadLibrary("notification_subscribe_ani.z") + loadLibraryWithPermissionCheck("notification_subscribe_ani.z", "@ohos.notificationSubscribe") export interface NotificationKey { id: number; label?: string; -- Gitee