From d476c8aef4b6903a77c7198ac600c56357729706 Mon Sep 17 00:00:00 2001 From: huangjie Date: Wed, 12 Jan 2022 15:08:30 +0800 Subject: [PATCH] system resource hap judge Signed-off-by: huangjie --- systemres/main/app.json | 11 ++++++++ systemres/main/{config.json => module.json} | 26 +++--------------- .../main/resources/base/element/string.json | 4 +++ .../main/resources/base/media/.gitignore | 0 .../main/resources/base/media/app_icon.png | Bin 0 -> 5997 bytes 5 files changed, 19 insertions(+), 22 deletions(-) create mode 100644 systemres/main/app.json rename systemres/main/{config.json => module.json} (98%) delete mode 100644 systemres/main/resources/base/media/.gitignore create mode 100644 systemres/main/resources/base/media/app_icon.png diff --git a/systemres/main/app.json b/systemres/main/app.json new file mode 100644 index 00000000..2a76f119 --- /dev/null +++ b/systemres/main/app.json @@ -0,0 +1,11 @@ +{ + "app": { + "bundleName": "ohos.global.systemres", + "icon": "$media:app_icon", + "label": "$string:app_name", + "versionCode": 1, + "versionName": "1.0", + "minAPIVersion": 8, + "targetAPIVersion": 8, + } +} diff --git a/systemres/main/config.json b/systemres/main/module.json similarity index 98% rename from systemres/main/config.json rename to systemres/main/module.json index 80319f61..20541de9 100644 --- a/systemres/main/config.json +++ b/systemres/main/module.json @@ -1,33 +1,15 @@ { - "app": { - "bundleName": "ohos.global.systemres", - "vendor": "ohos", - "version": { - "code": 1, - "name": "1.0.0.1" - }, - "apiVersion": { - "compatible": 3, - "target": 3 - } - }, - "deviceConfig": { - "default": { - } - }, "module": { - "package": "ohos.global.systemres", + "name": "ohos.global.systemres", + "type": "entry", "deviceType": [ "default", "tv", "car", "wearable" ], - "distro": { - "deliveryWithInstall": true, - "moduleName": "entry", - "moduleType": "entry" - }, + "deliveryWithInstall": true, + "installationFree": false, "definePermissions": [ { "name": "ohos.permission.ANSWER_CALL", diff --git a/systemres/main/resources/base/element/string.json b/systemres/main/resources/base/element/string.json index 1ba854ec..192ba226 100644 --- a/systemres/main/resources/base/element/string.json +++ b/systemres/main/resources/base/element/string.json @@ -431,6 +431,10 @@ { "name": "ohos_desc_notification_controller", "value": "Allows an application to use notification management interfaces." + }, + { + "name": "app_name", + "value": "System" } ] } diff --git a/systemres/main/resources/base/media/.gitignore b/systemres/main/resources/base/media/.gitignore deleted file mode 100644 index e69de29b..00000000 diff --git a/systemres/main/resources/base/media/app_icon.png b/systemres/main/resources/base/media/app_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ee0bdb13ff8a4f6eacb63df5b7ac43724208eab9 GIT binary patch literal 5997 zcmV-z7n10SP)Py1CrLy>RCodHoeyvv)qTf*Z|{7TWE;7Ph3#Vg)+VAZVWzeG4{YPu8I?BfWFX@v zr87loQU*vnF(I9h0=83Pl9Zx!hC&E5&SW4po(c7g>3|12_zz$kF`br-K`{&@w$m77 zRD^9wmUR32`<-;k>3n~7_x8`b-S5+AZg2Pf{k-?R-+OQ0zExCbZtZs6JUBq}l%|Vq zqB)AFl`Q_()S`)+`Ft}en!&|t;_prT*~sTIe4OFqDSR!>VJxjVl;S_F`72yt1QgTf zKc&d#IWIm%okcsx<%(h_X%y@NZ%-XSGLJ)WbipJt;*; zrZ&(aQ-x=Yz;c2*OE>T@)k^-UyN)3)B+{%cI1s2tK(W^7h^6QywwL>-PNU~c5nQAK z>)5VaPM@WlxchJ;ciGmkpr%wqiR&Oxoq!tQHnoS_)H5@t(NA}+SAEsP1mhzTfvwuA z+qoltI~VD5TI+^jiiTK0fJiAd#2mJzi5}V4sk*~v5~{#f{7`qWE#JuFsAXXn6zPEg zkKYdRm}B#SFQ{E%(FjFgD}JQc@VM%JwpL5SDj3oMfpP@csvY9-+C2wuQG3ey@#}n` z0$Z_Nx7uguA+}h5=~spk4+!{0fGygS)^xh_!1~MNb;6vl zmY?zaDzN20)VJ|{h%Oe_R6jF`xIiEb0xYs~d>?khD_>BL`jwt90^6juwQH;WAa@Bj z_?0ol0|Jo|P}J4YY2CF+N&%<-pS%xgXEf>V)g*w926#=$n$1*9k#ET_! zy;@zyT;ttBh^wxe2{P-IfEW^K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