openharmony 鸿蒙 unpacking-tool

2023-02-03 浏览 (826)

Unpacking Tool

The unpacking tool is a commissioning tool used to unpack HAP (an application package), HSP (dynamically shared library), and APP (application set to launch to the application market) files. It also provides Java APIs to parse the HAP, HSP, and APP files.

The app_unpacking_tool.jar package can be found in the OpenHarmony SDK downloaded locally.

Constraints

The unpacking tool must run in Java 8 or later.

Unpacking Commands

Unpacking Commands for HAP Files

You can use the JAR package of the unpacking tool to unpack an HAP file by importing unpacking options and file paths.

Example

java -jar app_unpacking_tool.jar --mode hap --hap-path <path> --out-path <path> [--force true]

Parameters

NameMandatoryOptionDescription
--modeYeshapUnpacking mode.
--hap-pathYesNAPath of the HAP file.
--rpcidNotrue or falseWhether to extract the rpcid file from the HAP file to a specified directory. If the value is true, only the rpcid file is extracted and the HAP file is not unpacked.
--out-pathYesNAPath of the target files.
--forceNotrue or falseThe default value is false. If the value is true, an existing target file will be forcibly deleted during unpacking.

Unpacking Commands for APP Files

You can use the JAR package of the unpacking tool to unpack an APP file by importing unpacking options and file paths.

Example

java -jar app_unpacking_tool.jar --mode app --app-path <path> --out-path <path> [--force true]

Parameters

NameMandatoryOptionDescription
--modeYesappUnpacking mode.
--app-pathYesNAPath of the APP file.
--out-pathYesNAPath of the target files.
--forceNotrue or falseThe default value is false. If the value is true, an existing target file will be forcibly deleted during unpacking.

Obtaining the rpcid File from the HAP File

You can use the JAR package of the unpacking tool to unpack an HAP file to obtain the rpcid file by importing unpacking options and file paths.

Example

java -jar app_unpacking_tool.jar --mode hap --rpcid true --hap-path <path> --out-path <path> [--force true]

Parameters

NameMandatoryOptionDescription
--modeYeshapUnpacking mode.
--rpcidNotrue or falseWhether to extract the rpcid file from the HAP file to a specified directory. If the value is true, only the rpcid file is extracted and the HAP file is not unpacked.
--hap-pathYesNAPath of the HAP file.
--out-pathYesNAPath of the target rpcid file.
--forceNotrue or falseThe default value is false. If the value is true, an existing target file will be forcibly deleted during unpacking.

Unpacking HAP Files Based on the Architecture Type

You can use the unpacking tool to unpack HAP files based on the architecture type of libs and then pack multiple HAP files that contain only single-architecture type libraries.

Example

java -jar app_unpacking_tool.jar --mode hap --hap-path <path> --out-path <path> [--force true] [--libs true] [--cpu-abis option]

Parameters

NameMandatoryOptionDescription
--modeYeshapUnpacking mode.
--hap-pathYesNAPath of the HAP file.
--out-pathYesNAPath of the target files.
--forceNotrue or falseThe default value is false. If the value is true, an existing target file will be forcibly deleted during unpacking.
--libsNotrue or falseWhether to unpack HAP files based on the architecture type of the libs directory. The value true indicates that HAP files are unpacked based on the architecture type.
--cpu-abisNoNASpecifies the architecture type of the libs to be unpacked. You can specify multiple architecture types and use commas (,) to separate them. This parameter does not take effect when --libs is set to false.

Unpacking Commands for HSP Files

You can use the JAR package of the unpacking tool to unpack an HSP file by importing unpacking options and file paths.

Example

java -jar app_unpacking_tool.jar --mode hsp --hsp-path <path> --out-path <path> [--force true]

Parameters

NameMandatoryOptionDescription
--modeYeshspUnpacking mode.
--hsp-pathYesNAPath of the HSP file.
--out-pathYesNAPath of the target files.
--forceNotrue or falseThe default value is false. If the value is true, an existing target file will be forcibly deleted during unpacking.

