summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-prod (mdb) <android-build-team-robot@google.com>2019-11-05 21:09:31 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-11-05 21:09:31 +0000
commit5021f4fa8d81c094fc69bf748acc48691e9e4415 (patch)
treef9b021a436342008709babfff27df6f4f4407414
parent27f179c338705abdc538d98db6879b2a25ff2d8e (diff)
parente0009196c439ff01889f821136181cb049536c7e (diff)
downloadTelephony-android10-tests-release.tar.gz
-rw-r--r--src/com/android/phone/CarrierConfigLoader.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/com/android/phone/CarrierConfigLoader.java b/src/com/android/phone/CarrierConfigLoader.java
index ed95a2c9d..d7c1a59be 100644
--- a/src/com/android/phone/CarrierConfigLoader.java
+++ b/src/com/android/phone/CarrierConfigLoader.java
@@ -285,8 +285,8 @@ public class CarrierConfigLoader extends ICarrierConfigLoader.Stub {
}
PersistableBundle config =
resultData.getParcelable(KEY_CONFIG_BUNDLE);
- saveConfigToXml(
- mPlatformCarrierConfigPackage, phoneId, config);
+ saveConfigToXml(mPlatformCarrierConfigPackage, phoneId,
+ carrierId, config);
mConfigFromDefaultApp[phoneId] = config;
sendMessage(
obtainMessage(
@@ -416,8 +416,8 @@ public class CarrierConfigLoader extends ICarrierConfigLoader.Stub {
}
PersistableBundle config =
resultData.getParcelable(KEY_CONFIG_BUNDLE);
- saveConfigToXml(
- getCarrierPackageForPhoneId(phoneId), phoneId, config);
+ saveConfigToXml(getCarrierPackageForPhoneId(phoneId), phoneId,
+ carrierId, config);
mConfigFromCarrierApp[phoneId] = config;
sendMessage(
obtainMessage(
@@ -705,9 +705,11 @@ public class CarrierConfigLoader extends ICarrierConfigLoader.Stub {
*
* @param packageName the name of the package from which we fetched this bundle.
* @param phoneId the phone ID.
+ * @param carrierId contains all carrier-identifying information.
* @param config the bundle to be written. Null will be treated as an empty bundle.
*/
- private void saveConfigToXml(String packageName, int phoneId, PersistableBundle config) {
+ private void saveConfigToXml(String packageName, int phoneId, CarrierIdentifier carrierId,
+ PersistableBundle config) {
if (SubscriptionManager.getSimStateForSlotIndex(phoneId)
!= TelephonyManager.SIM_STATE_LOADED) {
loge("Skip save config because SIM records are not loaded.");
@@ -715,7 +717,7 @@ public class CarrierConfigLoader extends ICarrierConfigLoader.Stub {
}
final String iccid = getIccIdForPhoneId(phoneId);
- final int cid = getSpecificCarrierIdForPhoneId(phoneId);
+ final int cid = carrierId.getSpecificCarrierId();
if (packageName == null || iccid == null) {
loge("Cannot save config with null packageName or iccid.");
return;