diff --git a/core/api/system-current.txt b/core/api/system-current.txt index 2c7f456c5e76a..e80d187118d84 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -9006,6 +9006,7 @@ package android.provider { field public static final String ACTION_SHOW_ADMIN_SUPPORT_DETAILS = "android.settings.SHOW_ADMIN_SUPPORT_DETAILS"; field public static final String ACTION_TETHER_PROVISIONING_UI = "android.settings.TETHER_PROVISIONING_UI"; field public static final String ACTION_TETHER_SETTINGS = "android.settings.TETHER_SETTINGS"; + field public static final String ACTION_TETHER_UNSUPPORTED_CARRIER_UI = "android.settings.TETHER_UNSUPPORTED_CARRIER_UI"; } public static final class Settings.Global extends android.provider.Settings.NameValueTable { diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index d0ef546a81226..e79cc32ac99dd 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -237,6 +237,20 @@ public final class Settings { public static final String ACTION_TETHER_PROVISIONING_UI = "android.settings.TETHER_PROVISIONING_UI"; + /** + * Activity Action: Show a dialog activity to notify tethering is NOT supported by carrier. + * + * When {@link android.telephony.CarrierConfigManager#KEY_CARRIER_SUPPORTS_TETHERING_BOOL} + * is false, and tethering is started by Settings, this dialog activity will be started to + * tell the user that tethering is not supported by carrier. + * + * @hide + */ + @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) + @SystemApi + public static final String ACTION_TETHER_UNSUPPORTED_CARRIER_UI = + "android.settings.TETHER_UNSUPPORTED_CARRIER_UI"; + /** * Activity Action: Show settings to allow entering/exiting airplane mode. *