Unpacking HSP Files Based on the Architecture Type

You can use the unpacking tool to unpack HSP files based on the architecture type of libs and then pack multiple HSP files that contain only single-architecture type libraries.

Example

java -jar app_unpacking_tool.jar --mode hsp --hsp-path <path> --out-path <path> [--force true] [--libs true] [--cpu-abis option]

Parameters

NameMandatoryOptionDescription
--modeYeshspUnpacking mode.
--hsp-pathYesNAPath of the HSP file.
--out-pathYesNAPath of the target files.
--forceNotrue or falseThe default value is false. If the value is true, an existing target file will be forcibly deleted during unpacking.
--libsNotrue or falseWhether to unpack HAP files based on the architecture type of the libs directory. The value true indicates that HAP files are unpacked based on the architecture type.
--cpu-abisNoNASpecifies the architecture type of the libs to be unpacked. You can specify multiple architecture types and use commas (,) to separate them. This parameter does not take effect when --libs is set to false.

Unpacking Commands for APPQF Files

You can use the JAR package of the unpacking tool to unpack an APPQF file by importing unpacking options and file paths.

Example

java -jar app_unpacking_tool.jar --mode appqf --appqf-path <path> --out-path <path> [--force true]

Parameters

NameMandatoryOptionDescription
--modeYesappqfUnpacking mode.
--appqf-pathYesNAPath of the APPQF file.
--out-pathYesNAPath of the target files.
--forceNotrue or falseThe default value is false. If the value is true, an existing target file will be forcibly deleted during unpacking.

Package Parsing APIs

The package parsing APIs are used by the application market to parse an HAP, HSP, or APP file and obtain information such as the configuration file.

Available APIs

ClassPrototypeTypeDescription
UncompressEntranceUncompressResult parseApp(String appPath,String parseMode,String deviceType,String hapName)JavaFunction: Parses pack.info in the APP file.
Input parameters: appPath, which specifies the path of the APP file.
Return value: UncompressResult.
UncompressEntranceUncompressResult parseApp(InputStream input,String parseMode,String deviceType,String hapName,String outPath)JavaFunction: Parses pack.info in the APP file.
Input parameters: input, which specifies the stream of the APP file.
Return value: UncompressResult.
UncompressEntranceUncompressResult parseHap(String hapPath)JavaFunction: Parses the JSON file in the APP file.
Input parameters: hapPath, which specifies the path of the HAP file.
Return value: UncompressResult.
UncompressEntranceUncompressResult parseHap(InputStream input)JavaFunction: Parses the JSON file in the APP file.
Input parameters: input, which specifies the stream of the HAP file.
Return value: UncompressResult.

Fields of the Unpacking Tool

UncompressResult (Bundle Information) Struct

FieldTypeDescriptionRemarks
resultbooleanWhether the parsing is successful.NA
messageStringFailure cause returned if the parsing fails.NA
packInfosList<PackInfo>Information about packages in the pack.info file of the bundle.NA
profileInfosList<profileInfo>Configuration information of the application.NA
profileInfosStrList<String>Configuration information of the application.NA
iconStringPath of the icon of the entry component. If there is no entry component, the icon path of the first component is returned.NA
labelStringLabel of the entry component. If there is no entry component, the label of the first component is returned.NA
packageSizelongSize of the APP file, in bytes.NA

PackInfo Struct

FieldTypeDescriptionRemarks
nameStringBundle name.NA
moduleNameStringHAP (module) name.NA
moduleTypeStringModule type.NA
deviceTypeList<String>Device type supported by the current HAP.NA
deliveryWithInstallbooleanWhether the HAP is installed when the user installs the application.NA

ProfileInfo Struct

