diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index df777899f7128..157147e0de488 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -1249,13 +1249,13 @@ android:description="@string/permdesc_use_sip" android:label="@string/permlab_use_sip" /> - - + android:description="@string/permdesc_bind_incall_service" + android:label="@string/permlab_bind_incall_service" /> @@ -1265,6 +1265,14 @@ android:description="@string/permdesc_bind_connection_service" android:label="@string/permlab_bind_connection_service" /> + + + diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml index 1e5e40dde335f..2936e2ba76e66 100644 --- a/core/res/res/values/strings.xml +++ b/core/res/res/values/strings.xml @@ -2112,15 +2112,20 @@ Allows the app to make and receive SIP calls. - interact with in-call screen + interact with in-call screen - Allows the app to control when and how the user sees the in-call screen. + Allows the app to control when and how the user sees the in-call screen. interact with telephony services Allows the app to interact with telephony services to make/receive calls. + + provide an in-call user experience + + Allows the app to provide an in-call user experience. + read historical network usage diff --git a/telecomm/java/android/telecomm/InCallService.java b/telecomm/java/android/telecomm/InCallService.java index de05d1c4db9cd..5795e0e607e07 100644 --- a/telecomm/java/android/telecomm/InCallService.java +++ b/telecomm/java/android/telecomm/InCallService.java @@ -16,6 +16,7 @@ package android.telecomm; +import android.annotation.SdkConstant; import android.app.PendingIntent; import android.app.Service; import android.content.Intent; @@ -39,6 +40,13 @@ import java.lang.String; * {@hide} */ public abstract class InCallService extends Service { + + /** + * The {@link Intent} that must be declared as handled by the service. + */ + @SdkConstant(SdkConstant.SdkConstantType.SERVICE_ACTION) + public static final String SERVICE_INTERFACE = "android.telecomm.InCallService"; + private static final int MSG_SET_IN_CALL_ADAPTER = 1; private static final int MSG_ADD_CALL = 2; private static final int MSG_UPDATE_CALL = 3;