Root
Google Pixel 4 Android 13 – Ubuntu 22.04 LTS using terminal
1.
Install Google Chrome (no Chromium)
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
2.
Instal ADB i Fastboot tools in Ubuntu
sudo
apt update
sudo
apt install android-tools-adb android-tools-fastboot
sudo
dnf install android-tools
*create
directories on your Ubuntu, for example on the Desktop or Home…
under the name for example “Google Pixel 4 rooting”
3.
Very Important – BACKUP your data (photos, videos...)
****
all
data such as pictures, videos, documents and others will be deleted
****
This is an example of the Google Pixel 4 rooting procedure, at your own risk!!!
4.
In Google Pixel 4 go to Settings – About Phone – Build Number fast tap
7x
4.1
go to System – Developer Options – USB Debugging - ON
4.2
go to System – Developer Options – OEM Unlocking - ON
5.1
click +Add new device and allow ADB
5.2
Select Pixel 4 and connect
5.3
Select build – and select
5.3.1
Wipe Device
5.3.2
Force Flash all Partition
5.3.3
Disable Verity
5.3.4
Disable Verification
5.3.5
Install Build
*maybe
a message in Your Google Pixel 4 will appear to unlock bootloader, follow
the instructions from the website and on the Google Pixel 4, wait for
installation, Google Pixel 4 will reboot after some time
6.2
copy Magisk-v28.1.apk in Your Google Pixel 4
6.3
install Magisk-v28.1.apk in Your Google Pixel 4
7.1
go to Settings in Your Google Pixel 4 – About Phone – Build Number
7.2
find and download images
*example:
TP1A.221005.002.B2,
Feb 2023
https://dl.google.com/dl/android/aosp/flame-tp1a.221005.002.b2-factory-38e4f49a.zip
7.3
go
to your working directory where you created it and unzip
*flame-tp1a.221005.002.b2.zip
7.4
go to flame-tp1a.221005.002.b2 directory and unzip
*image-flame-tp1a.221005.002.b2.zip
7.5
find boot.img and copy to Your Google Pixel 4
8.
Run Magisk aplication in Your Google Pixel 4
9.1
click install, select and patch a file (select file boot.img)
9.2
find in Downloads directory in Your Pixel 4 file
*magisk_patched-28100_P4nwz.img
9.3
copy *magisk_patched-28100_P4nwz.img
in your working directory in Ubuntu
9.
In Google Pixel 4 go to Settings – About Phone – Build Number fast tap
7x
10.1
go to System – Developer Options – USB Debugging - ON
10.2
go to System – Developer Options – OEM Unlocking - ON
10.
In Ubuntu go to terminal and find Your device with command
adb
devices
Results:
List of devices attached
9B151FFAZ00J2P device
adb
reboot bootloader
fastboot
flash boot magisk_patched-28100_P4nwz.img
11. Reboot your Google Pixel 4
Your
Google Pixel 4 is ROOT!
check Your Your Google Pixel 4 with Root Checker https://root-checker.en.uptodown.com/android/download