Commit Graph

43 Commits

Author SHA1 Message Date
Chirayu Desai 175eb30f4b pixel: Handle googlesource 429s
* We gotta do this better but for now let's just band-aid it

Change-Id: I0d23c0813f0b8d7948907a3b0e0acd9917ee2a9c
2023-07-06 13:51:50 +00:00
Michael Bestas 1d0b71a372 fixup! pixel: Support wifi only devices
Change-Id: I9e870140c80ecc22b64c68b892da7d21f235f478
2023-06-22 22:10:25 +05:30
Chirayu Desai 0f201c97db pixel: Support wifi only devices
Change-Id: Ib8916f570e0f631333a02d739745cf1b6c5ae36c
2023-06-21 11:34:10 +00:00
Michael Bestas 1e832cc204
pixel: CarrierSettings extract integration changes
Change-Id: I1af213801e0bb911e0656f5eea304ea49a1203b0
2023-06-17 12:54:51 +03:00
Chirayu Desai 5cc1de6388 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-17 09:53:43 +00:00
Chirayu Desai 99b06bf71a 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-17 09:53:43 +00:00
Michael Bestas 81830c82c5 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 calyx/scripts/vars/pixels
for d in ${devices[@]}; do calyx/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-16 19:20:16 +05:30
Michael Bestas c73a8e015d
vars: Drop unused prev_* vars
Change-Id: Icf6a446b94fe76c88bc75824da152b2071b2a1c8
2023-05-02 20:24:48 +03:00
Chirayu Desai 4bdb9d2dc2 Drop prev_build_id and prev_build_number
* sed -i /prev_build_id/d vars/*
* sed -i /prev_build_number/d vars/*

Change-Id: I8e4723e9cbd3c78c70785a5ed312edc93079dd44
2023-05-02 02:20:00 +05:30
Chirayu Desai 6c743c478f pixel: Remove hardcoded version from get-new-devices.py
Change-Id: I03af5fc9f270cc9dd4f4183095173096fe33dbc0
2023-05-02 02:20:00 +05:30
Chirayu Desai cd7ea76131 pixel: Always write full build desc and fingerprint
* Sometimes we may not have it set to prev build values,
  let's make sure we always write the correct value
  for the existing build

Change-Id: I266d9f2b4a940aac28c512d601dde6b3e24d6e08
2023-05-02 02:15:51 +05:30
Chirayu Desai 8e8c25c748 update-device-vars: Add a sleep to avoid 429: Too Many Requests
Change-Id: Ib4a382cb4b1af025b401e54b07d69414c419f4cf
2022-12-06 06:23:42 +05:30
Michael Bestas 12392a7960 pixel: Fix build-desc-fingerprint.sh not commiting raviole changes
Change-Id: I58dd7978e2f243d9295fcb085f8ae49629a38157
2022-11-11 18:40:41 +05:30
Michael Bestas 88ffbf7992
pixel: Android 13
Change-Id: I5fac382703d9b0e9c4fe5525f82d1a55c789d752
2022-08-18 02:38:55 +03:00
Michael Bestas 1980cf47dd pixel: Allow running device.sh from any path
Change-Id: Id5d1cbf3fe3038165a3a250a02657486ec74d74e
2022-08-02 12:16:20 -04:00
Nolen Johnson 1b1529b610
scripts: pixel: Make `build-desc-fingerprint.sh` commit changes
Tests: cd lineage/scripts/pixel && ./build-desc-fingerprint.sh coral flame
Notes: No additional issues added in `shellcheck`
Change-Id: I1810ad996d727337b73c6959aaa37bdcaf0d5e5b
2022-07-12 20:05:33 +03:00
Michael Bestas de2a6c10ea
pixel: Remove unused tmp_dir from build-desc-fingerprint.sh
Change-Id: I5a102f47b6d4450458781bc8b3928ead40820882
2022-07-12 20:04:43 +03:00
Chirayu Desai 33fbbad2f6 Add copyright headers to all scripts
* https://reuse.software/tutorial/
* reuse addheader --copyright="The Calyx Institute" --license="Apache-2.0" */*.sh

Change-Id: I24ab74da8f4c9ddd8d38da3e782053b10499ea83
2022-07-08 20:14:39 +05:30
Chirayu Desai ba8563a26a Introduce script to update any var
* To make the manual build id / kernel tag update slightly less manual

Usage:
update-any-var.sh build_id SQ3A.220705.003 oriole raven # For Pixel 6 Jul 2022

TODO: Full automation
Change-Id: Iea350df2653c623b8f8476de4aec9cd1f7461c45
2022-07-08 20:14:37 +05:30
Chirayu Desai 35d59304c8 pixel/build-desc-fingerprint: Don't set -x
Change-Id: Iadae27ab29b6912e194823a46dbacfa0bd3c63e3
2022-06-28 18:49:03 +05:30
Chirayu Desai ea531e70b6 Introduce pixel device and kernel specific branches
* Same as previous commit, to make merging easy

