Commit graph

53 commits

Message SHA1
Automatic translation import
Change-Id: Ic5767a383a112ba04591bd19b81d39d743159f10

LineageOS Infra   commited 2026-03-01 20:42:12 +00:00
47afb745b8
Automatic translation import
Change-Id: I9aaf69cff0fd726bcf9c5225c1c65102a2adb437

LineageOS Infra   commited 2026-02-15 21:06:16 +00:00
1ad66c4b77
Automatic translation import
Change-Id: I918cd9c932402e89b3912d455e734e5222dd09a8

LineageOS Infra   commited 2026-02-01 18:36:22 +00:00
aed9b24256
Automatic translation import
Change-Id: I9295487ee4776fef46584fc0b8a1895572762436

LineageOS Infra   commited 2025-09-24 20:06:36 +00:00
dd1dadb5b6
Automatic translation import
Change-Id: If9d903ed8fa0a89a56422bb5b79e44c197dce2cd

LineageOS Infra   commited 2025-07-15 17:08:21 +00:00
12d9e43c0f
Automatic translation import
Change-Id: I1cc5cbbd1ec49dafe15f6ddb12b683bc99a41b48

LineageOS Infra   commited 2025-04-15 13:55:18 +00:00
ccdb9600b1
Automatic translation import
Change-Id: I628de575c1d640e3cc94b83732fad0b28b10b1d4

LineageOS Infra   commited 2025-02-15 15:47:20 +00:00
ea64b66ae7
ModemConfig: Add more carriers to the service provider XML
* S22.6
* S22.7
* S54.2
* S123.2
* S263.11
* S366.22
* S527.3
* S8685.1
* S9162.3
* S9165.1
* S9176.1
* S9178.1

Change-Id: If7d44d36094a9d965ae1f6a2838e318784d22897

LuK1337   commited 2025-01-31 21:03:51 +01:00
1ea76f0444
Automatic translation import
Change-Id: I35e9321ecbab47443f1a76ca226bdd4b579d4b3c

LineageOS Infra   commited 2025-01-02 08:11:15 +00:00
2adebbcb0c
Automatic translation import
Change-Id: Iee7bc64d903f0bef4fc20e4774730d68b0ce84a2

LineageOS Infra   commited 2024-12-02 02:54:17 +00:00
958fb4b8b7
Automatic translation import
Change-Id: If495588f6fe7648d762e67ac30df1ec5e8d2179a

LineageOS Infra   commited 2024-09-15 16:02:27 +00:00
6c7bb0bf21
Automatic translation import
Change-Id: I38a61228f1d588d231f721a1d8137b1f03cf5162

LineageOS Infra   commited 2024-05-15 15:50:25 +00:00
b29184bb76
Automatic translation import
Change-Id: Id9bc669c714ad045d45da6bb5f31fd3cfdedbcb7

LineageOS Infra   commited 2023-07-01 16:12:20 +00:00
eb50848fe0
Automatic translation import
Change-Id: I42f5be815d39b546b33dac12253969af16ee495d

LineageOS Infra   commited 2023-06-20 16:28:05 +00:00
96ee06c597
Automatic translation import
Change-Id: Iba040a5e3a3283230dbe5cfaccc28275090dbf94

LineageOS Infra   commited 2023-06-01 12:49:27 +00:00
7e28a5d4c2
Automatic translation import
Change-Id: I6d7f4c50273d842d4eef721f5283a184b45293f1

LineageOS Infra   commited 2023-04-24 08:41:32 +00:00
c4da34f3b3
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
Automatic translation import
Change-Id: I01e3afac14adab0995aff8ed7963193792af1831

Michael Bestas   commited 2022-10-05 19:31:09 +03:00
4940ca098e
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: Set notification channel blockable
android.app.NotificationChannel#mSystemBlockable is false by default.
If the app was built with system signature the notification channel cannot be blocked.

Change-Id: I24133042654bf36a18d0da8b273220e9d7e9d5d3

Danny Trunk   commited 2022-03-30 12:24:26 +02:00
01d58f81e5
ModemConfig/sysprop: Delete now-unused API files
Android S deems that our "stable API files" are out of date, but leaves
them empty on regeneration - most likely because we are not fixing an
API version in place.  Remove it entirely instead to allow the build to
continue.

Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Change-Id: Iea0ca5e498b649fd2b2bcaf1948872c4d7c2f333

Marijn Suijten   authored and   LuK1337   commited 2022-03-08 20:21:55 +01:00
45fa9bce45
Automatic translation import
Change-Id: I2415a374afe31989aabc6923f7ae7367046c1d0c

Michael Bestas   commited 2021-08-21 04:06:27 +03:00
dbaab0bfeb
Automatic translation import
Change-Id: Ic0f1221a3e6de0c054958df53794c1c568f09acd

LineageOS Builder   commited 2021-05-01 15:55:52 +00:00
7d9e132b3d
Automatic translation import
Change-Id: If5f6ce53cdcfda2f91a77718496c705e1a05f129

Michael Bestas   commited 2021-02-28 02:38:26 +02:00
fd696f512d
ModemConfig: Convert providers list into readonly, lazy-initialized val
Assuming the value is used after onCreate has been called (ie. not in a
constructor) parseProviders can safely run and retrieve resources.

