The Google Pixel 7 and Google Pixel 7 Pro are the company’s most recent flagship devices. Numerous improvements, including top-notch cameras, are included in the new phone series. The Pixel 7 offers a smooth experience, as one would expect from a Pixel phone. However, you may root your phone if you’d like extra functions. In this guide, we are going to share “How to Root Google Pixel 7 or Pixel 7 Pro Using Magisk.”
Prerequisites
- Do a complete backup of your phone’s data (to restore if anything goes wrong).
- Install drivers for the PC’s ADB and Fastboot.
- Developer Mode and OEM Unlock are Needed
- Get factory images for the Pixel 7 and Pixel 7 Pro here.
- Get Magisk for your phone.
- Unlock the Bootloader
- Download the Android SDK Platform Tools
Enable USB Debugging and OEM Unlocking on Your Pixel
- On your phone, launch the Settings app.
- Click on About Phone.
- Tap on the build number seven times. The Developer Settings menu will then be visible again.
- Return to the Settings page.
- Tap System and then Developer Options.
- Find USB debugging and OEM unlocking on the Developer Settings page. Next, proceed by turning on the two choices.
Unlock the bootloader.
- First, open the Command Prompt, navigate to the platform-tools folder on your PC, type CMD in the address bar, and then press the Enter key.
- Run the command in CMD.
- fastboot devices
- adb reboot bootloader
- Fastboot mode should have been activated on your Google Pixel.
- After that, to unlock the bootloader on the Pixel 7, use the command below.
- fastboot flashing unlock
- Your phone will display alternatives. Navigate to ‘Unlock Bootloader’ with the volume button and click the Power button to choose it.
- Your Pixel 7 Pro’s bootloader will be unlocked, and all data will be deleted as a result.
- Enter the following command to reboot the device after the bootloader unlocking.
- fastboot reboot
- Now, you have successfully unlocked the bootloader on Google Pixel.
Steps to Root Google Pixel 7 Pro
- Download the factory image and extract the boot image. The boot.img file should be copied to the phone’s storage.
- Keep a note of the location of the platform tools zip file on your PC.
- To install Magisk, open the app and click on the Install button.
- Select the boot.img from the option ‘Select and Patch a File’.
- In the download folder, you will find the patched output file.
- Rename the patched boot image to boot.img after copying it into the extracted platform-tools folder. The vbmeta.img must also be copied to the platform-tools folder from the extracted firmware.
- Enter CMD in the address bar of File Explorer to open CMD in the platform-tools folder.
- Boot your phone into fastboot mode after turning it off. To boot into Fastboot Mode, press and hold Volume Down + Power.
- To flash vbmeta, enter the following command once your Pixel 7 is in fastboot mode:.
- fastboot flash –disable-verity –disable-verification vbmeta vbmeta.img
- Make sure you wipe your data if it asks for it. Use the given command to boot your phone into the patched boot image.
- fastboot boot boot.img
- Your phone will boot into the system when you run this command. Select Install > Direct Install from the Magisk app.
- Click on Reboot after the installation process is complete.
- You will now have permanent root access to your Pixel 7 phone.