未验证 提交 f0ade7b3 编写于 作者: O openharmony_ci 提交者: Gitee

!21694 挑单 4.0 Beta2

Merge pull request !21694 from Annie_wang/cherry-pick-1690851891
# App Access Control Subsystem ChangeLog
# Application Access Control Subsystem Changelog
## cl.accessToken.1 Change of the Media and File Permission Group
## cl.accessToken.1 Change of the Media and Files Permission Group
The original Media and File permission group contains the following permissions:
- ohos.permission.MEDIA_LOCATION
- ohos.permission.READ_MEDIA
- ohos.permission.WRITE_MEDIA
Changed the permission group as follows:
- Added **ohos.permission.MEDIA_LOCATION** to the Image and Video permission group.
- Added **ohos.permission.READ_MEDIA** and **ohos.permission.WRITE_MEDIA** to the File permission group.
- Added **ohos.permission.MEDIA_LOCATION** to the Images and Video permission group.
- Added **ohos.permission.READ_MEDIA** and **ohos.permission.WRITE_MEDIA** to the Documents permission group.
**Change Impact**
The permission dialog boxes are displayed by permission group.
The dialog box for requesting permissions is displayed by permission group.
- Before the change, if the three permissions are applied for an application, a dialog box for applying for the media and file permissions will be displayed only once.
- After the change, if the three permissions are applied for an application, a dialog box for applying for the image and video permissions and a dialog box for applying for the file permission will be displayed.
- Before the change, if the three permissions are applied for an application, a dialog box for requesting the media and file permissions will be displayed only once.
- After the change, if the three permissions are applied for an application, a dialog box for requesting the image and video permissions and a dialog box for requesting the document permission will be displayed.
**Key API/Component Changes**
Permission group before the change:
Permission groups before the change:
| Permission | Permission Group |
| -------- | ---------------------------- |
| ohos.permission.MEDIA_LOCATION | Media and File|
| ohos.permission.READ_MEDIA | Media and File|
| ohos.permission.WRITE_MEDIA | Media and File|
| ohos.permission.MEDIA_LOCATION | Media and file|
| ohos.permission.READ_MEDIA | Media and file|
| ohos.permission.WRITE_MEDIA | Media and file|
Permission groups after the change:
| Permission | Permission Group |
| -------- | ---------------------------- |
| ohos.permission.MEDIA_LOCATION | Image and Video|
| ohos.permission.READ_MEDIA | File|
| ohos.permission.WRITE_MEDIA | File|
| ohos.permission.MEDIA_LOCATION | Images and videos |
| ohos.permission.READ_MEDIA | Documents |
| ohos.permission.WRITE_MEDIA | Documents |
**Adaptation Guide**
N/A
## cl.accessToken.2 Change of the Permission Requesting Modes of the Telephony, Messaging, and Call Logs Permission Groups
The permissions of the Telephony, Messaging, and Call Logs permission groups are available only to system applications. The three permission groups contain the following permissions:
- ohos.permission.ANSWER_CALL
- ohos.permission.MANAGE_VOICEMAIL
- ohos.permission.READ_CELL_MESSAGES
- ohos.permission.READ_MESSAGES
- ohos.permission.RECEIVE_MMS
- ohos.permission.RECEIVE_SMS
- ohos.permission.RECEIVE_WAP_MESSAGES
- ohos.permission.SEND_MESSAGES
- ohos.permission.READ_CALL_LOG
- ohos.permission.WRITE_CALL_LOG
- ohos.permission.MEDIA_LOCATION
To enable third-party application developers to apply for these permissions, the method for requesting these permissions is changed to pre-authorization mode.
**Change Impact**
The system applications can obtain these permissions only in pre-authorization mode, rather than requesting these permissions through a pop-up window, .
**Key API/Component Changes**
N/A
**Adaptation Guide**
Apply for the preceding permissions in pre-authorization mode for system applications.
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册