MultiMedia应用媒体读写权限添加

**IssueNo**:https://gitee.com/openharmony/applications_app_samples/issues/IACLIU

**Description**:MultiMedia应用媒体读写权限添加

**Sig**: SIG_Sample

**Feature or Bugfix**:Bugfix

**Binary Source**:No

**编译测试结果**:
![输入图片说明](https://foruda.gitee.com/images/1720772583641557874/17795942_12969885.png "屏幕截图")

**测试用例测试结果**:Pass

**Signed-off-by:**

Signed-off-by: 王鑫 <wangxin601@huawei.com>
This commit is contained in:
王鑫 2024-07-15 01:52:28 +00:00 committed by Gitee
parent 09daeb2824
commit 8f870c070a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -22,14 +22,17 @@ const TAG: string = 'MainAbility'
const PERMISSIONS: Array<Permissions> = [
'ohos.permission.CAMERA',
'ohos.permission.MICROPHONE',
'ohos.permission.READ_MEDIA',
'ohos.permission.WRITE_MEDIA',
'ohos.permission.MEDIA_LOCATION'];
'ohos.permission.MEDIA_LOCATION',
'ohos.permission.READ_AUDIO',
'ohos.permission.WRITE_AUDIO',
'ohos.permission.READ_IMAGEVIDEO',
'ohos.permission.WRITE_IMAGEVIDEO',
'ohos.permission.GET_BUNDLE_INFO_PRIVILEGED'];
export default class MainAbility extends UIAbility {
onCreate(want, launchParam) {
Logger.info(TAG, 'MainAbility onCreate');
AppStorage.SetOrCreate('context', this.context);
AppStorage.setOrCreate('context', this.context);
}
onDestroy() {