From 5b97cf1395e6671f5663d8bdecb2b758fe8d6a22 Mon Sep 17 00:00:00 2001 From: Cassie Date: Thu, 22 Feb 2018 09:58:33 -0800 Subject: Add documentation for SECRET_CODE_ACTION according to API review process. * Document who can send and who can receive the broadcast. What are the security restrictions? The implication here is that there should be some. What are the wake-up semantics? * Document who can receive SECRET_CODE action and under what circumstances, and what permissions are needed to receive and send it. Bug: 73751267, 73392896 Test: Basic telephony sanity Change-Id: I1b6138c9ddf4cb3d84d8b652e18d4e57f410ee4d --- telephony/java/android/telephony/Telephony.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/telephony/java/android/telephony/Telephony.java b/telephony/java/android/telephony/Telephony.java index 8c4572474e6b..8c65627772e4 100644 --- a/telephony/java/android/telephony/Telephony.java +++ b/telephony/java/android/telephony/Telephony.java @@ -1102,10 +1102,15 @@ public final class Telephony { "android.provider.Telephony.MMS_DOWNLOADED"; /** - * Broadcast Action: A debug code has been entered in the dialer. These "secret codes" - * are used to activate developer menus by dialing certain codes. And they are of the - * form {@code *#*#<code>#*#*}. The intent will have the data URI: - * {@code android_secret_code://<code>}. + * Broadcast Action: A debug code has been entered in the dialer. This intent is + * broadcast by the system and OEM telephony apps may need to receive these broadcasts. + * These "secret codes" are used to activate developer menus by dialing certain codes. + * And they are of the form {@code *#*#<code>#*#*}. The intent will have the data + * URI: {@code android_secret_code://<code>}. It is possible that a manifest + * receiver would be woken up even if it is not currently running. + * + *

Requires {@code android.Manifest.permission#CONTROL_INCALL_EXPERIENCE} to + * send and receive.

*/ @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) public static final String SECRET_CODE_ACTION = -- cgit v1.2.3-59-g8ed1b