Commit Graph

282 Commits

Author SHA1 Message Date
Michael Bestas
110f13ca8c motorola: Add info dump script
For now this just prints information collected from an extracted zip.
In the future we can write something that updates the device trees.

Change-Id: I5b00f77ff11828e2c2870c8ea00054e2ce5eef14
2023-12-05 20:21:00 +00:00
Michael Bestas
5b191d800a motorola: Import star extract script
imported from https://github.com/HemanthJabalpuri/star
at e77390046256de0c4044fa480b2815011a3fa8ed

Change-Id: Iea4cdd8655d3aab9cfd3e55bdcafdba072b90462
2023-12-05 20:21:00 +00:00
Michael Bestas
24067c9b5f Revert "aosp-merger: Check if branch exists before abandoning"
This reverts commit 047fc5ab1c.

Reason for revert: Not working now for some reason

Change-Id: I0b97da59b324f08449aaf643c13f0c563ce642ef
2023-12-05 02:42:12 +02:00
Kevin F. Haggerty
04ec5b386a build-webview: Update default webview to 119.0.6045.134
Change-Id: Iffee8b4160abfae054458bb55faa43967d8297dc
2023-11-12 10:20:47 -07:00
Michael Bestas
adaacc616b device-deps-regenerator: Ignore Pixel 8 common repos
Change-Id: I5d16eca9894509be9a1ef8e7652d46833a8d583d
2023-11-11 18:59:59 +02:00
Michael Bestas
62ffe61ddf device-deps-regenerator: Ignore sm8450/sm8550-devicetrees
Change-Id: Ied3d8d00bcaf02be21e2eef0e9d01561eb7abf91
2023-11-11 18:56:58 +02:00
Michael Bestas
047fc5ab1c aosp-merger: Check if branch exists before abandoning
This gets rid of repo abandon errors.

Change-Id: I97698b393e58365a56b02c3173b5482e8344d587
2023-11-08 01:13:36 +02:00
Michael Bestas
7748a3c18d aosp-merger: Make script output a bit more readable
Change-Id: Ia624f82dd19b7d6e7902eaec3584748db72a90b5
2023-11-08 01:13:23 +02:00
Kevin F. Haggerty
a045b16bfe build-webview: Update default webview to 118.0.5993.111
Change-Id: Ifd0279ea5cc9e4b5db978c879c0be3403ac76123
2023-10-28 11:15:56 -06:00
Albert Tang
923faf664b aidl-gen: Handle nullables and multi-line methods
Some AIDLs have methods that span multiple lines or have "@nullable"
specified for some of its arguments. The generator does not know how to
handle either, so it crashes.

Tested by importing android.hardware.biometrics.face.ISession, which has
both.

Change-Id: Iccf480d9cdcb7df188e309a47ee410ba6d5beb78
2023-10-23 16:07:39 +00:00
SGCMarkus
a14eceeece carriersettings-extractor: ignore threshold arrays with size > 4
These cause com.android.phone to crash:
E AndroidRuntime: FATAL EXCEPTION: main
E AndroidRuntime: Process: com.android.phone, PID: 4429
E AndroidRuntime: java.lang.IllegalArgumentException: thresholds length must between 1 and 4
E AndroidRuntime: 	at android.telephony.SignalThresholdInfo$Builder.setThresholds(SignalThresholdInfo.java:422)

Change-Id: I1a2721063bc7dae0d3415a59883a5470518c47a1
2023-10-23 16:03:00 +00:00
LuK1337
4b9dd1a7ae device-deps-regenerator: master -> main
Change-Id: Ic352b6ae2017d6603120b1c534c0e137817d37f3
2023-10-21 22:48:15 +02:00
LuK1337
f7c7c60e1f carriersettings-extractor: master -> main
Change-Id: I218e6f43bcdf503178d0bb75846a5414b0061a56
2023-10-21 22:48:07 +02:00
Kevin F. Haggerty
4a84a29727 build-webview: Update default webview to 117.0.5938.140
Change-Id: I947774379132235180a1b6f0bcbaf4f9b3aaa4aa
2023-09-29 07:03:30 -06:00
Michael Bestas
db73755167 pixel: Update README
Change-Id: Icfe9d0ee7ff9496f731621623b95bbb89dd6e113
2023-09-21 21:13:03 +03:00
Kevin F. Haggerty
23ef447229 build-webview: Update default webview to 117.0.5938.60
Change-Id: I42b9bfaf6a69c8e6286d415d473479c367981af3
2023-09-16 08:03:58 -06:00
Nolen Johnson
a01711d6e9 aosp-merger: README: Fix typos
Change-Id: Ia69312603823cc11af79a3e92530b9b3e85eb9e6
2023-09-12 01:23:59 +00:00
Chirayu Desai
09efdf2c18 Drop update-payload-extractor
* It didn't have a LICENSE
* Can use the below script instead, it's already needed for extract-utils
  319424: Add a simple script to extract payload-based OTAs | https://review.lineageos.org/c/LineageOS/android_tools_extract-utils/+/319424

