How To Guide [Pixel 6 Pro] Easy STEP BY STEP Unlock-Root-Update

Search This thread

Az Biker

Sr. Mod / Mod & RC-RT Committees / Shred'r of MTBs
Staff member
Ready to Unlock, Root, and Update factory images on your Pixel 6 Pro?

There are some really good guides by V0latyle here, and by roirraW "edor" ehT here which are great for veteran/regular users who are really familiar with adb/fastboot and the commands, steps used in the unlocking, rooting environment.

This step by step is for people like ME who are not adb/fastboot gurus, who need every step spelled out so we don't brick our over-priced flagship devices :D


What You Need On Your PC:

Factory Image
MAGISK - Canary 24310
SDK Platform Tools & USB Drivers (first time installation)

(additional files I use: optional)

Working SafetyNet @Pekempy
Kirisakura Kernel @Freak07


*** MAKE SURE YOU EXTRACT THE CORRECT BOOT.IMG FILE TO PATCH IN MAGISK ***
-download latest factory image, unzip the MAIN image.zip, then unzip the SECONDARY image.zip , copy the contents of the SECOND image.zip into the same platform tools folder that has the fastboot application in it, then open the image.zip you just copied into the fastboot folder and copy the boot.img and paste it somewhere on your PC.


Device Setup PRIOR To Starting Fastboot:

Settings>About phone>Build Number (click build number until you see YOU ARE NOW A DEVELOPER)
Settings>System>Advanced>Developer Options
Enable OEM Unlocking & USB Debugging & USB Configuration> enable FILE TRANSFER



Unlock the Bootloader, Update Factory Image, and Get Root:

1- Boot your device into bootloader/fastboot (hold power / vol down)


2- Connect USB cable to device and PC ( have diff USB cables available for troubleshooting)


3- From address bar in the platform tools folder where the fastboot application is located on your PC, type CMD to open command prompt window


4- Type FASTBOOT DEVICES, if you see a serial number(s) you are ready, if you don't, verify you've properly set up platform tools folder, change cable, check command, try again)


5- TO UNLOCK BOOTLOADER- type fastboot reboot bootloader
(***YOUR DATA WILL BE WIPED***)

6- Type fastboot flashing unlock


7- Type fastboot reboot bootloader



PRIOR TO FLASHING THE FACTORY IMAGE:

-if you want a clean install, WIPING ALL DATA, skip to step #8
-if you want to SAVE data, edit the FLASH ALL.bat file, REMOVING the -w (leaving just ONE space between the remaining text) and SAVE the file (reopen file to verify -w is removed)


Disabling Verity and Verification isn't required except for use with some custom kernels, but just rooting those custom kernels with the latest Magisk Stable v24.1 or higher should make them not require disabled Verity and Verification anymore. click HERE for more



8- Flash the factory image by typing FLASH-ALL


9- After the install, it will reboot into system, let everything settle, skip start up options and get to where you can download the latest MAGISK apk on your device (downloads folder)

***DISABLE MAGISK MODULES as some have reported issues caused by some active modules***


10- Connect your device and PC and put the extracted BOOT.img file (from the CURRENT factory image you are flashing FOUND IN THE SECOND ZIP FOLDER) that you placed on your PC, put it on your mobile device where you can easily find it (I created a folder FILES TO FLASH)


11- Install Magisk (use Canary 24310 linked above), follow instructions to allow files like this to be installed) ***DISABLE MAGISK MODULES as some have reported issues caused by some active modules***


12- Open Magisk and choose SELECT AND PATCH FILE (select the BOOT.img you just put on your device


13- Copy the new PATCHED BOOT.img from your download folder back into your PLATFORM TOOLS folder where the fastboot application is located on your PC


14- Boot device into fastboot/bootloader, connect device and PC


15- Type CMD in address bar and verify fastboot connection (step 4)


16- Type fastboot reboot bootloader


17- Type fastboot flash boot --slot=all (drag and drop patched boot.img here) OR type in the file name magisk_patched-xxxxxxxxxx.img)



18- Reboot into System


UPDATE Factory Image WITHOUT Wiping Data:


1- Within the Platform Tools folder, find the FLASH-ALL (.bat) file


