Compare commits

..

2 Commits

Author SHA1 Message Date
wangzhongjie
e29ce85c26 fix:更换hdc 2025-05-09 08:58:27 +08:00
wangzhongjie
bb3da09c0c fix:导入加密模型 2025-05-08 17:12:08 +08:00
30 changed files with 11887 additions and 1739 deletions

File diff suppressed because it is too large Load Diff

BIN
win/ark_disasm.exe Normal file → Executable file

Binary file not shown.

0
win/configcheck/configSchema_rich.json Normal file → Executable file
View File

BIN
win/diff.exe Normal file → Executable file

Binary file not shown.

BIN
win/glslang_validator.exe Normal file → Executable file

Binary file not shown.

BIN
win/hdc.exe Normal file → Executable file

Binary file not shown.

BIN
win/hnpcli.exe Normal file → Executable file

Binary file not shown.

File diff suppressed because it is too large Load Diff

BIN
win/idl.exe Normal file → Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
win/libusb_shared.dll Normal file → Executable file

Binary file not shown.

View File

@ -125,12 +125,14 @@
"2in1",
"GWPAsanEnabled",
"tsanEnabled",
"ubsanEnabled",
"appEnvironments",
"maxChildProcess",
"multiAppMode",
"hwasanEnabled",
"cloudFileSyncEnabled",
"configuration"
"configuration",
"assetAccessGroups"
]
}
},
@ -170,11 +172,13 @@
"2in1",
"GWPAsanEnabled",
"tsanEnabled",
"ubsanEnabled",
"appEnvironments",
"maxChildProcess",
"hwasanEnabled",
"cloudFileSyncEnabled",
"configuration"
"configuration",
"assetAccessGroups"
]
}
},
@ -188,12 +192,13 @@
},
"bundleType": {
"description": "Indicates the type of bundle",
"type":"string",
"type": "string",
"enum": [
"app",
"atomicService",
"shared",
"appService"
"appService",
"appPlugin"
]
},
"debug": {
@ -205,7 +210,7 @@
"description": "Indicates the label of the application.",
"type": "string",
"maxLength": 63,
"pattern": "^[$]string:[0-9a-zA-Z_.]+|(?=.*[{])(?=.*[}])[0-9a-zA-Z_.{}]+$"
"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.",
@ -368,6 +373,11 @@
"type": "boolean",
"default": false
},
"ubsanEnabled": {
"description": "Indicates whether to support ubsan.",
"type": "boolean",
"default": false
},
"appEnvironments": {
"description": "Indicates the environment value of app.",
"type": "array",
@ -454,7 +464,7 @@
"description": "Indicates whether to support hwasan.",
"type": "boolean",
"default": false
},
},
"cloudFileSyncEnabled": {
"description": "Indicates whether the application enables cloud file sync.",
"type": "boolean",
@ -465,9 +475,20 @@
"type": "string",
"pattern": "^[$]profile:[0-9a-zA-Z_.]+$",
"maxLength": 255
},
"assetAccessGroups": {
"description": "Indicates the asset access groups of the application.",
"type": "array",
"maxItems": 512,
"uniqueItems": true,
"items": {
"type": "string",
"maxLength": 127,
"minLength": 7,
"pattern": "^[a-zA-Z][0-9a-zA-Z_.]+$"
}
}
}
}
}
}

View File