Change-Id: I108b5bbe565c0ecc08244a8f5838c595a8e6d375
2023-09-07 22:04:10 +00:00
Kevin F. Haggerty
dd225e1ceb build-webview: Update default webview to 116.0.5845.163
Change-Id: If263fb405a165cdfcdf7d39b1b7871a115bd0e2f
2023-08-31 07:21:20 -06:00
Kevin F. Haggerty
a4cc769ca3 build-webview: Update default webview to 116.0.5845.92
Change-Id: I3434563e8b6ce11c1ea3196419ca5b3b209c6547
2023-08-14 18:28:53 -06:00
Kevin F. Haggerty
d41815c4dc build-webview: Update default webview to 115.0.5790.166
Change-Id: I5b12b80149117936664e84194a5b5b42eed6f2ea
2023-08-03 15:21:33 -06:00
Kevin F. Haggerty
7bbb1fd039 build-webview: Update default webview to 115.0.5790.136
Change-Id: Id3f77acf5419a869f2cb434df15b06f947f97765
2023-07-21 08:11:00 -06:00
Chirayu Desai
14786f0bd7 pixel: Handle googlesource 429s
* We gotta do this better but for now let's just band-aid it

Change-Id: I0d23c0813f0b8d7948907a3b0e0acd9917ee2a9c
2023-07-07 17:20:12 +03:00
Chirayu Desai
3951b65581 pixel: Support wifi only devices
Change-Id: Ib8916f570e0f631333a02d739745cf1b6c5ae36c
2023-07-07 15:46:44 +03:00
Kevin F. Haggerty
467bf43891 build-webview: Update default webview to 114.0.5735.196
Change-Id: I1865dfbe67feba981b67d183a6140a5479718e57
2023-06-30 07:13:50 -06:00
Chirayu Desai
7fe1002f7a pixel: Avoid re-extracting factory images
* Not the most foolproof, but eh
* Just remove folder manually if you want to start over
  for some reason

Change-Id: I84c7c52b57d417e7de665a82153cb401024f484e
2023-06-20 16:32:19 +02:00
Chirayu Desai
ee4afeb5d3 pixel/all: Print parallel output, prefix with device name
* It's a bit spammy but better to see it do something
  then have to just sit by.
* Can always pipe it somewhere and grep for device to get
  logs for just that

Change-Id: I855d067794016515e4bc2453b30edd6afc0b3b4f
2023-06-20 16:32:19 +02:00
Michael Bestas
c944f917a5 pixel: Use fbpacktool for unpacking bootloader.img on Tensor pixels
All Pixels modem.img: fbpack version 1
QCOM Pixels bootloader.img: fbpack version 1
Tensor Pixels bootloader.img: fbpack version 2

Test:
export WORK_DIR=/some/dir/with/factory/images
source vendor/lineage/vars/pixels
for d in ${devices[@]}; do lineage/scripts/pixel/firmware.sh $d; done
for d in ${devices[@]}; do git -C vendor/google/$d status; done

Co-authored-by: Chirayu Desai <chirayudesai1@gmail.com>
Change-Id: Ic1990f75a6be515e5d91d65e3ddf88b8e0c90001
2023-06-20 16:32:19 +02:00
Michael Bestas
f3c95a9fda fbpacktool: Update to current version
Source:
https://source.android.com/static/docs/core/architecture/bootloader/tools/pixel/fw_unpack/*.py

Modified to comment out
'from google3.third_party.devsite.androidsource.en.docs.core.architecture.bootloader.tools.pixel.fw_unpack'
from imports.

Change-Id: Ie81b52969633435ff303a89309868509436392ab
2023-06-20 16:32:19 +02:00
Chirayu Desai
f9f47395f1 Import fbpacktool from AOSP
* qc_image_unpacker doesn't support Pixel 6, this does