2- Open it with text editor and
remove the -w (keep ONE space between remaining text, SAVE file, reopen to verify -w is removed)


3- Verify FASTBOOT DEVICES by typing CMD in the address bar of the same platform tools folder


4- Type FLASH-ALL


5- Let it boot into system and settle for a minute


6- Patch the boot image (follow steps 10, 12 -18 above)


*** Thanks to V0latyle, roirraW "edor" ehT, and Lughnasadh for the foundations of these instructions! ***

Please let me know if any part of this process is incorrect, has been updated, or is no longer necessary (y) (y) (y)
 
Last edited:

Utini

Senior Member
Dec 25, 2010
1,238
257
www.whymacsucks.com
www.whymacsucks.com
This is great, it's been like 7 years since I last rooted. Can you also do one for OTA step by step?

+1
Your guide is exactly what I have been summarizing in one of the threads already.
They keypoint now is on how to apply monthly updates without wiping the phone all the time while also still getting root :)
 

Lughnasadh

Senior Member
Mar 23, 2015
3,431
3,475
Google Nexus 5
Huawei Nexus 6P
This is great, it's been like 7 years since I last rooted. Can you also do one for OTA step by step?
You can find the OTA sideload method here...

 

Morgrain

Senior Member
Aug 4, 2015
902
984
Maybe it makes more sense to combine and improve upon existing tutorials, instead of creating a load of new ones. It's getting a bit confusing here, ESPECIALLY since we don't have any sub-threads/forums.

Why is that, anyway? it makes sifting through threads here a nightmare, since you have to scroll through dozens of threads to find one that suits your interest. Instead of just giving us, like, an overview labeled "mods", "kernels", "camera", "discussion", "flame" - like, in every other previous XDA Pixel forum?!
 

roirraW "edor" ehT

Forum Moderator
Staff member
Why is that, anyway? it makes sifting through threads here a nightmare, since you have to scroll through dozens of threads to find one that suits your interest. Instead of just giving us, like, an overview labeled "mods", "kernels", "camera", "discussion", "flame" - like, in every other previous XDA Pixel forum?!

Did you see the responses about this subject starting here?

Personally, I haven't had a problem with the way they're doing the forums now. The Quick Filters at the top have been good enough for me when I want to concentrate on one of those particular types of posts.

FYI, although I'm a proponent of the new way, I'm not particularly against the old way. That's what I got used to, too, but things change.
 

Morgrain

Senior Member
Aug 4, 2015
902
984
Did you see the responses about this subject starting here?

Personally, I haven't had a problem with the way they're doing the forums now. The Quick Filters at the top have been good enough for me when I want to concentrate on one of those particular types of posts.

FYI, although I'm a proponent of the new way, I'm not particularly against the old way. That's what I got used to, too, but things change.
Good to know. Nope, I did not notice that. And I don't really like the filters. I'm used to , uhm, use XDA on my PC with multiple monitors, and the old style forums allowed me to just middle mouse button Press every sub forum, enabling me to open all of them in separate browser threads in the course of a second, which made quickly tabbing / shifting through sections /threads extremely quickly / efficient, at least for someone used to that kind of usage. Now I'm stuck with the heck load of filters and that just slows down the way I browse by factor three, if not more.

This new system is also quite confusing. Back in the days whenever you open a sub forum, you had an easily distinguishable sort of sticky threads. Now it just feels all cluttered together. It made browsing XDA less fun and it just feels tedious.
 
Last edited:

Az Biker

Sr. Mod / Mod & RC-RT Committees / Shred'r of MTBs
Staff member
How can I re-lock the bootloader?

I'm getting a "command error" with fastboot flashing lock
Check to be sure you only have one space between each word, and no typos.

I believe fastboot oem lock will work as well.