@ -4,13 +4,13 @@
"type": "object",
"additionalProperties": false,
"required": [
"startupTasks",
"configEntry"
],
"propertyNames": {
"enum": [
"startupTasks",
"configEntry"
"configEntry",
"appPreloadHintStartupTasks"
]
},
"properties": {
@ -80,6 +80,61 @@
"description": "Indicates the js code path corresponding to the startup config.",
"type": "string",
"maxLength": 127
},
"appPreloadHintStartupTasks": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "object",
"propertyNames": {
"enum": [
"name",
"srcEntry",
"dependencies",
"excludeFromAutoStart",
"runOnThread"
]
},
"required": [
"name",
"srcEntry",
"runOnThread"
],
"properties": {
"name": {
"description": "Indicates the name of the preload task.",
"type": "string",
"pattern": "^[a-zA-Z][0-9a-zA-Z_.]+$",
"maxLength": 127
},
"srcEntry": {
"description": "Indicates the js code path corresponding to the preload task.",
"type": "string",
"maxLength": 127
},
"dependencies": {
"description": "Indicates the dependencies of the preload task.",
"type": "array",
"uniqueItems": true,
"items": {
"type": "string"
},
"default": []
},
"excludeFromAutoStart": {
"description": "Indicates whether the preload task is excluded from automatic start.",
"type": "boolean",
"default": false
},
"runOnThread": {
"description": "Indicates the running thread, preload task runs only on child thread.",
"type": "string",
"enum": [
"taskPool"
]
}
}
}
}
}
}

View File

@ -0,0 +1,137 @@
{
"title": "JSON schema for appStartup_inner.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"propertyNames": {
"enum": [
"startupTasks",
"appPreloadHintStartupTasks"
]
},
"properties": {
"startupTasks": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "object",
"propertyNames": {
"enum": [
"name",
"srcEntry",
"dependencies",
"excludeFromAutoStart",
"runOnThread",
"waitOnMainThread"
]
},
"required": [
"name",
"srcEntry",
"excludeFromAutoStart"
],
"properties": {
"name": {
"description": "Indicates the name of the har/hsp startup task.",
"type": "string",
"pattern": "^[a-zA-Z][0-9a-zA-Z_.]+$",
"maxLength": 127
},
"srcEntry": {
"description": "Indicates the js code path corresponding to the har/hsp startup task.",
"type": "string",
"maxLength": 127
},
"dependencies": {
"description": "Indicates the dependencies of the har/hsp startup task.",
"type": "array",
"uniqueItems": true,
"items": {
"type": "string"
},
"default": []
},
"excludeFromAutoStart": {
"description": "Har/hsp startup task does not support automatic start, excludeFromAutoStart can only be set to true.",
"type": "boolean",
"enum": [
true
]
},
"runOnThread": {
"description": "Indicates the running thread of the har/hsp startup task.",
"type": "string",
"enum": [
"mainThread",
"taskPool"
],
"default": "mainThread"
},
"waitOnMainThread": {
"description": "Indicates whether the har/hsp startup task block the main thread.",
"type": "boolean",
"default": true
}
}
}
},
"appPreloadHintStartupTasks": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "object",
"propertyNames": {
"enum": [
"name",
"srcEntry",
"dependencies",
"excludeFromAutoStart",
"runOnThread"
]
},
"required": [
"name",
"srcEntry",
"excludeFromAutoStart",
"runOnThread"
],
"properties": {
"name": {
"description": "Indicates the name of the har/hsp preload task.",
"type": "string",
"pattern": "^[a-zA-Z][0-9a-zA-Z_.]+$",
"maxLength": 127
},
"srcEntry": {
"description": "Indicates the js code path corresponding to the har/hsp preload task.",
"type": "string",
"maxLength": 127
},
"dependencies": {
"description": "Indicates the dependencies of the har/hsp preload task.",
"type": "array",
"uniqueItems": true,
"items": {
"type": "string"
},
"default": []
},
"excludeFromAutoStart": {
"description": "Har/hsp preload task does not support automatic start, excludeFromAutoStart can only be set to true.",
"type": "boolean",
"enum": [
true
]
},
"runOnThread": {
"description": "Indicates the running thread, preload task runs only on child thread.",
"type": "string",
"enum": [
"taskPool"
]
}
}
}
}
}
}

View File

