Commit Graph

32 Commits

Author SHA1 Message Date
Chirayu Desai
9ec0cacf39 pixel: Drop prev_build_id and prev_build_number
Change-Id: I8e4723e9cbd3c78c70785a5ed312edc93079dd44
2023-05-02 01:03:08 +03:00
Chirayu Desai
795e2a85dd pixel: Remove hardcoded version from get-new-devices.py
Change-Id: I03af5fc9f270cc9dd4f4183095173096fe33dbc0
2023-05-01 23:34:20 +03:00
Chirayu Desai
c32092b849 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-01 23:22:40 +03:00
Nolen Johnson
0e2addfede Document merger scripts and workflows
Change-Id: I0c1b87e2c835cb438b7df3d1b540a74fbb33c345
2023-03-28 21:02:08 +03:00
Chirayu Desai
aacffc67d6 update-device-vars: Add a sleep to avoid 429: Too Many Requests
Change-Id: Ib4a382cb4b1af025b401e54b07d69414c419f4cf
2023-01-04 02:05:02 +02:00
Michael Bestas
084d8165a7 pixel: Fix build-desc-fingerprint.sh not commiting raviole changes
Change-Id: I58dd7978e2f243d9295fcb085f8ae49629a38157
2022-08-29 18:00:11 +03:00
Michael Bestas
04d40847f0 pixel: Android 13
Change-Id: I5fac382703d9b0e9c4fe5525f82d1a55c789d752
2022-08-26 22:25:15 +03:00
Nolen Johnson
7c7fa70ddb 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:08:16 +03:00
Michael Bestas
a6ee1c2396 pixel: Remove unused tmp_dir from build-desc-fingerprint.sh
Change-Id: I5a102f47b6d4450458781bc8b3928ead40820882
2022-07-12 20:08:15 +03:00
Chirayu Desai
0038a97c5b 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-12 20:08:15 +03:00
Chirayu Desai
ed56c837cd 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-12 20:08:10 +03:00
Chirayu Desai
8225cf77aa pixel/build-desc-fingerprint: Don't set -x
Change-Id: Iadae27ab29b6912e194823a46dbacfa0bd3c63e3
2022-07-12 19:40:31 +03:00
Chirayu Desai
e2c47f1e75 pixel: Run regen-vendor before extracting
Change-Id: I8d173f5f165b0b36f6c0fb9243794779f1d7741a
2022-04-19 12:11:54 +02:00
Chirayu Desai
e1afbf32bb pixel/firmware: Use prebuilts/extract-tools/qc_image_unpacker
Change-Id: I4909fb1ec172f618699fbe181563991fddaf281c
2022-04-06 01:58:37 +03:00
Chirayu Desai
ad9967ba3e pixel/get-new-device-vars: 12L is 12.1
Change-Id: I895764f7df8f11197f659083a8726d24b88363d6
2022-04-06 01:58:37 +03:00
Chirayu Desai
9bd0e2cc97 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-04-06 01:58:37 +03:00
Chirayu Desai
5364d09700 pixel/get-new-device-vars: Handle failure gracefully
Change-Id: Ia26addd1c68ac98e66d69f0933871be29dd2849a
2022-04-06 01:58:36 +03:00
Michael Bestas
6688187cd0 pixel: Update for LineageOS vars usage
Change-Id: I684387c3f4d6ad776d41c1e91e17ce8dae25a70a
2022-03-29 00:35:24 +03:00
Michael Bestas
af8c4e06d3 pixel: Changes for LineageOS firmware location and setup
Change-Id: I64d22db6fbec98aef2e07dd07c79e3bd12aa15b8
2022-03-29 00:35:24 +03:00
Chirayu Desai
62efd7264e pixel: Add script to automatically upgrade build.prop overrides
Change-Id: Ic3d2026c2cc65532a5f1eed1ac7bc11aa5a0a6e1
2022-03-26 18:15:21 +02:00
Chirayu Desai
a046d305ee pixel: Save build_number to vars, extracted from flash_url
Change-Id: I8d6e97629f77136b4ce6fc003712cf8e73a891b4
2022-03-26 18:15:21 +02:00
Chirayu Desai
62d0542e69 pixel: firmware: Add firmware partitions to AB_OTA_PARTITIONS
* Otherwise they won't get included on ota updates

Change-Id: Ib04112c8f6815099cab47a90661f8d78cb3ee122
2022-03-26 18:15:21 +02:00
Michael Bestas
7e53904b28 pixel: Remove double slash from paths
Change-Id: I0ba8b24f1ad47abf7621d3e723dd5a950a86e366
2022-03-26 18:15:20 +02:00
Chirayu Desai
3e026106de pixel: firmware: Use full name for bootloader and radio
* To better match stock factory images

Change-Id: I6fda1d2c9d35877d555d7a0c032dc089c7103eb3
2022-03-26 18:15:20 +02:00
Chirayu Desai
674eeaa72b 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
2022-03-26 18:15:20 +02:00
Chirayu Desai
9ac066087b pixel: Add a shell script to do it all
Change-Id: If485efa68d0f23676e48665acbfeac094c750dcb
2022-03-26 18:15:20 +02:00
Chirayu Desai
99f443c10e pixel/download.sh: Only download OTA when needed
Change-Id: I32488c1f15f6c7972e35a14641081ab4efeed3d9
2022-03-26 18:15:19 +02:00
Chirayu Desai
ecc10587d8 pixel: Add shell script to extract and setup firmware
Change-Id: Ib1f030dcd978f943c2d5716a7e40df54fc26f545
2022-03-26 18:15:19 +02:00
Chirayu Desai
9775cdb6a6 pixel: Add shell script to extract factory images
Change-Id: Iecc2703200944c4a5448ec4b2b897f6fd14be676
2022-03-26 18:15:19 +02:00
Chirayu Desai
05b3a310ce pixel: Add shell script to download images from Google
Change-Id: I23ea5c3e8de675bf48ae2be93b83f24f7025f5c3
2022-03-26 18:15:18 +02:00
Chirayu Desai
cb6c647e31 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
2022-03-26 18:15:18 +02:00
Chirayu Desai
cc989349de 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
2022-03-26 18:15:18 +02:00