Make SURE you are running a stock, factory image before doing this (just in case you weren't aware).
 
  • Like
Reactions: roirraW "edor" ehT

roirraW "edor" ehT

Forum Moderator
Staff member
...use XDA on my PC with multiple monitors, and the old Style forums allowed me to just middle mouse button Press every sub form to me to open all of them in separate browser threads, which made quickly tabbing / shifting through sections /threads extremely quickly, at least for someone used to that kind of usage.

Ha! Now that you've reminded me, I used to do the exact same thing here (I too middle mouse button, in general, a lot). Maybe it's been beneficial to me that I've barely had any activity on XDA for the last five years, and especially the last three years.
 

Az Biker

Sr. Mod / Mod & RC-RT Committees / Shred'r of MTBs
Staff member
Thank you, however readability is very bad on a light background. Please change font color. :)
Changed the font to "brown", let me know if that helps with the light theme.

I'm on Xda-dark and hadn't thought about the readability using light theme, thanks!
 
  • Like
Reactions: roirraW "edor" ehT

Az Biker

Sr. Mod / Mod & RC-RT Committees / Shred'r of MTBs
Staff member
Maybe it makes more sense to combine and improve upon existing tutorials, instead of creating a load of new ones. It's getting a bit confusing here, ESPECIALLY since we don't have any sub-threads/forums.

Why is that, anyway? it makes sifting through threads here a nightmare, since you have to scroll through dozens of threads to find one that suits your interest. Instead of just giving us, like, an overview labeled "mods", "kernels", "camera", "discussion", "flame" - like, in every other previous XDA Pixel forum?!
Sorry for the late response.


FILTER TABS (new way) vs Sub Forums (old way):

Look at it this way:

You're grocery shopping online, and you want to browse the candy bar selection. The store has candy bars in several areas, not just in one place, so now you have to look through pages and pages of all the available product.

Rather than try to scroll through everything in the store to just find the candy bars, you click the CANDY BAR filter tab, and ONLY the candy bars are visible now.

So even though they aren't technically in one single area of the store, you can only see the candy bar selection on your page.

That's how the new forum works. Want to only see Development threads? Click the DEVELOPMENT tab at the top of the device forum.
 
Last edited:
  • Like
Reactions: roirraW "edor" ehT