FieldTypeDescriptionRemarks
hapNameStringName of the HAP file that is being parsed.NA
appInfoAppInfo struct (see AppInfo Struct below)Struct of the application information. For details, see AppInfo Struct below.NA
deviceConfigMap<String,DeviceConfig>Device information.The storage type is Map<String,String>, which indicates the device type name and device type value, respectively. In the stage model, this field is stored in the app struct.
hapInfoHapInfo struct (see HapInfo Struct below)Module information in the HAP file. For details, see HapInfo Struct below.NA

AppInfo Struct

FieldTypeDescriptionRemarks
bundleNameStringBundle name of the application.NA
vendorStringVendor of the application.NA
relatedBundleNameStringRelated bundle name of the application.NA
versionNameStringVersion name of the application.NA
versionCodeStringVersion code of the application.NA
targetApiVersionintTarget API version required for running the application.NA
compatibleApiVersionintAPI version compatible with the application.NA
appNameStringLabel of the ability displayed on the home screen.NA
appNameENStringLabel of the ability displayed on the home screen.NA
releaseTypeStringRelease type of the target API version required for running the application.NA
shellVersionCodeStringAPI version number of the application.NA
shellVersionNameStringAPI version name of the application.NA
multiFrameworkBundlebooleanApplication framework.NA
debugbooleanWhether the application can be debugged.NA
iconStringPath of the application icon.NA
labelStringLabel of the application.NA
descriptionStringDescription of the application.This field is newly added to the stage model.
minCompatibleVersionCodeintEarliest compatible version of the application.NA
distributedNotificationEnabledbooleanWhether the distributed notification feature is enabled for the application.This field is newly added to the stage model.
bundleTypeStringBundle type.
- app: The bundle is used for an application.
- atomicService: The bundle is used for an atomic service.
- shared: The bundle is used for a shared library.
NA
compileSdkVersionStringSDK version used for compiling the application.This field is valid only for API version 10 and later.
compileSdkTypeStringSDK type used for compiling the application.This field is valid only for API version 10 and later.
labelsHashMap<String, String>Labels of the application in multiple languages.NA
descriptionsHashMap<String, String>Descriptions of the application in multiple languages.NA

HapInfo Struct

FieldTypeDescriptionRemarks
appModelAppModel enumerated valueApplication framework model.
- FA: FA model
- STAGE: stage model
NA
packageStrStringPackage information about the application.This field is unique to the FA model.
nameStringName of the module.NA
descriptionStringDescription of the HAP.This field is unique to the FA model.
supportedModesList<String>Modes supported by the HAP.NA
abilitiesList<AbilityInfo>Ability information of the HAP file.NA
defPermissionsList<DefPermission>Default permissions of the HAP.NA
definePermissionsList<DefinePermission>Defined permissions of the HAP.NA
defPermissionsGroupsList<DefPermissionsGroups>Default permission groups of the HAP.NA
distroDistro structDistro description of the HAP file.NA
reqCapabilitiesList<String>Required capabilities of the HAP.NA
deviceTypeList<String>Type of devices on which the HAP can run.This field corresponds to deviceTypes in the stage model.
metaDatametaData struct (see metaData Struct below)Custom metadata of the HAP.NA
dependenciesList<DependencyItem>Dependencies of the HAP.NA
isJsbooleanWhether the application is a JS application.This field is unique to the FA model.
reqPermissionslist<ReqPermission>Permissions requested by the application.This field corresponds to requestPermissions in the stage model.
commonEventsCommonEvent struct (see CommonEvent Struct below)Static event.NA
shortcutslist<Shortcut>Shortcuts used by the application.NA
distroFilterDistroFilter structInformation distributed by the application market by device form.NA
srcEntranceStringEntry code path of the application.This field is newly added to the stage model.
processStringProcess name of the HAP.This field is newly added to the stage model.
mainElementStringEntry ability name or ExtensionAbility name of the HAP file.This field is newly added to the stage model. In the FA model, the value of mainAbility is automatically assigned to mainElement.
uiSyntaxStringSyntax type of a JS component.This field is newly added to the stage model.
pagesList<String>Information about each page in a JS component.This field is newly added to the stage model.
extensionAbilityInfosList<ExtensionAbilityInfo>Information about the ExtensionAbility.This field is newly added to the stage model.
moduleAtomicServiceModuleAtomicService struct (see ModuleAtomicService Struct below)Information about the atomic service in the HAP.NA
formInfosList<AbilityFormInfo>Widget information.NA
descriptionsHashMap<String, String>Description of the HAP.NA
compressedSizelongSize of the compressed HAP file, in bytes.NA
originalSizelongOriginal size of the HAP file, in bytes.NA

