Commit graph android_hardware_sony_SonyO.../ModemConfig/AndroidManifest.xml
Message SHA1
ModemConfig: Add android.permission.POST_NOTIFICATIONS
Change-Id: I50e7ad5699e2f4e7d97a842d129905af41b1199c

Danny Trunk   authored and   Łukasz Patron   commited 2022-10-30 20:31:14 +01:00
0b206239ae
ModemConfig: Set explicit value for android:exported
Since the broadcast receiver doesn't need to receive messages from non-system sources outside its application this can be set to false.

Fixes: W PackageManager: Failed to parse /vendor/priv-app/ModemConfig: /vendor/priv-app/ModemConfig/ModemConfig.apk (at Binary XML file line #7): com.sony.opentelephony.modemconfig.BootReceiver: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present

Change-Id: Ia55f0104b979c935e388de99230013d89298600d

Danny Trunk   authored and   Bruno Martins   commited 2022-06-21 11:01:09 +02:00
a16f3d5f07
ModemConfig: Show a grouped notification per slot
Otherwise the notifcation for slot 1 would hide the one for slot 0, if
both are available.

Signed-off-by: Marijn Suijten <marijns95@gmail.com>

Marijn Suijten   commited 2020-06-06 18:07:44 +02:00
16b7b8391e
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>

Marijn Suijten   commited 2020-06-05 01:03:31 +02:00
6ff9b1f132
ModemConfig: Register subchange with SubscriptionManager instead
DEFAULT_SUBSCRIPTION_CHANGED is not delivered often enough. When
swapping the same SIM between slots the selected subscription doesn't
change yet the firmware for the slot might need to be updated.
Registering this handler provides the ability to do so, but has to be
registered from a background service that consequently is to be started
by a BootReceiver.

Signed-off-by: Marijn Suijten <marijns95@gmail.com>

Marijn Suijten   commited 2020-06-05 00:55:53 +02:00
05d50c9738
ModemConfig: Receive subId, resolve config and trigger modem FW flash
Signed-off-by: Marijn Suijten <marijns95@gmail.com>

Marijn Suijten   commited 2020-06-05 00:33:33 +02:00
9f0ec9dcb2