diff --git a/multimedia/audio/audio_js_standard/AudioCapturer/src/main/config.json b/multimedia/audio/audio_js_standard/AudioCapturer/src/main/config.json index a9dc389bcba408674694b05db56ca69b8e2d5b15..1ae1635d2ec1c20631294fd5abcbedd480721fb6 100644 --- a/multimedia/audio/audio_js_standard/AudioCapturer/src/main/config.json +++ b/multimedia/audio/audio_js_standard/AudioCapturer/src/main/config.json @@ -80,7 +80,11 @@ { "name": "ohos.permission.MICROPHONE", "reason": "use ohos.permission.MICROPHONE" - } + }, + { + "name": "ohos.permission.MANAGE_AUDIO_CONFIG", + "reason": "use ohos.permission.MANAGE_AUDIO_CONFIG" + } ] } diff --git a/multimedia/audio/audio_js_standard/AudioCapturer/src/main/js/test/AudioCapturer.test.js b/multimedia/audio/audio_js_standard/AudioCapturer/src/main/js/test/AudioCapturer.test.js index db66d59741d44d2bc171c3c413c6719b47598df7..531482651342e7f0532017eab1d2cecdf62372c3 100644 --- a/multimedia/audio/audio_js_standard/AudioCapturer/src/main/js/test/AudioCapturer.test.js +++ b/multimedia/audio/audio_js_standard/AudioCapturer/src/main/js/test/AudioCapturer.test.js @@ -420,7 +420,8 @@ describe('audioCapturer', function () { beforeAll(async function () { console.info(`${Tag} AudioFrameworkTest: beforeAll: Prerequisites at the test suite level`); let permissionName1 = 'ohos.permission.MICROPHONE'; - let permissionNameList = [permissionName1]; + let permissionName2 = 'ohos.permission.MANAGE_AUDIO_CONFIG'; + let permissionNameList = [permissionName1,permissionName2]; let appName = 'ohos.acts.multimedia.audio.audiocapturer'; await audioTestBase.applyPermission(appName, permissionNameList); await sleep(100); diff --git a/multimedia/audio/audio_js_standard/AudioCapturerChangeInfo/src/main/config.json b/multimedia/audio/audio_js_standard/AudioCapturerChangeInfo/src/main/config.json index f4ecf85cb2ff9d5716b8463077c674bf91684126..25008b31b5aa08ef15b35d0dc1d35c57221d5f16 100644 --- a/multimedia/audio/audio_js_standard/AudioCapturerChangeInfo/src/main/config.json +++ b/multimedia/audio/audio_js_standard/AudioCapturerChangeInfo/src/main/config.json @@ -80,7 +80,12 @@ { "name": "ohos.permission.MICROPHONE", "reason": "use ohos.permission.MICROPHONE" - } + }, + { + "name": "ohos.permission.MANAGE_AUDIO_CONFIG", + "reason": "use ohos.permission.MANAGE_AUDIO_CONFIG" + } + ] } } \ No newline at end of file diff --git a/multimedia/audio/audio_js_standard/AudioCapturerChangeInfo/src/main/js/test/AudioCapturerChangeInfo.test.js b/multimedia/audio/audio_js_standard/AudioCapturerChangeInfo/src/main/js/test/AudioCapturerChangeInfo.test.js index d922140591f3205a8589a481748404d4f16ff564..9322d233b19feaf36ceebaeba48b1fb502737fbd 100644 --- a/multimedia/audio/audio_js_standard/AudioCapturerChangeInfo/src/main/js/test/AudioCapturerChangeInfo.test.js +++ b/multimedia/audio/audio_js_standard/AudioCapturerChangeInfo/src/main/js/test/AudioCapturerChangeInfo.test.js @@ -28,7 +28,8 @@ describe('audioCapturerChange', function () { beforeAll(async function () { console.info(`AudioFrameworkTest: beforeAll: Prerequisites at the test suite level`); let permissionName1 = 'ohos.permission.MICROPHONE'; - let permissionNameList = [permissionName1]; + let permissionName2 = 'ohos.permission.MANAGE_AUDIO_CONFIG'; + let permissionNameList = [permissionName1,permissionName2]; let appName = 'ohos.acts.multimedia.audio.audiocapturerchangeInfo'; await audioTestBase.applyPermission(appName, permissionNameList); await sleep(100); diff --git a/multimedia/audio/audio_js_standard/AudioTonePlayer/src/main/config.json b/multimedia/audio/audio_js_standard/AudioTonePlayer/src/main/config.json index e252224e0c43d2d0ac25ddf4b3c27c9e7e80e077..49a378fbb9154ece1ef31e2761dbe8e7cd131dae 100644 --- a/multimedia/audio/audio_js_standard/AudioTonePlayer/src/main/config.json +++ b/multimedia/audio/audio_js_standard/AudioTonePlayer/src/main/config.json @@ -79,7 +79,11 @@ { "name": "ohos.permission.MICROPHONE", "reason": "use ohos.permission.MICROPHONE" - } + }, + { + "name": "ohos.permission.MANAGE_AUDIO_CONFIG", + "reason": "use ohos.permission.MANAGE_AUDIO_CONFIG" + } ] } } \ No newline at end of file diff --git a/multimedia/audio/audio_js_standard/audioInterrupt/src/main/config.json b/multimedia/audio/audio_js_standard/audioInterrupt/src/main/config.json index 38e03d17c23f5c9087206a946327978a1084625c..402e35bb494fd3cb26fc010a1dadb989097da5da 100644 --- a/multimedia/audio/audio_js_standard/audioInterrupt/src/main/config.json +++ b/multimedia/audio/audio_js_standard/audioInterrupt/src/main/config.json @@ -110,7 +110,11 @@ { "name": "ohos.permission.MODIFY_AUDIO_SETTINGS", "reason": "use ohos.permission.MODIFY_AUDIO_SETTINGS" - } + }, + { + "name": "ohos.permission.MANAGE_AUDIO_CONFIG", + "reason": "use ohos.permission.MANAGE_AUDIO_CONFIG" + } ] } } \ No newline at end of file diff --git a/multimedia/audio/audio_js_standard/audioManager/src/main/config.json b/multimedia/audio/audio_js_standard/audioManager/src/main/config.json index afdbfee30aafbab107296392e6c9d85ef459486a..5b7936586d0459ef93d0873118a0fa58b107c285 100755 --- a/multimedia/audio/audio_js_standard/audioManager/src/main/config.json +++ b/multimedia/audio/audio_js_standard/audioManager/src/main/config.json @@ -89,7 +89,11 @@ { "name": "ohos.permission.MODIFY_AUDIO_SETTINGS", "reason": "use ohos.permission.MODIFY_AUDIO_SETTINGS" - } + }, + { + "name": "ohos.permission.MANAGE_AUDIO_CONFIG", + "reason": "use ohos.permission.MANAGE_AUDIO_CONFIG" + } ] } } \ No newline at end of file diff --git a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioFramework.test.js b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioFramework.test.js index 835f925886f120dc5d22ee3e6baa3000079bf8e9..64334f09d1b003c6498e01d85086a7c93698aa3e 100755 --- a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioFramework.test.js +++ b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioFramework.test.js @@ -100,7 +100,8 @@ describe('audioFramework', function () { let permissionName1 = 'ohos.permission.MICROPHONE'; let permissionName2 = 'ohos.permission.ACCESS_NOTIFICATION_POLICY'; let permissionName3 = 'ohos.permission.MODIFY_AUDIO_SETTINGS'; - let permissionNameList = [permissionName1, permissionName2, permissionName3]; + let permissionName4 = 'ohos.permission.MANAGE_AUDIO_CONFIG'; + let permissionNameList = [permissionName1, permissionName2, permissionName3,permissionName4]; let appName = 'ohos.acts.multimedia.audio.audiomanager'; await audioTestBase.applyPermission(appName, permissionNameList); await sleep(100); diff --git a/multimedia/audio/audio_js_standard/audioVoip/src/main/config.json b/multimedia/audio/audio_js_standard/audioVoip/src/main/config.json index d0c39bfcc0116ed5ff22cea68f3a350738c98fdb..d1014513800558f7b0d8f1841ae832d96b126798 100644 --- a/multimedia/audio/audio_js_standard/audioVoip/src/main/config.json +++ b/multimedia/audio/audio_js_standard/audioVoip/src/main/config.json @@ -80,7 +80,11 @@ { "name": "ohos.permission.MICROPHONE", "reason": "use ohos.permission.MICROPHONE" - } + }, + { + "name": "ohos.permission.MANAGE_AUDIO_CONFIG", + "reason": "use ohos.permission.MANAGE_AUDIO_CONFIG" + } ] } } \ No newline at end of file diff --git a/multimedia/audio/audio_js_standard/audioVoip/src/main/js/test/AudioVOIP.test.js b/multimedia/audio/audio_js_standard/audioVoip/src/main/js/test/AudioVOIP.test.js index aa815af90a2a8ef9d4e7fc14f48d00e38c66200e..0105d91da5e2340f736c775262dcc0e22ad4ac64 100644 --- a/multimedia/audio/audio_js_standard/audioVoip/src/main/js/test/AudioVOIP.test.js +++ b/multimedia/audio/audio_js_standard/audioVoip/src/main/js/test/AudioVOIP.test.js @@ -35,7 +35,8 @@ describe('audioVoip', function () { beforeAll(async function () { console.info(`AudioFrameworkTest: beforeAll: Prerequisites at the test suite level`); let permissionName1 = 'ohos.permission.MICROPHONE'; - let permissionNameList = [permissionName1]; + let permissionName2 = 'ohos.permission.MANAGE_AUDIO_CONFIG'; + let permissionNameList = [permissionName1,permissionName2]; let appName = 'ohos.acts.multimedia.audio.audiovoip'; await audioTestBase.applyPermission(appName, permissionNameList); await sleep(100);