Source: https://developers.google.com/android/binary_transparency/pixel#fbpacktool
Change-Id: If7a409ed9f84e9c8ff43a8aa3d26eaae2c8a0640
2023-06-20 16:32:19 +02:00
razorloves
424c3a5ff0 device-deps-regenerator: Add contexthub to ignorelist
Change-Id: Idf4f62057f0f6a518a281e40c90b50edf3d169d7
2023-06-18 21:18:24 -05:00
Michael Bestas
66d64cfdb8 carriersettings-extractor: Ignore motorola specific configs
Change-Id: Ib44ccb252c4e0e2743bf6d9b926f536daff19f6b
2023-06-16 21:40:21 +02:00
Michael Bestas
a8706402e4 pixel: Run regen-carriersettings.sh when it exists
Change-Id: I1af213801e0bb911e0656f5eea304ea49a1203b0
2023-06-16 21:40:21 +02:00
Michael Bestas
cfd6e2d601 carriersettings-extractor: Make APNs extract optional
Change-Id: Ic7701d660146a400b5e7ee4ee41a940f6d56c455
2023-06-16 21:40:21 +02:00
Michael Bestas
9a7adaa7c7 carriersettings-extractor: Only include gps elements in vendor_no_sim.xml
Change-Id: Ia40c7f2b69ddfbb8e7f2fce6993ff6471c4ee6ff
2023-06-16 21:40:21 +02:00
Michael Bestas
4075fcbc2f carriersettings-extractor: Generate vendor_no_sim.xml
Change-Id: I87513a6ab8387f55ff7892dcee6f71ad945fec73
2023-06-16 21:40:21 +02:00
Chirayu Desai
e830e8dda2 carriersettings-extractor: Write mcc=0 mnc=0 config as just carrier_config
Change-Id: Ie4325c03c3406cb5c056188c3044f870c9190088
2023-06-16 21:40:21 +02:00
Michael Bestas
d927852310 carriersettings-extractor: Add missing name element in pbundle_as_map
Change-Id: I7346b5cca0fde6fc1957649fe7f463eaffac8c5e
2023-06-16 21:40:21 +02:00
Chirayu Desai
ea8804b723 carriersettings-extractor: Sync tag name
* If you look at the CarrierConfigV2 converter, it reads
  'pbundle_as_map' and not 'bundle' - which isn't handled at all
* All others match parseCarrierConfigToMap

Ref: 2093949: Add support for "double" and "bundle" in pb generating script | https://android-review.googlesource.com/c/platform/tools/carrier_settings/+/2093949
TODO: Figure out how to run the converter as a test somehow
Change-Id: I2197766590625e9f4cd12d30a65204a2ec750515
2023-06-16 21:40:21 +02:00
Chirayu Desai
e0e53fb2d0 carriersettings-extractor: Handle failure gracefully
* Google forgot to add ice_no.pb to Pixel 6 October release

Change-Id: Ie7bad259b9bc818a87279bec836d83107dee93f3
2023-06-16 21:40:21 +02:00
Michael Bestas
0260b05743 carriersettings-extractor: Update README
Change-Id: Ia341eb2a61a75d7dbd54a90225078ed05a79b0fe
2023-06-16 21:40:21 +02:00
Michael Bestas
8166ecc7b4 carriersettings-extractor: Workaround for skip_464xlat field extraction
TelephonyProvider expects an int, not a string.
One would think bypassing the enum_type check and using the numbers
directly would be enough, but google stores the values in protobuf
different than what TelephonyProvider expects (0,1,2 vs -1,0,1).

References:
https://android.googlesource.com/platform/packages/providers/TelephonyProvider/+/refs/tags/android-13.0.0_r3/src/com/android/providers/telephony/TelephonyProvider.java#2473
https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-13.0.0_r3/core/java/android/provider/Telephony.java#3399
https://android.googlesource.com/platform/tools/carrier_settings/+/refs/tags/android-13.0.0_r3/proto/carrier_settings.proto#138
https://android.googlesource.com/platform/tools/carrier_settings/+/refs/tags/android-13.0.0_r3/python/update_apn.py#169

Change-Id: I920f8b9cd2638f40f90e22638b8cb67e11b898a8
2023-06-16 21:40:21 +02:00
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