From 186e173e3d094914d0dfdbe997ea8fe391b6cdbe Mon Sep 17 00:00:00 2001 From: GlaryCastle Date: Sat, 6 Aug 2022 11:12:37 +0800 Subject: [PATCH 1/2] Signed-off-by: GlaryCastle Changes to be committed: modified: api/@ohos.wallpaper.d.ts --- api/@ohos.wallpaper.d.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/api/@ohos.wallpaper.d.ts b/api/@ohos.wallpaper.d.ts index 96f958acb7..ca1eaa1d59 100644 --- a/api/@ohos.wallpaper.d.ts +++ b/api/@ohos.wallpaper.d.ts @@ -55,7 +55,6 @@ declare namespace wallpaper { * Obtains a file of the wallpaper of the specified type. * @param wallpaperType Indicates the wallpaper type. * @permission ohos.permission.GET_WALLPAPER. - * ohos.permission.READ_USER_STORAGE. * @return the file descriptor. * @since 8 */ @@ -112,7 +111,6 @@ declare namespace wallpaper { * @param wallpaperType Indicates the wallpaper type. * @return the default pixel map. * @permission ohos.permission.GET_WALLPAPER - * @permission ohos.permission.READ_USER_STORAGE * @systemapi Hide this for inner system use. */ function getPixelMap(wallpaperType: WallpaperType, callback: AsyncCallback): void; -- Gitee From 3fb6ad7b80b2e4f1969d1bf86b1dcd28ff23eaf2 Mon Sep 17 00:00:00 2001 From: GlaryCastle Date: Mon, 8 Aug 2022 21:02:58 +0800 Subject: [PATCH 2/2] Signed-off-by: GlaryCastle Changes to be committed: modified: api/@ohos.wallpaper.d.ts --- api/@ohos.wallpaper.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/@ohos.wallpaper.d.ts b/api/@ohos.wallpaper.d.ts index ca1eaa1d59..c785bae7f1 100644 --- a/api/@ohos.wallpaper.d.ts +++ b/api/@ohos.wallpaper.d.ts @@ -55,9 +55,17 @@ declare namespace wallpaper { * Obtains a file of the wallpaper of the specified type. * @param wallpaperType Indicates the wallpaper type. * @permission ohos.permission.GET_WALLPAPER. + * ohos.permission.READ_USER_STORAGE. * @return the file descriptor. * @since 8 */ + /** + * Obtains a file of the wallpaper of the specified type. + * @param wallpaperType Indicates the wallpaper type. + * @permission ohos.permission.GET_WALLPAPER. + * @return the file descriptor. + * @since 9 + */ function getFile(wallpaperType: WallpaperType, callback: AsyncCallback): void; function getFile(wallpaperType: WallpaperType): Promise; -- Gitee