mirror of
https://gitee.com/openharmony/applications_app_samples
synced 2024-11-23 08:30:06 +00:00
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:
parent
09daeb2824
commit
8f870c070a
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user