Change-Id: I581303295fa7b6d929e63087c3ae092f8e4ec1de
2022-06-07 06:29:49 +05:30
Michael Bestas 0dea56dfb7 pixel: Remove double slash from paths
Change-Id: I12c725b1fe3acc9ea062c575d6d8c6b6a37c6716
2022-06-06 10:58:17 -04:00
Chirayu Desai 5c302cd547 pixel: Run regen-vendor before extracting
Change-Id: I8d173f5f165b0b36f6c0fb9243794779f1d7741a
2022-05-02 18:30:19 -04:00
Chirayu Desai 0b49525c53 fixup! pixel/get-new-device-vars: Handle failure gracefully
Change-Id: I741b299afd8ffddcbd8f70d212fb6cda871efd9b
2022-04-05 01:25:16 +05:30
Chirayu Desai 61ca218b71 pixel/firmware: Use prebuilts/extract-tools/qc_image_unpacker
Change-Id: I4909fb1ec172f618699fbe181563991fddaf281c
2022-03-25 12:48:42 -04:00
Chirayu Desai 37016d2288 pixel/get-new-device-vars: 12L is 12.1
Change-Id: I895764f7df8f11197f659083a8726d24b88363d6
2022-03-09 01:22:20 +05:30
Chirayu Desai d3531d1af3 pixel/get-new-device-vars: Handle failure gracefully
Change-Id: Ia26addd1c68ac98e66d69f0933871be29dd2849a
2022-03-09 01:22:14 +05:30
Chirayu Desai d484ef8bb3 vars: Add a new pixels
* Prepare for other devices
* Variable name kept the same intentionally to avoid extra script changes
* Don't see a need to import both pixels and devices, since devices includes pixels

Change-Id: I34391334188f7f52c49f2b9a7e7277292dfc15a6
2022-03-07 13:42:12 -05:00
Chirayu Desai 3dfe22cdb4 Pixel: Add script to automatically upgrade build.prop overrides
Change-Id: Ic3d2026c2cc65532a5f1eed1ac7bc11aa5a0a6e1
2022-01-18 03:24:02 +05:30
Chirayu Desai c9b30f9f03 pixel: Save build_number to vars, extracted from flash_url
Change-Id: I8d6e97629f77136b4ce6fc003712cf8e73a891b4
2022-01-18 03:13:35 +05:30
Chirayu Desai 55e0d91a9f pixel: Save build id to build_id.txt
After extract, this will let us do
source calyx/scripts/vars/devices
pushd vendor/google
for d in ${devices[@]}; do
   git -C ${d} add .
   git -C ${d} commit -m "${d}: $(cat ${d}/build_id.txt)"
done

Change-Id: I4de645726213f9c56ffbd41b9010e89a58c983ed
2022-01-14 23:20:27 +05:30
Chirayu Desai 50d17b0359 pixel: firmware: Add firmware partitions to AB_OTA_PARTITIONS
* Otherwise they won't get included on ota updates

Change-Id: Ib04112c8f6815099cab47a90661f8d78cb3ee122
2022-01-07 13:00:07 -05:00
Chirayu Desai 1b42528d33 pixel: firmware: Use full name for bootloader and radio
* To better match stock factory images

Change-Id: I6fda1d2c9d35877d555d7a0c032dc089c7103eb3
2021-12-24 06:16:29 +05:30
Chirayu Desai 3eb0e32e1e pixel: firmware: Handle android-info.txt, and only write mk once
* Same as previous commit
* Lets us run this script over and over again without issue

Change-Id: I8f3237a1111b31b290d86c76a395485edd4e5bea
2021-12-24 05:40:41 +05:30
Chirayu Desai a05bd1fd08 pixel: carriersettings: Only write makefiles once
* Allows re-running the script gracefully
* Always writing other files over and over again is fine,
  as they may have changes sometimes, and if they don't then
  nothing changes anyway.

Change-Id: Idd164c2d34c249da86e13d55dda304fbfa9c6578
2021-12-24 05:40:41 +05:30
Chirayu Desai 6ff66aca59 pixel: Add a shell script to do it all
Change-Id: If485efa68d0f23676e48665acbfeac094c750dcb
2021-12-23 02:12:24 +05:30
Chirayu Desai c83bfe1067 pixel: Add shell script to handle carrier configuration
Change-Id: I60b70b515cf1380211de7f5ebdb4b63f2a198473
2021-12-23 02:12:12 +05:30
Chirayu Desai c1fa3c5059 pixel/download.sh: Only download OTA when needed
Change-Id: I32488c1f15f6c7972e35a14641081ab4efeed3d9
2021-12-23 02:12:12 +05:30
Chirayu Desai 798df79208 pixel: Add shell script to extract and setup firmware
Change-Id: Ib1f030dcd978f943c2d5716a7e40df54fc26f545
2021-12-23 02:12:12 +05:30
Chirayu Desai 1c1e4fb202 pixel: Add shell script to extract factory images
Change-Id: Iecc2703200944c4a5448ec4b2b897f6fd14be676
2021-12-23 02:12:12 +05:30
Chirayu Desai 20ac7dca95 pixel: Add shell script to download images from Google
Change-Id: I23ea5c3e8de675bf48ae2be93b83f24f7025f5c3
2021-12-23 02:12:12 +05:30
Chirayu Desai 91cb01d2f3 pixel: Add shell script to update all variables
* Calls the python script for all devices, updates the files
* Far easier to update these via sed rather than from python

Change-Id: Ic52718f64ee313e9f578e6ad3e2e800d7679ad37
2021-12-23 02:12:12 +05:30
Chirayu Desai 5607c302b6 pixel: Add python script to fetch values from various Google sites
* Takes build id manually, the rest is automated, to keep things simpler

* Kanged https://github.com/RattlesnakeOS/releases/blob/12.0/update.py

Change-Id: I60d3ad7d810119ce41e162ee2b968edd3093c1a4
2021-12-23 02:12:12 +05:30