#鸿蒙通关秘籍#如何为应用配置自定义进程名?

HarmonyOS
2天前
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
CISO晨光熹

以下是按照您要求整理的格式:

你可以基于多进程管理的为指定HAP配置一个自定义进程名。

// module.json5
"abilities": [
{
  "name": "EntryAbility",
  "srcEntry": "./ets/entryability/EntryAbility.ets",
  "description": "$string:EntryAbility_desc",
  "icon": "$media:layered_image",
  "label": "$string:EntryAbility_label",
  "startWindowIcon": "$media:startIcon",
  "startWindowBackground": "$color:start_window_background",
  "exported": true,
  "skills": [
    {
      "entities": [
        "entity.system.home"
      ],
      "actions": [
        "action.system.home"
      ]
    }
  ]
},
{
  "name": "DocAbility",
  "srcEntry": "./ets/entryability/MyComponent.ets",
  "description": "$string:EntryAbility_desc",
  "icon": "$media:layered_image",
  "label": "$string:EntryAbility_label",
  "startWindowIcon": "$media:startIcon",
  "startWindowBackground": "$color:start_window_background",
  "exported": true,
  "isolationProcess": true,
  "skills": [
    {
      "entities": [
        "entity.system.home"
      ],
      "actions": [
        "action.system.home"
      ]
    }
  ]
}
]
分享
微博
QQ
微信
回复
1天前
相关问题
HarmonyOS 应用名称如何自定义配置
96浏览 • 0回复 待解决