diff options
author | mincheli <mincheli@google.com> | 2021-12-22 16:35:24 +0800 |
---|---|---|
committer | mincheli <mincheli@google.com> | 2021-12-22 16:50:36 +0800 |
commit | 40d29fac894bfe2e157881be9a06b565a45ead0a (patch) | |
tree | d4bfa6b40da901123a70537e6556d85b1e26fab6 | |
parent | edbdff98d5e2c9719afe4f6a9cf95b5d641fb577 (diff) | |
download | gs-common-40d29fac894bfe2e157881be9a06b565a45ead0a.tar.gz |
Adds pregrant permissions for TalkBack
Approved by b/204048166,
cl/410296191 updates the pregant list for TalkBack
"android.permission.READ_PHONE_STATE"
"android.permission.BLUETOOTH_CONNECT",
"android.permission.BLUETOOTH_SCAN",
"android.permission.BLUETOOTH_ADVERTISE",
Bug: 192521587
Test: manual
Change-Id: Ib21e56fa2038c9368b1be9318639dce03f510691
-rw-r--r-- | default-talkback-permissions.xml | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/default-talkback-permissions.xml b/default-talkback-permissions.xml new file mode 100644 index 0000000..ca8b5dd --- /dev/null +++ b/default-talkback-permissions.xml @@ -0,0 +1,56 @@ +<?xml version='1.0' encoding='utf-8' standalone='yes' ?> + +<!-- Copyright (C) 2021 Google Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<!-- + This file contains permissions to be granted by default. Default + permissions are granted to special platform components and to apps + that are approved to get default grants. The special components + are apps that are expected tto work out-of-the-box as they provide + core use cases such as default dialer, default email, etc. These + grants are managed by the platform. The apps that are additionally + approved for default grants are ones that provide carrier specific + functionality, ones legally required at some location, ones providing + alternative disclosure and opt-out UI, ones providing highlight features + of a dedicated device, etc. This file contains only the latter exceptions. + Fixed permissions cannot be controlled by the user and need a special + approval. Typically these are to ensure either legally mandated functions + or the app is considered a part of the OS. +--> + +<exceptions> + + <!-- This is an example of an exception: + <exception + package="foo.bar.permission" + <permission name="android.permission.READ_CONTACTS" fixed="true"/> + <permission name="android.permission.READ_CALENDAR" fixed="false"/> + </exception> + --> + + <exception package="com.google.android.marvin.talkback"> + <!-- TalkBack: screen-reader for blind/low-vision users --> + + <!-- Phone state to reduce feedback when user is in a phone call --> + <permission name="android.permission.READ_PHONE_STATE" fixed="false"/> + <!-- Facilitate BT-capable braille displays with these BLUETOOTH pregrants --> + <permission name="android.permission.BLUETOOTH_CONNECT" fixed="false"/> + <permission name="android.permission.BLUETOOTH_SCAN" fixed="false"/> + <permission name="android.permission.BLUETOOTH_ADVERTISE" fixed="false"/> + </exception> + +</exceptions> + |