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

Commit 3f916497 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Make isDataCapable a public API" am: 965d021b am: abed1c46 am: 1d40d065 am: 69cd0601

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1629275

Change-Id: Ia475460b6c4b6b23e18e7e9a96e3f7d16f45ba4c
parents d144d396 69cd0601
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -42372,6 +42372,7 @@ package android.telephony {
    method @Deprecated public String iccTransmitApduBasicChannel(int, int, int, int, int, String);
    method @Deprecated public String iccTransmitApduLogicalChannel(int, int, int, int, int, int, String);
    method public boolean isConcurrentVoiceAndDataSupported();
    method public boolean isDataCapable();
    method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_NETWORK_STATE, android.Manifest.permission.READ_PHONE_STATE, "android.permission.READ_PRIVILEGED_PHONE_STATE"}) public boolean isDataConnectionAllowed();
    method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_NETWORK_STATE, android.Manifest.permission.MODIFY_PHONE_STATE, android.Manifest.permission.READ_PHONE_STATE}) public boolean isDataEnabled();
    method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_NETWORK_STATE, android.Manifest.permission.READ_PHONE_STATE}) public boolean isDataEnabledForReason(int);
+0 −6
Original line number Diff line number Diff line
@@ -12388,12 +12388,6 @@ public class TelephonyManager {
     * "Data capable" means that this device supports packet-switched
     * data connections over the telephony network.
     * <p>
     * Note: the meaning of this flag is subtly different from the
     * PackageManager.FEATURE_TELEPHONY system feature, which is available
     * on any device with a telephony radio, even if the device is
     * voice-only.
     *
     * @hide
     */
    public boolean isDataCapable() {
        if (mContext == null) return true;