AbilityInfo Struct

FieldTypeDescriptionRemarks
nameStringLogical name of the ability.NA
descriptionStringDescription of the ability.NA
descriptionResStringDescription of the ability.NA
iconStringIcon of the ability.NA
iconPathStringPath of the ability icon.NA
labelStringAbility name visible to users.NA
labelResStringAbility name visible to users.NA
typeStringAbility type.In the stage model, the value is directly assigned to the page field.
formsEnabledbooleanWhether the widget is enabled for the ability.NA
formInfoFormInfo structWidget information.NA
uriStringURI of the ability.This field is supported only in the FA model.
launchTypeStringLauncher type of the ability.NA
orientationStringOrientation of the ability.NA
visiblebooleanWhether the ability is visible.NA
grantPermissionbooleanGranted permissions of the ability.NA
readPermissionStringRead permissions of the ability.NA
writePermissionStringWrite permissions of the ability.NA
uriPermissionModeStringURI permission mode of the ability.NA
uriPermissionPathStringURI permission path of the ability.NA
directLaunchbooleanWhether the ability can be directly launched.NA
missionStringMission of the ability.NA
targetAbilityStringTarget ability of the ability.NA
multiUserSharedbooleanWhether the ability can be shared by multiple users.NA
supportPipModebooleanWhether the ability supports the PIP mode.NA
srcLanguageStringSource language of the ability.NA
srcPathStringSource path of the ability.NA
srcEntranceStringSource entrance of the ability.NA
continuablebooleanWhether the ability can be continued on another device.NA
metaDataMetaData struct (see MetaData Struct below)Custom metadata of the ability.NA
configChangesList<String>Configuration changes of the ability.NA
formInfosList<AbilityFormInfo>Widgets of the ability.NA
permissionsList<String>Permissions of the ability.NA
skillsList<SkillInfo>Skills of the ability.NA
backgroundModesList<String>Background modes of the ability.NA
labelsHashMap<String, String>Names of the ability displayed to users in multiple languages.NA
descriptionsHashMap<String, String>Descriptions of the ability in multiple languages.NA

Distro Struct

FieldTypeDescriptionRemarks
moduleNameStringName of the module.This field corresponds to the moduleName field under the module struct in the stage model.
moduleTypeStringType of the HAP.This field corresponds to the moduleType field under the module struct in the stage model.
deliveryWithInstallbooleanWhether the HAP is installed when the user installs the application.This field corresponds to the deliveryWithInstall field under the module struct in the stage model.
installationFreeintWhether the HAP file supports the installation-free feature.This parameter corresponds to the installationFree field under the module struct in the stage model. In the JSON file, if this parameter is set to true, 1 is returned; if this parameter is set to false, 0 is returned; if this parameter is not set, 2 is returned.
virtualMachineStringType of the target virtual machine (VM) where the HAP is running. It is used for cloud distribution, such as the application market and distribution center.This field corresponds to the virtualMachine field under the module struct in the stage model.

MetaData Struct

FieldTypeDescriptionRemarks
parametersList<MetaDataInfo>Metadata information.This field is unique to the FA model. It is deprecated in the stage model.
resultsList<MetaDataInfo>Result information of the metadata.This field is unique to the FA model. It is deprecated in the stage model.
customizeDatasList<CustomizeData>Custom data of the metadata.NA

MetaDataInfo Struct

