已关闭
feat: PhotoViewPicker 启用防截屏/防录屏保护 #687
2401_83369328创建于 8月11日关闭于 3 天前
feat: PhotoViewPicker 启用防截屏/防录屏保护 #687
已关闭
2401_83369328创建于 8月11日关闭于 3 天前
2401_83369328
2401_83369328
8月11日

标题: feat: PhotoViewPicker 启用防截屏/防录屏保护

内容:

问题描述

当 App 调用 PhotoViewPicker.select() 打开系统选图界面后,
Picker UI 未启用窗口级防截屏保护,调起方可通过录屏 API 捕获
用户在 Picker 中的相册浏览行为和照片缩略图内容。

修复方案

在 CommonPickerUIExtensionAbility 三个生命周期节点调用
window.setWindowPrivacyMode():

  • onForeground(): 启用防截屏
  • onBackground(): 关闭防截屏
  • onSessionDestroy(): 兜底释放

对齐

Android DocumentsUI 显示文件选择器时自动启用 FLAG_SECURE。

联动 Issue

gitee.com/openharmony/applications_photos/issues(待创建)

likedislike
当前Pull Request已关闭, 关闭人@openharmony_dcp
openharmony_ciopenharmony_ci成员
8月11日 添加了label:waiting_on_author
openharmony_ci
openharmony_ci成员
8月11日 评论:

感谢提交 Pull Requests !此PR未通过DCO校验。
校验失败可能原因:

1. 未签署“DCO协议”(开发者原创声明协议),在线签署、查看签署状态

2. Commits 中未包含 Signed-off-by信息,参考FAQ处理

修复上述问题后,在PR的评论框输入“check dco” ,单击”评论”,系统将再次进行DCO校验。

当前检测到如下Commits的Signed-off-by邮箱未签署DCO协议:


Thanks for submitting a pull request. This pull request has not passed the DCO check.
Possible causes:

1. You have not signed the Developer Certificate of Origin (DCO). Sign the DCO and check DCO status.

2. The commits do not contain the Signed-off-by information. To resolve this issue, see FAQs.

After resolving the preceding issues, enter check dco in the comment box of this pull request and click Comment. The system will check DCO status again.

The Signed-off-by emails in the following commits have not signed the DCO:

likedislike
openharmony_ciopenharmony_ci成员
8月11日 添加了label:dco检查失败
2401_83369328
2401_83369328
8月11日 评论:

check dco

likedislike
openharmony_ci
openharmony_ci成员
8月11日 评论:

感谢提交 Pull Requests !此PR未通过DCO校验。
校验失败可能原因:

1. 未签署“DCO协议”(开发者原创声明协议),在线签署、查看签署状态

2. Commits 中未包含 Signed-off-by信息,参考FAQ处理

修复上述问题后,在PR的评论框输入“check dco” ,单击”评论”,系统将再次进行DCO校验。

当前检测到如下Commits的Signed-off-by邮箱未签署DCO协议:


Thanks for submitting a pull request. This pull request has not passed the DCO check.
Possible causes:

1. You have not signed the Developer Certificate of Origin (DCO). Sign the DCO and check DCO status.

2. The commits do not contain the Signed-off-by information. To resolve this issue, see FAQs.

After resolving the preceding issues, enter check dco in the comment box of this pull request and click Comment. The system will check DCO status again.

The Signed-off-by emails in the following commits have not signed the DCO:

likedislike
openharmony_dcp
openharmony_dcp成员
8 天前 评论:

您好, @2401_83369328 该PR需要您响应,已过去25天未响应,请根据检视意见进行修改,如5天内未响应检视意见,此PR会被自动关闭。关闭后的PR,如有需要,您可以自行打开该PR。

likedislike
openharmony_dcp
openharmony_dcp成员
3 天前 评论:

您的PR超过一个月未合入,已经被自动关闭,如有需要您可以重新提交代码进行贡献。

likedislike
openharmony_dcpopenharmony_dcp成员
3 天前 关闭了 pull request