Top Liked Posts

  • 2
    If you're using Verizon, install the Verizon one. If you're in a EMEA/APAC area (Google Search - more details at that search hit here), install that one. If neither of those, install the other one.
    So phone bought from google, bootloader unlocked. I should go verizon since my carrier is verizon? That wont interfere with bootloader?

    ota updates never work for me lol. I tried uninstalling magisk rematching original image. Disabled all modules. Update installed but when installing magisk to inactive slot and rebooting it caused corrupt device. So now gt install factory image without -w
    1
    What july update do we install? There are 3 versions.
    If you're using Verizon, install the Verizon one. If you're in a EMEA/APAC area (Google Search - more details at that search hit here), install that one. If neither of those, install the other one.
    1
    Yes.


    No. The only thing that can lock or unlock the bootloader is you, with local access to your phone via the correct fastboot command.

    It's likely the IMEI of the device is what determines whether the bootloader can be unlocked or not, and updates don't affect that.


    I think I fooled with the OTA method once or twice after I got my Pixel 1 almost six years ago, but I like the full factory image process instead. OTA method seems so hit and miss - it seemed to depend on hitting the lottery on more variables. It may work flawlessly for months, and then something happens. The rare times I've ever had a problem with the full factory image, all that I can think of but once was my own fault, and even the one time I don't know how exactly it could've been my fault was probably my fault too. :D

    Now that I think of it, for quite a while on my Pixel 1 I was using @Chainfire's FlashFire app that allowed me to flash updates and keep root/re-root without using TWRP or a computer. It was awesome.
    chainfire seems familiar.

    I am one of those who have a verizon pixel xl gen 1 phone still. I unlocked the bootloader before verizon patched the exploit. Its been running solid since with lineage os. Its currently in storage as a backup phone. Replaced the battery in like 2020. Wanted a p6 pro to fiddle with so got one.
    1
    Well, chainfire is the one who is very well known for introducing root to Android.

    Has anyone managed to updgrade to July updates without losing root?
  • 2
    Just a PSA for those on Android 13 Beta 2.1:

    Starting with Canary 24314, updating to a new Magisk version via direct install results in a bootloop. This behavior has continued with the latest Beta 25/Canary 25001. Patching the boot image, however, allows the phone to boot as expected.

    An issue was opened but unfortunately closed as "not planned". So for those on Android 13 Beta 2.1 (and beyond most likely), when updating Magisk you'll want to avoid the direct install method and patch and flash the boot image instead to avoid a bootloop until they decide to resolve this issue.

    2
    Just a PSA for those on Android 13 Beta 2.1:

    Starting with Canary 24314, updating to a new Magisk version via direct install results in a bootloop. This behavior has continued with the latest Beta 25/Canary 25001. Patching the boot image, however, allows the phone to boot as expected.

    An issue was opened but unfortunately closed as "not planned". So for those on Android 13 Beta 2.1 (and beyond most likely), when updating Magisk you'll want to avoid the direct install method and patch and flash the boot image instead to avoid a bootloop until they decide to resolve this issue.

    Looks like the issue may have been fixed with these commits...

    2
    Unlocked the bootloader today. What magisk version works for the June 2022 security update? I used 24310 as in OP link but somehow have issues.
    Stable 25.1 or Canary 25101.
    2
    Thanks to everybody here especially the OP AZ Biker for doing these kinds of posts for people like me. Jun2022 and Magisk 25.1 did the trick.
    2
    Thanks.
    Can i just patch the boot.img with this magisk version and flash the patched img? Or need to start from earlier steps?
    Patch and flash. Of course, disable any modules that may need updating beforehand.
  • 63
    Ready to Unlock, Root, and Update factory images on your Pixel 6 Pro?

    There are some really good guides by V0latyle here, and by roirraW "edor" ehT here which are great for veteran/regular users who are really familiar with adb/fastboot and the commands, steps used in the unlocking, rooting environment.

    This step by step is for people like ME who are not adb/fastboot gurus, who need every step spelled out so we don't brick our over-priced flagship devices :D


    What You Need On Your PC:

    Factory Image
    MAGISK - Canary 24310
    SDK Platform Tools & USB Drivers (first time installation)

    (additional files I use: optional)

    Working SafetyNet @Pekempy
    Kirisakura Kernel @Freak07


    *** MAKE SURE YOU EXTRACT THE CORRECT BOOT.IMG FILE TO PATCH IN MAGISK ***
    -download latest factory image, unzip the MAIN image.zip, then unzip the SECONDARY image.zip , copy the contents of the SECOND image.zip into the same platform tools folder that has the fastboot application in it, then open the image.zip you just copied into the fastboot folder and copy the boot.img and paste it somewhere on your PC.


    Device Setup PRIOR To Starting Fastboot:

    Settings>About phone>Build Number (click build number until you see YOU ARE NOW A DEVELOPER)
    Settings>System>Advanced>Developer Options
    Enable OEM Unlocking & USB Debugging & USB Configuration> enable FILE TRANSFER



    Unlock the Bootloader, Update Factory Image, and Get Root:

    1- Boot your device into bootloader/fastboot (hold power / vol down)


    2- Connect USB cable to device and PC ( have diff USB cables available for troubleshooting)


    3- From address bar in the platform tools folder where the fastboot application is located on your PC, type CMD to open command prompt window


    4- Type FASTBOOT DEVICES, if you see a serial number(s) you are ready, if you don't, verify you've properly set up platform tools folder, change cable, check command, try again)


    5- TO UNLOCK BOOTLOADER- type fastboot reboot bootloader
    (***YOUR DATA WILL BE WIPED***)

    6- Type fastboot flashing unlock


    7- Type fastboot reboot bootloader



    PRIOR TO FLASHING THE FACTORY IMAGE:

    -if you want a clean install, WIPING ALL DATA, skip to step #8
    -if you want to SAVE data, edit the FLASH ALL.bat file, REMOVING the -w (leaving just ONE space between the remaining text) and SAVE the file (reopen file to verify -w is removed)


    Disabling Verity and Verification isn't required except for use with some custom kernels, but just rooting those custom kernels with the latest Magisk Stable v24.1 or higher should make them not require disabled Verity and Verification anymore. click HERE for more



    8- Flash the factory image by typing FLASH-ALL


    9- After the install, it will reboot into system, let everything settle, skip start up options and get to where you can download the latest MAGISK apk on your device (downloads folder)

    ***DISABLE MAGISK MODULES as some have reported issues caused by some active modules***


    10- Connect your device and PC and put the extracted BOOT.img file (from the CURRENT factory image you are flashing FOUND IN THE SECOND ZIP FOLDER) that you placed on your PC, put it on your mobile device where you can easily find it (I created a folder FILES TO FLASH)


    11- Install Magisk (use Canary 24310 linked above), follow instructions to allow files like this to be installed) ***DISABLE MAGISK MODULES as some have reported issues caused by some active modules***


    12- Open Magisk and choose SELECT AND PATCH FILE (select the BOOT.img you just put on your device


    13- Copy the new PATCHED BOOT.img from your download folder back into your PLATFORM TOOLS folder where the fastboot application is located on your PC


    14- Boot device into fastboot/bootloader, connect device and PC


    15- Type CMD in address bar and verify fastboot connection (step 4)


    16- Type fastboot reboot bootloader


    17- Type fastboot flash boot --slot=all (drag and drop patched boot.img here) OR type in the file name magisk_patched-xxxxxxxxxx.img)



    18- Reboot into System


    UPDATE Factory Image WITHOUT Wiping Data:


    1- Within the Platform Tools folder, find the FLASH-ALL (.bat) file


    2- Open it with text editor and
    remove the -w (keep ONE space between remaining text, SAVE file, reopen to verify -w is removed)


    3- Verify FASTBOOT DEVICES by typing CMD in the address bar of the same platform tools folder


    4- Type FLASH-ALL


    5- Let it boot into system and settle for a minute


    6- Patch the boot image (follow steps 10, 12 -18 above)


    *** Thanks to V0latyle, roirraW "edor" ehT, and Lughnasadh for the foundations of these instructions! ***

    Please let me know if any part of this process is incorrect, has been updated, or is no longer necessary (y) (y) (y)
    5
    If anyone finds errors, missing or confusing information while following the steps in the OP, please post it and tag me so I can fix it immediately.

    A few things I'm seeing in other threads is users still using disable verity, and not verifying their edit of the falsh-all.bat file, then accidentally wiping their device.

    My OP is supposed to be super easy for anyone without much knowledge using fastboot, so if anyone has suggestions, please post them.

    Thanks!
    5
    Right, I wanted to wipe. It's a brand new phone that was on .036, and not yet activated. I'm wondering if I did wipe, with the --disable-verity --disable-verification into the .bat file, am I good to go ahead and install Magisk, and from now on, not wipe on future updates, or do I have to do this extra step after (fastboot flash vbmeta --disable-verity --disable-verification vbmeta.img)?
    Oh, you wanted to wipe, lol. My misunderstanding. Yeah, what @Az Biker said.
    It appears that everything is fine. I have Magisk installed after patching image. I'm not getting any modules to pop up in the search though, so I guess I'll head to Magisk thread to see what's up there.
    The Magisk Repo has been removed from the Magisk app. You can use this instead...

    4
    You shouldn't need to flash to both slots. So you can just do fastboot flash boot <nameofpatchedbootimage.img>.

    You should be able to rename the patched boot image (although I have never done it). I usually just put it in a labeled folder and copy and paste the name into the command prompt.

    You should be patching the boot.img that you extracted from the factory image. It's located in the image-raven-sd1a.210817..037 zip file within the factory image (assuming you are on build .037).

    If you are still having problems, then 2 things to check:
    1. Make sure your Platform Tools are up-to-date. Latest I believe is 31.0.3
    2. Make sure you have the correct (and latest) USB drivers installed on your computer... https://developer.android.com/studio/run/win-usb

    EDIT: Oh, one very important thing. Make sure you are using the latest Canary version of Magisk.
    Root has been achieved, thank you for your time & assistance, it's much appreciated. ✌️
    4
    Maybe it makes more sense to combine and improve upon existing tutorials, instead of creating a load of new ones. It's getting a bit confusing here, ESPECIALLY since we don't have any sub-threads/forums.

    Why is that, anyway? it makes sifting through threads here a nightmare, since you have to scroll through dozens of threads to find one that suits your interest. Instead of just giving us, like, an overview labeled "mods", "kernels", "camera", "discussion", "flame" - like, in every other previous XDA Pixel forum?!