217 Commits

Author SHA1 Message Date
Andrew Gunnerson d0373470b4 Merge pull request #6 from chenxiaolong/old
Add support for older Pixel devices
2022-11-28 14:34:41 -05:00
Andrew Gunnerson c83b8f5b17 Add support for older Pixel devices
* Apply OTA certificate patch to the boot image if no `vendor_boot`
  image exists.
* Only manually decompress ramdisk cpio archives if the boot image
  header version is 4. `magiskboot` automatically decompresses older
  header versions.

Fixes: #5

Signed-off-by: Andrew Gunnerson <chillermillerlong@hotmail.com>
2022-11-27 17:12:11 -05:00
Andrew Gunnerson 8ad906d3a3 Merge pull request #3 from tnagorran/master
Update README.md
2022-11-02 15:27:22 -04:00
tnagorran 2edb25af31 Update README.md 2022-11-02 15:16:34 +03:00
Andrew Gunnerson d965e22875 avbroot/openssl.py: openssl 1.1's pkeyutl also does not autodetect the private key encoding
Issue: #2

Signed-off-by: Andrew Gunnerson <chillermillerlong@hotmail.com>
2022-10-24 22:10:44 -04:00
Andrew Gunnerson 7b697b8daf README.md: python3-protobuf is also required
Issue: #2

Signed-off-by: Andrew Gunnerson <chillermillerlong@hotmail.com>
2022-10-24 22:08:38 -04:00
Andrew Gunnerson df344bdf84 README.md: Add documentation about git submodule and system dependencies
Issue: #2

Signed-off-by: Andrew Gunnerson <chillermillerlong@hotmail.com>
2022-10-24 10:38:48 -04:00
Andrew Gunnerson ee297eb605 avbroot/openssl.py: Explicitly set -inform when querying RSA modulus
openssl 1.1 does not support autodetecting whether the input file is PEM
or DER encoded.

Issue: #2

Signed-off-by: Andrew Gunnerson <chillermillerlong@hotmail.com>
2022-10-24 10:33:52 -04:00
Andrew Gunnerson 1ce72c2513 README.md: Add note about Pixel 7 Pro compatibility
Signed-off-by: Andrew Gunnerson <chillermillerlong@hotmail.com>
2022-10-13 17:27:16 -04:00
Andrew Gunnerson 163540b2b6 avbroot/boot.py: Force signing algorithm from SHA256_RSA2048 to SHA256_RSA4096
The Pixel 7 series' init_boot image is signed with a SHA256_RSA2048
signature and avbroot can't use that algorithm because it expects RSA
4096 keys.

Signed-off-by: Andrew Gunnerson <chillermillerlong@hotmail.com>
2022-10-13 17:25:01 -04:00
Andrew Gunnerson dbaa3b8b40 avbroot.py: Add support for init_boot image
Devices launching with Android 13, like the Pixel 7 series, put the
ramdisk containing first stage init in the init_boot partition instead
of the boot partition.

Signed-off-by: Andrew Gunnerson <chillermillerlong@hotmail.com>
2022-10-13 17:24:19 -04:00
Andrew Gunnerson c9b0311a66 external/avb: Update submodule to 0ec7ed41b53ab1ca7509a75f4a0fed139fc957af
Signed-off-by: Andrew Gunnerson <chillermillerlong@hotmail.com>
2022-10-13 17:23:43 -04:00
Andrew Gunnerson ba7109cc43 Add clearotacerts Magisk module to intentionally make A/B OTAs fail
Signed-off-by: Andrew Gunnerson <chillermillerlong@hotmail.com>
2022-07-06 17:16:39 -04:00
Andrew Gunnerson e638463fdf README.md: Clarify what devices are supported
Signed-off-by: Andrew Gunnerson <chillermillerlong@hotmail.com>
2022-07-02 16:26:09 -04:00
Andrew Gunnerson 961e2a752b Merge pull request #1 from chenxiaolong/ota
Switch to OTA patching
2022-07-02 16:20:20 -04:00
Andrew Gunnerson 985325d26c Switch to OTA patching
This is more secure and reliable compared to forcibly enabling fastbootd
in recovery. All of the normal AVB and OTA update flows are preserved,
except with the user's custom keys.

Signed-off-by: Andrew Gunnerson <chillermillerlong@hotmail.com>
2022-07-02 16:17:13 -04:00
Andrew Gunnerson b87178b628 Initial commit
Signed-off-by: Andrew Gunnerson <chillermillerlong@hotmail.com>
2022-06-25 19:14:20 -04:00