summaryrefslogtreecommitdiffstats
path: root/telephony
diff options
context:
space:
mode:
authorShishir Agrawal <shishir@google.com>2014-09-04 13:23:53 -0700
committerShishir Agrawal <shishir@google.com>2014-09-05 15:37:44 -0700
commitd2cfa92146ecfa5e00d4a3ce8e63b1a588845fe2 (patch)
treecdda92b43a3c2c8d249320aba4fca41228c0790c /telephony
parenta0c9962388361522257b4ff2f55ac7cea0d559f3 (diff)
downloadframeworks_base-d2cfa92146ecfa5e00d4a3ce8e63b1a588845fe2.zip
frameworks_base-d2cfa92146ecfa5e00d4a3ce8e63b1a588845fe2.tar.gz
frameworks_base-d2cfa92146ecfa5e00d4a3ce8e63b1a588845fe2.tar.bz2
API change: SetOperatorBrandOverride should not take iccId as a param.
Taking ICCID as a parameter is not scure since a carrier can override the brand for other carriers. We should override only the current ICCID. Bug: 17390144 Change-Id: I9be2cb5c5fa15367fcb3b548b6e601a294e84dbc
Diffstat (limited to 'telephony')
-rw-r--r--telephony/java/android/telephony/TelephonyManager.java10
-rw-r--r--telephony/java/com/android/internal/telephony/ITelephony.aidl7
2 files changed, 7 insertions, 10 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java
index cdee3de..0078ea8 100644
--- a/telephony/java/android/telephony/TelephonyManager.java
+++ b/telephony/java/android/telephony/TelephonyManager.java
@@ -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) {
diff --git a/telephony/java/com/android/internal/telephony/ITelephony.aidl b/telephony/java/com/android/internal/telephony/ITelephony.aidl
index 5c3dcdb..f587d72 100644
--- a/telephony/java/com/android/internal/telephony/ITelephony.aidl
+++ b/telephony/java/com/android/internal/telephony/ITelephony.aidl
@@ -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