From 19eec16948282600762edacb5d03fb3b8eeaa505 Mon Sep 17 00:00:00 2001
From: Daniel Micay
Download the factory images for the device from the releases - page. For example, to download the 2021.04.05.20 release for the Pixel 5 (redfin):
+ page. For example, to download the 2021.04.05.20 release for a device with the + codenameDEVICE_NAME
:
- curl -O https://releases.grapheneos.org/redfin-factory-2021.04.05.20.zip -curl -O https://releases.grapheneos.org/redfin-factory-2021.04.05.20.zip.sig+
curl -O https://releases.grapheneos.org/DEVICE_NAME-factory-2021.04.05.20.zip +curl -O https://releases.grapheneos.org/DEVICE_NAME-factory-2021.04.05.20.zip.sig
Verify the factory images using the signature if you were able to obtain
signify
from trusted package repositories (see above), otherwise
continue on to the next section without this:
signify -Cqp factory.pub -x redfin-factory-2021.04.05.20.zip.sig && echo verified+
signify -Cqp factory.pub -x DEVICE_NAME-factory-2021.04.05.20.zip.sig && echo verified
This will output verified
if verification is successful. If something
goes wrong, it will output an error message rather than verified
.
bsdtar xvf redfin-factory-2021.04.05.20.zip+
bsdtar xvf DEVICE_NAME-factory-2021.04.05.20.zip
On macOS and Windows:
-tar xvf redfin-factory-2021.04.05.20.zip+
tar xvf DEVICE_NAME-factory-2021.04.05.20.zip
Move into the directory:
-cd redfin-factory-2021.04.05.20+
cd DEVICE_NAME-factory-2021.04.05.20
Flash the images with the flash-all script in the directory.