Rooting and SafetyNet
Rooting
Prerequisites
Instructions are written assuming you have a device with an unlocked bootloader running PixelOS with PixelOS Recovery installed.
Commands can be run on Windows CMD, PowerShell, Bash, MacOS Terminal.
Make sure to enable USB Debugging from Developer Opions.
You may use the volume keys to navigate PixelOS Recovery if touch does not work
From PC/Linux/Mac
- Setup ADB and Fastboot. LineageOS Wiki
- Download the Latest Magisk Installer (APK File) and save it to your ADB folder
- Rename the file from
Magisk-vxx.x.apk
toMagisk-vxx.x.zip
- Connect your device to your computer using a charging/data transfer cable and connect to it with adb
- Reboot the device to recovery by using the command
adb reboot recovery
- You should be greeted by PixelOS Recovery screen
- Select
Apply Update
- Select
Apply from ADB
- Sideload the Magisk installer using the command
adb sideload path/to/magisk/Magisk-vxx.x.zip
- If your device now says
Signature verification failed. Install anyway?
, ignore the warning and click onYes
- The installation should begin. When it is done, you should see it in the terminal window and on the display of the device
- Unplug the device and reboot to system, by going back to main menu and selecting
Reboot system now
- Once PixelOS boots up, open the newly created Magisk App and follow on-screen-instructions
- Your device should now be rooted
From SD Card
- Download the Latest Magisk Installer (APK File) to your SD Card
- Rename the file from
Magisk-vxx.x.apk
toMagisk-vxx.x.zip
- Reboot the device to recovery by holding Volume Up + Power Button
[Might change from device to device]
- You should be greeted by PixelOS Recovery screen
- Select
Apply Update
- Select
Choose from sdcard1
- Select the file you downloaded, ie
Magisk-vxx.x.zip
- If your device now says
Signature verification failed. Install anyway?
, ignore the warning and click onYes
- The installation should begin. When it is done, you should see it on the display of the device
- Reboot to system, by going back to main menu and selecting
Reboot system now
- Once PixelOS boots up, open the newly created Magisk App and follow on-screen-instructions
- Your device should now be rooted
SafetyNet
SafetyNet on all PixelOS builds should pass by default without the need to do anything further. However, if you have rooted you device, follow the steps below to pass SafetyNet
- Download kdrag0n's Universal SafetyNet Fix to your device
- Open Magisk App
- Select the gear icon on the top right
- Scroll down to
Magisk
- Enable
Zygisk
andEnforce DenyList
- You can ignore the toast saying
Reboot to apply changes
- Go back, and select Modules
- Select the downloaded file
- It should start installing
- Press the blue
reboot
button on the right corner - Once the device reboots you should pass SafetyNet.
caution
Some apps may still detect root, try adding them to DenyList.
Some apps may still break due to root, unfortunately there is nothing we can do to fix them. :(