Installing GraphineOS on the Google Pixel 4a


Installing GraphineOS on the Google Pixel 4a

GraphineOS does not come with microG. You can install it from F-Droid however it does not support signature spoofing

Prerequisites

  • Google Pixel 4a.
    Purchased outright, no contract or directly from Google.
    Not purchased via a mobile network carrier.
  • Download and extract platform-tools (Ubuntu 20.04)
curl -O https://dl.google.com/android/repository/platform-tools_r30.0.5-linux.zip

echo 'd6d72d006c03bd55d49b6cef9f00295db02f0a31da10e121427e1f4cb43e7cb9  platform-tools_r30.0.5-linux.zip' | sha256sum -c

tar xvf platform-tools_r30.0.5-linux.zip

export PATH="$PWD/platform-tools:$PATH"

which fastboot

fastboot --version

sudo apt install android-sdk-platform-tools-common -y

sudo apt install signify-openbsd

alias signify=signify-openbsd

curl -O https://releases.grapheneos.org/factory.pub

curl -O https://releases.grapheneos.org/sunfish-factory-2020.12.12.03.zip

curl -O https://releases.grapheneos.org/sunfish-factory-2020.12.12.03.zip.sig

#Uncompress the ROM
tar xvf sunfish-factory-2020.12.12.03.zip

Enable Developer Options

Settings>About phone> tap on the build number until developer mode is enabled.

OEM Unlocking

Settings>System>Advanced>Developer options and toggle on the ‘Enable OEM unlocking’ setting. This requires internet access on devices with Google Play services as part of Factory Reset Protection (FRP) for anti-theft protection.

At this stage there still is no warning message at system boot.

Unlocking Bootloader

  1. Boot phone into FastBoot
  2. Connect phone to computer via USB cable
fastboot flashing unlock
OKAY [  0.090s]
Finished. Total time: 0.090s

4. Follow the phones onscreen menu to confirm unlock 

At this stage you will get a warning message on every boot.

Flash the ROM

#Needs to be run inside the directory as links are relative

cd sunfish-factory-2020.12.12.03
./flash-all.sh

Re Lock Boot Loader

Optional. If you want greater security re lock it. If you going to be flashing other ROMs leave it unlocked

fastboot flashing lock

Follow phones onscreen prompts to confirm re lock

Optional

Relock OEM Unlocking Lock

  • Enable Developer Options
  • Settings>System>Advanced>Developer options and toggle on the ‘Enable OEM unlocking’ setting
  • https://developers.google.com/android/images
  • https://en.wikipedia.org/wiki/MicroG
  • https://grapheneos.org/