AppArmor Policy Groups¶
本文档包含 Ubuntu Touch 可用策略组的完整列表,以及它们为您的应用程序提供访问权限的说明。
Each entry follows this format
Title
-----
Description: Description from apparmor file
Usage: How common it is to use this policy (from apparmor file)
Optional longer description
权限使用政策将决定您的应用能否进入OpenStore。仅包括一般权限的应用通常会被立即接受,包含保留权限的则需要人工审核。
audio¶
描述:可播放音频(允许通过媒体播放器播放远程内容)
用法:普通
The audio policy is needed for your app to play audio via pulseaudio or media-hub. The permission also gives it the ability to send album art to the thumbnailer service, which is then shown on the sound indicator.
bluetooth¶
Description: Use bluetooth (bluez5) as an administrator.
用法:保留
这个权限允许你无限制的使用蓝牙设备。这可用于蓝牙管理程序。同时这也是开发安全的蓝牙API的基石。
日历¶
描述:可访问相机。
用法:保留
Calendar grants access to the Evolution dataserver’s calendar and alarms APIs. It also grants access to sync-monitor.
This policy is reserved since it grants free access to all calendars on the device at any time. The legacy bug about this situation is LP #1227824 .
connectivity¶
Description: Can access coarse network connectivity information
用法:普通
连接权限允许应用了解粗略的设备连线情况。包括是否连接到互联网和连接的方式(使用Wifi或移动数据)。
内容交换¶
描述:可以从其他应用程序请求/导入数据
用法:普通
Using the content_exchange policy allows your app to be a consumer of content on content-hub.
文档文件¶
描述:可对文档文件进行读写。此策略组保留给某些应用程序,例如文档查看器。开发人员通常应该使用内容交换策略组和应用编程接口来访问文档文件。
用法:保留
此策略允许应用程序读取和写入用户主目录和外部设备中的“文档”文件夹。
文档文件读取¶
描述:可以读取所有文档文件。 此策略组保留用于某些应用程序,例如文档查看器。 开发人员通常应使用内容交换策略组和应用编程接口来访问文档文件。
用法:保留
此策略允许应用程序读取用户主目录和外部媒体中的“文档”文件夹。
music_files¶
Description: Can read and write to music files. This policy group is reserved for certain applications, such as music players. Developers should typically use the content_exchange policy group and API to access music files instead.
用法:保留
music_files 策略组允许应用程序读写用户主文件夹或外部媒体上的音乐目录。
music_files_read¶
Description: Can read all music files. This policy group is reserved for certain applications, such as music players. Developers should typically use the content_exchange policy group and API to access music files instead.
用法:保留
The music_files_read policy group allows an app to read the Music directories in the user’s home folder or on external media.
picture_files¶
描述:可读写图片文件。 此策略组保留用于某些应用程序,例如相册类应用。 开发人员通常应使用 content_exchange 策略组和 API 来访问图片文件。
用法:保留
The picture_files policy group allows an app to read and write to the Pictures directories in the user’s home folder or on external media.
picture_files_read¶
Description: Can read all picture files. This policy group is reserved for certain applications, such as gallery applications. Developers should typically use the content_exchange policy group and API to access picture files instead.
用法:保留
The picture_files_read policy group allows an app to read the Pictures directories in the user’s home folder or on external media.
usermetrics¶
Description: Can use UserMetrics to update the InfoGraphic
用法:普通
Allows an app to write metrics to the UserMetrics service so they can be displayed on the InfoGraphic.
video_files¶
Description: Can read and write to video files. This policy group is reserved for certain applications, such as gallery applications. Developers should typically use the content_exchange policy group and API to access video files instead.
用法:保留
video_files 策略组允许应用程序读取和写入用户主文件夹或外部媒体上的视频目录。
video_files_read¶
描述:可以读取所有视频文件。 此策略组保留用于某些应用程序,例如相册应用程序。开发人员通常应使用content_exchange 策略组和 API 来访问视频文件。
用法:保留
The video_files_read policy group allows an app to read the Videos directories in the user’s home folder or on external media.
webview¶
描述:可使用 UbuntuWebview
用法:普通
The webview policy group allows apps to embed a web browser view.