From f8c3cca932ff957e0a4b3892687633e97f286d92 Mon Sep 17 00:00:00 2001 From: Tyler Gunn Date: Fri, 29 Mar 2019 16:38:29 -0700 Subject: [PATCH] Mark PROCESS_OUTGOING_CALLS permission as deprecated. We deprecated the NEW_OUTGOING_CALL broadcast which uses this, so we should also deprecate the permission to make it more clear to the developers. Test: Build / make api Bug: 129531123 Bug: 129572090 Change-Id: Iac4979ffe29c33eb2ed8ffe4a7799e7caa794951 --- api/current.txt | 2 +- core/res/AndroidManifest.xml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/api/current.txt b/api/current.txt index 76011b52fd907..eb6c27eeb9a1f 100755 --- a/api/current.txt +++ b/api/current.txt @@ -99,7 +99,7 @@ package android { field public static final String NFC_TRANSACTION_EVENT = "android.permission.NFC_TRANSACTION_EVENT"; field public static final String PACKAGE_USAGE_STATS = "android.permission.PACKAGE_USAGE_STATS"; field @Deprecated public static final String PERSISTENT_ACTIVITY = "android.permission.PERSISTENT_ACTIVITY"; - field public static final String PROCESS_OUTGOING_CALLS = "android.permission.PROCESS_OUTGOING_CALLS"; + field @Deprecated public static final String PROCESS_OUTGOING_CALLS = "android.permission.PROCESS_OUTGOING_CALLS"; field public static final String READ_CALENDAR = "android.permission.READ_CALENDAR"; field public static final String READ_CALL_LOG = "android.permission.READ_CALL_LOG"; field public static final String READ_CONTACTS = "android.permission.READ_CONTACTS"; diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index e62df2a189a79..18ca4140d2926 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -912,6 +912,9 @@ call with the option to redirect the call to a different number or abort the call altogether.

Protection level: dangerous + + @deprecated Applications should use {@link android.telecom.CallRedirectionService} instead + of the {@link android.content.Intent#ACTION_NEW_OUTGOING_CALL} broadcast. -->