From 866f494dc2060c57ff43fb1cc465ed9159c88441 Mon Sep 17 00:00:00 2001 From: Cassie Date: Fri, 19 Jan 2018 17:23:36 -0800 Subject: [PATCH] Move android.provider.Telephony.SECRET_CODE to Telephony.Intents. Bug: 69616728 Test: Basic telephony sanity Change-Id: Ia053f9be082ceb139a284598ee2398a25daa7e08 --- api/current.txt | 1 + telephony/java/android/telephony/Telephony.java | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/api/current.txt b/api/current.txt index abdccf3767891..2f044652a0678 100644 --- a/api/current.txt +++ b/api/current.txt @@ -35720,6 +35720,7 @@ package android.provider { field public static final int RESULT_SMS_HANDLED = 1; // 0x1 field public static final int RESULT_SMS_OUT_OF_MEMORY = 3; // 0x3 field public static final int RESULT_SMS_UNSUPPORTED = 4; // 0x4 + field public static final java.lang.String SECRET_CODE_ACTION = "android.provider.Telephony.SECRET_CODE"; field public static final java.lang.String SIM_FULL_ACTION = "android.provider.Telephony.SIM_FULL"; field public static final java.lang.String SMS_CB_RECEIVED_ACTION = "android.provider.Telephony.SMS_CB_RECEIVED"; field public static final java.lang.String SMS_DELIVER_ACTION = "android.provider.Telephony.SMS_DELIVER"; diff --git a/telephony/java/android/telephony/Telephony.java b/telephony/java/android/telephony/Telephony.java index e633053800bc0..8c4572474e6b0 100644 --- a/telephony/java/android/telephony/Telephony.java +++ b/telephony/java/android/telephony/Telephony.java @@ -1101,6 +1101,16 @@ public final class Telephony { public static final String MMS_DOWNLOADED_ACTION = "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>}. + */ + @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) + public static final String SECRET_CODE_ACTION = + "android.provider.Telephony.SECRET_CODE"; + /** * Broadcast action: When the default SMS package changes, * the previous default SMS package and the new default SMS