Revert "Hide CarrierPrivilege APIs in TelMgr."
This reverts commit b7aa9e4a6338811d4dacc77e6024a0b97a99e5e9. Change-Id: I212cd4f1b7b45e0523fc47b2a9c2a6b487e9dbb5
This commit is contained in:
@@ -28860,6 +28860,7 @@ package android.telephony {
|
||||
method public java.lang.String getSubscriberId();
|
||||
method public java.lang.String getVoiceMailAlphaTag();
|
||||
method public java.lang.String getVoiceMailNumber();
|
||||
method public int hasCarrierPrivileges();
|
||||
method public boolean hasIccCard();
|
||||
method public boolean iccCloseLogicalChannel(int);
|
||||
method public byte[] iccExchangeSimIO(int, int, int, int, int, java.lang.String);
|
||||
@@ -28870,11 +28871,18 @@ package android.telephony {
|
||||
method public boolean isSmsCapable();
|
||||
method public void listen(android.telephony.PhoneStateListener, int);
|
||||
method public java.lang.String sendEnvelopeWithStatus(java.lang.String);
|
||||
method public boolean setGlobalPreferredNetworkType();
|
||||
method public void setLine1NumberForDisplay(java.lang.String, java.lang.String);
|
||||
method public boolean setOperatorBrandOverride(java.lang.String);
|
||||
field public static final java.lang.String ACTION_PHONE_STATE_CHANGED = "android.intent.action.PHONE_STATE";
|
||||
field public static final java.lang.String ACTION_RESPOND_VIA_MESSAGE = "android.intent.action.RESPOND_VIA_MESSAGE";
|
||||
field public static final int CALL_STATE_IDLE = 0; // 0x0
|
||||
field public static final int CALL_STATE_OFFHOOK = 2; // 0x2
|
||||
field public static final int CALL_STATE_RINGING = 1; // 0x1
|
||||
field public static final int CARRIER_PRIVILEGE_STATUS_ERROR_LOADING_RULES = -2; // 0xfffffffe
|
||||
field public static final int CARRIER_PRIVILEGE_STATUS_HAS_ACCESS = 1; // 0x1
|
||||
field public static final int CARRIER_PRIVILEGE_STATUS_NO_ACCESS = 0; // 0x0
|
||||
field public static final int CARRIER_PRIVILEGE_STATUS_RULES_NOT_LOADED = -1; // 0xffffffff
|
||||
field public static final int DATA_ACTIVITY_DORMANT = 4; // 0x4
|
||||
field public static final int DATA_ACTIVITY_IN = 1; // 0x1
|
||||
field public static final int DATA_ACTIVITY_INOUT = 3; // 0x3
|
||||
|
||||
@@ -283,6 +283,9 @@ public class PhoneAccount implements Parcelable {
|
||||
* The raw callback number used for this {@code PhoneAccount}, as distinct from
|
||||
* {@link #getAddress()}. For the majority of {@code PhoneAccount}s this should be registered
|
||||
* as {@code null}. It is used by the system for SIM-based {@code PhoneAccount} registration
|
||||
* where {@link android.telephony.TelephonyManager#setLine1NumberForDisplay(String, String)}
|
||||
* has been used to alter the callback number.
|
||||
* <p>
|
||||
*
|
||||
* @return The subscription number, suitable for display to the user.
|
||||
*/
|
||||
|
||||
@@ -1769,7 +1769,6 @@ public class TelephonyManager {
|
||||
*
|
||||
* @param alphaTag alpha-tagging of the dailing nubmer
|
||||
* @param number The dialing number
|
||||
* @hide
|
||||
*/
|
||||
public void setLine1NumberForDisplay(String alphaTag, String number) {
|
||||
setLine1NumberForDisplayForSubscriber(getDefaultSubscription(), alphaTag, number);
|
||||
@@ -2414,6 +2413,7 @@ public class TelephonyManager {
|
||||
*
|
||||
* <p>Requires Permission:
|
||||
* {@link android.Manifest.permission#MODIFY_PHONE_STATE MODIFY_PHONE_STATE}
|
||||
* Or the calling app has carrier privileges. @see #hasCarrierPrivileges
|
||||
*
|
||||
* @param AID Application id. See ETSI 102.221 and 101.220.
|
||||
* @return an IccOpenLogicalChannelResponse object.
|
||||
@@ -2434,6 +2434,7 @@ public class TelephonyManager {
|
||||
*
|
||||
* <p>Requires Permission:
|
||||
* {@link android.Manifest.permission#MODIFY_PHONE_STATE MODIFY_PHONE_STATE}
|
||||
* Or the calling app has carrier privileges. @see #hasCarrierPrivileges
|
||||
*
|
||||
* @param channel is the channel id to be closed as retruned by a successful
|
||||
* iccOpenLogicalChannel.
|
||||
@@ -2455,6 +2456,7 @@ public class TelephonyManager {
|
||||
*
|
||||
* <p>Requires Permission:
|
||||
* {@link android.Manifest.permission#MODIFY_PHONE_STATE MODIFY_PHONE_STATE}
|
||||
* Or the calling app has carrier privileges. @see #hasCarrierPrivileges
|
||||
*
|
||||
* @param channel is the channel id to be closed as returned by a successful
|
||||
* iccOpenLogicalChannel.
|
||||
@@ -2486,6 +2488,7 @@ public class TelephonyManager {
|
||||
*
|
||||
* <p>Requires Permission:
|
||||
* {@link android.Manifest.permission#MODIFY_PHONE_STATE MODIFY_PHONE_STATE}
|
||||
* Or the calling app has carrier privileges. @see #hasCarrierPrivileges
|
||||
*
|
||||
* @param cla Class of the APDU command.
|
||||
* @param instruction Instruction of the APDU command.
|
||||
@@ -2513,6 +2516,7 @@ public class TelephonyManager {
|
||||
*
|
||||
* <p>Requires Permission:
|
||||
* {@link android.Manifest.permission#MODIFY_PHONE_STATE MODIFY_PHONE_STATE}
|
||||
* Or the calling app has carrier privileges. @see #hasCarrierPrivileges
|
||||
*
|
||||
* @param fileID
|
||||
* @param command
|
||||
@@ -2538,6 +2542,7 @@ public class TelephonyManager {
|
||||
*
|
||||
* <p>Requires Permission:
|
||||
* {@link android.Manifest.permission#MODIFY_PHONE_STATE MODIFY_PHONE_STATE}
|
||||
* Or the calling app has carrier privileges. @see #hasCarrierPrivileges
|
||||
*
|
||||
* @param content String containing SAT/USAT response in hexadecimal
|
||||
* format starting with command tag. See TS 102 223 for
|
||||
@@ -3002,7 +3007,6 @@ public class TelephonyManager {
|
||||
* Or the calling app has carrier privileges. @see #hasCarrierPrivileges
|
||||
*
|
||||
* @return true on success; false on any failure.
|
||||
* @hide
|
||||
*/
|
||||
public boolean setGlobalPreferredNetworkType() {
|
||||
return setPreferredNetworkType(RILConstants.NETWORK_MODE_LTE_CDMA_EVDO_GSM_WCDMA);
|
||||
@@ -3010,23 +3014,10 @@ public class TelephonyManager {
|
||||
|
||||
/**
|
||||
* Values used to return status for hasCarrierPrivileges call.
|
||||
* @hide
|
||||
*/
|
||||
public static final int CARRIER_PRIVILEGE_STATUS_HAS_ACCESS = 1;
|
||||
/**
|
||||
* Values used to return status for hasCarrierPrivileges call.
|
||||
* @hide
|
||||
*/
|
||||
public static final int CARRIER_PRIVILEGE_STATUS_NO_ACCESS = 0;
|
||||
/**
|
||||
* Values used to return status for hasCarrierPrivileges call.
|
||||
* @hide
|
||||
*/
|
||||
public static final int CARRIER_PRIVILEGE_STATUS_RULES_NOT_LOADED = -1;
|
||||
/**
|
||||
* Values used to return status for hasCarrierPrivileges call.
|
||||
* @hide
|
||||
*/
|
||||
public static final int CARRIER_PRIVILEGE_STATUS_ERROR_LOADING_RULES = -2;
|
||||
|
||||
/**
|
||||
@@ -3043,7 +3034,6 @@ public class TelephonyManager {
|
||||
* CARRIER_PRIVILEGE_STATUS_RULES_NOT_LOADED if the carrier rules are not loaded.
|
||||
* CARRIER_PRIVILEGE_STATUS_ERROR_LOADING_RULES if there was an error loading carrier
|
||||
* rules (or if there are no rules).
|
||||
* @hide
|
||||
*/
|
||||
public int hasCarrierPrivileges() {
|
||||
try {
|
||||
@@ -3070,7 +3060,6 @@ public class TelephonyManager {
|
||||
*
|
||||
* @param brand The brand name to display/set.
|
||||
* @return true if the operation was executed correctly.
|
||||
* @hide
|
||||
*/
|
||||
public boolean setOperatorBrandOverride(String brand) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user