mirror of
https://github.com/chenxiaolong/avbroot.git
synced 2026-07-03 14:05:11 +02:00
dc81e8571f
The extra field record was previously stripped out due to a bug in Python's zipfile implementation. That was fixed by [1], which was backported to 3.10 and 3.11, but not 3.9. This commit explicitly strips out the 0xd935 record to ensure that the checksums of the patched files are the same across all Python versions. This is probably the correct thing to do anyway, since the record is related to zip entry alignment [2], which we don't do. Note that the Python bug can affect other extra field records too, but we don't see that in practice. [1] https://github.com/python/cpython/commit/62c0327487ce39ec6504919b7712e0f197075ef9 [2] https://android.googlesource.com/platform/build/+/android-13.0.0_r1/tools/signapk/src/com/android/signapk/SignApk.java#133 Fixes: #93 Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
144 lines
5.7 KiB
YAML
144 lines
5.7 KiB
YAML
magisk:
|
|
url: https://github.com/topjohnwu/Magisk/releases/download/v26.0/Magisk-v26.0.apk
|
|
hash: 9e14d3d3ca1f1a2765f8ca215ebbf35ea5fd2896fb147eea581fcaa3b4e77d25
|
|
|
|
device:
|
|
# What's unique: init_boot (boot v4) + vendor_boot (vendor v4)
|
|
cheetah: # Google Pixel 7 Pro
|
|
url: https://dl.google.com/dl/android/aosp/cheetah-ota-tq2a.230305.008.c1-6ac5ff2e.zip
|
|
sections:
|
|
- start: 0
|
|
end: 151715
|
|
- start: 961379
|
|
end: 21514020
|
|
- start: 21683150
|
|
end: 23179365
|
|
- start: 2043499985
|
|
end: 2043504053
|
|
- start: 2315331822
|
|
end: 2333060126
|
|
- start: 2344084950
|
|
end: 2344090066
|
|
hash:
|
|
original:
|
|
full: 6ac5ff2e14dc16755ea4ea30e6dbe25103b889a36a465194ef943bd0d665b91c
|
|
stripped: 1834c00a5c7feb7925dc684e93c33707b3b18cac3a2b54a188c571fd18844933
|
|
patched:
|
|
full: 7a9d103fd82a034ff349e9684be942b47094de946c13175dd7cacfbd5a2801c0
|
|
stripped: 337e0d0b2ab4b97a1630b4e7987389526f17d61b24a65e60c2ab7e62a37477a0
|
|
avb_images:
|
|
init_boot.img: 07b5899a9259e4b054b1184226b07bec634a93933f5092c7f74089cf19dfb352
|
|
vbmeta.img: 903486b11bedb173e5f8ebfff3b80df3f4ac96e9267e98973e9a5c0dfd4a84e3
|
|
vendor_boot.img: a6746a6d8c8f1229984c063cb7f86198994f913b7f3fbbbac14337ffae15e9f0
|
|
|
|
# What's unique: boot (boot v4, no ramdisk) + vendor_boot (vendor v4, 2 ramdisks)
|
|
bluejay: # Google Pixel 6a
|
|
url: https://dl.google.com/dl/android/aosp/bluejay-ota-tq2a.230305.008.e1-915f9087.zip
|
|
sections:
|
|
- start: 0
|
|
end: 140787
|
|
- start: 1060207
|
|
end: 21612852
|
|
- start: 1886150700
|
|
end: 1886154660
|
|
- start: 2069112987
|
|
end: 2092260102
|
|
- start: 2098778558
|
|
end: 2098783674
|
|
hash:
|
|
original:
|
|
full: 915f9087b627b6961be9bb447dc63a7a1083b536753a78715e98641eaeb9c9d1
|
|
stripped: a56115e71e2c45385591281d287a1cc8a2f94be478f52b8d4f10ed4091733915
|
|
patched:
|
|
full: ee904dacf01f340651dc50db9ba3732315ad66cc3147b7c8508017b083db3657
|
|
stripped: 62a2094b46328059166a404163bfce1ac4d31ac160fb781f1ef6440ed2800a73
|
|
avb_images:
|
|
boot.img: 74a7561ee562bf267f1e67243b431cf60538859d5bf7ca624bfc99fe4d425861
|
|
vbmeta.img: 1afe23814943ad79915fdf2c1aac82d53d99587eb8e2966eace106bf966287fa
|
|
vendor_boot.img: 68454782e3e5107555b33567a6403a253aa8f63591889ab9c5afe29d03227393
|
|
|
|
# What's unique: boot (boot v3) + vendor_boot (vendor v3)
|
|
bramble: # Google Pixel 4a 5G
|
|
url: https://dl.google.com/dl/android/aosp/bramble-ota-tq2a.230305.008.c1-a925dd09.zip
|
|
sections:
|
|
- start: 0
|
|
end: 140531
|
|
- start: 496187
|
|
end: 11655082
|
|
- start: 1650283561
|
|
end: 1650285805
|
|
- start: 1884739919
|
|
end: 1908081011
|
|
- start: 1910894027
|
|
end: 1910899144
|
|
hash:
|
|
original:
|
|
full: a925dd09c8d613d46cf72677c16f4fadee18bc21734d57047c6ccf31f672507b
|
|
stripped: 742a7c2282c684a3699d367ed4fb336f47517434e5702a16e78bf21d62d97580
|
|
patched:
|
|
full: 24e83b01a8c17f803e15956ee94476eab398436a49c03377a71fc4cff70bd255
|
|
stripped: 67fe136a276ef5db9fd54ede3c06becad69fa5ef4af72dd249e3c3729ca37c59
|
|
avb_images:
|
|
boot.img: e15eb2ff0609c9d84fef085ef72ccd7523ae4ac2a39082ae917e0402efdfd2f3
|
|
vbmeta.img: 23cb8e2fe74b3a709b49e78808f1d8561c8681700f22f0fda1fd1a9fd198e3c5
|
|
vendor_boot.img: 34901182f5e29d9ab92d5ab0f50fc96b44c6efffaa41c6b380234a92da9a2b10
|
|
|
|
# What's unique: boot (boot v2)
|
|
sunfish: # Google Pixel 4a
|
|
url: https://dl.google.com/dl/android/aosp/sunfish-ota-tq2a.230305.008.c1-174fd16b.zip
|
|
sections:
|
|
- start: 0
|
|
end: 129700
|
|
- start: 476996
|
|
end: 34035261
|
|
- start: 1624751947
|
|
end: 1624754183
|
|
- start: 1823132563
|
|
end: 1823137581
|
|
hash:
|
|
original:
|
|
full: 174fd16b47ef994ea8f3cb0f3fb456df2654b0aa1f9ea6fb8e54e5c6319f2601
|
|
stripped: 4a06fb2293aa1f2788a342dea834d71044997bf00c85db10f468b6c758b9d484
|
|
patched:
|
|
full: 928bb6bca12d3b4c9fe7e327855e010632c626df0d18971ad8212b64ef7fe4ba
|
|
stripped: 8cf8b2bea5049a4d7583dc0c262e27f2b8db92f06340b29730a3749432d4767a
|
|
avb_images:
|
|
boot.img: 36d4a348b2ea54655c28a71d14f865eb1181bb860b71057845afeb151d054817
|
|
vbmeta.img: e0923a65c9cd77f2327b43a679524c7945fdc1f9f6cf707b75f7f215dcd852cd
|
|
|
|
# What's unique:
|
|
# - boot (boot v4) + recovery (boot v4)
|
|
# - boot images have VTS signature block filled with all 0s
|
|
# - payload.bin uses ZERO blocks
|
|
# Build info:
|
|
# - Unofficial list of full OTAs: https://forum.xda-developers.com/t/oneplus-10-pro-rom-ota-oxygen-os-repo-of-oxygen-os-builds.4572593/
|
|
# - The North American builds are used because they're the only ones hosted on
|
|
# a well known domain
|
|
# - The build number can be found in <my_manifest>/build.prop since it's not
|
|
# obvious from the filename
|
|
ossi: # OnePlus 10 Pro
|
|
# Build NE2215_11_C.26
|
|
url: https://android.googleapis.com/packages/ota-api/package/4cacbe5e6a3ab6a6fade68cc40f44d0fa6a2928a.zip
|
|
sections:
|
|
- start: 0
|
|
end: 204048
|
|
- start: 19105432
|
|
end: 34966775
|
|
- start: 4984045446
|
|
end: 5019718276
|
|
- start: 5114504441
|
|
end: 5114507197
|
|
- start: 5140101511
|
|
end: 5140105324
|
|
hash:
|
|
original:
|
|
full: 929f892fbd70699cf7f118a119aac1ae1b86351e1ada17715666fa4401e63472
|
|
stripped: 6d9013c29aff5dc07ec549d844c5888089fe65f4a5c624bbd0afa04d1503ec8a
|
|
patched:
|
|
full: 1c4294f2faa711eacf4647025041e73d10488d7b9ff3a1a3142fe84b195cd9e0
|
|
stripped: c6abc228354ee6f4e338fce6860884c0aa6d4d2a72920e411c491ff52278702d
|
|
avb_images:
|
|
boot.img: ec703e143c24e7eb5b2eb96beb1d4342c1dd2179b12612d41430b1b55e7dec0f
|
|
recovery.img: 2ff62bc52a5900eb170cc44df0f0ee8062ee6dcb48ecf1899ac556145161f53c
|
|
vbmeta.img: c022cf79da301a8430af5c49704944c490707fa0306031fe3ea22c39ce4734f6
|