This solves poor (basically inexistent) use-before-initialization checks
of a lateinit value as well; the value could have been freely used
without any initialization at all or reassigned from anywhere because
it's mutable, without the compiler complaining.

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

Marijn Suijten   authored and   Alin Jerpelea   commited 2020-10-26 10:15:44 +01:00
c0b6d4306c
ModemConfig: Convert getProviders one-time-init to lazyinit
Lazyinit allows a non-nullable to be null "temporarily" while it is
initialized outside of a constructor. This is useful in android
scenarios where initialization usually happens in onCreate().

Note that it is not really safe. The compiler doesn't do any checks or
use annotations to understand that this value should be initialized in
onCreate, nor does it fail compilation if it is never initialized at
all or used before initialization. After all `providers` remains a
`var`iable, not a `val`ue. In hindsight `lateinit` is simply a free pass
to circumvent compile-time null checks, and is best avoided.

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

Marijn Suijten   authored and   Alin Jerpelea   commited 2020-10-26 10:15:44 +01:00
da023cc43f
Merge pull request #4 from MarijnS95/fix-android-r
[ModemConfig] [R] Fixup sysprop refactor

Alin Jerpelea   authored and   GitHub   commited 2020-09-28 09:30:40 +02:00
612dabaf80
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>

Marijn Suijten   commited 2020-09-27 22:42:10 +02:00
1497865ca1
ModemConfig: Statically link SomcModemProperties
Fixes: "Failed resolution of: Lcom/sony/opentelephony/modemconfig/SomcModemProperties;"

LuK1337   authored and   Marijn Suijten   commited 2020-09-27 22:40:34 +02:00
6dd5d78835
Merge pull request #3 from MarijnS95/android-r
[opentelephony] [R] Convert ModemConfig to sysprop and drop private platform apis

Alin Jerpelea   authored and   GitHub   commited 2020-09-10 09:40:15 +02:00
1a803f475d
Merge pull request #2 from MarijnS95/generic-ims
[OpenTelephony] ModemConfig: Fall back to generic-IMS if no match is found

Alin Jerpelea   authored and   GitHub   commited 2020-09-10 09:35:50 +02:00
67c3970475
[R] ModemConfig: sysprop: Update current API
m SomcModemProperties-dump-api && rm -rf vendor/oss/opentelephony/ModemConfig/sysprop/api/SomcModemProperties-current.txt && cp -f out/soong/.intermediates/vendor/oss/opentelephony/ModemConfig/sysprop/SomcModemProperties_sysprop_library/api-dump.txt vendor/oss/opentelephony/ModemConfig/sysprop/api/SomcModemProperties-current.txt

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

Marijn Suijten   commited 2020-09-09 22:39:47 +02:00
bbf108cb9c
[R] ModemConfig: sysprop: Generate api files
build/soong/scripts/gen-sysprop-api-files.sh "vendor/oss/opentelephony/ModemConfig/sysprop" "SomcModemProperties"

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

Marijn Suijten   commited 2020-09-09 22:39:47 +02:00
fe0c10b122
[R] ModemConfig: Replace try-with-resources with .use block
Q kotlinc chokes on it.

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

Marijn Suijten   commited 2020-09-09 22:39:47 +02:00
1b7bdd82ec
[R] ModemConfig: Implement properties using sysprop
Signed-off-by: Marijn Suijten <marijns95@gmail.com>

Marijn Suijten   commited 2020-09-09 22:39:47 +02:00
e9db620081
Revert "REVERTME: ModemConfig: Use platform APIs for SystemProperties"
This reverts commit 14e521c0487af0b513cc9a5df93cc7a3b5add450.

Marijn Suijten   commited 2020-09-09 22:39:47 +02:00
8cc4875938
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>

Marijn Suijten   commited 2020-06-29 20:32:45 +02:00
403a7f1cab
Merge pull request #1 from MarijnS95/master
[ModemConfig] Fix null/empty string issues, show multiple grouped notifications for DSDS configuration

Alin Jerpelea   authored and   GitHub   commited 2020-06-11 14:05:32 +02:00
7716856612
ModemConfig: Drop notification importance from LOW to MIN
Hide the icon from the statusbar as well. It's not relevant to see here,
just in the notification shade is enough.

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

Marijn Suijten   commited 2020-06-07 11:16:48 +02:00
c7583ac3c8
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: Deal with null|empty strings from TelephonyManager
Some of these strings are (temporarily) empty, eg. while the SIM is
locked. Make sure we do not crash in these instances, and rather wait
for the time these become available.

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

Marijn Suijten   commited 2020-06-06 13:22:16 +02:00
0d8dc0c542
ModemConfig: Fix warning in translated string
res/values-it/strings.xml:6: warn: multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?.

LuK1337   authored and   Marijn Suijten   commited 2020-06-06 13:22:16 +02:00
5ed9020953
gitignore: Ignore gen and lib folder created by aidegen + Android Studio
Signed-off-by: Marijn Suijten <marijns95@gmail.com>

Marijn Suijten   commited 2020-06-05 22:44:34 +02:00
131e68dc24
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: 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