Merge "Fix issue #78230210: Strobe: Need separate runtime permission group for READ_CALL_LOG and WRITE_CALL_LOG" into pi-dev
am: 06defc2a31
Change-Id: I11e244ed55d75fa08b74dc588dd5cd3059997869
This commit is contained in:
committed by
android-build-merger
commit
0bd5e9860c
@@ -162,6 +162,7 @@ package android {
|
||||
public static final class Manifest.permission_group {
|
||||
ctor public Manifest.permission_group();
|
||||
field public static final java.lang.String CALENDAR = "android.permission-group.CALENDAR";
|
||||
field public static final java.lang.String CALL_LOG = "android.permission-group.CALL_LOG";
|
||||
field public static final java.lang.String CAMERA = "android.permission-group.CAMERA";
|
||||
field public static final java.lang.String CONTACTS = "android.permission-group.CONTACTS";
|
||||
field public static final java.lang.String LOCATION = "android.permission-group.LOCATION";
|
||||
|
||||
@@ -839,6 +839,77 @@
|
||||
android:description="@string/permdesc_accessCoarseLocation"
|
||||
android:protectionLevel="dangerous|instant" />
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Permissions for accessing the call log -->
|
||||
<!-- ====================================================================== -->
|
||||
<eat-comment />
|
||||
|
||||
<!-- Used for permissions that are associated telephony features. -->
|
||||
<permission-group android:name="android.permission-group.CALL_LOG"
|
||||
android:icon="@drawable/perm_group_phone_calls"
|
||||
android:label="@string/permgrouplab_calllog"
|
||||
android:description="@string/permgroupdesc_calllog"
|
||||
android:request="@string/permgrouprequest_calllog"
|
||||
android:priority="450" />
|
||||
|
||||
<!-- Allows an application to access the IMS call service: making and
|
||||
modifying a call
|
||||
<p>Protection level: signature|privileged
|
||||
@hide
|
||||
-->
|
||||
<permission android:name="android.permission.ACCESS_IMS_CALL_SERVICE"
|
||||
android:label="@string/permlab_accessImsCallService"
|
||||
android:description="@string/permdesc_accessImsCallService"
|
||||
android:protectionLevel="signature|privileged" />
|
||||
|
||||
<!-- Allows an application to read the user's call log.
|
||||
<p class="note"><strong>Note:</strong> If your app uses the
|
||||
{@link #READ_CONTACTS} permission and <em>both</em> your <a
|
||||
href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#min">{@code
|
||||
minSdkVersion}</a> and <a
|
||||
href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#target">{@code
|
||||
targetSdkVersion}</a> values are set to 15 or lower, the system implicitly
|
||||
grants your app this permission. If you don't need this permission, be sure your <a
|
||||
href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#target">{@code
|
||||
targetSdkVersion}</a> is 16 or higher.</p>
|
||||
<p>Protection level: dangerous
|
||||
-->
|
||||
<permission android:name="android.permission.READ_CALL_LOG"
|
||||
android:permissionGroup="android.permission-group.CALL_LOG"
|
||||
android:label="@string/permlab_readCallLog"
|
||||
android:description="@string/permdesc_readCallLog"
|
||||
android:protectionLevel="dangerous" />
|
||||
|
||||
<!-- Allows an application to write (but not read) the user's
|
||||
call log data.
|
||||
<p class="note"><strong>Note:</strong> If your app uses the
|
||||
{@link #WRITE_CONTACTS} permission and <em>both</em> your <a
|
||||
href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#min">{@code
|
||||
minSdkVersion}</a> and <a
|
||||
href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#target">{@code
|
||||
targetSdkVersion}</a> values are set to 15 or lower, the system implicitly
|
||||
grants your app this permission. If you don't need this permission, be sure your <a
|
||||
href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#target">{@code
|
||||
targetSdkVersion}</a> is 16 or higher.</p>
|
||||
<p>Protection level: dangerous
|
||||
-->
|
||||
<permission android:name="android.permission.WRITE_CALL_LOG"
|
||||
android:permissionGroup="android.permission-group.CALL_LOG"
|
||||
android:label="@string/permlab_writeCallLog"
|
||||
android:description="@string/permdesc_writeCallLog"
|
||||
android:protectionLevel="dangerous" />
|
||||
|
||||
<!-- Allows an application to see the number being dialed during an outgoing
|
||||
call with the option to redirect the call to a different number or
|
||||
abort the call altogether.
|
||||
<p>Protection level: dangerous
|
||||
-->
|
||||
<permission android:name="android.permission.PROCESS_OUTGOING_CALLS"
|
||||
android:permissionGroup="android.permission-group.CALL_LOG"
|
||||
android:label="@string/permlab_processOutgoingCalls"
|
||||
android:description="@string/permdesc_processOutgoingCalls"
|
||||
android:protectionLevel="dangerous" />
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Permissions for accessing the device telephony -->
|
||||
<!-- ====================================================================== -->
|
||||
@@ -891,54 +962,6 @@
|
||||
android:description="@string/permdesc_callPhone"
|
||||
android:protectionLevel="dangerous" />
|
||||
|
||||
<!-- Allows an application to access the IMS call service: making and
|
||||
modifying a call
|
||||
<p>Protection level: signature|privileged
|
||||
@hide
|
||||
-->
|
||||
<permission android:name="android.permission.ACCESS_IMS_CALL_SERVICE"
|
||||
android:permissionGroup="android.permission-group.PHONE"
|
||||
android:label="@string/permlab_accessImsCallService"
|
||||
android:description="@string/permdesc_accessImsCallService"
|
||||
android:protectionLevel="signature|privileged" />
|
||||
|
||||
<!-- Allows an application to read the user's call log.
|
||||
<p class="note"><strong>Note:</strong> If your app uses the
|
||||
{@link #READ_CONTACTS} permission and <em>both</em> your <a
|
||||
href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#min">{@code
|
||||
minSdkVersion}</a> and <a
|
||||
href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#target">{@code
|
||||
targetSdkVersion}</a> values are set to 15 or lower, the system implicitly
|
||||
grants your app this permission. If you don't need this permission, be sure your <a
|
||||
href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#target">{@code
|
||||
targetSdkVersion}</a> is 16 or higher.</p>
|
||||
<p>Protection level: dangerous
|
||||
-->
|
||||
<permission android:name="android.permission.READ_CALL_LOG"
|
||||
android:permissionGroup="android.permission-group.PHONE"
|
||||
android:label="@string/permlab_readCallLog"
|
||||
android:description="@string/permdesc_readCallLog"
|
||||
android:protectionLevel="dangerous" />
|
||||
|
||||
<!-- Allows an application to write (but not read) the user's
|
||||
call log data.
|
||||
<p class="note"><strong>Note:</strong> If your app uses the
|
||||
{@link #WRITE_CONTACTS} permission and <em>both</em> your <a
|
||||
href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#min">{@code
|
||||
minSdkVersion}</a> and <a
|
||||
href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#target">{@code
|
||||
targetSdkVersion}</a> values are set to 15 or lower, the system implicitly
|
||||
grants your app this permission. If you don't need this permission, be sure your <a
|
||||
href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#target">{@code
|
||||
targetSdkVersion}</a> is 16 or higher.</p>
|
||||
<p>Protection level: dangerous
|
||||
-->
|
||||
<permission android:name="android.permission.WRITE_CALL_LOG"
|
||||
android:permissionGroup="android.permission-group.PHONE"
|
||||
android:label="@string/permlab_writeCallLog"
|
||||
android:description="@string/permdesc_writeCallLog"
|
||||
android:protectionLevel="dangerous" />
|
||||
|
||||
<!-- Allows an application to add voicemails into the system.
|
||||
<p>Protection level: dangerous
|
||||
-->
|
||||
@@ -957,18 +980,6 @@
|
||||
android:label="@string/permlab_use_sip"
|
||||
android:protectionLevel="dangerous"/>
|
||||
|
||||
<!-- Allows an application to see the number being dialed during an outgoing
|
||||
call with the option to redirect the call to a different number or
|
||||
abort the call altogether.
|
||||
<p>Protection level: dangerous
|
||||
-->
|
||||
<permission android:name="android.permission.PROCESS_OUTGOING_CALLS"
|
||||
android:permissionGroup="android.permission-group.PHONE"
|
||||
android:label="@string/permlab_processOutgoingCalls"
|
||||
android:description="@string/permdesc_processOutgoingCalls"
|
||||
android:protectionLevel="dangerous" />
|
||||
|
||||
|
||||
<!-- Allows the app to answer an incoming phone call.
|
||||
<p>Protection level: dangerous
|
||||
-->
|
||||
|
||||
@@ -723,6 +723,14 @@
|
||||
<string name="permgrouprequest_camera">Allow
|
||||
<b><xliff:g id="app_name" example="Gmail">%1$s</xliff:g></b> to take pictures and record video?</string>
|
||||
|
||||
<!-- Title of a category of application permissions, listed so the user can choose whether they want to allow the application to do this. -->
|
||||
<string name="permgrouplab_calllog">Call logs</string>
|
||||
<!-- Description of a category of application permissions, listed so the user can choose whether they want to allow the application to do this. -->
|
||||
<string name="permgroupdesc_calllog">read and write phone call log</string>
|
||||
<!-- Message shown to the user when the apps requests permission from this group -->
|
||||
<string name="permgrouprequest_calllog">Allow
|
||||
<b><xliff:g id="app_name" example="Gmail">%1$s</xliff:g></b> to access your phone call logs?</string>
|
||||
|
||||
<!-- Title of a category of application permissions, listed so the user can choose whether they want to allow the application to do this. -->
|
||||
<string name="permgrouplab_phone">Phone</string>
|
||||
<!-- Description of a category of application permissions, listed so the user can choose whether they want to allow the application to do this. -->
|
||||
|
||||
Reference in New Issue
Block a user