“027cbe8332bf7f4db8781a66bc753e3bf00bb10b”上不存在“python/paddle/git@gitcode.net:s920243400/PaddleDetection.git”
提交 649e8929 编写于 作者: J jiangminsen

包管理配置文件action桌面图标表示替换

Signed-off-by: Njiangminsen <jiangminsen@huawei.com>
上级 bf57803e
......@@ -35,9 +35,9 @@
Stage模型支持对组件配置入口图标和入口标签。入口图标和入口标签会显示在桌面上。
入口图标需要在[module.json5配置文件](../quick-start/module-configuration-file.md)中配置,在abilities标签下面有icon标签。例如希望在桌面上显示该UIAbility的图标,则需要在skills标签下面的entities中添加"entity.system.home"、actions中添加"action.system.home"。同一个应用有多个UIAbility配置上述字段时,桌面上会显示出多个图标,分别对应各自的UIAbility。
入口图标需要在[module.json5配置文件](../quick-start/module-configuration-file.md)中配置,在abilities标签下面有icon标签。例如希望在桌面上显示该UIAbility的图标,则需要在skills标签下面的entities中添加"entity.system.home"、actions中添加"ohos.want.action.home"。同一个应用有多个UIAbility配置上述字段时,桌面上会显示出多个图标,分别对应各自的UIAbility。
入口标签需要在[module.json5配置文件](../quick-start/module-configuration-file.md)中配置,在abilities标签下面有label标签。例如希望在桌面上显示该UIAbility的图标,则需要在skills标签下面的entities中添加"entity.system.home"、actions中添加"action.system.home"。同一个应用有多个UIAbility配置上述字段时,桌面上会显示出多个标签,分别对应各自的UIAbility。
入口标签需要在[module.json5配置文件](../quick-start/module-configuration-file.md)中配置,在abilities标签下面有label标签。例如希望在桌面上显示该UIAbility的图标,则需要在skills标签下面的entities中添加"entity.system.home"、actions中添加"ohos.want.action.home"。同一个应用有多个UIAbility配置上述字段时,桌面上会显示出多个标签,分别对应各自的UIAbility。
```json
{
......@@ -54,7 +54,7 @@
"entity.system.home"
],
"actions": [
"action.system.home"
"ohos.want.action.home"
]
}
],
......
......@@ -211,7 +211,7 @@ OpenHarmony系统对无图标应用严格管控。如果HAP中没有配置启动
[HarmonyAppProvision配置文件说明](../security/app-provision-structure.md) <br>
[应用特权配置指南](../../device-dev/subsystems/subsys-app-privilege-config-guide.md)
**启动图标的设置:** 需要在配置文件(module.json5)中abilities配置下设置icon,label以及skills,而且skills的配置下的必须同时包含“action.system.home” 和 “entity.system.home”:
**启动图标的设置:** 需要在配置文件(module.json5)中abilities配置下设置icon,label以及skills,而且skills的配置下的必须同时包含“ohos.want.action.home” 和 “entity.system.home”:
```
{
"module":{
......@@ -222,7 +222,7 @@ OpenHarmony系统对无图标应用严格管控。如果HAP中没有配置启动
"icon": "$media:icon",
"label": "Login",
"skills": [{
"actions": ["action.system.home"],
"actions": ["ohos.want.action.home"],
"entities": ["entity.system.home"],
"uris": []
}]
......
......@@ -199,7 +199,7 @@ OpenHarmony系统对无图标应用严格管控。如果HAP中没有配置启动
[HarmonyAppProvision配置文件说明](../security/app-provision-structure.md) <br>
[应用特权配置指南](../../device-dev/subsystems/subsys-app-privilege-config-guide.md)
**启动图标的设置:** 需要在配置文件(config.json)中abilities配置下设置icon,label以及skills,而且skills的配置下必须同时包含“action.system.home” 和 “entity.system.home”:
**启动图标的设置:** 需要在配置文件(config.json)中abilities配置下设置icon,label以及skills,而且skills的配置下必须同时包含“ohos.want.action.home” 和 “entity.system.home”:
```
{
"module":{
......@@ -210,7 +210,7 @@ OpenHarmony系统对无图标应用严格管控。如果HAP中没有配置启动
"icon": "$media:icon",
"label": "Login",
"skills": [{
"actions": ["action.system.home"],
"actions": ["ohos.want.action.home"],
"entities": ["entity.system.home"],
"uris": []
}]
......
......@@ -99,7 +99,7 @@ featureAbility.startAbility(
{
want:
{
action: 'action.system.home',
action: 'ohos.want.action.home',
entities: ['entity.system.home'],
type: 'MIMETYPE',
flags: wantConstant.Flags.FLAG_AUTH_READ_URI_PERMISSION,
......@@ -182,7 +182,7 @@ featureAbility.startAbilityForResult(
{
want:
{
action: 'action.system.home',
action: 'ohos.want.action.home',
entities: ['entity.system.home'],
type: 'MIMETYPE',
flags: wantConstant.Flags.FLAG_AUTH_READ_URI_PERMISSION,
......@@ -236,7 +236,7 @@ featureAbility.startAbilityForResult(
{
want:
{
action: 'action.system.home',
action: 'ohos.want.action.home',
entities: ['entity.system.home'],
type: 'MIMETYPE',
flags: wantConstant.Flags.FLAG_AUTH_READ_URI_PERMISSION,
......@@ -288,7 +288,7 @@ featureAbility.terminateSelfWithResult(
resultCode: 1,
want:
{
action: 'action.system.home',
action: 'ohos.want.action.home',
entities: ['entity.system.home'],
type: 'MIMETYPE',
flags: wantConstant.Flags.FLAG_AUTH_READ_URI_PERMISSION,
......@@ -345,7 +345,7 @@ featureAbility.terminateSelfWithResult(
resultCode: 1,
want:
{
action: 'action.system.home',
action: 'ohos.want.action.home',
entities: ['entity.system.home'],
type: 'MIMETYPE',
flags: wantConstant.Flags.FLAG_AUTH_READ_URI_PERMISSION,
......
......@@ -47,7 +47,7 @@ particleAbility.startAbility(
{
want:
{
action: 'action.system.home',
action: 'ohos.want.action.home',
entities: ['entity.system.home'],
type: 'MIMETYPE',
flags: wantConstant.Flags.FLAG_AUTH_READ_URI_PERMISSION,
......@@ -98,7 +98,7 @@ particleAbility.startAbility(
{
want:
{
action: 'action.system.home',
action: 'ohos.want.action.home',
entities: ['entity.system.home'],
type: 'MIMETYPE',
flags: wantConstant.Flags.FLAG_AUTH_READ_URI_PERMISSION,
......
......@@ -23,12 +23,12 @@ error: verify signature failed.
增加对无图标应用的管控,如果应用未配置入口图标且未申请隐藏图标特权(AllowHideDesktopIcon),则会在桌面上显示一个默认图标,点击后跳转至应用详情页。此处的未配置入口图标规则如下:
1. 应用中未配置abilities字段
2. 应用中配置了abilities字段,但是没有任何一个page类型的ability中skills如下,即同时包含"action.system.home"和"entity.system.home":
2. 应用中配置了abilities字段,但是没有任何一个page类型的ability中skills如下,即同时包含"ohos.want.action.home"和"entity.system.home":
```json
"skills": [
{
"actions": [
"action.system.home"
"ohos.want.action.home"
],
"entities": [
"entity.system.home"
......@@ -40,7 +40,7 @@ error: verify signature failed.
如果应用不需要再桌面显示图标,需要申请相应的隐藏图标特权AllowHideDesktopIcon,并在签名证书文件中或者白名单(install_list_capability.json)配置,可以参考:[应用特权配置指南](../../../device-dev/subsystems/subsys-app-privilege-config-guide.md)
如果应该需要在桌面显示图标,则需要在abilities中选择一个ability配置skills,同时包含"action.system.home"和"entity.system.home"。
如果应该需要在桌面显示图标,则需要在abilities中选择一个ability配置skills,同时包含"ohos.want.action.home"和"entity.system.home"。
**变更影响**<br>
对之前的版本镜像无影响,对使用3.2.10.5版本及之后的系统镜像,如果应用未配置图标,通过命令行的安装方式会在桌面显示默认图标。
......@@ -51,7 +51,7 @@ error: verify signature failed.
**适配指导**<br>
如果应用不需要再桌面显示图标,需要申请相应的隐藏图标特权AllowHideDesktopIcon,并在签名证书文件中或者白名单(install_list_capability.json)配置,可以参考:[应用特权配置指南](../../../device-dev/subsystems/subsys-app-privilege-config-guide.md)
如果应该需要在桌面显示图标,则需要在abilities中选择一个ability配置skills,同时包含"action.system.home"和"entity.system.home"。
如果应该需要在桌面显示图标,则需要在abilities中选择一个ability配置skills,同时包含"ohos.want.action.home"和"entity.system.home"。
## cl.bundlemanager.3 底层能力变更,特权AllowAppUsePrivilegeExtension、AllowAppMultiProcess和AllowFormVisibleNotify不支持通过签名证书配置,仅支持通过白名单install_list_capability.json申请这三个特权。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册