Repoint ACTION_SECRET_CODE + ACTION_SIM_STATE_CHANGED
Bug: 148160428 Test: make, flash Change-Id: I9404e2c3c816311c7ef3875622fe5cd5a315ec58
This commit is contained in:
@@ -1,22 +1,21 @@
|
||||
package com.android.settings;
|
||||
|
||||
import static com.android.internal.telephony.TelephonyIntents.SECRET_CODE_ACTION;
|
||||
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.telephony.TelephonyManager;
|
||||
|
||||
import com.android.settings.Settings.TestingSettingsActivity;
|
||||
|
||||
|
||||
public class TestingSettingsBroadcastReceiver extends BroadcastReceiver {
|
||||
|
||||
|
||||
public TestingSettingsBroadcastReceiver() {
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
if (intent.getAction().equals(SECRET_CODE_ACTION)) {
|
||||
if (intent.getAction().equals(TelephonyManager.ACTION_SECRET_CODE)) {
|
||||
Intent i = new Intent(Intent.ACTION_MAIN);
|
||||
i.setClass(context, TestingSettingsActivity.class);
|
||||
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
|
Reference in New Issue
Block a user