android_hardware_sony_SonyO.../ModemConfig
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Marijn Suijten 1497865ca1 FIXUP: ModemConfig: vendor.somc.cust.modem\d is supposed to be persist.
These properties were previously persistent but have inadevertently lost
that during a refactor. It doesn't really matter what type it is since
init files forward this to (broken) non vendor-prefixed persist
properties anyway. Having only one pair persistent would be cleaner but
requires modifying more repos (device-sony-{common,sepolicy}) which we
rather do in one go when modem-switcher (blob) is updated to listen to a
vendor-prefixed property instead.

Fixes: e9db620081
Signed-off-by: Marijn Suijten <marijns95@gmail.com>
2020-09-27 22:42:10 +02:00
..
res ModemConfig: Show a grouped notification per slot 2020-06-06 18:07:44 +02:00
src/com/sony/opentelephony/modemconfig [R] ModemConfig: Replace try-with-resources with .use block 2020-09-09 22:39:47 +02:00
sysprop FIXUP: ModemConfig: vendor.somc.cust.modem\d is supposed to be persist. 2020-09-27 22:42:10 +02:00
Android.bp ModemConfig: Statically link SomcModemProperties 2020-09-27 22:40:34 +02:00
AndroidManifest.xml ModemConfig: Show a grouped notification per slot 2020-06-06 18:07:44 +02:00
convert_from_stock.py ModemConfig: Add service_providers.xml extractor from stock overlay 2020-05-21 00:58:00 +02:00
privapp_whitelist_com.sony.opentelephony.modemconfig.xml ModemConfig: Add privapp whitelist xml 2020-06-05 00:56:12 +02:00
README.md ModemConfig: Receive subId, resolve config and trigger modem FW flash 2020-06-05 00:33:33 +02:00

ModemConfig

Simple configurator that uses SIM information from TelephonyManager and a pre-extracted mapping to resolve to a configuration name, passed to the modem switcher which provisions the modem with the appropriate firmware.

Updating the

Testing:

Note that the subscription ID, passed in at the end, must be valid.

am broadcast -n com.sony.opentelephony.modemconfig/.ModemConfigReceiver -a android.telephony.action.DEFAULT_SUBSCRIPTION_CHANGED --ei android.telephony.extra.SUBSCRIPTION_INDEX 1
m ModemConfig && adb push out/target/product/bahamut/vendor/app/ModemConfig/ModemConfig.apk vendor/app/ModemConfig && adb shell killall com.sony.opentelephony.modemconfig; am broadcast -n com.sony.opentelephony.modemconfig/.ModemConfigReceiver -a android.telephony.action.DEFAULT_SUBSCRIPTION_CHANGED --ei android.telephony.extra.SUBSCRIPTION_INDEX 1