diff --git a/multimedia/medialibrary/mediaLibrary_js_standard/Test.json b/multimedia/medialibrary/mediaLibrary_js_standard/Test.json index 01afeee3b21172287d2f5cbe9eb7662508026747..a17d513ba2b73e618f3887326fda504b5756adb6 100644 --- a/multimedia/medialibrary/mediaLibrary_js_standard/Test.json +++ b/multimedia/medialibrary/mediaLibrary_js_standard/Test.json @@ -12,16 +12,24 @@ "pre-push": [ ], "push": [ + "./resource/medialibrary/01.jpg ->/storage/media/100/local/files", + "./resource/medialibrary/01.mp3 ->/storage/media/100/local/files", + "./resource/medialibrary/01.mp4 ->/storage/media/100/local/files" ] }, { "type": "ShellKit", "run-command": [ - "chmod -R 777 /storage/media/*", + "for n in `seq 1 999`; do cp /storage/media/100/local/files/01.jpg /storage/media/100/local/files/copy-$n.jpg; done;", + "for n in `seq 1 999`; do cp /storage/media/100/local/files/01.mp3 /storage/media/100/local/files/copy-$n.mp3; done;", + "for n in `seq 1 999`; do cp /storage/media/100/local/files/01.mp4 /storage/media/100/local/files/copy-$n.mp4; done;", + "chmod -R 777 /storage/media/100/local/files/*", + "chmod -R 777 /data/service/el2/100/hmdfs/account/files/*", "setenforce 0" ], "teardown-command":[ - "setenforce 1" + "setenforce 1", + "rm -rf /storage/media/100/local/files/*" ] }, { @@ -32,4 +40,4 @@ "cleanup-apps": true } ] -} \ No newline at end of file +} diff --git a/multimedia/medialibrary/mediaLibrary_js_standard/signature/openharmony_sx.p7b b/multimedia/medialibrary/mediaLibrary_js_standard/signature/openharmony_sx.p7b old mode 100755 new mode 100644 index 9be1e98fa4c0c28ca997ed660112fa16b194f0f5..1fa42c55eceafebe1aad98c326e0210953e7d232 Binary files a/multimedia/medialibrary/mediaLibrary_js_standard/signature/openharmony_sx.p7b and b/multimedia/medialibrary/mediaLibrary_js_standard/signature/openharmony_sx.p7b differ diff --git a/multimedia/medialibrary/mediaLibrary_js_standard/src/main/config.json b/multimedia/medialibrary/mediaLibrary_js_standard/src/main/config.json index fa910537386a17d6153f3db9638a7f1e4e5981c5..bd7d14fc7a864b01aac9b333359705230b97ea2a 100644 --- a/multimedia/medialibrary/mediaLibrary_js_standard/src/main/config.json +++ b/multimedia/medialibrary/mediaLibrary_js_standard/src/main/config.json @@ -76,5 +76,13 @@ } } ] + "reqPermissions": [ + { + "name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED" + }, + { + "name": "ohos.permission.GET_BUNDLE_INFO" + } + ] } } \ No newline at end of file