From ab6257dbf3dfd8d4bc95ed8b75f724d6bf2c88ff Mon Sep 17 00:00:00 2001 From: gudehe Date: Tue, 15 Feb 2022 09:36:05 +0800 Subject: [PATCH] add test resource & new signature file Signed-off-by: gudehe --- .../mediaLibrary_js_standard/Test.json | 14 +++++++++++--- .../signature/openharmony_sx.p7b | Bin 3437 -> 3544 bytes .../src/main/config.json | 8 ++++++++ 3 files changed, 19 insertions(+), 3 deletions(-) mode change 100755 => 100644 multimedia/medialibrary/mediaLibrary_js_standard/signature/openharmony_sx.p7b diff --git a/multimedia/medialibrary/mediaLibrary_js_standard/Test.json b/multimedia/medialibrary/mediaLibrary_js_standard/Test.json index 01afeee3b..a17d513ba 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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?&qBKkrs8dWSG(WIb*h zw%gLjx@iw}XSN%;v05Mr0;tIjfGiF=EG3qTvJ}qViF|y-_b9YsaU>h^qLiu{8qb9k zoYU}v^>CjPTu2CYvLXmH1@olXqskl(Xn;x-fphtWC8sKeI%xIPWX9r36eQvKG($ln zROpJY4-8Z7Q340j|5^sel%>+qev6)qA|=c}@idy8M^6)p!`X8MOt?ceg`4WYFth#O*1(vwp%rA)lS;}n17DI{<3K4n{fPoFX@@p_ z%Ne`FTs6>(>|~&QXk<(hUx4`Mq4AXjebcZ z170!@yh6otQcV9atYP_FE8{v^E_AQYZpQZFgJ6ECW>-_rj&yb!yLPX+xO;h#K&Fu! zv-ej<&;7p_v#as#BNWM^86=s)QkabFT-0Pah9+X`@N`xC1ifE>9R2*xMsshicI&3} z)2FBEpC?~`_5=3T+sLy^&&(_M?e*9~G)5y-bloYC*H+g4_{K{O#;L~x?<9AnHc`f?#r7zMN{CSf&0~O4{JaF1Cc{Z AlmGw# diff --git a/multimedia/medialibrary/mediaLibrary_js_standard/src/main/config.json b/multimedia/medialibrary/mediaLibrary_js_standard/src/main/config.json index fa9105373..bd7d14fc7 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 -- GitLab