From a2f3fa9dd517e54bcc7167082a988f43ae661ef2 Mon Sep 17 00:00:00 2001 From: Youming Ye Date: Tue, 2 Oct 2018 13:24:43 -0700 Subject: Enable Telecom to bind third party InCallServices. Changes for Telecom to bind third party companion apps or automotive ui installed from Play Store. Add new permissions and settings for the third party InCallService APIs. Bug: 78174835 Test: Manual Change-Id: I1b4eff28b9dfd61f1c951d14b6c82395b51fe769 Merged-In: I1b4eff28b9dfd61f1c951d14b6c82395b51fe769 --- api/current.txt | 3 +++ core/res/AndroidManifest.xml | 12 ++++++++++++ core/res/res/values/strings.xml | 9 +++++++++ telecomm/java/android/telecom/TelecomManager.java | 13 +++++++------ 4 files changed, 31 insertions(+), 6 deletions(-) diff --git a/api/current.txt b/api/current.txt index e740b85a3e46..e8e86c789255 100755 --- a/api/current.txt +++ b/api/current.txt @@ -54,6 +54,7 @@ package android { field public static final String BROADCAST_SMS = "android.permission.BROADCAST_SMS"; field public static final String BROADCAST_STICKY = "android.permission.BROADCAST_STICKY"; field public static final String BROADCAST_WAP_PUSH = "android.permission.BROADCAST_WAP_PUSH"; + field public static final String CALL_COMPANION_APP = "android.permission.CALL_COMPANION_APP"; field public static final String CALL_PHONE = "android.permission.CALL_PHONE"; field public static final String CALL_PRIVILEGED = "android.permission.CALL_PRIVILEGED"; field public static final String CAMERA = "android.permission.CAMERA"; @@ -41957,6 +41958,7 @@ package android.telecom { field public static final String EXTRA_INCOMING_CALL_EXTRAS = "android.telecom.extra.INCOMING_CALL_EXTRAS"; field public static final String EXTRA_INCOMING_VIDEO_STATE = "android.telecom.extra.INCOMING_VIDEO_STATE"; field public static final String EXTRA_IS_DEFAULT_CALL_SCREENING_APP = "android.telecom.extra.IS_DEFAULT_CALL_SCREENING_APP"; + field public static final String EXTRA_IS_ENABLED = "android.telecom.extra.IS_ENABLED"; field public static final String EXTRA_NOTIFICATION_COUNT = "android.telecom.extra.NOTIFICATION_COUNT"; field public static final String EXTRA_NOTIFICATION_PHONE_NUMBER = "android.telecom.extra.NOTIFICATION_PHONE_NUMBER"; field public static final String EXTRA_OUTGOING_CALL_EXTRAS = "android.telecom.extra.OUTGOING_CALL_EXTRAS"; @@ -41968,6 +41970,7 @@ package android.telecom { field public static final String GATEWAY_PROVIDER_PACKAGE = "android.telecom.extra.GATEWAY_PROVIDER_PACKAGE"; field public static final String METADATA_INCLUDE_EXTERNAL_CALLS = "android.telecom.INCLUDE_EXTERNAL_CALLS"; field public static final String METADATA_INCLUDE_SELF_MANAGED_CALLS = "android.telecom.INCLUDE_SELF_MANAGED_CALLS"; + field public static final String METADATA_IN_CALL_SERVICE_CAR_MODE_UI = "android.telecom.IN_CALL_SERVICE_CAR_MODE_UI"; field public static final String METADATA_IN_CALL_SERVICE_RINGING = "android.telecom.IN_CALL_SERVICE_RINGING"; field public static final String METADATA_IN_CALL_SERVICE_UI = "android.telecom.IN_CALL_SERVICE_UI"; field public static final int PRESENTATION_ALLOWED = 1; // 0x1 diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index e62df2a189a7..71879194ccf6 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -1009,6 +1009,18 @@ android:description="@string/permdesc_manageOwnCalls" android:protectionLevel="normal" /> + + + + see and control calls through the system. + + Allows the app to see and control ongoing calls on the + device. This includes information such as call numbers for calls and the state of the + calls. +