summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2019-09-20 04:06:41 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-09-20 04:06:41 +0000
commit843c0ce58eec1199b5dcf3e764ac7c6bee6edbdd (patch)
treef9b021a436342008709babfff27df6f4f4407414
parent27f179c338705abdc538d98db6879b2a25ff2d8e (diff)
parentf6c03ef55b3281261381d7d49d717d41e388d1ef (diff)
downloadplatform_packages_services_Telephony-android10-release.tar.gz
platform_packages_services_Telephony-android10-release.tar.bz2
platform_packages_services_Telephony-android10-release.zip
Merge cherrypicks of [9428111, 9427928, 9427929, 9428294, 9428403, 9428295, 9428355, 9428112, 9428113, 9428356, 9428152, 9428153, 9428154, 9427868, 9428357, 9428358, 9427373] into qt-releaseandroid-10.0.0_r11android-10.0.0_r10android10-release
Change-Id: Id963fff5755e3e36ab89c12c3e57442ab7767328
-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;