Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
1e8d11ee
D
Docs
项目概览
OpenHarmony
/
Docs
大约 2 年 前同步成功
通知
161
Star
293
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
1e8d11ee
编写于
5月 09, 2023
作者:
O
openharmony_ci
提交者:
Gitee
5月 09, 2023
浏览文件
操作
浏览文件
下载
差异文件
!17822 新增proxyDatas资料
Merge pull request !17822 from xsz233/master
上级
e5c83149
2552043e
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
69 addition
and
0 deletion
+69
-0
zh-cn/application-dev/quick-start/module-configuration-file.md
.../application-dev/quick-start/module-configuration-file.md
+33
-0
zh-cn/application-dev/reference/apis/js-apis-installer.md
zh-cn/application-dev/reference/apis/js-apis-installer.md
+6
-0
zh-cn/application-dev/reference/errorcodes/errorcode-bundle.md
.../application-dev/reference/errorcodes/errorcode-bundle.md
+30
-0
未找到文件。
zh-cn/application-dev/quick-start/module-configuration-file.md
浏览文件 @
1e8d11ee
...
@@ -94,6 +94,7 @@ module.json5配置文件包含以下标签。
...
@@ -94,6 +94,7 @@ module.json5配置文件包含以下标签。
|
[
dependencies
](
#dependencies标签
)
| 标识当前模块运行时依赖的共享库列表。| 对象数组 | 该标签可缺省,缺省值为空。 |
|
[
dependencies
](
#dependencies标签
)
| 标识当前模块运行时依赖的共享库列表。| 对象数组 | 该标签可缺省,缺省值为空。 |
| targetModuleName | 标识当前包所指定的目标module, 标签值采用字符串表示(最大长度31个字节),该名称在指定的应用中要唯一。|字符串|该标签可缺省,缺省时当前包为非overlay特性的Module。|
| targetModuleName | 标识当前包所指定的目标module, 标签值采用字符串表示(最大长度31个字节),该名称在指定的应用中要唯一。|字符串|该标签可缺省,缺省时当前包为非overlay特性的Module。|
| targetPriority | 标识当前Module的优先级, 当targetModuleName字段配置之后,当前Module为overlay特征的Module, 该标签的额取值范围为1~100|数值|该标签可缺省, 缺省值为1。|
| targetPriority | 标识当前Module的优先级, 当targetModuleName字段配置之后,当前Module为overlay特征的Module, 该标签的额取值范围为1~100|数值|该标签可缺省, 缺省值为1。|
|
[
proxyDatas
](
#proxydatas标签
)
| 标识当前Module提供的数据代理列表。| 对象数组 | 该标签可缺省,缺省值为空。|
| isolationMode | 标识当前Module的多进程配置项。类型有4种,分别:
<br/>
-
nonisolationFirst:优先在非独立进程中运行。
<br/>
-
isolationFirst:优先在独立进程中运行。
<br/>
-
isolationOnly:只在独立进程中运行。
<br/>
-
nonisolationOnly:只在非独立进程中运行。 |字符串|该标签可缺省, 缺省值为nonisolationFirst。|
| isolationMode | 标识当前Module的多进程配置项。类型有4种,分别:
<br/>
-
nonisolationFirst:优先在非独立进程中运行。
<br/>
-
isolationFirst:优先在独立进程中运行。
<br/>
-
isolationOnly:只在独立进程中运行。
<br/>
-
nonisolationOnly:只在非独立进程中运行。 |字符串|该标签可缺省, 缺省值为nonisolationFirst。|
## deviceTypes标签
## deviceTypes标签
...
@@ -792,3 +793,35 @@ dependencies标签示例:
...
@@ -792,3 +793,35 @@ dependencies标签示例:
}
}
}
}
```
```
## proxyDatas标签
此标签标识模块提供的数据代理列表,仅限entry和feature配置。
**表21**
**proxyDatas标签说明**
| 属性名称 | 含义 | 数据类型 | 是否可缺省 |
| ----------- | ------------------------------ | -------- | ---------- |
| uri | 标识用于访问该数据代理的uri,不同的数据代理配置的uri不可重复,且需要满足
`datashareproxy://当前应用包名/xxx`
的格式。 | 字符串 | 不可缺省。 |
| requiredReadPermission | 标识从该数据代理中读取数据所需要的权限,非系统应用配置的权限的等级需为system_basic或system_core,系统应用可以不配置权限,且权限的等级没有限制。权限等级可以参考
[
权限列表
](
../security/permission-list.md
)
。 | 字符串 | 可缺省,缺省值为空。 |
| requiredWritePermission | 标识向该数据代理中读取数据所需要的权限。非系统应用配置的权限的等级需为system_basic或system_core,系统应用可以不配置权限,且权限的等级没有限制。权限等级可以参考
[
权限列表
](
../security/permission-list.md
)
。 | 字符串 | 可缺省,缺省值为空。 |
|
[
metadata
](
#metadata标签
)
| 标识该数据代理的元信息,只支持配置name和resource字段。 | 对象 | 可缺省,缺省值为空。 |
proxyDatas标签示例:
```
json
{
"module"
:
{
"proxyDatas"
:
[
{
"uri"
:
"datashareproxy://com.ohos.datashare/event/Meeting"
,
"requiredReadPermission"
:
"ohos.permission.GET_BUNDLE_INFO"
,
"requiredWritePermission"
:
"ohos.permission.GET_BUNDLE_INFO"
,
"metadata"
:
{
"name"
:
"datashare_metadata"
,
"resource"
:
"$profile:datashare"
}
}
]
}
}
```
\ No newline at end of file
zh-cn/application-dev/reference/apis/js-apis-installer.md
浏览文件 @
1e8d11ee
...
@@ -121,6 +121,8 @@ install(hapFilePaths: Array<string>, installParam: InstallParam, callback:
...
@@ -121,6 +121,8 @@ install(hapFilePaths: Array<string>, installParam: InstallParam, callback:
| 17700036 | Failed to install the HSP because lacks appropriate permissions. |
| 17700036 | Failed to install the HSP because lacks appropriate permissions. |
| 17700039 | Failed to install because disallow install a shared bundle by hapFilePaths. |
| 17700039 | Failed to install because disallow install a shared bundle by hapFilePaths. |
| 17700041 | Failed to install because enterprise device management disallow install. |
| 17700041 | Failed to install because enterprise device management disallow install. |
| 17700042 | Failed to install the HAP because of incorrect URI in the data proxy. |
| 17700043 | Failed to install the HAP because of low APL in the non-system data proxy (required APL: system_basic or system_core). |
| 17700044 | Failed to install the HAP because the isolationMode configured is not supported. |
| 17700044 | Failed to install the HAP because the isolationMode configured is not supported. |
**示例:**
**示例:**
...
@@ -185,6 +187,8 @@ install(hapFilePaths: Array<string>, callback: AsyncCallback<void>):
...
@@ -185,6 +187,8 @@ install(hapFilePaths: Array<string>, callback: AsyncCallback<void>):
| 17700036 | Failed to install the HSP because lacks appropriate permissions. |
| 17700036 | Failed to install the HSP because lacks appropriate permissions. |
| 17700039 | Failed to install because disallow install a shared bundle by hapFilePaths. |
| 17700039 | Failed to install because disallow install a shared bundle by hapFilePaths. |
| 17700041 | Failed to install because enterprise device management disallow install. |
| 17700041 | Failed to install because enterprise device management disallow install. |
| 17700042 | Failed to install the HAP because of incorrect URI in the data proxy. |
| 17700043 | Failed to install the HAP because of low APL in the non-system data proxy (required APL: system_basic or system_core). |
| 17700044 | Failed to install the HAP because the isolationMode configured is not supported. |
| 17700044 | Failed to install the HAP because the isolationMode configured is not supported. |
**示例:**
**示例:**
...
@@ -253,6 +257,8 @@ install(hapFilePaths: Array\<string\>, installParam?: InstallParam) : Promise\<v
...
@@ -253,6 +257,8 @@ install(hapFilePaths: Array\<string\>, installParam?: InstallParam) : Promise\<v
| 17700036 | Failed to install the HSP because lacks appropriate permissions. |
| 17700036 | Failed to install the HSP because lacks appropriate permissions. |
| 17700039 | Failed to install because disallow install a shared bundle by hapFilePaths. |
| 17700039 | Failed to install because disallow install a shared bundle by hapFilePaths. |
| 17700041 | Failed to install because enterprise device management disallow install. |
| 17700041 | Failed to install because enterprise device management disallow install. |
| 17700042 | Failed to install the HAP because of incorrect URI in the data proxy. |
| 17700043 | Failed to install the HAP because of low APL in the non-system data proxy (required APL: system_basic or system_core). |
| 17700044 | Failed to install the HAP because the isolationMode configured is not supported. |
| 17700044 | Failed to install the HAP because the isolationMode configured is not supported. |
**示例:**
**示例:**
...
...
zh-cn/application-dev/reference/errorcodes/errorcode-bundle.md
浏览文件 @
1e8d11ee
...
@@ -544,6 +544,36 @@ The specified bundle is a shared bundle which cannot be uninstalled.
...
@@ -544,6 +544,36 @@ The specified bundle is a shared bundle which cannot be uninstalled.
1.
通过-s参数指定卸载的应用为共享库应用。
1.
通过-s参数指定卸载的应用为共享库应用。
2.
通过UninstallParam参数的bundleName及versionCode指定卸载的共享库的包名及版本。
2.
通过UninstallParam参数的bundleName及versionCode指定卸载的共享库的包名及版本。
## 17700042 数据代理中的uri配置错误
**错误信息**
<br/>
Failed to install the HAP because of incorrect URI in the data proxy.
**错误描述**
<br/>
安装应用时,数据代理的uri配置错误。
**可能原因**
<br/>
1.
uri中的包名与当前应用的包名不一致。
2.
uri重复。
**处理步骤**
<br/>
1.
修改uri中的包名为当前应用的包名。
2.
修改重复的uri,每一个数据代理的uri都是唯一的。
## 17700043 数据代理中的权限配置错误
**错误信息**
<br/>
Failed to install the HAP because of low APL in the non-system data proxy (required APL: system_basic or system_core).
**错误描述**
<br/>
安装应用时,非系统应用的数据代理的权限等级过低,应为system_basic或system_core。
**可能原因**
<br/>
1.
非系统应用的数据代理未配置权限。
1.
非系统应用的数据代理的权限等级过低。
**处理步骤**
<br/>
1.
在数据代理中配置读权限和写权限。
2.
修改读权限和写权限,并确认其权限等级为system_basic或system_core。
## 17700044 安装包设置的多进程配置项与系统配置项设置矛盾
## 17700044 安装包设置的多进程配置项与系统配置项设置矛盾
**错误信息**
<br/>
**错误信息**
<br/>
Failed to install the HAP because the isolationMode configured is not supported.
Failed to install the HAP because the isolationMode configured is not supported.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录