From 2c22bc7c36048e1dea05289b7673bf1b6084b1fe Mon Sep 17 00:00:00 2001
From: flawedworld Additional dependencies for Pixel phones before the 6th generation: Additional dependencies for Pixel phones before the 4th generation: Additional dependencies for 6th generation Pixel phones: Additional Vanadium (Chromium) build dependencies not provided by the source tree:
-
-
-
-
@@ -477,8 +473,12 @@ repo sync -j16
that the official builds match the sources, since it has signature verification (which
is an important part of the verified boot and attestation security model).
3rd generation Pixel devices will be using android-prepare-vendor for the remainder of + their lifetime on GrapheneOS. +
Extract the vendor files corresponding to the matching release with
DEVICE
and BUILD_ID
replaced with the
@@ -490,22 +490,23 @@ rm -rf vendor/google_devices/DEVICE
mv vendor/android-prepare-vendor/DEVICE/BUILD_ID/vendor/google_devices/* vendor/google_devices/
Starting with the Pixel 6, newer generation devices use the adevtool project to - extract files from the stock operating system. -
+The below commands need to only be run once to initially create a working environment.
cd vendor/adevtool/ && yarn install && cd ../.. -vendor/adevtool/bin/run download vendor/adevtool/dl/ -d DEVICE -b BUILD_ID -t factory -sudo vendor/adevtool/bin/run generate-all vendor/adevtool/config/DEVICE.yml -c vendor/state/DEVICE.json -s vendor/adevtool/dl/DEVICE-BUILD_ID-*.zip+source script/envsetup.sh +m aapt2 -
OTA firmware extraction is currently a work-in-progress on adevtool. - android-prepare-vendor is being temporarily used to make the process easier.
+Extract the vendor files corresponding to the matching release with
+ DEVICE
and BUILD_ID
replaced with the
+ appropriate values:
vendor/android-prepare-vendor/execute-all.sh -d DEVICE -b BUILD_ID -o vendor/android-prepare-vendor -cp -r vendor/android-prepare-vendor/DEVICE/BUILD_ID/vendor/google_devices/DEVICE/radio/* vendor/google_devices/DEVICE/firmware/+
vendor/adevtool/bin/run download vendor/adevtool/dl/ -d DEVICE -b BUILD_ID -t factory ota +sudo vendor/adevtool/bin/run generate-all vendor/adevtool/config/DEVICE.yml -c vendor/state/DEVICE.json -s vendor/adevtool/dl/DEVICE-BUILD_ID-*.zip +sudo chown -R $(logname):$(logname) vendor/google_devices +vendor/adevtool/bin/run ota-firmware vendor/adevtool/config/DEVICE.yml -f vendor/adevtool/dl/DEVICE-ota-BUILD_ID-*.zip