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 <marijns95@gmail.com>
This commit is contained in:
Marijn Suijten 2020-06-29 20:05:19 +02:00
commit 403a7f1cab

View file

@ -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