From 3ed257063ca2c1de05abeb96ac1e562cfaa13bb1 Mon Sep 17 00:00:00 2001 From: y00620503 Date: Mon, 25 Aug 2025 21:37:48 +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: I32806d40c871d43f0b42b07ff12d416faedf9a06 --- frameworks/js/ani/vibrator/ets/@ohos.vibrator.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/js/ani/vibrator/ets/@ohos.vibrator.ets b/frameworks/js/ani/vibrator/ets/@ohos.vibrator.ets index 3104e87..79dcfe2 100644 --- a/frameworks/js/ani/vibrator/ets/@ohos.vibrator.ets +++ b/frameworks/js/ani/vibrator/ets/@ohos.vibrator.ets @@ -17,7 +17,7 @@ import type { AsyncCallback } from '@ohos.base'; import { BusinessError } from '@ohos.base'; export default namespace vibrator { - loadLibrary("vibrator_ani"); + loadLibraryWithPermissionCheck("vibrator_ani", "@ohos.vibrator"); native function startVibrationSync(effect: VibrateEffect, attribute: VibrateAttribute): void; export function startVibrationIntSync(effect: VibrateEffect, attribute: VibrateAttribute): int { -- Gitee