FieldTypeDescriptionRemarks
nameStringName of the MetaDataInfo struct.This field is unique to the FA model. It is deprecated in the stage model.
descriptionStringDescription of the MetaDataInfo struct.This field is unique to the FA model. It is deprecated in the stage model.
typeStringType of the MetaDataInfo struct.This field is unique to the FA model. It is deprecated in the stage model.

CustomizeData Struct

FieldTypeDescriptionRemarks
nameStringName of the CustomizeData struct.This field corresponds to metadata in the stage model.
valueStringValue of the CustomizeData struct.This field corresponds to metadata in the stage model.
extraStringExtra information of the CustomizeData struct.This field corresponds to metadata in the stage model.

ReqPermission Struct

FieldTypeDescriptionRemarks
nameStringName of the requested permission.NA
reasonStringReason for requesting the permission. This field is mandatory for a user_grant permission.NA
usedSceneUsedScene struct (see UsedScene Struct below)Application scenario of the permission. The value can be ability or when. Multiple abilities can be configured.NA
reasonsHashMap<String, String>Reason for requesting the permission. This field is mandatory for a user_grant permission.NA

UsedScene Struct

FieldTypeDescriptionRemarks
abilityList<String>Abilities that use the permission. The value is an array.NA
whenStringTime when the permission is used. The value can be inuse (the permission can be used only in the foreground) or always (the permission can be used in foreground and background).NA

Shortcut Struct

FieldTypeDescriptionRemarks
shortcutIdStringID of the ShortCut struct.NA
labelStringLabel of the ShortCut struct.NA
iconStringIcon of the ShortCut struct.NA
intentsList<IntentInfo>Intents to which the shortcut points. The attribute consists of the targetClass and targetBundle sub-attributes.NA
labelsHashMap<String, String>Shortcut names displayed to users in multiple languages.NA

IntentInfo Struct

FieldTypeDescriptionRemarks
targetClassStringClass name for the target ability of the shortcut.NA
targetBundleStringTarget bundle name of the shortcut.NA

DistroFilter Struct

FieldTypeDescriptionRemarks
apiVersionApiVersion structAPI version of the DistroFilter struct.NA
screenShapeScreenShape structScreen shape of the DistroFilter struct.NA
screenDensityScreenDensity structScreen density of the DistroFilter struct.NA
screenWindowScreenWindow structScreen window of the DistroFilter struct.NA
countryCodeCountryCode structCountry code of the DistroFilter struct.NA

ApiVersion Struct

FieldTypeDescriptionRemarks
policyStringPolicy information in the struct.NA
valueList<String>Value information in the struct.NA

ScreenShape Struct

FieldTypeDescriptionRemarks
policyStringPolicy information in the struct.NA
valueList<String>Value information in the struct.NA

ScreenDensity Struct

FieldTypeDescriptionRemarks
policyStringPolicy information in the struct.NA
valueList<String>Value information in the struct.NA

ScreenWindow Struct

FieldTypeDescriptionRemarks
policyStringPolicy information in the struct.NA
valueList<String>Value information in the struct.NA

CountryCode Struct

FieldTypeDescriptionRemarks
policyStringPolicy information in the struct.NA
valueList<String>Value information in the struct.NA

ExtensionAbilityInfo Struct

