From 403a7f1cab2c42837adc9f191aeb1e87e75706fe Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Mon, 29 Jun 2020 20:05:19 +0200 Subject: [PATCH] ModemConfig: Fall back to generic-IMS if no match is found Generic IMS allows carriers with an unknown configuration (in the current mapping) to still use IMS if they end up supporting it. If sony-modem-switcher ends up not finding the config or the modem file it'll (as always) fall back to the default non_ims variant anyway. Signed-off-by: Marijn Suijten --- .../com/sony/opentelephony/modemconfig/ModemConfigService.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ModemConfig/src/com/sony/opentelephony/modemconfig/ModemConfigService.kt b/ModemConfig/src/com/sony/opentelephony/modemconfig/ModemConfigService.kt index d59305f..3f74216 100644 --- a/ModemConfig/src/com/sony/opentelephony/modemconfig/ModemConfigService.kt +++ b/ModemConfig/src/com/sony/opentelephony/modemconfig/ModemConfigService.kt @@ -168,8 +168,8 @@ context.resources.getXml(R.xml.service_provider_sim_configs).use { } return if (result == null) { - Log.w(TAG, "No matching config found") - null + Log.w(TAG, "No matching config found, falling back to generic IMS") + "S9999.9" } else { Log.i(TAG, "Matched with $result") result.sim_config_id