@ -26,7 +26,8 @@
"name",
"permission",
"types",
"events"
"events",
"filter"
]
},
"properties": {
@ -55,6 +56,57 @@
"items": {
"type": "string"
}
},
"filter": {
"description": "This tag identifies the custom filter criteria that can be accepted.",
"type": "array",
"uniqueItems": true,
"items": {
"type": "object",
"required": [
"event",
"conditions"
],
"propertyNames": {
"enum": [
"event",
"conditions"
]
},
"properties": {
"event": {
"description": "This tag identifies the event value that can be filtered.",
"type": "string",
"maxLength": 64
},
"conditions": {
"description": "This tag identifies the conditions under which events can be filtered.",
"type": "object",
"propertyNames": {
"enum": [
"code",
"data",
"parameters"
]
},
"properties": {
"code": {
"description": "This label represents the code that needs to be filtered.",
"type": "integer"
},
"data": {
"description": "This label represents the data that needs to be filtered.",
"type": "string",
"maxLength": 128
},
"parameters": {
"description": "This label represents the parameters that needs to be filtered.",
"type": "object"
}
}
}
}
}
}
}
}

View File

@ -34,13 +34,18 @@
"isDefault",
"updateEnabled",
"scheduledUpdateTime",
"multiScheduledUpdateTime",
"updateDuration",
"defaultDimension",
"supportDimensions",
"dataProxyEnabled",
"metadata",
"conditionUpdate",
"fontScaleFollowSystem",
"supportShapes"
"supportShapes",
"previewImages",
"renderingMode",
"enableBlurBackground"
]
},
"required": [
@ -109,7 +114,7 @@
"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.",
"description": "This label identifies the card appearance specification. The value is \"1*2\", \" 2*2\", \"2*4\", \"4*4\", \"1*1\", \"6*4\", \"2*3\", \"3*3\" and cannot be default. \"2*3\", \"3*3\" used for wearable devices and \"3*4\" used for tv devices. At least one card specification must be specified when defining a card.",
"type": "array",
"uniqueItems": true,
"items": {
@ -120,12 +125,15 @@
"2*4",
"4*4",
"1*1",
"6*4"
"6*4",
"2*3",
"3*3",
"3*4"
]
}
},
"defaultDimension": {
"description": "This label identifies the default appearance specifications of the card.",
"description": "This label identifies the default appearance specifications of the card. \"2*3\", \"3*3\" used for wearable devices and \"3*4\" used for tv devices.",
"type": "string",
"uniqueItems": true,
"enum": [
@ -134,7 +142,10 @@
"2*4",
"4*4",
"1*1",
"6*4"
"6*4",
"2*3",
"3*3",
"3*4"
]
},
"updateEnabled": {
@ -146,6 +157,12 @@
"type": "string",
"pattern": "^(([0-1][0-9])|([2][0-3]))[:]+([0-5][0-9])$"
},
"multiScheduledUpdateTime": {
"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",
"maxLength": 145,
"pattern": "^(?:([01][0-9]|2[0-3]):([0-5][0-9]))(?:,(?:([01][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",
@ -188,6 +205,26 @@
}
}
},
"conditionUpdate": {
"description": "This label identifies the card update by condition.",
"type": "array",
"items": {
"type": "string",
"enum": [
"network"
]
}
},
"renderingMode": {
"description": "Indicates the renderingMode of card.",
"type": "string",
"enum": [
"autoColor",
"fullColor",
"singleColor"
],
"default": "fullColor"
},
"formConfigAbility": {
"description": "Indicates the name of the facility or activity for card adjustment.",
"type": "string",
@ -258,6 +295,19 @@
"circle"
]
}
},
"previewImages": {
"description": "This label indicates that the form previewImages map corresponds to the \"supportShapes\".",
"type": "array",
"items": {
"type": "string",
"pattern": "^[$]media:[0-9a-zA-Z_.]+|(?=.*[{])(?=.*[}])[0-9a-zA-Z_.{}]$"
}
},
"enableBlurBackground": {
"description": "This label indicates whether the form uses blur background.",
"type": "boolean",
"default": false
}
}
}

