android_hardware_sony_SonyO.../ModemConfig
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Marijn Suijten 6ff9b1f132 ModemConfig: Add a simple notification showing to-be-flashed firmware
In order to help our efforts finalizing the initial release, provide a
little bit of info to the user about the detected config and the
firmware path belonging to the installation.

TODO: This can be improved in various ways:
- Clear sony.modemswitcher.modem_name_*, and wait for it to change.
  This variable contains the path so that we do not need to read it from
  a file, including the default path (when the config is not found).
- Extend the notification (or start a Dialog/Activity onclick) to
  display more diagnostic info.

Signed-off-by: Marijn Suijten <marijns95@gmail.com>
2020-06-05 01:03:31 +02:00
..
res ModemConfig: Add a simple notification showing to-be-flashed firmware 2020-06-05 01:03:31 +02:00
src/com/sony/opentelephony/modemconfig ModemConfig: Add a simple notification showing to-be-flashed firmware 2020-06-05 01:03:31 +02:00
Android.bp ModemConfig: Add privapp whitelist xml 2020-06-05 00:56:12 +02:00
AndroidManifest.xml ModemConfig: Add a simple notification showing to-be-flashed firmware 2020-06-05 01:03:31 +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