Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f90dadaf authored by Yorke Lee's avatar Yorke Lee
Browse files

Remove private reference to TelephonyIntents.SECRET_CODE_ACTION

Bug: 6948882
Change-Id: Id08daec677abddf1c1987ac3f41dbefe89a10144
parent d8194d28
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -39,8 +39,6 @@ import android.widget.Toast;

import com.android.contacts.common.database.NoNullCursorAsyncQueryHandler;
import com.android.internal.telephony.ITelephony;
import com.android.internal.telephony.TelephonyCapabilities;
import com.android.internal.telephony.TelephonyIntents;

/**
 * Helper class to listen for some magic character sequences
@@ -57,6 +55,7 @@ import com.android.internal.telephony.TelephonyIntents;
public class SpecialCharSequenceMgr {
    private static final String TAG = "SpecialCharSequenceMgr";

    private static final String SECRET_CODE_ACTION = "android.provider.Telephony.SECRET_CODE";
    private static final String MMI_IMEI_DISPLAY = "*#06#";
    private static final String MMI_REGULATORY_INFO_DISPLAY = "*#07#";

@@ -136,7 +135,7 @@ public class SpecialCharSequenceMgr {
        // Secret codes are in the form *#*#<code>#*#*
        int len = input.length();
        if (len > 8 && input.startsWith("*#*#") && input.endsWith("#*#*")) {
            Intent intent = new Intent(TelephonyIntents.SECRET_CODE_ACTION,
            final Intent intent = new Intent(SECRET_CODE_ACTION,
                    Uri.parse("android_secret_code://" + input.substring(4, len - 4)));
            context.sendBroadcast(intent);
            return true;