/notebook/graphene

Installing GrapheneOS


Instructions derived from https://grapheneos.org/install/cli

get the version pixel10a version info from here: https://grapheneos.org/releases#stallion

version=stallion-install-2026081300
versionzip=$version.zip
sudo apt remove -y adb
sudo apt install libarchive-tools
mkdir -p ~/apps
cd ~/apps

curl -O https://dl.google.com/android/repository/platform-tools_r35.0.2-linux.zip
echo 'acfdcccb123a8718c46c46c059b2f621140194e5ec1ac9d81715be3d6ab6cd0a  platform-tools_r35.0.2-linux.zip' | sha256sum -c
bsdtar xvf platform-tools_r35.0.2-linux.zip
rm platform-tools_r35.0.2-linux.zip

echo "export PATH=\"$HOME/apps/platform-tools:\$PATH\"" >> ~/.bashrc
source ~/.bashrc

sudo apt install -y android-sdk-platform-tools-common
sudo systemctl stop fwupd.service

mkdir graphene
cd graphene
curl -O https://releases.grapheneos.org/allowed_signers
curl -O https://releases.grapheneos.org/$versionzip
curl -O https://releases.grapheneos.org/$versionzip.sig

ssh-keygen -Y verify -f allowed_signers -I contact@grapheneos.org -n "factory images" -s $versionzip.sig < $versionzip

bsdtar xvf $versionzip
cd $version

prep the phone

fastboot flashing unlock
bash flash-all.sh
fastboot flashing lock

when done,

rm -rf $version

Old inststructions

sudo apt install -y android-sdk-platform-tools-common
sudo apt install -y signify-openbsd
echo "alias signify=signify-openbsd" >> ~/.bashrc
sudo apt remove adb 
mkdir ~/adb
cd ~/adb
sudo apt install -y libarchive-tools
curl -O https://dl.google.com/android/repository/platform-tools_r33.0.3-linux.zip
echo 'ab885c20f1a9cb528eb145b9208f53540efa3d26258ac3ce4363570a0846f8f7  platform-tools_r33.0.3-linux.zip' | sha256sum -c
bsdtar xvf platform-tools_r33.0.3-linux.zip
echo "export PATH=\$PATH:/home/danaukes/adb/platform-tools" >> ~/.bashrc
which fastboot
fastboot --version

Download graphene

go to https://grapheneos.org/releases#bramble-stable

wget https://releases.grapheneos.org/bramble-factory-2022071300.zip.sig
wget https://releases.grapheneos.org/bramble-factory-2022071300.zip

Prep Phone

  1. Turn on developer mode
  2. go to settings --> "about phone"
  3. press "build number" until developer mode is enabled
  4. exit out of settings so that the new menu can load
  5. go back to settings --> system --> developer options
  6. enable "OEM unlocking"
  7. restart phone in bootloader mode by restarting and holding the "volume down" button until the fastboot screen starts up.
cd ~/adb
wget https://releases.grapheneos.org/factory.pub
cat factory.pub 
signify-bsd -Cqp factory.pub -x bramble-factory-2022071300.zip.sig  && echo verified
bsdtar xvf bramble-factory-2022071300.zip
cd bramble-factory-2022071300/
fastboot flashing unlock
./flash-all.sh 
fastboot flashing lock

Next Steps

VPN Issue

  1. After installing tailscale, turn off blocking in vpn settings

https://github.com/GrapheneOS/os-issue-tracker/issues/183

To return to the original

other resources