GrapheneOS EN

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Install ADB

To install Android Debug Bridge (ADB) on macOS, you can follow these steps. ADB is a crucial
development tool that allows you to manage your Android device or emulator from your computer via the
command line.
Step 1: Install Homebrew
Before installing ADB, you need to have Homebrew, which is a package manager for macOS. If you don't
already have it, open Terminal and run the following command:
/bin/bash -c "$(curl –fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
This command will download and run the Homebrew installation script.
Step 2: Install ADB via Homebrew
Once Homebrew is installed, you can easily install ADB by using the following command in Terminal:
brew install android-platform-tools
This command will install ADB as well as other Android platform tools, such as fastboot.
Step 3: Verify ADB Installation
After the installation is complete, verify that ADB has been successfully installed by running the following
command in Terminal:
adb version
If the installation was successful, you will see the version of ADB that was installed.
Step 4: Start ADB
Before using ADB, you need to enable Developer Settings on your Android device and allow USB
debugging. Then, connect your device to your Mac using USB and run the following command to start an
ADB session:
adb devices
This command will list the connected devices, confirming that ADB is working correctly and is ready for
use.

Install GrapheneOS

Step 1: Activate Developer Options


Go to Settings on your Pixel device.
Scroll down and select About phone.
Find the Build number entry and tap on it seven times. You'll see a message saying you are now a developer.
Step 2: Enable OEM Unlocking and USB Debugging
Go back to the main Settings screen.
Scroll down and select System, then choose Developer options.
Enable both OEM unlocking and USB debugging.
Step 3: Reboot into Bootloader Mode
Connect your Pixel device to your Mac using a USB cable.
Open Terminal on your Mac.
Enter the following command to reboot your device into bootloader mode:
adb reboot bootloader
Step 4: Unlock the Bootloader
In the Terminal, enter the following command to unlock the bootloader:
fastboot flashing unlock
On your Pixel device, you will see a confirmation screen. Use the volume buttons to navigate and the power
button to confirm unlocking.
Step 5: Download GrapheneOS Images
Visit the https://grapheneos.org/releases and download the images for your device model.
Unzip the downloaded file with the images on your Mac.
Step 6: Install GrapheneOS
Navigate to the image folder in Terminal using the cd command.
Run the Installation Script:
./flash-all.sh

Step 7 : Re-lock the Bootloader


Reboot into Bootloader Mode:
adb reboot bootloader
Lock the Bootloader:
fastboot flashing lock
Follow the on-screen instructions on the device to confirm locking.
Step 8: Disable OEM Unlocking
Go to Settings on your Pixel device.
Scroll down and select About phone.
Find the Build number entry and tap on it seven times. You'll see a message saying you are now a developer.
Go back to the main Settings screen.
Scroll down and select System, then choose Developer options.
Disable both OEM unlocking.

You might also like