init: 初始化
This commit is contained in:
commit
b81bebe678
19
Makefile
Normal file
19
Makefile
Normal file
@ -0,0 +1,19 @@
|
||||
TOOLCHAIN_PATH=./shell
|
||||
DOWNLOAD_PATH=../logs
|
||||
logd:
|
||||
cd $(TOOLCHAIN_PATH) && \
|
||||
./hdc file recv /mnt/hmdfs/100/account/device_view/local/files/duolun/logs $(DOWNLOAD_PATH)
|
||||
hilogd:
|
||||
cd $(TOOLCHAIN_PATH) && \
|
||||
TIMESTAMP=$$(date +%Y%m%d%H%M%S) && \
|
||||
./hdc shell "tar -czvf /data/$${TIMESTAMP}_log.tar.gz /data/log/" && \
|
||||
./hdc file recv /data/$${TIMESTAMP}_log.tar.gz $(DOWNLOAD_PATH) && \
|
||||
./hdc shell "rm -rf /data/$${TIMESTAMP}_log.tar.gz"
|
||||
open:
|
||||
cd $(TOOLCHAIN_PATH) && \
|
||||
./hdc shell hilog -w stop && \
|
||||
./hdc shell hilog -r && \
|
||||
./hdc shell hilog -w start -l 100M -m none && \
|
||||
./hdc shell hilog -Q pidoff && \
|
||||
./hdc shell hilog -p off && \
|
||||
./hdc shell hilog -b D
|
||||
7883
shell/NOTICE.txt
Executable file
7883
shell/NOTICE.txt
Executable file
File diff suppressed because it is too large
Load Diff
BIN
shell/ark_disasm
Executable file
BIN
shell/ark_disasm
Executable file
Binary file not shown.
1009
shell/configcheck/configSchema_lite.json
Executable file
1009
shell/configcheck/configSchema_lite.json
Executable file
File diff suppressed because it is too large
Load Diff
3490
shell/configcheck/configSchema_rich.json
Executable file
3490
shell/configcheck/configSchema_rich.json
Executable file
File diff suppressed because it is too large
Load Diff
BIN
shell/diff
Executable file
BIN
shell/diff
Executable file
Binary file not shown.
BIN
shell/hnpcli
Executable file
BIN
shell/hnpcli
Executable file
Binary file not shown.
25805
shell/id_defined.json
Executable file
25805
shell/id_defined.json
Executable file
File diff suppressed because it is too large
Load Diff
BIN
shell/lib/OpenHarmony.p12
Executable file
BIN
shell/lib/OpenHarmony.p12
Executable file
Binary file not shown.
44
shell/lib/OpenHarmonyProfileDebug.pem
Executable file
44
shell/lib/OpenHarmonyProfileDebug.pem
Executable file
@ -0,0 +1,44 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIICRDCCAcmgAwIBAgIED+E4izAMBggqhkjOPQQDAwUAMGgxCzAJBgNVBAYTAkNO
|
||||
MRQwEgYDVQQKEwtPcGVuSGFybW9ueTEZMBcGA1UECxMQT3Blbkhhcm1vbnkgVGVh
|
||||
bTEoMCYGA1UEAxMfT3Blbkhhcm1vbnkgQXBwbGljYXRpb24gUm9vdCBDQTAeFw0y
|
||||
MTAyMDIxMjE0MThaFw00OTEyMzExMjE0MThaMGgxCzAJBgNVBAYTAkNOMRQwEgYD
|
||||
VQQKEwtPcGVuSGFybW9ueTEZMBcGA1UECxMQT3Blbkhhcm1vbnkgVGVhbTEoMCYG
|
||||
A1UEAxMfT3Blbkhhcm1vbnkgQXBwbGljYXRpb24gUm9vdCBDQTB2MBAGByqGSM49
|
||||
AgEGBSuBBAAiA2IABE023XmRaw2DnO8NSsb+KG/uY0FtS3u5LQucdr3qWVnRW5ui
|
||||
QIL6ttNZBEeLTUeYcJZCpayg9Llf+1SmDA7dY4iP2EcRo4UN3rilovtfFfsmH4ty
|
||||
3SApHVFzWUl+NwdH8KNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC
|
||||
AQYwHQYDVR0OBBYEFBc6EKGrGXzlAE+s0Zgnsphadw7NMAwGCCqGSM49BAMDBQAD
|
||||
ZwAwZAIwd1p3JzHN93eoPped1li0j64npgqNzwy4OrkehYAqNXpcpaEcLZ7UxW8E
|
||||
I2lZJ3SbAjAkqySHb12sIwdSFKSN9KCMMEo/eUT5dUXlcKR2nZz0MJdxT5F51qcX
|
||||
1CumzkcYhgU=
|
||||
-----END CERTIFICATE-----
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIICYTCCAeWgAwIBAgIEHmXAPTAMBggqhkjOPQQDAwUAMGgxCzAJBgNVBAYTAkNO
|
||||
MRQwEgYDVQQKEwtPcGVuSGFybW9ueTEZMBcGA1UECxMQT3Blbkhhcm1vbnkgVGVh
|
||||
bTEoMCYGA1UEAxMfT3Blbkhhcm1vbnkgQXBwbGljYXRpb24gUm9vdCBDQTAeFw0y
|
||||
MTAyMDIxMjE1MzJaFw00OTEyMzExMjE1MzJaMGMxCzAJBgNVBAYTAkNOMRQwEgYD
|
||||
VQQKEwtPcGVuSGFybW9ueTEZMBcGA1UECxMQT3Blbkhhcm1vbnkgVGVhbTEjMCEG
|
||||
A1UEAxMaT3Blbkhhcm1vbnkgQXBwbGljYXRpb24gQ0EwdjAQBgcqhkjOPQIBBgUr
|
||||
gQQAIgNiAAQhnu7Hna8XNa2KyqRf5+lBJScE4xqf89N0g0OuqAb2re8nGsvWkw26
|
||||
uDekfnBYicd+G3Cydqa2zFIwV7Talyg2ULW3r8KbGpyl84mJEPPRmCGJ+H9gtCsf
|
||||
+OrJ4Y76LVWjYzBhMB8GA1UdIwQYMBaAFBc6EKGrGXzlAE+s0Zgnsphadw7NMA8G
|
||||
A1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBTbhrciFtUL
|
||||
oUu33SV7ufEFfaItRzAMBggqhkjOPQQDAwUAA2gAMGUCMG3cXjiDmXTvf7D4Omhf
|
||||
qcc2nuO+EMfWE+N9ZhBP5UhV34mAGWi3SfLU6rcV0urWEQIxAMYIb3epOnKhUrcm
|
||||
Lfu1WKzFlpYQwmw73RaCHP2I3k6NcuWOYeNwWXSNZ8o0nzvaLg==
|
||||
-----END CERTIFICATE-----
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIICODCCAb2gAwIBAgIEFKYJUDAMBggqhkjOPQQDAwUAMGMxCzAJBgNVBAYTAkNO
|
||||
MRQwEgYDVQQKEwtPcGVuSGFybW9ueTEZMBcGA1UECxMQT3Blbkhhcm1vbnkgVGVh
|
||||
bTEjMCEGA1UEAxMaT3Blbkhhcm1vbnkgQXBwbGljYXRpb24gQ0EwHhcNMjEwMjAy
|
||||
MTIyMTI1WhcNNDkxMjMxMTIyMTI1WjBuMQswCQYDVQQGEwJDTjEUMBIGA1UEChML
|
||||
T3Blbkhhcm1vbnkxGTAXBgNVBAsTEE9wZW5IYXJtb255IFRlYW0xLjAsBgNVBAMT
|
||||
JU9wZW5IYXJtb255IEFwcGxpY2F0aW9uIFByb2ZpbGUgRGVidWcwWTATBgcqhkjO
|
||||
PQIBBggqhkjOPQMBBwNCAATZNH/LPiyU8ar4uBIFyi40yCUTX1nqsXExvaDVHkC+
|
||||
ZZT+6D+gVK+Dxz1fH0lCt1IgTAxQBd0OVTM9i+PJIE3ao1IwUDAfBgNVHSMEGDAW
|
||||
gBTbhrciFtULoUu33SV7ufEFfaItRzAOBgNVHQ8BAf8EBAMCB4AwHQYDVR0OBBYE
|
||||
FFQ8O5FRWjHrsdwhrA15sSEVovdyMAwGCCqGSM49BAMDBQADZwAwZAIweioYr8UT
|
||||
KDiyo2PQPHqgsyVsNPVk9kZaC9yrpIawN+55fevOXzFiuGP0IjCLhCFSAjA+69aB
|
||||
La2cynFQtEOk59rSD5v0ZHIgzJX4L+ROAumr/qt1O14yWTJA7jzZuHPIT3c=
|
||||
-----END CERTIFICATE-----
|
||||
44
shell/lib/OpenHarmonyProfileRelease.pem
Executable file
44
shell/lib/OpenHarmonyProfileRelease.pem
Executable file
@ -0,0 +1,44 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIICRDCCAcmgAwIBAgIED+E4izAMBggqhkjOPQQDAwUAMGgxCzAJBgNVBAYTAkNO
|
||||
MRQwEgYDVQQKEwtPcGVuSGFybW9ueTEZMBcGA1UECxMQT3Blbkhhcm1vbnkgVGVh
|
||||
bTEoMCYGA1UEAxMfT3Blbkhhcm1vbnkgQXBwbGljYXRpb24gUm9vdCBDQTAeFw0y
|
||||
MTAyMDIxMjE0MThaFw00OTEyMzExMjE0MThaMGgxCzAJBgNVBAYTAkNOMRQwEgYD
|
||||
VQQKEwtPcGVuSGFybW9ueTEZMBcGA1UECxMQT3Blbkhhcm1vbnkgVGVhbTEoMCYG
|
||||
A1UEAxMfT3Blbkhhcm1vbnkgQXBwbGljYXRpb24gUm9vdCBDQTB2MBAGByqGSM49
|
||||
AgEGBSuBBAAiA2IABE023XmRaw2DnO8NSsb+KG/uY0FtS3u5LQucdr3qWVnRW5ui
|
||||
QIL6ttNZBEeLTUeYcJZCpayg9Llf+1SmDA7dY4iP2EcRo4UN3rilovtfFfsmH4ty
|
||||
3SApHVFzWUl+NwdH8KNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC
|
||||
AQYwHQYDVR0OBBYEFBc6EKGrGXzlAE+s0Zgnsphadw7NMAwGCCqGSM49BAMDBQAD
|
||||
ZwAwZAIwd1p3JzHN93eoPped1li0j64npgqNzwy4OrkehYAqNXpcpaEcLZ7UxW8E
|
||||
I2lZJ3SbAjAkqySHb12sIwdSFKSN9KCMMEo/eUT5dUXlcKR2nZz0MJdxT5F51qcX
|
||||
1CumzkcYhgU=
|
||||
-----END CERTIFICATE-----
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIICYTCCAeWgAwIBAgIEHmXAPTAMBggqhkjOPQQDAwUAMGgxCzAJBgNVBAYTAkNO
|
||||
MRQwEgYDVQQKEwtPcGVuSGFybW9ueTEZMBcGA1UECxMQT3Blbkhhcm1vbnkgVGVh
|
||||
bTEoMCYGA1UEAxMfT3Blbkhhcm1vbnkgQXBwbGljYXRpb24gUm9vdCBDQTAeFw0y
|
||||
MTAyMDIxMjE1MzJaFw00OTEyMzExMjE1MzJaMGMxCzAJBgNVBAYTAkNOMRQwEgYD
|
||||
VQQKEwtPcGVuSGFybW9ueTEZMBcGA1UECxMQT3Blbkhhcm1vbnkgVGVhbTEjMCEG
|
||||
A1UEAxMaT3Blbkhhcm1vbnkgQXBwbGljYXRpb24gQ0EwdjAQBgcqhkjOPQIBBgUr
|
||||
gQQAIgNiAAQhnu7Hna8XNa2KyqRf5+lBJScE4xqf89N0g0OuqAb2re8nGsvWkw26
|
||||
uDekfnBYicd+G3Cydqa2zFIwV7Talyg2ULW3r8KbGpyl84mJEPPRmCGJ+H9gtCsf
|
||||
+OrJ4Y76LVWjYzBhMB8GA1UdIwQYMBaAFBc6EKGrGXzlAE+s0Zgnsphadw7NMA8G
|
||||
A1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBTbhrciFtUL
|
||||
oUu33SV7ufEFfaItRzAMBggqhkjOPQQDAwUAA2gAMGUCMG3cXjiDmXTvf7D4Omhf
|
||||
qcc2nuO+EMfWE+N9ZhBP5UhV34mAGWi3SfLU6rcV0urWEQIxAMYIb3epOnKhUrcm
|
||||
Lfu1WKzFlpYQwmw73RaCHP2I3k6NcuWOYeNwWXSNZ8o0nzvaLg==
|
||||
-----END CERTIFICATE-----
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIICPDCCAb+gAwIBAgIEN6dtvjAMBggqhkjOPQQDAwUAMGMxCzAJBgNVBAYTAkNO
|
||||
MRQwEgYDVQQKEwtPcGVuSGFybW9ueTEZMBcGA1UECxMQT3Blbkhhcm1vbnkgVGVh
|
||||
bTEjMCEGA1UEAxMaT3Blbkhhcm1vbnkgQXBwbGljYXRpb24gQ0EwHhcNMjEwMjAy
|
||||
MTIyMTA1WhcNNDkxMjMxMTIyMTA1WjBwMQswCQYDVQQGEwJDTjEUMBIGA1UEChML
|
||||
T3Blbkhhcm1vbnkxGTAXBgNVBAsTEE9wZW5IYXJtb255IFRlYW0xMDAuBgNVBAMT
|
||||
J09wZW5IYXJtb255IEFwcGxpY2F0aW9uIFByb2ZpbGUgUmVsZWFzZTBZMBMGByqG
|
||||
SM49AgEGCCqGSM49AwEHA0IABFfPAuu5prLiQXG+FcmSKJqtRjeDDZgfAeitKsSM
|
||||
3tzhHk2oN/UD0vHGbgIrVD8fv8igUZEJFsOTNM4DbovGGJqjUjBQMB8GA1UdIwQY
|
||||
MBaAFNuGtyIW1QuhS7fdJXu58QV9oi1HMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4E
|
||||
FgQUy2Hpvad6TtTPlbOE7AX99l8NAVIwDAYIKoZIzj0EAwMFAANpADBmAjEArI6u
|
||||
CYJiea5IJBFC7JBluWgGshKdEHdGPv3sopi34kKPZNxm9eGn9OGNBjZg/qqdAjEA
|
||||
oIZqet/+DDpB7CRdTAUhisGmgE8w3ETgiibdUhrAAUOo6SSzozUQeKn+c37l5A+z
|
||||
-----END CERTIFICATE-----
|
||||
35
shell/lib/UnsgnedDebugProfileTemplate.json
Executable file
35
shell/lib/UnsgnedDebugProfileTemplate.json
Executable file
@ -0,0 +1,35 @@
|
||||
{
|
||||
"version-name": "2.0.0",
|
||||
"version-code": 2,
|
||||
"uuid": "fe686e1b-3770-4824-a938-961b140a7c98",
|
||||
"validity": {
|
||||
"not-before": 1610519532,
|
||||
"not-after": 1705127532
|
||||
},
|
||||
"type": "debug",
|
||||
"bundle-info": {
|
||||
"developer-id": "OpenHarmony",
|
||||
"development-certificate": "-----BEGIN CERTIFICATE-----\nMIICMzCCAbegAwIBAgIEaOC/zDAMBggqhkjOPQQDAwUAMGMxCzAJBgNVBAYTAkNO\nMRQwEgYDVQQKEwtPcGVuSGFybW9ueTEZMBcGA1UECxMQT3Blbkhhcm1vbnkgVGVh\nbTEjMCEGA1UEAxMaT3Blbkhhcm1vbnkgQXBwbGljYXRpb24gQ0EwHhcNMjEwMjAy\nMTIxOTMxWhcNNDkxMjMxMTIxOTMxWjBoMQswCQYDVQQGEwJDTjEUMBIGA1UEChML\nT3Blbkhhcm1vbnkxGTAXBgNVBAsTEE9wZW5IYXJtb255IFRlYW0xKDAmBgNVBAMT\nH09wZW5IYXJtb255IEFwcGxpY2F0aW9uIFJlbGVhc2UwWTATBgcqhkjOPQIBBggq\nhkjOPQMBBwNCAATbYOCQQpW5fdkYHN45v0X3AHax12jPBdEDosFRIZ1eXmxOYzSG\nJwMfsHhUU90E8lI0TXYZnNmgM1sovubeQqATo1IwUDAfBgNVHSMEGDAWgBTbhrci\nFtULoUu33SV7ufEFfaItRzAOBgNVHQ8BAf8EBAMCB4AwHQYDVR0OBBYEFPtxruhl\ncRBQsJdwcZqLu9oNUVgaMAwGCCqGSM49BAMDBQADaAAwZQIxAJta0PQ2p4DIu/ps\nLMdLCDgQ5UH1l0B4PGhBlMgdi2zf8nk9spazEQI/0XNwpft8QAIwHSuA2WelVi/o\nzAlF08DnbJrOOtOnQq5wHOPlDYB4OtUzOYJk9scotrEnJxJzGsh/\n-----END CERTIFICATE-----\n",
|
||||
"bundle-name": "com.OpenHarmony.app.test",
|
||||
"apl": "normal",
|
||||
"app-feature": "hos_normal_app"
|
||||
},
|
||||
"acls": {
|
||||
"allowed-acls": [
|
||||
""
|
||||
]
|
||||
},
|
||||
"permissions": {
|
||||
"restricted-permissions": [
|
||||
""
|
||||
]
|
||||
},
|
||||
"debug-info": {
|
||||
"device-ids": [
|
||||
"69C7505BE341BDA5948C3C0CB44ABCD530296054159EFE0BD16A16CD0129CC42",
|
||||
"7EED06506FCE6325EB2E2FAA019458B856AB10493A6718C7679A73F958732865"
|
||||
],
|
||||
"device-id-type": "udid"
|
||||
},
|
||||
"issuer": "pki_internal"
|
||||
}
|
||||
27
shell/lib/UnsgnedReleasedProfileTemplate.json
Executable file
27
shell/lib/UnsgnedReleasedProfileTemplate.json
Executable file
@ -0,0 +1,27 @@
|
||||
{
|
||||
"version-name": "2.0.0",
|
||||
"version-code": 2,
|
||||
"app-distribution-type": "os_integration",
|
||||
"uuid": "5027b99e-5f9e-465d-9508-a9e0134ffe18",
|
||||
"validity": {
|
||||
"not-before": 1594865258,
|
||||
"not-after": 1689473258
|
||||
},
|
||||
"type": "release",
|
||||
"bundle-info": {
|
||||
"developer-id": "OpenHarmony",
|
||||
"distribution-certificate": "-----BEGIN CERTIFICATE-----\nMIICMzCCAbegAwIBAgIEaOC/zDAMBggqhkjOPQQDAwUAMGMxCzAJBgNVBAYTAkNO\nMRQwEgYDVQQKEwtPcGVuSGFybW9ueTEZMBcGA1UECxMQT3Blbkhhcm1vbnkgVGVh\nbTEjMCEGA1UEAxMaT3Blbkhhcm1vbnkgQXBwbGljYXRpb24gQ0EwHhcNMjEwMjAy\nMTIxOTMxWhcNNDkxMjMxMTIxOTMxWjBoMQswCQYDVQQGEwJDTjEUMBIGA1UEChML\nT3Blbkhhcm1vbnkxGTAXBgNVBAsTEE9wZW5IYXJtb255IFRlYW0xKDAmBgNVBAMT\nH09wZW5IYXJtb255IEFwcGxpY2F0aW9uIFJlbGVhc2UwWTATBgcqhkjOPQIBBggq\nhkjOPQMBBwNCAATbYOCQQpW5fdkYHN45v0X3AHax12jPBdEDosFRIZ1eXmxOYzSG\nJwMfsHhUU90E8lI0TXYZnNmgM1sovubeQqATo1IwUDAfBgNVHSMEGDAWgBTbhrci\nFtULoUu33SV7ufEFfaItRzAOBgNVHQ8BAf8EBAMCB4AwHQYDVR0OBBYEFPtxruhl\ncRBQsJdwcZqLu9oNUVgaMAwGCCqGSM49BAMDBQADaAAwZQIxAJta0PQ2p4DIu/ps\nLMdLCDgQ5UH1l0B4PGhBlMgdi2zf8nk9spazEQI/0XNwpft8QAIwHSuA2WelVi/o\nzAlF08DnbJrOOtOnQq5wHOPlDYB4OtUzOYJk9scotrEnJxJzGsh/\n-----END CERTIFICATE-----\n",
|
||||
"bundle-name": "com.OpenHarmony.app.test",
|
||||
"apl": "normal",
|
||||
"app-feature": "hos_normal_app"
|
||||
},
|
||||
"acls": {
|
||||
"allowed-acls": [
|
||||
""
|
||||
]
|
||||
},
|
||||
"permissions": {
|
||||
"restricted-permissions": []
|
||||
},
|
||||
"issuer": "pki_internal"
|
||||
}
|
||||
BIN
shell/lib/app_check_tool.jar
Executable file
BIN
shell/lib/app_check_tool.jar
Executable file
Binary file not shown.
BIN
shell/lib/app_packing_tool.jar
Executable file
BIN
shell/lib/app_packing_tool.jar
Executable file
Binary file not shown.
BIN
shell/lib/app_unpacking_tool.jar
Executable file
BIN
shell/lib/app_unpacking_tool.jar
Executable file
Binary file not shown.
BIN
shell/lib/hap-sign-tool.jar
Executable file
BIN
shell/lib/hap-sign-tool.jar
Executable file
Binary file not shown.
BIN
shell/libusb_shared.dylib
Executable file
BIN
shell/libusb_shared.dylib
Executable file
Binary file not shown.
BIN
shell/log.tar.gz
Normal file
BIN
shell/log.tar.gz
Normal file
Binary file not shown.
2
shell/logs/2024-07-19/error.log
Normal file
2
shell/logs/2024-07-19/error.log
Normal file
@ -0,0 +1,2 @@
|
||||
[error] 2024/07/19-21:19:08 "写入错误的日志"
|
||||
[error] 2024/07/19-21:19:46 "写入错误的日志"
|
||||
2
shell/logs/logs/2024-07-19/error.log
Normal file
2
shell/logs/logs/2024-07-19/error.log
Normal file
@ -0,0 +1,2 @@
|
||||
[error] 2024/07/19-21:19:08 "写入错误的日志"
|
||||
[error] 2024/07/19-21:19:46 "写入错误的日志"
|
||||
473
shell/modulecheck/app.json
Executable file
473
shell/modulecheck/app.json
Executable file
@ -0,0 +1,473 @@
|
||||
{
|
||||
"title": "JSON schema for app.json",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": true,
|
||||
"definitions": {
|
||||
"default": {
|
||||
"description": "The configuration in the default tag is applicable to all devices. If the configuration is different for other device types, you need to configure the configuration under the configuration tag of the device type.",
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"minAPIVersion",
|
||||
"distributedNotificationEnabled",
|
||||
"keepAlive",
|
||||
"removable",
|
||||
"singleton",
|
||||
"userDataClearable",
|
||||
"accessible"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"minAPIVersion": {
|
||||
"description": "Indicates the minimum API version required for running an application. This label is an integer and can be defaulted.",
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 2147483647
|
||||
},
|
||||
"distributedNotificationEnabled": {
|
||||
"description": "Describes whether the application has distributed notifications.",
|
||||
"type": "boolean",
|
||||
"deprecationMessage": "Deprecated since api 9.",
|
||||
"default": false
|
||||
},
|
||||
"keepAlive": {
|
||||
"description": "Specifies whether the application will keep alive. This attribute takes effect only when the system application or privilege application is used.@deprecated",
|
||||
"type": "boolean",
|
||||
"deprecationMessage": "Deprecated since api 9.",
|
||||
"default": false
|
||||
},
|
||||
"removable": {
|
||||
"description": "Describes the application can remove or not. This attribute takes effect only when the system application or privilege application is used.@deprecated",
|
||||
"type": "boolean",
|
||||
"deprecationMessage": "Deprecated since api 9.",
|
||||
"default": true
|
||||
},
|
||||
"singleton": {
|
||||
"description": "Describes whether the application is singleton mode. This attribute takes effect only when the system application or privilege application is used.@deprecated",
|
||||
"type": "boolean",
|
||||
"deprecationMessage": "Deprecated since api 9.",
|
||||
"default": false
|
||||
},
|
||||
"userDataClearable": {
|
||||
"description": "Describes whether to allow the application to clear user data. This attribute takes effect only when the system application or privilege application is used.@deprecated",
|
||||
"type": "boolean",
|
||||
"deprecationMessage": "Deprecated since api 9.",
|
||||
"default": true
|
||||
},
|
||||
"accessible": {
|
||||
"description": "Describes whether to visit the application install catalogue. This attribute takes effect only when the system application or privilege application is used. And the aplpication must be a stage module",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"app"
|
||||
],
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"app"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"app": {
|
||||
"description": "Indicates the global configuration of an application. Different .hap files of the same application must use the same app configuration.",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"bundleName",
|
||||
"icon",
|
||||
"label",
|
||||
"versionCode",
|
||||
"versionName"
|
||||
],
|
||||
"if": {
|
||||
"properties": {
|
||||
"bundleType": {
|
||||
"const": "app"
|
||||
}
|
||||
}
|
||||
},
|
||||
"then": {
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"bundleName",
|
||||
"debug",
|
||||
"bundleType",
|
||||
"icon",
|
||||
"label",
|
||||
"description",
|
||||
"vendor",
|
||||
"versionCode",
|
||||
"versionName",
|
||||
"minCompatibleVersionCode",
|
||||
"minAPIVersion",
|
||||
"targetAPIVersion",
|
||||
"apiReleaseType",
|
||||
"distributedNotificationEnabled",
|
||||
"entityType",
|
||||
"keepAlive",
|
||||
"removable",
|
||||
"singleton",
|
||||
"userDataClearable",
|
||||
"accessible",
|
||||
"multiProjects",
|
||||
"asanEnabled",
|
||||
"default",
|
||||
"tablet",
|
||||
"tv",
|
||||
"wearable",
|
||||
"car",
|
||||
"targetBundleName",
|
||||
"targetPriority",
|
||||
"generateBuildHash",
|
||||
"2in1",
|
||||
"GWPAsanEnabled",
|
||||
"tsanEnabled",
|
||||
"appEnvironments",
|
||||
"maxChildProcess",
|
||||
"multiAppMode",
|
||||
"hwasanEnabled",
|
||||
"cloudFileSyncEnabled",
|
||||
"configuration"
|
||||
]
|
||||
}
|
||||
},
|
||||
"else": {
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"bundleName",
|
||||
"debug",
|
||||
"bundleType",
|
||||
"icon",
|
||||
"label",
|
||||
"description",
|
||||
"vendor",
|
||||
"versionCode",
|
||||
"versionName",
|
||||
"minCompatibleVersionCode",
|
||||
"minAPIVersion",
|
||||
"targetAPIVersion",
|
||||
"apiReleaseType",
|
||||
"distributedNotificationEnabled",
|
||||
"entityType",
|
||||
"keepAlive",
|
||||
"removable",
|
||||
"singleton",
|
||||
"userDataClearable",
|
||||
"accessible",
|
||||
"multiProjects",
|
||||
"asanEnabled",
|
||||
"default",
|
||||
"tablet",
|
||||
"tv",
|
||||
"wearable",
|
||||
"car",
|
||||
"targetBundleName",
|
||||
"targetPriority",
|
||||
"generateBuildHash",
|
||||
"2in1",
|
||||
"GWPAsanEnabled",
|
||||
"tsanEnabled",
|
||||
"appEnvironments",
|
||||
"maxChildProcess",
|
||||
"hwasanEnabled",
|
||||
"cloudFileSyncEnabled",
|
||||
"configuration"
|
||||
]
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"bundleName": {
|
||||
"description": "Indicates the bundle name of the application. It uniquely identifies the application. The value is a string with 7 to 128 bytes of a reverse domain name, for example, com.huawei.himusic. It is recommended that the first label of this attribute is the top-level domain com, the second label is the vendor or individual name, and the third label is the application name. This label is a string type and cannot be defaulted.",
|
||||
"type": "string",
|
||||
"maxLength": 128,
|
||||
"minLength": 7,
|
||||
"pattern": "^(?:[a-zA-Z](?:\\w*[0-9a-zA-Z])?)(?:\\.[0-9a-zA-Z](?:\\w*[0-9a-zA-Z])?){2,}$"
|
||||
},
|
||||
"bundleType": {
|
||||
"description": "Indicates the type of bundle",
|
||||
"type":"string",
|
||||
"enum": [
|
||||
"app",
|
||||
"atomicService",
|
||||
"shared",
|
||||
"appService"
|
||||
]
|
||||
},
|
||||
"debug": {
|
||||
"description": "Identify whether the application can be debugged.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"label": {
|
||||
"description": "Indicates the label of the application.",
|
||||
"type": "string",
|
||||
"maxLength": 63,
|
||||
"pattern": "^[$]string:[0-9a-zA-Z_.]+|(?=.*[{])(?=.*[}])[0-9a-zA-Z_.{}]+$"
|
||||
},
|
||||
"icon": {
|
||||
"description": "Indicates the index to the application icon file, in the format of \"$media:application_icon\".This label can be left blank by default.",
|
||||
"type": "string",
|
||||
"pattern": "^[$]media:[0-9a-zA-Z_.]+|(?=.*[{])(?=.*[}])[0-9a-zA-Z_.{}]$"
|
||||
},
|
||||
"description": {
|
||||
"description": "Describes the application",
|
||||
"type": "string",
|
||||
"maxLength": 255
|
||||
},
|
||||
"vendor": {
|
||||
"description": "Describes the application vendor.",
|
||||
"type": "string",
|
||||
"maxLength": 255
|
||||
},
|
||||
"versionCode": {
|
||||
"description": "Indicates the versionCode number of the application. The value is an integer greater than 0. A larger value generally represents a later version.The system determines the application version based on the tag value.This label cannot be left blank.",
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 2147483647
|
||||
},
|
||||
"versionName": {
|
||||
"description": "Indicates the text description of the application version.Used for displaying to users.A string can contain a maximum of 127 bytes.This label cannot be left blank.",
|
||||
"type": "string",
|
||||
"maxLength": 127,
|
||||
"pattern": "^[0-9.]+|(?=.*[{])(?=.*[}])[0-9a-zA-Z_.{}]+$"
|
||||
},
|
||||
"minCompatibleVersionCode": {
|
||||
"description": "Indicates the lowest compatible historical version number, used for cross-device compatibility judgment",
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 2147483647
|
||||
},
|
||||
"minAPIVersion": {
|
||||
"description": "Indicates the minimum API version required for running an application.",
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 2147483647
|
||||
},
|
||||
"targetAPIVersion": {
|
||||
"description": "This tag identifies the target API version required for application running. The value is an integer.",
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 2147483647
|
||||
},
|
||||
"apiReleaseType": {
|
||||
"description": "This tag identifies the type of the target API version required for application running. The tag is a string.",
|
||||
"type": "string",
|
||||
"pattern": "^(Canary[1-9]\\d*)|(Beta[1-9]\\d*)|(Release[1-9]\\d*)$"
|
||||
},
|
||||
"distributedNotificationEnabled": {
|
||||
"description": "Describes whether the application has distributed notifications.",
|
||||
"type": "boolean",
|
||||
"deprecationMessage": "Deprecated since api 9.",
|
||||
"default": false
|
||||
},
|
||||
"entityType": {
|
||||
"description": "Describes the application type.",
|
||||
"type": "string",
|
||||
"deprecationMessage": "Deprecated since api 9.",
|
||||
"enum": [
|
||||
"game",
|
||||
"media",
|
||||
"communication",
|
||||
"news",
|
||||
"travel",
|
||||
"utility",
|
||||
"shopping",
|
||||
"education",
|
||||
"kids",
|
||||
"business",
|
||||
"photography",
|
||||
"unspecified"
|
||||
],
|
||||
"default": "unspecified"
|
||||
},
|
||||
"keepAlive": {
|
||||
"description": "Specifies whether the application will keep alive. This attribute takes effect only when the system application or privilege application is used.@deprecated",
|
||||
"type": "boolean",
|
||||
"deprecationMessage": "Deprecated since api 9.",
|
||||
"default": false
|
||||
},
|
||||
"removable": {
|
||||
"description": "Describes the application can remove or not. This attribute takes effect only when the system application or privilege application is used.@deprecated",
|
||||
"type": "boolean",
|
||||
"deprecationMessage": "Deprecated since api 9.",
|
||||
"default": true
|
||||
},
|
||||
"singleton": {
|
||||
"description": "Describes whether the application is singleton mode. This attribute takes effect only when the system application or privilege application is used.@deprecated",
|
||||
"type": "boolean",
|
||||
"deprecationMessage": "Deprecated since api 9.",
|
||||
"default": false
|
||||
},
|
||||
"userDataClearable": {
|
||||
"description": "Describes whether to allow the application to clear user data. This attribute takes effect only when the system application or privilege application is used.@deprecated",
|
||||
"type": "boolean",
|
||||
"deprecationMessage": "Deprecated since api 9.",
|
||||
"default": true
|
||||
},
|
||||
"accessible": {
|
||||
"description": "Describes whether to visit the application install catalogue. This attribute takes effect only when the system application or privilege application is used. And the aplpication must be a stage module",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"multiProjects": {
|
||||
"description": "Indicates whether current project supports multiple project.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"asanEnabled": {
|
||||
"description": "Indicates whether to support asan.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"default": {
|
||||
"$ref": "#/definitions/default"
|
||||
},
|
||||
"tablet": {
|
||||
"$ref": "#/definitions/default"
|
||||
},
|
||||
"tv": {
|
||||
"$ref": "#/definitions/default"
|
||||
},
|
||||
"wearable": {
|
||||
"$ref": "#/definitions/default"
|
||||
},
|
||||
"car": {
|
||||
"$ref": "#/definitions/default"
|
||||
},
|
||||
"2in1": {
|
||||
"$ref": "#/definitions/default"
|
||||
},
|
||||
"targetBundleName": {
|
||||
"description": "Indicates the target bundle name of an overlay application. It uniquely identifies the application. The value is a string with 7 to 128 bytes of a reverse domain name, for example, com.huawei.himusic. It is recommended that the first label of this attribute is the top-level domain com, the second label is the vendor or individual name, and the third label is the application name. This label is a string type and cannot be defaulted.",
|
||||
"type": "string",
|
||||
"maxLength": 128,
|
||||
"minLength": 7,
|
||||
"pattern": "^(?:[a-zA-Z](?:\\w*[0-9a-zA-Z])?)(?:\\.[0-9a-zA-Z](?:\\w*[0-9a-zA-Z])?){2,}$"
|
||||
},
|
||||
"targetPriority": {
|
||||
"description": "Indicates the priority of the overlay module. 1 to 100, default value is 1.",
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100
|
||||
},
|
||||
"generateBuildHash": {
|
||||
"description": "Indicates whether the hash value of hap or hsp is filed with in module.json.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"GWPAsanEnabled": {
|
||||
"description": "Indicates whether to support GWP asan.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"tsanEnabled": {
|
||||
"description": "Indicates whether to support tsan.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"appEnvironments": {
|
||||
"description": "Indicates the environment value of app.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"name",
|
||||
"value"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "Indicates the key of a environment element. The value is a string with a maximum of 4096 bytes.",
|
||||
"type": "string",
|
||||
"maxLength": 4096
|
||||
},
|
||||
"value": {
|
||||
"description": "Indicates the value of a environment element. The value is a string with a maximum of 4096 bytes.",
|
||||
"type": "string",
|
||||
"maxLength": 4096
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"maxChildProcess": {
|
||||
"description": "Indicates the max number of child process that can be created. 0 to 512.",
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 512
|
||||
},
|
||||
"multiAppMode": {
|
||||
"description": "Indicates the application multiple open mode.",
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"multiAppModeType",
|
||||
"maxCount"
|
||||
]
|
||||
},
|
||||
"required": [
|
||||
"multiAppModeType",
|
||||
"maxCount"
|
||||
],
|
||||
"properties": {
|
||||
"multiAppModeType": {
|
||||
"description": "Indicates the type of application multiple open mode.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"multiInstance",
|
||||
"appClone"
|
||||
]
|
||||
}
|
||||
},
|
||||
"if": {
|
||||
"properties": {
|
||||
"multiAppModeType": {
|
||||
"const": "multiInstance"
|
||||
}
|
||||
}
|
||||
},
|
||||
"then": {
|
||||
"properties": {
|
||||
"maxCount": {
|
||||
"description": "Indicates the max count of multiple open application.",
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 10
|
||||
}
|
||||
}
|
||||
},
|
||||
"else": {
|
||||
"properties": {
|
||||
"maxCount": {
|
||||
"description": "Indicates the max count of multiple open application.",
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 5
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"hwasanEnabled": {
|
||||
"description": "Indicates whether to support hwasan.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"cloudFileSyncEnabled": {
|
||||
"description": "Indicates whether the application enables cloud file sync.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"configuration": {
|
||||
"description": "Indicates the configuration of the application, in the format of \"$profile:configuration\".This configuration can be left blank by default.",
|
||||
"type": "string",
|
||||
"pattern": "^[$]profile:[0-9a-zA-Z_.]+$",
|
||||
"maxLength": 255
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
85
shell/modulecheck/appStartup.json
Executable file
85
shell/modulecheck/appStartup.json
Executable file
@ -0,0 +1,85 @@
|
||||
{
|
||||
"title": "JSON schema for app_startup.json",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"startupTasks",
|
||||
"configEntry"
|
||||
],
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"startupTasks",
|
||||
"configEntry"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"startupTasks": {
|
||||
"type": "array",
|
||||
"uniqueItems": true,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"name",
|
||||
"srcEntry",
|
||||
"dependencies",
|
||||
"excludeFromAutoStart",
|
||||
"runOnThread",
|
||||
"waitOnMainThread"
|
||||
]
|
||||
},
|
||||
"required": [
|
||||
"name",
|
||||
"srcEntry"
|
||||
],
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "Indicates the name of the startup task.",
|
||||
"type": "string",
|
||||
"pattern": "^[a-zA-Z][0-9a-zA-Z_.]+$",
|
||||
"maxLength": 127
|
||||
},
|
||||
"srcEntry": {
|
||||
"description": "Indicates the js code path corresponding to the startup task.",
|
||||
"type": "string",
|
||||
"maxLength": 127
|
||||
},
|
||||
"dependencies": {
|
||||
"description": "Indicates the dependencies of the startup task.",
|
||||
"type": "array",
|
||||
"uniqueItems": true,
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"default": []
|
||||
},
|
||||
"excludeFromAutoStart": {
|
||||
"description": "Indicates whether the startup task is excluded from automatic start.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"runOnThread": {
|
||||
"description": "Indicates the running thread of the startup task.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"mainThread",
|
||||
"taskPool"
|
||||
],
|
||||
"default": "mainThread"
|
||||
},
|
||||
"waitOnMainThread": {
|
||||
"description": "Indicates whether the startup task block the main thread.",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"configEntry": {
|
||||
"description": "Indicates the js code path corresponding to the startup config.",
|
||||
"type": "string",
|
||||
"maxLength": 127
|
||||
}
|
||||
}
|
||||
}
|
||||
63
shell/modulecheck/commonEvents.json
Executable file
63
shell/modulecheck/commonEvents.json
Executable file
@ -0,0 +1,63 @@
|
||||
{
|
||||
"title": "JSON schema for commonEvents.json",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": true,
|
||||
"required": [
|
||||
"commonEvents"
|
||||
],
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"commonEvents"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"commonEvents": {
|
||||
"description": "This tag and subtag are not supported on lightweight devices.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"name",
|
||||
"events"
|
||||
],
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"name",
|
||||
"permission",
|
||||
"types",
|
||||
"events"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "This label indicates the ability name corresponding to the current static public event.",
|
||||
"type": "string",
|
||||
"maxLength": 127
|
||||
},
|
||||
"permission": {
|
||||
"description": "This tag identifies the permission that needs to be applied for to implement the static public event. It is a character string indicating a permission name.",
|
||||
"type": "string",
|
||||
"maxLength": 255
|
||||
},
|
||||
"types": {
|
||||
"description": "This tag is used to configure the category array of the current static public event. It is a string array. Each array element is a category name.",
|
||||
"type": "array",
|
||||
"uniqueItems": true,
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"events": {
|
||||
"description": "This tag identifies a set of event values of intentions that can be received. The value is generally predefined by the system or can be customized.",
|
||||
"type": "array",
|
||||
"uniqueItems": true,
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
45
shell/modulecheck/configuration.json
Executable file
45
shell/modulecheck/configuration.json
Executable file
@ -0,0 +1,45 @@
|
||||
{
|
||||
"title": "JSON schema for configuration.json",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"configuration": {
|
||||
"description": "Indicates the configuration.",
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"fontSizeScale",
|
||||
"fontSizeMaxScale"
|
||||
]
|
||||
},
|
||||
"required": [
|
||||
],
|
||||
"properties": {
|
||||
"fontSizeScale": {
|
||||
"description": "Specifies whether the font size of the application follow the system settings.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"followSystem",
|
||||
"nonFollowSystem"
|
||||
]
|
||||
},
|
||||
"fontSizeMaxScale": {
|
||||
"description": "Indicates the max font size scale of application.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"1",
|
||||
"1.15",
|
||||
"1.3",
|
||||
"1.45",
|
||||
"1.75",
|
||||
"2",
|
||||
"3.2"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"configuration"
|
||||
]
|
||||
}
|
||||
164
shell/modulecheck/customUtds.json
Executable file
164
shell/modulecheck/customUtds.json
Executable file
@ -0,0 +1,164 @@
|
||||
{
|
||||
"title": "JSON schema for utd.json5",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
],
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"UniformDataTypeDeclarations",
|
||||
"ReferenceUniformDataTypeDeclarations"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"UniformDataTypeDeclarations": {
|
||||
"description": "Indicates the configuration of UniformDataTypeDeclarations.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"maxItems": 32,
|
||||
"uniqueItems": true,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"TypeId",
|
||||
"BelongingToTypes",
|
||||
"FilenameExtensions",
|
||||
"MIMETypes",
|
||||
"Description",
|
||||
"ReferenceURL"
|
||||
]
|
||||
},
|
||||
"required": [
|
||||
"TypeId",
|
||||
"BelongingToTypes",
|
||||
"Description"
|
||||
],
|
||||
"properties": {
|
||||
"TypeId": {
|
||||
"description": "Indicates the name of utd type.",
|
||||
"type": "string",
|
||||
"pattern": "[a-zA-Z0-9/.-]+$",
|
||||
"maxLength": 127
|
||||
},
|
||||
"BelongingToTypes": {
|
||||
"description": "Indicates the utd type that this type depends on.",
|
||||
"type": "array",
|
||||
"uniqueItems": true,
|
||||
"items": {
|
||||
"type": "string",
|
||||
"maxLength": 127,
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"FilenameExtensions": {
|
||||
"description": "Indicates the file name extensions of utd type.",
|
||||
"type": "array",
|
||||
"uniqueItems": false,
|
||||
"items": {
|
||||
"type": "string",
|
||||
"pattern": "^[/.].*",
|
||||
"maxLength": 127
|
||||
}
|
||||
},
|
||||
"MIMETypes": {
|
||||
"description": "Indicates the mime types of utd type.",
|
||||
"type": "array",
|
||||
"uniqueItems": false,
|
||||
"items": {
|
||||
"type": "string",
|
||||
"maxLength": 127,
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"Description": {
|
||||
"description": "Indicates the description of utd type.",
|
||||
"type": "string",
|
||||
"maxLength": 255,
|
||||
"minLength": 1
|
||||
},
|
||||
"ReferenceURL": {
|
||||
"description": "Indicates the referenceURL of utd type.",
|
||||
"type": "string",
|
||||
"maxLength": 255
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"ReferenceUniformDataTypeDeclarations": {
|
||||
"description": "Indicates the configuration of ReferenceUniformDataTypeDeclarations.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"maxItems": 32,
|
||||
"uniqueItems": true,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"TypeId",
|
||||
"BelongingToTypes",
|
||||
"FilenameExtensions",
|
||||
"MIMETypes",
|
||||
"Description",
|
||||
"ReferenceURL"
|
||||
]
|
||||
},
|
||||
"required": [
|
||||
"TypeId",
|
||||
"BelongingToTypes",
|
||||
"Description"
|
||||
],
|
||||
"properties": {
|
||||
"TypeId": {
|
||||
"description": "Indicates the name of utd type.",
|
||||
"type": "string",
|
||||
"pattern": "[a-zA-Z0-9/.-]+$",
|
||||
"maxLength": 127
|
||||
},
|
||||
"BelongingToTypes": {
|
||||
"description": "Indicates the utd type that this type depends on.",
|
||||
"type": "array",
|
||||
"uniqueItems": true,
|
||||
"items": {
|
||||
"type": "string",
|
||||
"maxLength": 127,
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"FilenameExtensions": {
|
||||
"description": "Indicates the file name extensions of utd type.",
|
||||
"type": "array",
|
||||
"uniqueItems": false,
|
||||
"items": {
|
||||
"type": "string",
|
||||
"pattern": "^[/.].*",
|
||||
"maxLength": 127
|
||||
}
|
||||
},
|
||||
"MIMETypes": {
|
||||
"description": "Indicates the mime types of utd type.",
|
||||
"type": "array",
|
||||
"uniqueItems": false,
|
||||
"items": {
|
||||
"type": "string",
|
||||
"maxLength": 127,
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"Description": {
|
||||
"description": "Indicates the description of utd type.",
|
||||
"type": "string",
|
||||
"maxLength": 255,
|
||||
"minLength": 1
|
||||
},
|
||||
"ReferenceURL": {
|
||||
"description": "Indicates the referenceURL of utd type.",
|
||||
"type": "string",
|
||||
"maxLength": 255
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
370
shell/modulecheck/distroFilter.json
Executable file
370
shell/modulecheck/distroFilter.json
Executable file
@ -0,0 +1,370 @@
|
||||
{
|
||||
"title": "JSON schema for pages.json",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": true,
|
||||
"oneOf": [
|
||||
{
|
||||
"required": [
|
||||
"distroFilter"
|
||||
]
|
||||
},
|
||||
{
|
||||
"required": [
|
||||
"distributionFilter"
|
||||
]
|
||||
}
|
||||
],
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"distroFilter",
|
||||
"distributionFilter"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"distroFilter": {
|
||||
"description": "Indicates the global configuration of an distroFilter.Make precise matching and use in the cloud distribution of th application market.",
|
||||
"type": "object",
|
||||
"deprecationMessage": "Deprecated since api 9, use distributionFilter instead.",
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"apiVersion",
|
||||
"screenShape",
|
||||
"screenWindow",
|
||||
"screenDensity",
|
||||
"countryCode"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"apiVersion": {
|
||||
"description": "Indicates the supported apiVersion range.",
|
||||
"type": "object",
|
||||
"deprecationMessage": "Deprecated since api 9",
|
||||
"required": [
|
||||
"policy",
|
||||
"value"
|
||||
],
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"policy",
|
||||
"value"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"policy": {
|
||||
"description": "Indicates the rule of black and white list for the subtag.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"include",
|
||||
"exclude"
|
||||
]
|
||||
},
|
||||
"value": {
|
||||
"description": "Indicates the value range of the subtag.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer",
|
||||
"minimum": 3
|
||||
},
|
||||
"uniqueItems": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"screenShape": {
|
||||
"description": "Indicates the shape of the screen, only supports for lightWearable devices, other devices are not recommended.",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"policy",
|
||||
"value"
|
||||
],
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"policy",
|
||||
"value"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"policy": {
|
||||
"description": "Indicates the rule of black and white list for the subtag.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"include",
|
||||
"exclude"
|
||||
]
|
||||
},
|
||||
"value": {
|
||||
"description": "Indicates the value range of the subtag.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"circle",
|
||||
"rect"
|
||||
]
|
||||
},
|
||||
"uniqueItems": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"screenWindow": {
|
||||
"description": "Indicates the windows's resolution in runtime",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"policy",
|
||||
"value"
|
||||
],
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"policy",
|
||||
"value"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"policy": {
|
||||
"description": "Indicates the rule of black and white list for the subtag",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"include"
|
||||
]
|
||||
},
|
||||
"value": {
|
||||
"description": "Indicates the value range of the subtag",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"pattern": "^([1-9][0-9]*)\\*([1-9][0-9]*)$"
|
||||
},
|
||||
"uniqueItems": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"screenDensity": {
|
||||
"description": "This label indicates the pixel density of the screen (dpi: Dots Per Inch). This field is optional. If this field is configured, the value must be valid. The tag value is a string array.",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"policy",
|
||||
"value"
|
||||
],
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"policy",
|
||||
"value"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"policy": {
|
||||
"description": "The policy tag indicates the list rule of the value of the sublabel. Either exclude or include can be used.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"include",
|
||||
"exclude"
|
||||
]
|
||||
},
|
||||
"value": {
|
||||
"description": "Indicates the value range of the sublabel.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"sdpi",
|
||||
"mdpi",
|
||||
"ldpi",
|
||||
"xldpi",
|
||||
"xxldpi",
|
||||
"xxxldpi"
|
||||
]
|
||||
},
|
||||
"uniqueItems": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"countryCode": {
|
||||
"description": "This label indicates the country code to be distributed to the application. The specific value is subject to the ISO-3166 -1 standard. Multiple country and region enumeration definitions are supported. This field is optional. If this field is configured, the value must be valid. The tag value is a string array. The substring indicates the supported country or region and consists of two uppercase letters.",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"policy",
|
||||
"value"
|
||||
],
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"policy",
|
||||
"value"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"policy": {
|
||||
"description": "The policy tag indicates the list rule of the value of the sublabel. Either exclude or include can be used.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"include",
|
||||
"exclude"
|
||||
]
|
||||
},
|
||||
"value": {
|
||||
"description": "Indicates the value range of the sublabel.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"uniqueItems": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"distributionFilter": {
|
||||
"description": "Indicates the global configuration of an distribution filter.Make precise matching and use in the cloud distribution of th application market.",
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"screenShape",
|
||||
"screenWindow",
|
||||
"screenDensity",
|
||||
"countryCode"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"screenShape": {
|
||||
"description": "Indicates the shape of the screen, only supports for lightWearable devices, other devices are not recommended.",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"policy",
|
||||
"value"
|
||||
],
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"policy",
|
||||
"value"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"policy": {
|
||||
"description": "Indicates the rule of black and white list for the subtag.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"include",
|
||||
"exclude"
|
||||
]
|
||||
},
|
||||
"value": {
|
||||
"description": "Indicates the value range of the subtag.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"circle",
|
||||
"rect"
|
||||
]
|
||||
},
|
||||
"uniqueItems": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"screenWindow": {
|
||||
"description": "Indicates the windows's resolution in runtime",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"policy",
|
||||
"value"
|
||||
],
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"policy",
|
||||
"value"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"policy": {
|
||||
"description": "Indicates the rule of black and white list for the subtag",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"include"
|
||||
]
|
||||
},
|
||||
"value": {
|
||||
"description": "Indicates the value range of the subtag",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"pattern": "^([1-9][0-9]*)\\*([1-9][0-9]*)$"
|
||||
},
|
||||
"uniqueItems": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"screenDensity": {
|
||||
"description": "This label indicates the pixel density of the screen (dpi: Dots Per Inch). This field is optional. If this field is configured, the value must be valid. The tag value is a string array.",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"policy",
|
||||
"value"
|
||||
],
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"policy",
|
||||
"value"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"policy": {
|
||||
"description": "The policy tag indicates the list rule of the value of the sublabel. Either exclude or include can be used.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"include",
|
||||
"exclude"
|
||||
]
|
||||
},
|
||||
"value": {
|
||||
"description": "Indicates the value range of the sublabel.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"sdpi",
|
||||
"mdpi",
|
||||
"ldpi",
|
||||
"xldpi",
|
||||
"xxldpi",
|
||||
"xxxldpi"
|
||||
]
|
||||
},
|
||||
"uniqueItems": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"countryCode": {
|
||||
"description": "This label indicates the country code to be distributed to the application. The specific value is subject to the ISO-3166 -1 standard. Multiple country and region enumeration definitions are supported. This field is optional. If this field is configured, the value must be valid. The tag value is a string array. The substring indicates the supported country or region and consists of two uppercase letters.",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"policy",
|
||||
"value"
|
||||
],
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"policy",
|
||||
"value"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"policy": {
|
||||
"description": "The policy tag indicates the list rule of the value of the sublabel. Either exclude or include can be used.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"include",
|
||||
"exclude"
|
||||
]
|
||||
},
|
||||
"value": {
|
||||
"description": "Indicates the value range of the sublabel.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"uniqueItems": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
266
shell/modulecheck/forms.json
Executable file
266
shell/modulecheck/forms.json
Executable file
@ -0,0 +1,266 @@
|
||||
{
|
||||
"title": "JSON schema for forms.json",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": true,
|
||||
"required": [
|
||||
"forms"
|
||||
],
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"forms"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"forms": {
|
||||
"description": "This tag identifies the embedded card attribute of the capability. This tag is valid only when formsEnabled is set to true. This tag can be left blank by default.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"uniqueItems": true,
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"name",
|
||||
"displayName",
|
||||
"description",
|
||||
"src",
|
||||
"uiSyntax",
|
||||
"isDynamic",
|
||||
"transparencyEnabled",
|
||||
"window",
|
||||
"colorMode",
|
||||
"formConfigAbility",
|
||||
"formVisibleNotify",
|
||||
"isDefault",
|
||||
"updateEnabled",
|
||||
"scheduledUpdateTime",
|
||||
"updateDuration",
|
||||
"defaultDimension",
|
||||
"supportDimensions",
|
||||
"dataProxyEnabled",
|
||||
"metadata",
|
||||
"fontScaleFollowSystem",
|
||||
"supportShapes"
|
||||
]
|
||||
},
|
||||
"required": [
|
||||
"name",
|
||||
"isDefault",
|
||||
"supportDimensions",
|
||||
"defaultDimension",
|
||||
"updateEnabled"
|
||||
],
|
||||
"allOf": [
|
||||
{
|
||||
"if": {
|
||||
"properties": {
|
||||
"uiSyntax": {
|
||||
"const": "hml"
|
||||
}
|
||||
}
|
||||
},
|
||||
"then": {
|
||||
"properties": {
|
||||
"isDynamic": {
|
||||
"const": true
|
||||
},
|
||||
"transparencyEnabled": {
|
||||
"const": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "Indicates the name of the form class. The tag value is a string of up to 127 bytes. The tag cannot be default.",
|
||||
"type": "string",
|
||||
"maxLength": 127
|
||||
},
|
||||
"displayName" : {
|
||||
"description": "This tag identifies the display name of the form. The tag value can be a string indicating the display name content (a string of up to 30 bytes). This tag can be left blank by default.",
|
||||
"type": "string",
|
||||
"if": {
|
||||
"pattern": "^[$]string:[0-9a-zA-Z_.]+$"
|
||||
},
|
||||
"else": {
|
||||
"minLength": 1,
|
||||
"maxLength": 30
|
||||
}
|
||||
},
|
||||
"description": {
|
||||
"description": "This tag identifies the description of the form. The tag value can be a string indicating the description content (a string of up to 255 bytes. If the length exceeds 255 bytes, use the resource index mode) or the resource index of the description content to support multiple languages. This tag can be left blank by default.",
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 255
|
||||
},
|
||||
"isDefault": {
|
||||
"description": "Indicates whether the card is the default icon. The value is of the Boolean type. The value true indicates that the card is the default card, and the value false indicates that the card is not the default card. Each capability can have only one default card.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"colorMode": {
|
||||
"description": "This tag identifies the card hue. The value can be auto, dark, or light. dark indicates that the card supports the dark color mode, light indicates that the card does not support the dark color mode, and auto indicates that the card hue is the same as the system hue.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"auto",
|
||||
"dark",
|
||||
"light"
|
||||
],
|
||||
"default": "auto"
|
||||
},
|
||||
"supportDimensions": {
|
||||
"description": "This label identifies the card appearance specification. The value is \"1*2\", \" 2*2\", \"2*4\", \"4*4\", \"1*1\", \"6*4\" and cannot be default. At least one card specification must be specified when defining a card.",
|
||||
"type": "array",
|
||||
"uniqueItems": true,
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"1*2",
|
||||
"2*2",
|
||||
"2*4",
|
||||
"4*4",
|
||||
"1*1",
|
||||
"6*4"
|
||||
]
|
||||
}
|
||||
},
|
||||
"defaultDimension": {
|
||||
"description": "This label identifies the default appearance specifications of the card.",
|
||||
"type": "string",
|
||||
"uniqueItems": true,
|
||||
"enum": [
|
||||
"1*2",
|
||||
"2*2",
|
||||
"2*4",
|
||||
"4*4",
|
||||
"1*1",
|
||||
"6*4"
|
||||
]
|
||||
},
|
||||
"updateEnabled": {
|
||||
"description": "Indicates whether the card supports scheduled refresh. The value is of the Boolean type. true indicates that the card supports scheduled vertical refresh, and false indicates that the card does not support scheduled vertical refresh.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"scheduledUpdateTime": {
|
||||
"description": "Indicates the time when a card is refreshed at a fixed time. The value is counted in 24 hours, accurate to minute. This tag can be set to the default value.",
|
||||
"type": "string",
|
||||
"pattern": "^(([0-1][0-9])|([2][0-3]))[:]+([0-5][0-9])$"
|
||||
},
|
||||
"updateDuration": {
|
||||
"description": "This tag identifies the update frequency of the card. The unit is 30 minutes. The value is a multiple of 30. The maximum frequency of a card is refreshed every 30 minutes. You can select either refresh or refresh at a fixed point. If both are configured, the card is refreshed at a scheduled time. This label is an integer.",
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"dataProxyEnabled": {
|
||||
"description": "Indicates whether the card supports data proxy refresh. The value is of the Boolean type. true indicates that the card supports data proxy refresh, and false indicates that the card does not support data proxy refresh.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"metadata": {
|
||||
"description": "Indicates the metadata of the form.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"name",
|
||||
"value",
|
||||
"resource"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "Indicates the key of a data element. The value is a string with a maximum of 255 bytes.",
|
||||
"type": "string",
|
||||
"maxLength": 255
|
||||
},
|
||||
"value": {
|
||||
"description": "Indicates the value of a data element. The value is a string with a maximum of 255 bytes.",
|
||||
"type": "string",
|
||||
"maxLength": 255
|
||||
},
|
||||
"resource": {
|
||||
"description": "Indicates the resource of a data element.",
|
||||
"type": "string",
|
||||
"pattern": "^[$]profile:[0-9a-zA-Z_.]+|(?=.*[{])(?=.*[}])[0-9a-zA-Z_.{}]+$",
|
||||
"maxLength": 255
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"formConfigAbility": {
|
||||
"description": "Indicates the name of the facility or activity for card adjustment.",
|
||||
"type": "string",
|
||||
"maxLength": 127,
|
||||
"pattern": "^ability://(.*)$"
|
||||
},
|
||||
"formVisibleNotify": {
|
||||
"description": "This tag identifies whether the card is allowed to use card visibility notifications.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"src": {
|
||||
"description": "Indicates the src of form.",
|
||||
"type": "string"
|
||||
},
|
||||
"uiSyntax": {
|
||||
"description": "This tag identifies the ui syntax.",
|
||||
"type": "string",
|
||||
"default": "hml",
|
||||
"enum": [
|
||||
"hml",
|
||||
"arkts"
|
||||
]
|
||||
},
|
||||
"isDynamic": {
|
||||
"description": "This tag identifies whether the card is isDynamic.",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"transparencyEnabled": {
|
||||
"description": "This tag identifies whether the form can be set as a transparent background",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"fontScaleFollowSystem": {
|
||||
"description": "This tag identifies whether the form font scale can be set with system config",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"window": {
|
||||
"description": "Defines window-related configurations. This attribute is not supported by devices running the OHOS.",
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"designWidth",
|
||||
"autoDesignWidth"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"designWidth": {
|
||||
"description": "Indicates the baseline width for page design, in pixels. The size of an element is scaled by the actual device width. This label is an integer.",
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"autoDesignWidth": {
|
||||
"description": "Specifies whether to automatically calculate the baseline width for page design. If it is set to true, the designWidth attribute becomes invalid. The baseline width is calculated based on the device width and screen density.",
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"supportShapes": {
|
||||
"description": "This label identifies the card shape specification. The default value is \"rect\"",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"rect",
|
||||
"circle"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
160
shell/modulecheck/insightIntent.json
Executable file
160
shell/modulecheck/insightIntent.json
Executable file
@ -0,0 +1,160 @@
|
||||
{
|
||||
"title": "JSON schema for insight_intent.json",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"insightIntents"
|
||||
],
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"insightIntents"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"insightIntents": {
|
||||
"description": "Indicates the configuration of insightIntents.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"maxItems": 32,
|
||||
"uniqueItems": true,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"intentName",
|
||||
"domain",
|
||||
"intentVersion",
|
||||
"srcEntry",
|
||||
"uiAbility",
|
||||
"serviceExtension",
|
||||
"uiExtension",
|
||||
"form"
|
||||
]
|
||||
},
|
||||
"required": [
|
||||
"intentName",
|
||||
"domain",
|
||||
"intentVersion",
|
||||
"srcEntry"
|
||||
],
|
||||
"properties": {
|
||||
"intentName": {
|
||||
"description": "Indicates the name of insightIntent.It's also the intent interface to implement.",
|
||||
"type": "string",
|
||||
"pattern": "^[A-Z][a-zA-Z0-9]+$"
|
||||
},
|
||||
"domain": {
|
||||
"description": "Indicates the domain of insightIntent.",
|
||||
"type": "string"
|
||||
},
|
||||
"intentVersion": {
|
||||
"description": "Indicates the version of insightIntent.",
|
||||
"type": "string",
|
||||
"pattern": "^(\\d+\\.){2}\\d+$"
|
||||
},
|
||||
"srcEntry": {
|
||||
"description": "Indicates the js code path corresponding to the ability.",
|
||||
"type": "string",
|
||||
"maxLength": 127
|
||||
},
|
||||
"uiAbility": {
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"ability",
|
||||
"executeMode"
|
||||
]
|
||||
},
|
||||
"required": [
|
||||
"ability",
|
||||
"executeMode"
|
||||
],
|
||||
"properties": {
|
||||
"ability": {
|
||||
"description": "Indicates the name of the ability.",
|
||||
"type": "string",
|
||||
"pattern": "^[a-zA-Z][0-9a-zA-Z_.]+$",
|
||||
"maxLength": 127
|
||||
},
|
||||
"executeMode": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type":"string",
|
||||
"enum": [
|
||||
"background",
|
||||
"foreground"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"serviceExtension": {
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"ability"
|
||||
]
|
||||
},
|
||||
"required": [
|
||||
"ability"
|
||||
],
|
||||
"properties": {
|
||||
"ability": {
|
||||
"description": "Indicates the name of the ability.",
|
||||
"type": "string",
|
||||
"pattern": "^[a-zA-Z][0-9a-zA-Z_.]+$",
|
||||
"maxLength": 127
|
||||
}
|
||||
}
|
||||
},
|
||||
"uiExtension": {
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"ability"
|
||||
]
|
||||
},
|
||||
"required": [
|
||||
"ability"
|
||||
],
|
||||
"properties": {
|
||||
"ability": {
|
||||
"description": "Indicates the name of the ability.",
|
||||
"type": "string",
|
||||
"pattern": "^[a-zA-Z][0-9a-zA-Z_.]+$",
|
||||
"maxLength": 127
|
||||
}
|
||||
}
|
||||
},
|
||||
"form": {
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"ability",
|
||||
"formName"
|
||||
]
|
||||
},
|
||||
"required": [
|
||||
"ability",
|
||||
"formName"
|
||||
],
|
||||
"properties": {
|
||||
"ability": {
|
||||
"description": "Indicates the name of the ability.",
|
||||
"type": "string",
|
||||
"pattern": "^[a-zA-Z][0-9a-zA-Z_.]+$",
|
||||
"maxLength": 127
|
||||
},
|
||||
"formName": {
|
||||
"description": "Indicates the name of the form class. The tag value is a string of up to 127 bytes. The tag cannot be default.",
|
||||
"type": "string",
|
||||
"maxLength": 127
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
118
shell/modulecheck/menu.json
Executable file
118
shell/modulecheck/menu.json
Executable file
@ -0,0 +1,118 @@
|
||||
{
|
||||
"title": "JSON schema for menu.json",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": true,
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"fileContextMenu"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"fileContextMenu": {
|
||||
"description": "Indicates the name of the fileContextMenu.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"maxItems": 5,
|
||||
"uniqueItems": true,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"abilityName",
|
||||
"menuItem",
|
||||
"menuHandler",
|
||||
"menuContext"
|
||||
],
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"abilityName",
|
||||
"menuItem",
|
||||
"menuHandler",
|
||||
"menuContext"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"abilityName": {
|
||||
"description": "Indicates the name of the ability.",
|
||||
"type": "string",
|
||||
"pattern": "^[a-zA-Z][0-9a-zA-Z_.]*$",
|
||||
"maxLength": 255
|
||||
},
|
||||
"menuItem": {
|
||||
"description": "Indicates the name of the menuItem.",
|
||||
"type": "string",
|
||||
"maxLength": 255,
|
||||
"pattern": "^[$]string:[0-9a-zA-Z_.]+|(?=.*[{])(?=.*[}])[0-9a-zA-Z_.{}]+$"
|
||||
},
|
||||
"menuHandler": {
|
||||
"description": "Indicates the name of the menuHandler.",
|
||||
"type": "string",
|
||||
"pattern": "^[a-zA-Z][0-9a-zA-Z_.]*$",
|
||||
"maxLength": 255
|
||||
},
|
||||
"menuContext": {
|
||||
"description": "Indicates the name of the menuContext.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"uniqueItems": true,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"menuKind"
|
||||
],
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"menuKind",
|
||||
"menuRule",
|
||||
"fileSupportType",
|
||||
"fileNotSupportType"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"menuKind": {
|
||||
"description": "Indicates the name of the menuKind.",
|
||||
"type": "integer",
|
||||
"enum": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3
|
||||
]
|
||||
},
|
||||
"menuRule": {
|
||||
"description": "Indicates the name of the menuRule.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"single",
|
||||
"multi",
|
||||
"both"
|
||||
]
|
||||
},
|
||||
"fileSupportType": {
|
||||
"description": "Indicates the name of the fileSupportType.",
|
||||
"type": "array",
|
||||
"maxItems": 100,
|
||||
"items": {
|
||||
"type": "string",
|
||||
"pattern": "^\\.[a-zA-Z]+|\\*$",
|
||||
"maxLength": 20
|
||||
}
|
||||
},
|
||||
"fileNotSupportType": {
|
||||
"description": "Indicates the name of the fileNotSupportType.",
|
||||
"type": "array",
|
||||
"maxItems": 100,
|
||||
"items": {
|
||||
"type": "string",
|
||||
"pattern": "^\\.[a-zA-Z]+$",
|
||||
"maxLength": 20
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
1581
shell/modulecheck/module.json
Executable file
1581
shell/modulecheck/module.json
Executable file
File diff suppressed because it is too large
Load Diff
50
shell/modulecheck/pages.json
Executable file
50
shell/modulecheck/pages.json
Executable file
@ -0,0 +1,50 @@
|
||||
{
|
||||
"title": "JSON schema for pages.json",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": true,
|
||||
"required": [
|
||||
"src"
|
||||
],
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"src",
|
||||
"window"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"src": {
|
||||
"description": "Describes the route information about all pages in the JavaScript module, including the page path and page name. The value is an array, in which each element represents a page. The first element in the array represents the home page of the JavaScript FA.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"uniqueItems": true,
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"window": {
|
||||
"description": "Defines window-related configurations. This attribute is not supported by devices running the OHOS.",
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"designWidth",
|
||||
"autoDesignWidth"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"designWidth": {
|
||||
"description": "Indicates the baseline width for page design, in pixels. The size of an element is scaled by the actual device width. This label is an integer or resource string.",
|
||||
"type": [
|
||||
"integer",
|
||||
"string"
|
||||
],
|
||||
"minimum": 0
|
||||
},
|
||||
"autoDesignWidth": {
|
||||
"description": "Specifies whether to automatically calculate the baseline width for page design. If it is set to true, the designWidth attribute becomes invalid. The baseline width is calculated based on the device width and screen density.",
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
63
shell/modulecheck/routerMap.json
Executable file
63
shell/modulecheck/routerMap.json
Executable file
@ -0,0 +1,63 @@
|
||||
{
|
||||
"title": "JSON schema for routerMap.json",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"routerMap": {
|
||||
"description": "Indicates the router map",
|
||||
"type": "array",
|
||||
"maxItems": 512,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"uniqueItems": true,
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"name",
|
||||
"pageSourceFile",
|
||||
"buildFunction",
|
||||
"data",
|
||||
"customData"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "Indicates the name of the page that needs to be redirected",
|
||||
"type":"string",
|
||||
"maxLength": 1023
|
||||
},
|
||||
"pageSourceFile": {
|
||||
"description": "Indicates the file path of the current page within the module",
|
||||
"type": "string",
|
||||
"maxLength": 255
|
||||
},
|
||||
"buildFunction": {
|
||||
"description": "Indicates the name of the function @Builder decorated. The function describe UI of current page",
|
||||
"type": "string",
|
||||
"maxLength": 1023
|
||||
},
|
||||
"data": {
|
||||
"description": "Indicates the data, which can only be configured to accommodate custom data of string type.",
|
||||
"type": "object",
|
||||
"maxProperties": 128,
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"customData": {
|
||||
"description": "Indicates the custom data, which can be configured to accommodate any type of custom data.",
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"name",
|
||||
"pageSourceFile",
|
||||
"buildFunction"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"routerMap"
|
||||
]
|
||||
}
|
||||
96
shell/modulecheck/shortcuts.json
Executable file
96
shell/modulecheck/shortcuts.json
Executable file
@ -0,0 +1,96 @@
|
||||
{
|
||||
"title": "JSON schema for shortcuts.json",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": true,
|
||||
"required": [
|
||||
"shortcuts"
|
||||
],
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"shortcuts"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"shortcuts": {
|
||||
"description": "Indicates the shortcut information of the application. The value is an array, in which each element represents a shortcut object.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"shortcutId",
|
||||
"label",
|
||||
"icon",
|
||||
"wants"
|
||||
]
|
||||
},
|
||||
"required": [
|
||||
"shortcutId"
|
||||
],
|
||||
"properties": {
|
||||
"shortcutId": {
|
||||
"description": "Identifies a shortcut. The value is a string with a maximum of 63 bytes.",
|
||||
"type": "string",
|
||||
"maxLength": 63
|
||||
},
|
||||
"label": {
|
||||
"description": "Indicates the label of the shortcut, that is, the text description displayed by the shortcut. The value can be a string or a resource index to description. A string can contain a maximum of 63 bytes. If the value exceeds 63 bytes, use the resource index.",
|
||||
"type": "string",
|
||||
"maxLength": 255,
|
||||
"pattern": "^[$]string:[0-9a-zA-Z_.]+|(?=.*[{])(?=.*[}])[0-9a-zA-Z_.{}]+$"
|
||||
},
|
||||
"icon": {
|
||||
"description": "Indicates the icon of the shortcut. The value is the index to the resource file.",
|
||||
"type": "string",
|
||||
"pattern": "^[$]media:"
|
||||
},
|
||||
"wants": {
|
||||
"description": "Indicates the wants to which the shortcut points. The attribute consists of the targetClass and targetBundle sub-attributes.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"bundleName",
|
||||
"moduleName",
|
||||
"abilityName",
|
||||
"parameters"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"bundleName": {
|
||||
"description": "Indicates the application bundle name for the target ability of the shortcut.",
|
||||
"type": "string"
|
||||
},
|
||||
"moduleName": {
|
||||
"description": "Indicates the module name for the target ability of the shortcut.",
|
||||
"type": "string"
|
||||
},
|
||||
"abilityName": {
|
||||
"description": "Indicates the class name for the target ability of the shortcut.",
|
||||
"type": "string"
|
||||
},
|
||||
"parameters": {
|
||||
"description": "Indicates the parameters for the target ability of the shortcut.",
|
||||
"type": "object",
|
||||
"maxProperties": 1024,
|
||||
"propertyNames": {
|
||||
"pattern": "^[\\x00-\\x7F]+$",
|
||||
"maxLength": 1024
|
||||
},
|
||||
"additionalProperties": {
|
||||
"type": "string",
|
||||
"minLength": 0,
|
||||
"maxLength": 1024,
|
||||
"pattern": "^[\\x00-\\x7F]*$"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
10
shell/oh-uni-package.json
Executable file
10
shell/oh-uni-package.json
Executable file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"apiVersion": "13",
|
||||
"displayName": "Toolchains",
|
||||
"meta": {
|
||||
"metaVersion": "3.0.0"
|
||||
},
|
||||
"path": "toolchains",
|
||||
"releaseType": "Release",
|
||||
"version": "5.0.1.115"
|
||||
}
|
||||
BIN
shell/rawheap_translator
Executable file
BIN
shell/rawheap_translator
Executable file
Binary file not shown.
BIN
shell/restool
Executable file
BIN
shell/restool
Executable file
Binary file not shown.
BIN
shell/syscap_tool
Executable file
BIN
shell/syscap_tool
Executable file
Binary file not shown.
109
shell/syscapcheck/sysCapSchema.json
Executable file
109
shell/syscapcheck/sysCapSchema.json
Executable file
@ -0,0 +1,109 @@
|
||||
{
|
||||
"title": "JSON schema for syscap.json",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": true,
|
||||
"required": [
|
||||
"devices"
|
||||
],
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"devices",
|
||||
"development",
|
||||
"production"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"devices": {
|
||||
"description": "Basic system capability",
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"general",
|
||||
"custom"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"general": {
|
||||
"description": "core equipment",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"default",
|
||||
"tv",
|
||||
"tablet",
|
||||
"wearable",
|
||||
"liteWearable",
|
||||
"car",
|
||||
"smartVision",
|
||||
"router"
|
||||
]
|
||||
}
|
||||
},
|
||||
"custom": {
|
||||
"description": "N equipment",
|
||||
"type":"array",
|
||||
"items": {
|
||||
"maxProperties": 1,
|
||||
"minProperties": 1,
|
||||
"type": "object",
|
||||
"patternProperties": {
|
||||
".+": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"pattern": "^SystemCapability(?:\\.[a-zA-Z0-9]+)+$"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"development": {
|
||||
"description": "extra system capability",
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"addedSysCaps"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"addedSysCaps": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"pattern": "^SystemCapability(?:\\.[a-zA-Z0-9]+)+$"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"production": {
|
||||
"description": "generate RCPID",
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"enum": [
|
||||
"addedSysCaps",
|
||||
"removedSysCaps"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"addedSysCaps": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"pattern": "^SystemCapability(?:\\.[a-zA-Z0-9]+)+$"
|
||||
}
|
||||
},
|
||||
"removedSysCaps": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"pattern": "^SystemCapability(?:\\.[a-zA-Z0-9]+)+$"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
14
下载hilog.sh
Normal file
14
下载hilog.sh
Normal file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
TOOLCHAIN_PATH=./shell
|
||||
DOWNLOAD_PATH=../logs
|
||||
|
||||
hilog() {
|
||||
cd $TOOLCHAIN_PATH && \
|
||||
TIMESTAMP=$(date +%Y%m%d_%H%M%S) && \
|
||||
./hdc shell "tar -czvf /data/${TIMESTAMP}_log.tar.gz /data/log/" && \
|
||||
./hdc file recv /data/${TIMESTAMP}_log.tar.gz $DOWNLOAD_PATH && \
|
||||
./hdc shell "rm -rf /data/${TIMESTAMP}_log.tar.gz"
|
||||
}
|
||||
|
||||
hilog
|
||||
11
下载轨迹.sh
Normal file
11
下载轨迹.sh
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
TOOLCHAIN_PATH=./shell
|
||||
DOWNLOAD_PATH=../logs
|
||||
|
||||
logs() {
|
||||
cd $TOOLCHAIN_PATH && \
|
||||
./hdc file recv /mnt/hmdfs/100/account/device_view/local/files/duolun/logs $DOWNLOAD_PATH
|
||||
}
|
||||
|
||||
logs
|
||||
15
打开hilog.sh
Normal file
15
打开hilog.sh
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
TOOLCHAIN_PATH=./shell
|
||||
|
||||
open() {
|
||||
cd $TOOLCHAIN_PATH && \
|
||||
./hdc shell hilog -w stop && \
|
||||
./hdc shell hilog -r && \
|
||||
./hdc shell hilog -w start -l 100M -m none && \
|
||||
./hdc shell hilog -Q pidoff && \
|
||||
./hdc shell hilog -p off && \
|
||||
./hdc shell hilog -b D
|
||||
}
|
||||
|
||||
open
|
||||
BIN
退出后被拉起不依赖开机自启动/Launcher.hap
Normal file
BIN
退出后被拉起不依赖开机自启动/Launcher.hap
Normal file
Binary file not shown.
BIN
退出后被拉起不依赖开机自启动/Launcher_Settings.hap
Normal file
BIN
退出后被拉起不依赖开机自启动/Launcher_Settings.hap
Normal file
Binary file not shown.
17
退出后被拉起不依赖开机自启动/exchange_launcher.bat
Normal file
17
退出后被拉起不依赖开机自启动/exchange_launcher.bat
Normal file
@ -0,0 +1,17 @@
|
||||
@echo off
|
||||
set filepath=%cd%
|
||||
set hdc=hdc
|
||||
%hdc% shell mount -o remount,rw /
|
||||
|
||||
%hdc% shell rm -rf /data/*
|
||||
|
||||
%hdc% shell rm -rf /system/app/com.ohos.launcher/*
|
||||
%hdc% file send %filepath%\Launcher.hap /system/app/com.ohos.launcher
|
||||
%hdc% file send %filepath%\Launcher_Settings.hap /system/app/com.ohos.launcher
|
||||
|
||||
%hdc% shell sync
|
||||
|
||||
::%hdc% shell /system/bin/udevadm trigger
|
||||
|
||||
%hdc% shell reboot
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user