View File

@ -16,7 +16,7 @@
"description": "Indicates the configuration of insightIntents.",
"type": "array",
"minItems": 1,
"maxItems": 32,
"maxItems": 128,
"uniqueItems": true,
"items": {
"type": "object",
@ -29,7 +29,14 @@
"uiAbility",
"serviceExtension",
"uiExtension",
"form"
"form",
"displayName",
"displayDescription",
"icon",
"keywords",
"inputParams",
"outputParams",
"entities"
]
},
"required": [
@ -80,11 +87,11 @@
"executeMode": {
"type": "array",
"items": {
"type":"string",
"enum": [
"background",
"foreground"
]
"type": "string",
"enum": [
"background",
"foreground"
]
}
}
}
@ -152,6 +159,43 @@
"maxLength": 127
}
}
},
"displayName": {
"description": "Indicates the display name of insightIntent.",
"type": "string"
},
"displayDescription": {
"description": "Indicates the display description of insightIntent.",
"type": "string"
},
"icon": {
"description": "Indicates the display icon of insightIntent.",
"type": "string"
},
"keywords": {
"description": "Indicates the keywords of insightIntent.",
"type": "array",
"items": {
"type": "string"
}
},
"inputParams": {
"description": "Indicates the input params of insightIntent.",
"type": "array",
"items": {
"type": "object"
}
},
"outputParams": {
"description": "Indicates the output params of insightIntent.",
"type": "array",
"items": {
"type": "object"
}
},
"entities": {
"description": "Indicates the entities of insightIntent.",
"type": "object"
}
}
}

View File

