From 44fb1904e30b39637d846b9d2ca3aebc82e9f828 Mon Sep 17 00:00:00 2001 From: Taesu Lee Date: Fri, 15 Nov 2019 16:16:08 +0900 Subject: SMS service loads MMS config directly instead getCarrierConfigValues() is removed from MmsManager and SMS service loads Carrier configuration values directly since MmsService could return null or cached config instead if an app requests the config by receiving ACTION_CARRIER_CONFIG_CHANGED before the config is loaded newly in MmsService by ACTION_CARRIER_CONFIG_CHANGED. Bug: 145768042 Test: manual Change-Id: Idc21015cab2902bd0f67e2131ea89b04c4fc4f5e Signed-off-by: Taesu Lee --- mms/java/android/telephony/MmsManager.java | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'mms/java/android') diff --git a/mms/java/android/telephony/MmsManager.java b/mms/java/android/telephony/MmsManager.java index 4bcf04691652..65542673a607 100644 --- a/mms/java/android/telephony/MmsManager.java +++ b/mms/java/android/telephony/MmsManager.java @@ -97,22 +97,4 @@ public class MmsManager { // Ignore it } } - - /** - * Get carrier-dependent configuration values. - * - * @param subId the subscription id - * @return bundle key/values pairs of configuration values - */ - public Bundle getCarrierConfigValues(int subId) { - try { - IMms iMms = IMms.Stub.asInterface(ServiceManager.getService("imms")); - if (iMms != null) { - return iMms.getCarrierConfigValues(subId); - } - } catch (RemoteException ex) { - // ignore it - } - return null; - } } -- cgit v1.2.3-59-g8ed1b