FieldTypeDescriptionRemarks
nameStringLogical name of the ExtensionAbility.This field is supported only in the stage model.
srcEntranceStringJS code path of the ExtensionAbility.This field is supported only in the stage model.
iconStringIcon ID of the ExtensionAbility.This field is supported only in the stage model.
labelStringExtensionAbility name visible to users.This field is supported only in the stage model.
descriptionStringDescription of the ExtensionAbility.This field is supported only in the stage model.
typeStringType of the ExtensionAbility, which can be form, workScheduler, inputMethod, service, accessibility, dataShare, fileShare, wallpaper, or backup.This field is supported only in the stage model. Currently, only form and staticSubscriber information is parsed. The information of other types is not parsed.
permissionsList<String>Permissions required when the ExtensionAbility is called by the ability of another application.This field is supported only in the stage model.
readPermissionStringPermission required for reading data in the ExtensionAbility.This field is supported only in the stage model.
writePermissionStringPermission required for writing data to the ExtensionAbility.This field is supported only in the stage model.
visiblebooleanWhether the ExtensionAbility can be called by other applications.This field is supported only in the stage model.
skillsList<SkillInfo>Skills of the Want that the extensionAbility can receive.This field is supported only in the stage model.
metadataInfosList<ModuleMetadataInfo>Metadata that the ExtensionAbility can receive.This field is supported only in the stage model.
metadataMetaData StructMetadata of the ExtensionAbility.The information in metadata is assigned to CustomizeData.
uriStringURI of the data provided by the ExtensionAbility.This field is supported only in the stage model.
descriptionsHashMap<String, String>Descriptions of the ExtensionAbility in multiple languages.NA
labelsHashMap<String, String>Names of the ExtensionAbility displayed to users in multiple languages.NA

SkillInfo Struct

FieldTypeDescriptionRemarks
actionsList<String>Actions of the Want that the ExtensionAbility can receive.NA
entitiesList<String>Entities of the Want that the ExtensionAbility can receive.NA
domainVerifybooleanWhether an ability supports domain verification.NA

UriInfo Struct

FieldTypeDescriptionRemarks
schemaStringSchema information of the ModuleUriInfo struct.NA
hostStringHost of the ModuleUriInfo struct.NA
portStringPort of the ModuleUriInfo struct.NA
pathStartWithStringPath prefix of the ModuleUriInfo struct.NA
pathRegexStringPath regular expression of the ModuleUriInfo struct.NA
pathStringPath information of the ModuleUriInfo struct.NA
typeStringType of the ModuleUriInfo struct.NA

AbilityFormInfo Struct

FieldTypeDescriptionRemarks
nameStringName of the widget.NA
typeStringType of the widget.NA
updateEnabledbooleanWhether the widget supports scheduled refresh.NA
scheduledUpdateTimeStringScheduled time to update the widget. The value is in 24-hour format and accurate to the minute.NA
updateDurationintInterval to update the widget. The unit is 30 minutes. The value is a multiple of 30.NA
supportDimensionsList<String>Dimensions supported by the widget, which can be 1 * 2, 2 * 2, 2 * 4, or 4 * 4.NA
defaultDimensionStringDefault dimensions of the widget. The value must be available in the supportDimensions array of the widget.NA
MetaDataMetaDataCustom data of the widget.NA
descriptionStringDescription of the widget.This field is newly added to the stage model.
srcStringJS code of the widget.NA
windowInfoModuleWindowInfo structWindow information of the ability.NA
isDefaultbooleanWhether the widget is a default one. Each HAP has only one default widget.NA
colorModeStringColor mode of the widget, which can be auto, dark, or light.NA
formConfigAbilityStringAbility name for widget adjustment.NA
formVisibleNotifyStringWhether the widget is allowed to use the visibility notification.NA
providerAbilityStringAbility or ExtensionAbility name of the widget provider.
- FA model: If the widget is configured in an ability of the Service type, set providerAbility to mainAbility.
- FA model: If the widget is configured in an ability of the Page type, set providerAbility to the current ability.
- FA model: If mainAbility is not configured, set providerAbility to the ability that preferentially uses system.home in the current HAP. Otherwise, set providerAbility to the ability of the first page.
- Stage model: Set providerAbility to mainElement.
NA
descriptionsHashMap<String, String>Descriptions of the ability in multiple languages.NA

CommonEvent Struct

FieldTypeDescriptionRemarks
nameStringName of the class corresponding to the current static common event.In the stage model, the value is obtained from the StaticSubscriberExtensionAbility.
permissionStringPermissions required to implement the static common event.In the stage model, the value is obtained from the StaticSubscriberExtensionAbility.
dataList<String>Additional data array to be carried in the static common event.In the stage model, the value is obtained from the StaticSubscriberExtensionAbility.
typeList<String>Type array for configuring the static common event.In the stage model, the value is obtained from the StaticSubscriberExtensionAbility.
eventsList<String>Events of the Want that the ExtensionAbility can receive.In the stage model, the value is obtained from the StaticSubscriberExtensionAbility.

