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

Commit 12443339 authored by Shishir Agrawal's avatar Shishir Agrawal Committed by Android (Google) Code Review
Browse files

Merge "API change: SetOperatorBrandOverride should not take iccId as a param." into lmp-dev

parents f7c8b58e d2cfa921
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -29051,7 +29051,7 @@ package android.telephony {
    method public boolean setCdmaSubscription(int);
    method public void setLine1NumberForDisplay(java.lang.String, java.lang.String);
    method public void setLine1NumberForDisplay(long, java.lang.String, java.lang.String);
    method public boolean setOperatorBrandOverride(java.lang.String, java.lang.String);
    method public boolean setOperatorBrandOverride(java.lang.String);
    method public boolean setPreferredNetworkType(int);
    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";
+4 −6
Original line number Diff line number Diff line
@@ -3023,9 +3023,9 @@ public class TelephonyManager {
    }

    /**
     * Override the branding for the input ICCID.
     * Override the branding for the current ICCID.
     *
     * Once set, whenever the ICCID is inserted into the device, the service
     * Once set, whenever the SIM is present in the device, the service
     * provider name (SPN) and the operator name will both be replaced by the
     * brand value input. To unset the value, the same function should be
     * called with a null brand value.
@@ -3034,14 +3034,12 @@ public class TelephonyManager {
     *   {@link android.Manifest.permission#MODIFY_PHONE_STATE MODIFY_PHONE_STATE}
     *  or has to be carrier app - see #hasCarrierPrivileges.
     *
     * @param iccId The ICCID of that the branding applies to.
     * @param brand The brand name to display/set.
     * @return true if the operation was executed correctly.
     */
    public boolean setOperatorBrandOverride(String iccId, String brand) {
        // TODO: Validate ICCID format.
    public boolean setOperatorBrandOverride(String brand) {
        try {
            return getITelephony().setOperatorBrandOverride(iccId, brand);
            return getITelephony().setOperatorBrandOverride(brand);
        } catch (RemoteException ex) {
            Rlog.e(TAG, "setOperatorBrandOverride RemoteException", ex);
        } catch (NullPointerException ex) {
+3 −4
Original line number Diff line number Diff line
@@ -766,9 +766,9 @@ interface ITelephony {
    String getLine1AlphaTagForDisplay(long subId);

    /**
     * Override the operator branding for the input ICCID.
     * Override the operator branding for the current ICCID.
     *
     * Once set, whenever the ICCID is inserted into the device, the service
     * Once set, whenever the SIM is present in the device, the service
     * provider name (SPN) and the operator name will both be replaced by the
     * brand value input. To unset the value, the same function should be
     * called with a null brand value.
@@ -777,11 +777,10 @@ interface ITelephony {
     *   {@link android.Manifest.permission#MODIFY_PHONE_STATE MODIFY_PHONE_STATE}
     *  or has to be carrier app - see #hasCarrierPrivileges.
     *
     * @param iccid The ICCID of that the branding applies to.
     * @param brand The brand name to display/set.
     * @return true if the operation was executed correctly.
     */
    boolean setOperatorBrandOverride(String iccId, String brand);
    boolean setOperatorBrandOverride(String brand);

    /**
     * Returns the result and response from RIL for oem request