Commit Graph

9 Commits

Author SHA1 Message Date
Michael Bestas
b6bdac0788 carriersettings-extractor: Update for 13
Import proto files from
tools/carrier_settings 1edea9efa652f3022f1804061f4aebca58ca47ff

Change-Id: I496c11e9a631c6709a15a4e64b354683019150fc
2023-06-16 21:40:21 +02:00
Michael Bestas
0bdaa22666 carriersettings-extractor: Move element extraction to separate function
Prepare for bundle support.

Change-Id: I2f9fe500beee1130b95e526ebd4a84d6fd3f4766
2023-06-16 21:40:21 +02:00
Chirayu Desai
26561a8b67 carriersettings-extractor: Read CarrierSettings protobufs in stages
* Trying to load them all at once resulted in a game of chicken due
  to 'telenor_se' existing in both generic 'others.pb', and it's own
  'telenor_se.pb'
* We tried to work around that in multiple ways, and that did work,
  but let's just re-write this to be more deterministic, and generic.

Change-Id: Iac046b98d4c23667eff306861c902913785e6ca8
2023-06-16 21:40:21 +02:00
Luca Stefani
5b27a24f3e carriersettings-extractor: Update to 12
Import proto files from
tools/carrier_settings 0a2c3b9ec4337283b67391971613cd06690a2d34
packages/providers/TelephonyProvider e9b03419e34ed174e239453f958aac0f042bf072

Change-Id: Ied7c51623dc6d14352fbc30db4632311ba455a0e
2023-06-16 21:40:21 +02:00
Chirayu Desai
33f9e8630b carriersettings-extractor: Always allow modifying APNs
* Users have reported that in some cases they were able to edit
  APNs on stock, but aren't able to do so here.
* We can just allow editing APNs always

Reference:
https: //cs.android.com/android/platform/superproject/+/master:frameworks/base/telephony/java/android/telephony/CarrierConfigManager.java

Issue: calyxos#599
Issue: calyxos#266
Issue: calyxos#636
Change-Id: I967069a7631e7b26ad9970704dfda5583e0b0fbf
2023-06-16 21:40:21 +02:00
Chirayu Desai
b8697e3cb4 carriersettings-extractor: Exclude some values from vendor.xml
* This will make it work with the naked config
* We can have two different XMLs if needed, where one
  could include this config
* Looked for any 'com.google.android.' or Sprint/Verizon
  packages and removed those

Change-Id: I3d68c995f855c13231946a5796091936479906e9
2023-06-16 21:40:21 +02:00
Chirayu Desai
e1499e0324 carriersettings-extractor: Implement argparse, extract files into separate folders
Co-Authored-By: Michael Bestas <mkbestas@gmail.com>
Change-Id: If8d93d832bbd586ae0e06067a4e335aa5a0398c4
2023-06-16 21:40:21 +02:00
Chirayu Desai
ae25298473 carriersettings-extractor: Modify for usage in AOSP
* We already have all the needed protos, just symlink them

Change-Id: Iebdebcad0cecf3a8baf6a9fcc5590e707aacd585
2023-06-16 21:40:21 +02:00
Chirayu Desai
37fa6fe56c Import carriersettings-extractor
Repo: https://github.com/daradib/carriersettings-extractor
Commit: 6e6217b5fc74129b8d1ba6671a48388f5f55e009 "Add license"
Change-Id: Ibbbccedd5e118e66f7e681dd2f8c8d69e6484a87
2023-06-16 21:40:21 +02:00