DependencyItem Struct

FieldTypeDescriptionRemarks
bundleNameStringBundle name of the shared package.NA
moduleNameStringModule name of the shared package.NA
versionCodeStringVersion number of the shared bundle.NA

ModuleAtomicService Struct

FieldTypeDescriptionRemarks
preloadItemslist<PreloadItem>Preloaded objects.NA

PreloadItem Struct

FieldTypeDescriptionRemarks
moduleNameStringName of the preloaded module.NA

DeviceConfig Struct

FieldTypeDescriptionRemarks
targetReqSdkStringTarget SDK version requested.NA
compatibleReqSdkStringCompatible SDK version requested.NA
jointUseridStringJoint user ID.NA
processStringProcess.NA
arkFlagStringArkCompiler flag.NA
targetArkVersionStringTarget ArkCompiler version.NA
compatibleArkVersionStringCompatible ArkCompiler version.NA
directLaunchbooleanWhether direct launch is supported.NA
distributedNotificationEnabledbooleanWhether distributed notification is enabled.NA

DefPermission Struct

FieldTypeDescriptionRemarks
nameStringName of the default permission.NA
grantModeStringGrant mode of the default permission.NA
groupStringGroup of the default permission.NA
labelStringLabel of the default permission.NA
descriptionStringDescription of the default permission.NA
availableScopeList<String>Available scope of the default permission.NA
labelsHashMap<String, String>Labels of the default permission in multiple languages.NA
descriptionsHashMap<String, String>Descriptions of the default permission in multiple languages.NA

DefinePermission Struct

FieldTypeDescriptionRemarks
nameStringName of the defined permission.NA
grantModeStringGrant mode of the defined permission.NA
availableLevelStringGroup of the defined permission.NA
provisionEnablebooleanWhether the defined permission is enabled.NA
distributedSceneEnablebooleanWhether the distributed scene is enabled for the defined permission.NA
labelStringLabel of the defined permission.NA
descriptionStringDescription of the defined permission.NA
descriptionsHashMap<String, String>Descriptions of the defined permission in multiple languages.NA
labelsHashMap<String, String>Labels of the defined permission in multiple languages.NA

DefPermissionsGroups Struct

FieldTypeDescriptionRemarks
nameStringName of the default permission group.NA
orderStringSequence of the default permission group.NA
iconStringIcon of the default permission group.NA
labelStringLabel of the default permission group.NA
descriptionStringDescription of the default permission group.NA
requestbooleanRequest for the default permission group.NA

FormInfo Struct

FieldTypeDescriptionRemarks
formEntityList<String>Widget entity.NA
minHeightStringMinimum height of the widget.NA
defaultHeightStringDefault height of the widget.NA
minWidthStringMinimum width of the widgetNA
defaultWidthStringDefault width of the widget.NA

ModuleMetadataInfo Struct

FieldTypeDescriptionRemarks
nameStringName of the ModuleMetadataInfo.NA
valueStringValue of the ModuleMetadataInfo.NA
resourceStringResource of the ModuleMetadataInfo.NA

ModuleWindowInfo Struct

FieldTypeDescriptionRemarks
designWidthintDesigned width of the used scene of the module.NA
autoDesignWidthbooleanAutomatically designed width of the used scene of the module.NA

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Debugging Tools

harmony 鸿蒙Ability Assistant

harmony 鸿蒙Account Manager

harmony 鸿蒙Advanced Notification Manager

harmony 鸿蒙App Check Tool

harmony 鸿蒙Access Token Manager

harmony 鸿蒙Bundle Manager

harmony 鸿蒙Common Event Manager

harmony 鸿蒙devicedebug

harmony 鸿蒙EDM

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/828450425d7f4954b4dea6449d01e209