From 2404ce8c63d7316733341f01c14ecf0b40c76168 Mon Sep 17 00:00:00 2001 From: ShiJie Date: Mon, 28 Mar 2022 11:10:48 +0800 Subject: [PATCH] fix: Modify permission error Signed-off-by: ShiJie --- api/@ohos.power.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.power.d.ts b/api/@ohos.power.d.ts index b4d62021b5..3b7db0d372 100644 --- a/api/@ohos.power.d.ts +++ b/api/@ohos.power.d.ts @@ -41,6 +41,7 @@ declare namespace power { * * @param reason Indicates the restart reason. For example, "updater" indicates entering the updater mode * after the restart. If the parameter is not specified, the system enters the normal mode after the restart. + * @permission ohos.permission.REBOOT * @since 7 */ function rebootDevice(reason: string): void; @@ -49,7 +50,6 @@ declare namespace power { * Checks whether the screen of a device is on or off. * * @return Returns true if the screen is on; returns false otherwise. - * @permission ohos.permission.REBOOT * @since 7 */ function isScreenOn(callback: AsyncCallback): void; -- Gitee