@ -29,21 +29,29 @@
"enum": [
"name",
"type",
"srcEntry",
"abilitySrcEntryDelegator",
"abilityStageSrcEntryDelegator",
"description",
"deliveryWithInstall",
"deviceTypes",
"deviceFeatures",
"pages",
"metadata",
"abilities",
"extensionAbilities",
"requestPermissions",
"dependencies",
"libIsolation",
"compressNativeLibs",
"extractNativeLibs",
"installationFree",
"atomicService",
"targetModuleName",
"targetPriority",
"generateBuildHash",
"routerMap"
"routerMap",
"appStartup"
]
},
"required": [
@ -73,6 +81,7 @@
"process",
"mainElement",
"deviceTypes",
"deviceFeatures",
"installationFree",
"virtualMachine",
"uiSyntax",
@ -84,7 +93,8 @@
"testRunner",
"dependencies",
"libIsolation",
"routerMap"
"routerMap",
"appStartup"
]
},
"required": [
@ -109,15 +119,19 @@
"type",
"srcEntrance",
"srcEntry",
"abilitySrcEntryDelegator",
"abilityStageSrcEntryDelegator",
"description",
"process",
"mainElement",
"deviceTypes",
"deviceFeatures",
"deliveryWithInstall",
"installationFree",
"virtualMachine",
"uiSyntax",
"pages",
"systemTheme",
"metadata",
"abilities",
"extensionAbilities",
@ -127,6 +141,7 @@
"dependencies",
"libIsolation",
"compressNativeLibs",
"extractNativeLibs",
"atomicService",
"generateBuildHash",
"isolationMode",
@ -162,10 +177,13 @@
"type",
"srcEntrance",
"srcEntry",
"abilitySrcEntryDelegator",
"abilityStageSrcEntryDelegator",
"description",
"process",
"mainElement",
"deviceTypes",
"deviceFeatures",
"deliveryWithInstall",
"installationFree",
"virtualMachine",
@ -180,6 +198,7 @@
"dependencies",
"libIsolation",
"compressNativeLibs",
"extractNativeLibs",
"atomicService",
"generateBuildHash",
"isolationMode",
@ -225,6 +244,18 @@
"type": "string",
"maxLength": 127
},
"abilitySrcEntryDelegator": {
"description": "This tag indicates the delegator for Ability",
"type": "string",
"pattern": "^[a-zA-Z][0-9a-zA-Z_.]*$",
"maxLength": 127
},
"abilityStageSrcEntryDelegator": {
"description": "This tag indicates the delegator for AbilityStage",
"type": "string",
"pattern": "^[a-zA-Z][0-9a-zA-Z_.]*$",
"maxLength": 128
},
"description": {
"description": "Indicates the description of the current .hap file.",
"type": "string",
@ -256,6 +287,19 @@
]
}
},
"deviceFeatures": {
"description": "Declarable device capabilities required by the application.",
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"enum": [
"multi_process",
"free_multi_window",
"directory_permission"
]
}
},
"deliveryWithInstall": {
"description": "Specifies whether the .hap file is installed when the user installs the application.true: The .hap file is installed during the application installation.false: The .hap file is not installed during the application installation.This label cannot be left blank.",
"type": "boolean"
@ -289,6 +333,12 @@
"pattern": "^[$]profile:[0-9a-zA-Z_.]+$",
"maxLength": 255
},
"systemTheme": {
"description": "Indicates the system theme of the module. The value is the index to the theme config file.",
"type": "string",
"pattern": "^[$]profile:theme_config[0-9a-zA-Z_.]*$",
"maxLength": 255
},
"metadata": {
"description": "Indicates the metadata of the module.",
"type": "array",
@ -350,6 +400,7 @@
"skills",
"backgroundModes",
"continuable",
"startWindow",
"startWindowIcon",
"startWindowBackground",
"removeMissionAfterTerminate",
@ -368,7 +419,8 @@
"preferMultiWindowOrientation",
"isolationProcess",
"continueType",
"continueBundleName"
"continueBundleName",
"process"
]
},
"properties": {
@ -633,6 +685,12 @@
"description": "Identifies whether the ability can be migrated. The default value is false.",
"type": "boolean"
},
"startWindow": {
"description": "Indicates the startup page configuration. The value is the index to the resource file.",
"type": "string",
"pattern": "^[$]profile:[0-9a-zA-Z_.]+$",
"maxLength": 255
},
"startWindowIcon": {
"description": "Indicates the icon of the startup page. The value is the index to the resource file.",
"type": "string",
@ -780,6 +838,12 @@
"maxLength": 128,
"minLength": 7
}
},
"process": {
"description": "Running process tag the ability.",
"type": "string",
"maxLength": 31,
"pattern": "^[:][0-9a-zA-Z_]+$"
}
}
}
@ -789,73 +853,113 @@
"type": "array",
"items": {
"type": "object",
"if": {
"properties": {
"type": {
"const": "dataShare"
}
}
},
"then": {
"oneOf": [
{
"required": [
"name",
"srcEntrance",
"type",
"uri"
"allOf": [
{
"if": {
"properties": {
"type": {
"const": "dataShare"
}
}
},
"then": {
"oneOf": [
{
"required": [
"name",
"srcEntrance",
"type",
"uri"
]
},
{
"required": [
"name",
"srcEntry",
"type",
"uri"
]
}
]
},
{
"required": [
"name",
"srcEntry",
"type",
"uri"
"else": {
"oneOf": [
{
"required": [
"name",
"srcEntrance",
"type"
]
},
{
"required": [
"name",
"srcEntry",
"type"
]
}
]
}
]
},
"else": {
"oneOf": [
{
"required": [
"name",
"srcEntrance",
"type"
]
},
{
"if": {
"properties": {
"type": {
"const": "embeddedUI"
}
}
},
{
"required": [
"name",
"srcEntry",
"type"
]
"then": {
"propertyNames": {
"enum": [
"priority",
"name",
"srcEntrance",
"srcEntry",
"icon",
"label",
"description",
"type",
"permissions",
"uri",
"readPermission",
"writePermission",
"visible",
"exported",
"skills",
"metadata",
"extensionProcessMode",
"dataGroupIds",
"process"
]
}
},
"else": {
"propertyNames": {
"enum": [
"priority",
"name",
"srcEntrance",
"srcEntry",
"icon",
"label",
"description",
"type",
"permissions",
"uri",
"readPermission",
"writePermission",
"visible",
"exported",
"skills",
"metadata",
"extensionProcessMode",
"dataGroupIds"
]
}
}
}
]
},
"propertyNames": {
"enum": [
"priority",
"name",
"srcEntrance",
"srcEntry",
"icon",
"label",
"description",
"type",
"permissions",
"uri",
"readPermission",
"writePermission",
"visible",
"exported",
"skills",
"metadata",
"extensionProcessMode",
"dataGroupIds"
]
},
],
"properties": {
"priority": {
"description": "Indicates the priority of the ability.Only for system application.This field is used for implicit query.Range from 0 to 10, default value is 0.",
@ -927,6 +1031,7 @@
"hms/account",
"appAccountAuthorization",
"ads",
"fence",
"remoteNotification",
"remoteLocation",
"voip",
@ -956,7 +1061,15 @@
"sysPicker/filePicker",
"sysPicker/audioPicker",
"sys/visualExtension",
"recentPhoto"
"uiService",
"recentPhoto",
"callerInfoQuery",
"assetAcceleration",
"formEdit",
"distributed",
"awc/webpage",
"awc/newsfeed",
"vpn"
]
},
"permissions": {
@ -1150,16 +1263,6 @@
}
}
},
"extensionProcessMode": {
"description": "Indicates the extension support multi instance model.",
"type": "string",
"enum": [
"instance",
"type",
"bundle"
],
"default": "bundle"
},
"dataGroupIds": {
"description": "Indicates the data group IDs associated with the extension ability.",
"type": "array",
@ -1170,6 +1273,48 @@
"maxLength": 1024,
"pattern": "^[\\x00-\\x7F]*$"
}
},
"process": {
"description": "Running process tag the extension ability.",
"type": "string",
"maxLength": 31,
"pattern": "^[:][0-9a-zA-Z_]+$"
}
},
"if": {
"properties": {
"type": {
"const": "statusBarView"
}
}
},
"then": {
"properties": {
"extensionProcessMode": {
"description": "Indicates the extension support multi instance model.",
"type": "string",
"enum": [
"instance",
"type",
"bundle",
"runWithMainProcess"
],
"default": "bundle"
}
}
},
"else": {
"properties": {
"extensionProcessMode": {
"description": "Indicates the extension support multi instance model.",
"type": "string",
"enum": [
"instance",
"type",
"bundle"
],
"default": "bundle"
}
}
}
}
@ -1369,6 +1514,11 @@
"type": "boolean",
"default": false
},
"extractNativeLibs": {
"description": "Specifies whether to extract native libraries (so) of the .hap file during installation.",
"type": "boolean",
"default": true
},
"atomicService": {
"description": "Indicates the module config in atomic service.",
"type": "object",

View File

@ -0,0 +1,64 @@
{
"title": "JSON schema for startWindow.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": true,
"required": [
"startWindowBackgroundColor"
],
"propertyNames": {
"enum": [
"startWindowAppIcon",
"startWindowIllustration",
"startWindowBrandingImage",
"startWindowBackgroundColor",
"startWindowBackgroundImage",
"startWindowBackgroundImageFit"
]
},
"properties": {
"startWindowAppIcon": {
"description": "Indicates the app icon of the startup page. The value is the index to the resource file.",
"type": "string",
"pattern": "^[$]media:[0-9a-zA-Z_.]+|(?=.*[{])(?=.*[}])[0-9a-zA-Z_.{}]+$",
"maxLength": 255
},
"startWindowIllustration": {
"description": "Indicates the illustration of the startup page. The value is the index to the resource file.",
"type": "string",
"pattern": "^[$]media:[0-9a-zA-Z_.]+|(?=.*[{])(?=.*[}])[0-9a-zA-Z_.{}]+$",
"maxLength": 255
},
"startWindowBrandingImage": {
"description": "Indicates the branding image the startup page. The value is the index to the resource file.",
"type": "string",
"pattern": "^[$]media:[0-9a-zA-Z_.]+|(?=.*[{])(?=.*[}])[0-9a-zA-Z_.{}]+$",
"maxLength": 255
},
"startWindowBackgroundColor": {
"description": "Indicates the background color the startup page. The value is the index to the resource file.",
"type": "string",
"pattern": "^[$]color:[0-9a-zA-Z_.]+|(?=.*[{])(?=.*[}])[0-9a-zA-Z_.{}]+$",
"maxLength": 255
},
"startWindowBackgroundImage": {
"description": "Indicates the background image the startup page. The value is the index to the resource file.",
"type": "string",
"pattern": "^[$]media:[0-9a-zA-Z_.]+|(?=.*[{])(?=.*[}])[0-9a-zA-Z_.{}]+$",
"maxLength": 255
},
"startWindowBackgroundImageFit": {
"description": "Indicates the background fit the startup page. The value is the string",
"type": "string",
"enum": [
"Contain",
"Cover",
"Auto",
"Fill",
"ScaleDown",
"None"
],
"default": "Cover"
}
}
}

View File

@ -0,0 +1,23 @@
{
"title": "JSON schema for theme-config.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": true,
"required": [
"systemTheme"
],
"propertyNames": {
"enum": [
"systemTheme"
]
},
"properties": {
"systemTheme": {
"description": "Indicates the system theme of the module.",
"type": "string",
"enum": [
"$ohos:theme:ohos_theme"
]
}
}
}

View File

@ -1,10 +1,10 @@
{
"apiVersion": "13",
"apiVersion": "19",
"displayName": "Toolchains",
"meta": {
"metaVersion": "3.0.0"
},
"path": "toolchains",
"releaseType": "Release",
"version": "5.0.1.115"
"releaseType": "Beta1",
"version": "5.1.0.63"
}

BIN
win/rawheap_translator.exe Normal file → Executable file

Binary file not shown.

BIN
win/restool.exe Normal file → Executable file

Binary file not shown.

BIN
win/spirv-remap.exe Normal file → Executable file

Binary file not shown.

BIN
win/syscap_tool.exe Normal file → Executable file

Binary file not shown.

View File

@ -4,9 +4,9 @@ set DOWNLOAD_PATH=..\scan
cd %TOOLCHAIN_PATH%
.\hdc.exe shell mount -o remount,rw /
.\hdc.exe file send %DOWNLOAD_PATH%/libmedia_library.z.so /system/lib/platformsdk/libmedia_library.z.so
.\hdc.exe file send %DOWNLOAD_PATH%/libmedialibrary_data_extension.z.so /system/lib/libmedialibrary_data_extension.z.so
.\hdc.exe file send %DOWNLOAD_PATH%/libmedialibrary_data_extension.z.so /data/app/el1/bundle/public/com.ohos.medialibrary.medialibrarydata/libs/arm/libmedialibrary_data_extension.z.so
.\hdc.exe file send %DOWNLOAD_PATH%/libmedia_library.z.so /system/lib/platformsdk/
.\hdc.exe file send %DOWNLOAD_PATH%/libmedialibrary_data_extension.z.so /system/lib/
.\hdc.exe file send %DOWNLOAD_PATH%/libmedialibrary_data_extension.z.so /data/app/el1/bundle/public/com.ohos.medialibrary.medialibrarydata/libs/arm/
.\hdc.exe shell reboot
echo "all success"
pause

7
进入刷机模式.bat Normal file
View File

@ -0,0 +1,7 @@
@echo off
set TOOLCHAIN_PATH=.\win
cd %TOOLCHAIN_PATH%
.\hdc.exe shell reboot bootloader
echo "all success"
pause