Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
db992388
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看板
提交
db992388
编写于
8月 07, 2023
作者:
A
Annie_wang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update docs
Signed-off-by:
N
Annie_wang
<
annie.wangli@huawei.com
>
上级
13a7dc63
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
5 addition
and
5 deletion
+5
-5
en/release-notes/changelogs/OpenHarmony_4.0.8.2/changelogs-device_manager.md
...angelogs/OpenHarmony_4.0.8.2/changelogs-device_manager.md
+5
-5
未找到文件。
en/release-notes/changelogs/OpenHarmony_4.0.8.2/changelogs-device_manager.md
浏览文件 @
db992388
...
@@ -5,11 +5,11 @@ Added permission verification for some APIs.
...
@@ -5,11 +5,11 @@ Added permission verification for some APIs.
**Change Impact**
**Change Impact**
Applications developed in versions later than OpenHarmony 4.0.8.2 must have the specific permission to call the APIs
.
The apps developed using OpenHarmony 4.0.8.2 or later must have the corresponding permissions. Otherwise, the related APIs cannot be called
.
**Key API/Component Changes**
**Key API/Component Changes**
| Module | Class | Method/Attribute/Enum/Constant |
New
Permission|
| Module | Class | Method/Attribute/Enum/Constant |
Added
Permission|
| ------------------------- | ------------------- | ------------------------------------------------------------ | -------- |
| ------------------------- | ------------------- | ------------------------------------------------------------ | -------- |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
release(): void | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
release(): void | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
getTrustedDeviceListSync(): Array
<
DeviceInfo
>
| ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
getTrustedDeviceListSync(): Array
<
DeviceInfo
>
| ohos.permission.ACCESS_SERVICE_DM |
...
@@ -50,7 +50,7 @@ Applications developed in versions later than OpenHarmony 4.0.8.2 must have the
...
@@ -50,7 +50,7 @@ Applications developed in versions later than OpenHarmony 4.0.8.2 must have the
**Adaptation Guide**
**Adaptation Guide**
Apply for the corresponding permission
to call these APIs
.
Apply for the corresponding permission
s for your application before these APIs are called
.
## cl.device_manager.2 Permission Verification for All System APIs
## cl.device_manager.2 Permission Verification for All System APIs
...
@@ -65,7 +65,7 @@ Non-system applications and applications without system API permission cannot ca
...
@@ -65,7 +65,7 @@ Non-system applications and applications without system API permission cannot ca
System API permission verification is performed on all APIs. The table below describes the APIs.
System API permission verification is performed on all APIs. The table below describes the APIs.
| API/Enum/Variable| Type|
Is
System API|
| API/Enum/Variable| Type| System API|
| -------- | -------- | ------- |
| -------- | -------- | ------- |
| createDeviceManager(bundleName: string, callback: AsyncCallback
<
DeviceManager
>
): void; | interface | Yes|
| createDeviceManager(bundleName: string, callback: AsyncCallback
<
DeviceManager
>
): void; | interface | Yes|
| release(): void | interface | Yes|
| release(): void | interface | Yes|
...
@@ -107,4 +107,4 @@ System API permission verification is performed on all APIs. The table below des
...
@@ -107,4 +107,4 @@ System API permission verification is performed on all APIs. The table below des
**Adaptation Guide**
**Adaptation Guide**
Make sure the caller of the preceding APIs is a system application or an application that has
the system API permission.
The caller must be a system application or an application with
the system API permission.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录