diff --git a/en/application-dev/reference/apis/js-apis-wallpaper.md b/en/application-dev/reference/apis/js-apis-wallpaper.md index 15fd2c4fcdeb681b4ace2dc49d521f54e08014f5..073fdcd6778ccd28942841312f0f4e992a39e9fc 100644 --- a/en/application-dev/reference/apis/js-apis-wallpaper.md +++ b/en/application-dev/reference/apis/js-apis-wallpaper.md @@ -530,7 +530,7 @@ getFile(wallpaperType: WallpaperType, callback: AsyncCallback<number>): vo Obtains the wallpaper of the specified type. This API uses an asynchronous callback to return the result. -**Required permissions**: ohos.permission.GET_WALLPAPER and ohos.permission.READ_USER_STORAGE +**Required permissions**: ohos.permission.GET_WALLPAPER **System capability**: SystemCapability.MiscServices.Wallpaper @@ -559,7 +559,7 @@ getFile(wallpaperType: WallpaperType): Promise<number> Obtains the wallpaper of the specified type. This API uses a promise to return the result. -**Required permissions**: ohos.permission.GET_WALLPAPER and ohos.permission.READ_USER_STORAGE +**Required permissions**: ohos.permission.GET_WALLPAPER **System capability**: SystemCapability.MiscServices.Wallpaper @@ -592,7 +592,7 @@ getPixelMap(wallpaperType: WallpaperType, callback: AsyncCallback<image.Pixel Obtains the pixel image for the wallpaper of the specified type. This API uses an asynchronous callback to return the result. -**Required permissions**: ohos.permission.GET_WALLPAPER and ohos.permission.READ_USER_STORAGE +**Required permissions**: ohos.permission.GET_WALLPAPER **System capability**: SystemCapability.MiscServices.Wallpaper @@ -619,7 +619,7 @@ getPixelMap(wallpaperType: WallpaperType): Promise<image.PixelMap> Obtains the pixel image for the wallpaper of the specified type. This API uses a promise to return the result. -**Required permissions**: ohos.permission.GET_WALLPAPER and ohos.permission.READ_USER_STORAGE +**Required permissions**: ohos.permission.GET_WALLPAPER **System capability**: SystemCapability.MiscServices.Wallpaper diff --git a/zh-cn/application-dev/reference/apis/js-apis-wallpaper.md b/zh-cn/application-dev/reference/apis/js-apis-wallpaper.md index a8a2ef957fda55a51383f73127df8edb805ba0b7..19ce37065e3921d72513a0064e1da08e66a5a016 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-wallpaper.md +++ b/zh-cn/application-dev/reference/apis/js-apis-wallpaper.md @@ -532,7 +532,7 @@ getFile(wallpaperType: WallpaperType, callback: AsyncCallback<number>): vo 获取指定类型的壁纸文件。 -**需要权限**:ohos.permission.GET_WALLPAPER 和 ohos.permission.READ_USER_STORAGE +**需要权限**:ohos.permission.GET_WALLPAPER **系统能力**: SystemCapability.MiscServices.Wallpaper @@ -561,7 +561,7 @@ getFile(wallpaperType: WallpaperType): Promise<number> 获取指定类型的壁纸文件。 -**需要权限**:ohos.permission.GET_WALLPAPER 和 ohos.permission.READ_USER_STORAGE +**需要权限**:ohos.permission.GET_WALLPAPER **系统能力**: SystemCapability.MiscServices.Wallpaper @@ -594,7 +594,7 @@ getPixelMap(wallpaperType: WallpaperType, callback: AsyncCallback<image.Pixel 获取壁纸图片的像素图。 -**需要权限**:ohos.permission.GET_WALLPAPER 和 ohos.permission.READ_USER_STORAGE +**需要权限**:ohos.permission.GET_WALLPAPER **系统能力**: SystemCapability.MiscServices.Wallpaper @@ -623,7 +623,7 @@ getPixelMap(wallpaperType: WallpaperType): Promise<image.PixelMap> 获取壁纸图片的像素图。 -**需要权限**:ohos.permission.GET_WALLPAPER 和 ohos.permission.READ_USER_STORAGE +**需要权限**:ohos.permission.GET_WALLPAPER **系统能力**: SystemCapability.MiscServices.Wallpaper