From 84421d74dbb64a305026868551ac8f67984da2da Mon Sep 17 00:00:00 2001 From: Tyler Gunn Date: Fri, 3 Sep 2021 14:05:37 -0700 Subject: [PATCH] Update API docs for InCallService. Clarify that InCallService implementations should never indicate that they are non-exported. Test: Docs only fix Bug: 198003282 Change-Id: I85f925775b12c994a028e14d7644c744a252ec33 --- telecomm/java/android/telecom/InCallService.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/telecomm/java/android/telecom/InCallService.java b/telecomm/java/android/telecom/InCallService.java index 5e3d26a5179d6..705b4918726ea 100644 --- a/telecomm/java/android/telecom/InCallService.java +++ b/telecomm/java/android/telecom/InCallService.java @@ -81,7 +81,8 @@ import java.util.List; *
  * {@code
  * 
+ *          android:permission="android.permission.BIND_INCALL_SERVICE"
+ *          android:exported="true">
  *      
  *      
@@ -91,6 +92,10 @@ import java.util.List;
  * 
  * }
  * 
+ * + * Note: You should NOT mark your {@link InCallService} with the attribute + * {@code android:exported="false"}; doing so can result in a failure to bind to your implementation + * during calls. *

* In addition to implementing the {@link InCallService} API, you must also declare an activity in * your manifest which handles the {@link Intent#ACTION_DIAL} intent. The example below illustrates