From d7d9a3783d5af04294cc22a6fa334e24e8cfa1de Mon Sep 17 00:00:00 2001 From: raul Date: Mon, 6 Feb 2023 20:20:12 +0800 Subject: [PATCH] add form extension restriction Signed-off-by: raul Change-Id: Ifbd5c0fa13d5cbf94b87b0daa64b49d6865906c3 --- .../application-models/widget-development-stage.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/zh-cn/application-dev/application-models/widget-development-stage.md b/zh-cn/application-dev/application-models/widget-development-stage.md index 2064bf7b71..92ec84dd96 100644 --- a/zh-cn/application-dev/application-models/widget-development-stage.md +++ b/zh-cn/application-dev/application-models/widget-development-stage.md @@ -594,6 +594,17 @@ onUpdateForm(formId) { }; ``` +## 限制 + +为了降低FormExtensionAbility能力被三方应用滥用的风险,在FormExtensionAbility中限制以下接口的调用 + +- @ohos.ability.particleAbility.d.ts +- @ohos.backgroundTaskManager.d.ts +- @ohos.resourceschedule.backgroundTaskManager.d.ts +- @ohos.multimedia.camera.d.ts +- @ohos.multimedia.audio.d.ts +- @ohos.multimedia.media.d.ts + ## 相关实例 针对Stage模型卡片提供方的开发,有以下相关实例可供参考: -- GitLab