From a207134b009a69d216090b05f9b37352fadc4e1d Mon Sep 17 00:00:00 2001 From: fionaxu Date: Fri, 17 Feb 2017 17:36:11 -0800 Subject: [PATCH] move ACTION_CARRIER_SETUP intent to public api As per CDD: The "android.*" namespace for intent constants is reserved for public Android API in AOSP. (Whether public to the full SDK, @SystemApi or defined in AOSP support libraries.) ACTION_CARRIER_SETUP intent is generally useful for carrier privileged apps which is unbundled carrier apps, thus move to public APIs 33679956 Test: Manual Change-Id: I85dfa99d0b20bb1b534dfe8ead3c274a5c739786 --- .../settings/network/MobilePlanPreferenceController.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/com/android/settings/network/MobilePlanPreferenceController.java b/src/com/android/settings/network/MobilePlanPreferenceController.java index 42b2bea71b1..9d0878f8cd0 100644 --- a/src/com/android/settings/network/MobilePlanPreferenceController.java +++ b/src/com/android/settings/network/MobilePlanPreferenceController.java @@ -29,7 +29,6 @@ import android.telephony.TelephonyManager; import android.text.TextUtils; import android.util.Log; -import com.android.internal.telephony.TelephonyIntents; import com.android.settings.R; import com.android.settings.Utils; import com.android.settings.core.PreferenceController; @@ -129,7 +128,7 @@ public class MobilePlanPreferenceController extends PreferenceController impleme NetworkInfo ni = mCm.getActiveNetworkInfo(); if (mTm.hasIccCard() && (ni != null)) { // Check for carrier apps that can handle provisioning first - Intent provisioningIntent = new Intent(TelephonyIntents.ACTION_CARRIER_SETUP); + Intent provisioningIntent = new Intent(Intent.ACTION_CARRIER_SETUP); List carrierPackages = mTm.getCarrierPackageNamesForIntent(provisioningIntent); if (carrierPackages != null && !carrierPackages.isEmpty()) {