From 181138d2d1b238a3d0f6ab84d643948eb2854b89 Mon Sep 17 00:00:00 2001 From: fionaxu Date: Fri, 24 Feb 2017 10:42:12 -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 Bug: 33679956 Merged-in: I85dfa99d0b20bb1b534dfe8ead3c274a5c739786 Change-Id: I84ffd5f2c8c3418689ee3d5ff5ddc3f9f7959763 --- src/com/android/settings/WirelessSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/settings/WirelessSettings.java b/src/com/android/settings/WirelessSettings.java index fc473fc0e42..52b134474e4 100644 --- a/src/com/android/settings/WirelessSettings.java +++ b/src/com/android/settings/WirelessSettings.java @@ -125,7 +125,7 @@ public class WirelessSettings extends SettingsPreferenceFragment implements Inde 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()) {