Commit graph

9 commits

Message SHA1
ModemConfig: Add privapp whitelist xml
LuK1337   authored and   Marijn Suijten   commited 2020-06-05 00:56:12 +02:00
6343ef61fb
ModemConfig: Sort by most specific config first; take first match
Marijn Suijten   commited 2020-06-05 00:56:12 +02:00
bd2a2b1109
REVERTME: ModemConfig: Use platform APIs for SystemProperties
Unfortunately sysprop - which is the SDK-compliant repacement for
SystemProperties - does not work properly in Android Q. Specificially
a java library is not generated and passed to the java compiler when
building ModemConfig. This works flawlessly in Android R.

Use SystemProperties from the private API as a stop-gap solution, until
we either pick a build-system fix or move to R.

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

Marijn Suijten   commited 2020-06-05 00:56:11 +02:00
822920ff5b
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
ModemConfig: Add service provider resource xml
This xml is extracted from an overlay using the python script in this
repository.

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

Marijn Suijten   commited 2020-05-21 00:58:00 +02:00
d4e49a851c
ModemConfig: Add service_providers.xml extractor from stock overlay
This overlay contains the necessary mappings from mcc/mnc/gid1/imsi/sp
to a configuration name. The configuration file under this name contains
a path to the actuall modem firmware that is supposed to be flashed.

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

Marijn Suijten   commited 2020-05-21 00:58:00 +02:00
1f742ecc01
Add simple Java gitignore
Signed-off-by: Marijn Suijten <marijns95@gmail.com>

Marijn Suijten   commited 2020-05-11 21:42:50 +02:00
9891f78f6a
Initial commit
Signed-off-by: Marijn Suijten <marijns95@gmail.com>

Marijn Suijten   commited 2020-05-11 21:42:50 +02:00
00faa3ce1a