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
But what best now, flash the patched boot or boot into it and direct install in magisk app? This confuses me.
You patch the boot.img in magisk, put that patched image back on your pc, in fastboot flash the patched boot.img, let it boot, reboot and you're done.

Like I said, follow the below instructions in the OP.


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
 
  • Like
Reactions: BO4573 and abalam

abalam

Senior Member
Oct 30, 2011
2,472
2,276
github.com
OnePlus 10 Pro
You patch the boot.img in magisk, put that patched image back on your pc, in fastboot flash the patched boot.img, let it boot, reboot and you're done.

Like I said, follow the below instructions in the OP.


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
I understand the whole operation, but my question is why one flashes the patched boot.img and the other boots the patched in fastboot. I know back in the day you had to boot the proton kernel too and not flash it. Furthermore the continue installation in magisk by direct install. Do you understand my question, yes my english in not my native language
 

Az Biker

Sr. Mod / Mod & RC-RT Committees / Shred'r of MTBs
Staff member
I understand the whole operation, but my question is why one flashes the patched boot.img and the other boots the patched in fastboot. I know back in the day you had to boot the proton kernel too and not flash it. Furthermore the continue installation in magisk by direct install. Do you understand my question, yes my english in not my native language
Patching the boot.img IN MAGISK is required for magisk to remain active after the device boots up. The patched magisk boot.img replacs the original factory image boot.img file.

Otherwise, you would lose root tghe next time you booted up.

Flashing that patched boot.img in fastboot installs the patched image to both slots so regardless of which slot your device boots from, it will retain magisk (root).

If I am not understanding your question, my apologies.
 
  • Like
Reactions: abalam

abalam

Senior Member
Oct 30, 2011
2,472
2,276
github.com
OnePlus 10 Pro
Patching the boot.img IN MAGISK is required for magisk to remain active after the device boots up. The patched magisk boot.img replacs the original factory image boot.img file.

Otherwise, you would lose root tghe next time you booted up.

Flashing that patched boot.img in fastboot installs the patched image to both slots so regardless of which slot your device boots from, it will retain magisk (root).

If I am not understanding your question, my apologies.
Never mind bro.
 
  • Like
Reactions: Az Biker

morphvale

Senior Member
Sep 13, 2013
307
128
Sibiu
Google Nexus 4
Google Nexus 5
If I am not understanding your question, my apologies.

But you are, that is what he was trying to say.

I can't speak about other phones but, for my previous OP7T the root process was as follows:
1. Install Magisk
2. Patch boot image with Magisk and copy to PC
3. Fastboot boot patched image
4. Open Magisk and Install - Direct Install
5. Reboot. You are now rooted

While for Pixel 6 the process is, as described:
1. Install Magisk
2. Patch boot image with Magisk and copy to PC
3. Fastboot flash boot image
No more steps, you are now rooted

Note the difference in step 3 and and missing extra step.
So he's asking why the difference for the Pixel in step 3.
 
  • Like
Reactions: abalam

Az Biker

Sr. Mod / Mod & RC-RT Committees / Shred'r of MTBs
Staff member
But you are, that is what he was trying to say.

I can't speak about other phones but, for my previous OP7T the root process was as follows:
1. Install Magisk
2. Patch boot image with Magisk and copy to PC
3. Fastboot boot patched image
4. Open Magisk and Install - Direct Install
5. Reboot. You are now rooted

While for Pixel 6 the process is, as described:
1. Install Magisk
2. Patch boot image with Magisk and copy to PC
3. Fastboot flash boot image
No more steps, you are now rooted

Note the difference in step 3 and and missing extra step.
So he's asking why the difference for the Pixel in step 3.
I'm not sure why the difference outside of diff manufacturers...

That's more of a question for a developer. I just post the process that works for my device 👍
 
  • Like
Reactions: abalam

Lughnasadh

Senior Member
Mar 23, 2015
4,924
5,660
Google Nexus 5
Huawei Nexus 6P
But you are, that is what he was trying to say.

I can't speak about other phones but, for my previous OP7T the root process was as follows:
1. Install Magisk
2. Patch boot image with Magisk and copy to PC
3. Fastboot boot patched image
4. Open Magisk and Install - Direct Install
5. Reboot. You are now rooted

While for Pixel 6 the process is, as described:
1. Install Magisk
2. Patch boot image with Magisk and copy to PC
3. Fastboot flash boot image
No more steps, you are now rooted

Note the difference in step 3 and and missing extra step.
So he's asking why the difference for the Pixel in step 3.
Even though you aren't the one asking the question, I'm quoting your post because you describe the differences well and just makes for a good segue.

Either way will work. Some people like to fastboot boot the patched boot.img (gives you temporary root) first just to make sure everything is good and Magisk mods, etc. are working. If not, you can just reboot and you won't be rooted. If all is good then you can install "permanently" via direct install.

Others just like to fastboot flash the patched boot.img so it's "permanently" installed in one step (disabling Magisk mods that may potentially need updating beforehand is always good practice using this method).

Either way, it will only be installed to your current/active slot. Also know that if for some reason you want to flash the patched image to both slots you can't just switch slots and boot up you inactive slot (for a couple of reasons). You can only boot the slot in which the last firmware was installed. Therefore, say your current slot is slot A. If you flash the patched image to both slots you can't just switch to slot B and boot up and be rooted. You would first have to flash the firmware again to slot B to be able to boot up in slot B and then re-root while that slot is active in this scenario.
 

Nergal di Cuthah

Senior Member
Sep 20, 2013
2,014
1,070
Google Pixel 6 Pro
But what best now, flash the patched boot or boot into it and direct install in magisk app? This confuses me.
Neither is better than the other. Booting allows you to preview that boot prior to comitting. Flashing gets it in right away.
Personally i always flash with zero problem. I use a hybrid of @Az Biker and @V0latyle methods and have no problem.
 
  • Like
Reactions: abalam and Az Biker

dacapho

Senior Member
Mar 28, 2011
70
13
Hey guys, first time needing to downgrade and I need a bit of help. Going from the Feb '23 rooted update to the Jan '23. and then re-root. What is the correct process to avoid a bootloop or corrupt data while avoiding wiping or performing a factory reset?
 

Az Biker

Sr. Mod / Mod & RC-RT Committees / Shred'r of MTBs
Staff member
Hey guys, first time needing to downgrade and I need a bit of help. Going from the Feb '23 rooted update to the Jan '23. and then re-root. What is the correct process to avoid a bootloop or corrupt data while avoiding wiping or performing a factory reset?
AFAIK, once you're updated to Android 13 on both slots (per OP) you should be able to flash the January Android 13 factory image using the same process as updating to the latest factory image.

The only thing you can't fo from Android 13 is go back to Android 12 or earlier. Again, this is my understanding.

Luckily there are several people watching this thread who know way more than I do, abd csn correct me if I'm wrong.

@V0latyle @Lughnasadh any insight either of you?
 
  • Like
Reactions: Lughnasadh

Lughnasadh

Senior Member
Mar 23, 2015
4,924
5,660
Google Nexus 5
Huawei Nexus 6P
AFAIK, once you're updated to Android 13 on both slots (per OP) you should be able to flash the January Android 13 factory image using the same process as updating to the latest factory image.

The only thing you can't fo from Android 13 is go back to Android 12 or earlier. Again, this is my understanding.

Luckily there are several people watching this thread who know way more than I do, abd csn correct me if I'm wrong.

@V0latyle @Lughnasadh any insight either of you?
Correct. Just remove the -w from the flash-all.bat script (to keep data) and flash the January image, then re-root.

As for the red eio dm-verity corruption message, people have gotten this in all sorts of circumstances. It's not a big deal when you get this as usually there is just a hash mismatch and it usually goes away after an update. It's mostly a "cosmetic" warning and won't impact you in a negative way. You can safely ignore it. Probably the best way to avoid getting the message, though, is to disable verity and verification, but that will wipe your phone.

@dacapho
 
Last edited:
  • Like
Reactions: Az Biker

dacapho

Senior Member
Mar 28, 2011
70
13
Correct. Just remove the -w from the flash-all.bat script (to keep data) and flash the January image, then re-root.

As for the red eio dm-verity corruption message, people have gotten this in all sorts of circumstances. It's not a big deal when you get this as usually there is just a hash mismatch and it usually goes away after an update. It's mostly a "cosmetic" warning and won't impact you in a negative way. You can safely ignore it. Probably the best way to avoid getting the message, though, is to disable verity and verification, but that will wipe your phone.

@dacapho
Ok, so I disabled Magisk modules, copied all the files back over into my folder from the Jan zip, removed the -w and saved. Ran the flash all script and all seemed fine except when it went to reboot, it bootlooped to the red corruption message cannot load Android system, data may be corrupt..blah blah. Try try again, still the same screen. It wont ever boot to the OS.

So then I did the whole thing over with the current Feb 23 files and it boots like normal and all is fine. Confucius
@Lughnasadh
 
Last edited:

Az Biker

Sr. Mod / Mod & RC-RT Committees / Shred'r of MTBs
Staff member
Ok, so I disabled Magisk modules, copied all the files back over into my folder from the Jan zip, removed the -w and saved. Ran the flash all script and all seemed fine except when it went to reboot, it bootlooped to the red corruption message cannot load Android system, data may be corrupt..blah blah. Try try again, still the same screen. It wont ever boot to the OS.

So then I did the whole thing over with the current Feb 23 files and it boots like normal and all is fine. Confucius
@Lughnasadh
Make sure you're patching the boot.img from the January factory image, and not recycling the Feb image. The patched boot.img must match the factory image it came from.
 
  • Like
Reactions: Lughnasadh

Lughnasadh

Senior Member
Mar 23, 2015
4,924
5,660
Google Nexus 5
Huawei Nexus 6P
Ok, so I disabled Magisk modules, copied all the files back over into my folder from the Jan zip, removed the -w and saved. Ran the flash all script and all seemed fine except when it went to reboot, it bootlooped to the red corruption message cannot load Android system, data may be corrupt..blah blah. Try try again, still the same screen. It wont ever boot to the OS.

So then I did the whole thing over with the current Feb 23 files and it boots like normal and all is fine. Confucius
@Lughnasadh
Odd. Should have worked as I've done it before and I know several people who are always go back and forth to different builds with no problems.

Wondering if you booted into the bootloader (or even recovery mode) and then rebooted from there if it would have booted...
 

V0latyle

Forum Moderator
Staff member
AFAIK, once you're updated to Android 13 on both slots (per OP) you should be able to flash the January Android 13 factory image using the same process as updating to the latest factory image.

The only thing you can't fo from Android 13 is go back to Android 12 or earlier. Again, this is my understanding.

Luckily there are several people watching this thread who know way more than I do, abd csn correct me if I'm wrong.

@V0latyle @Lughnasadh any insight either of you?
When downgrading it's generally smart to do a data wipe, although it probably wouldn't be required. If you don't flash the old bootloader and radio, you'll need to use the --force flag when flashing the image package: fastboot update image-device-buildnumber.zip --force

You can use this same method to flash the Android 12 builds on the Android 13 bootloader. They won't work properly but it can be done.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 69
    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

    * * *
    P L E A S E READ THIS FIRST B E F O R E UPGRADING TO ANDROID 13* * *


    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


    IF UPDATING TO ANDROID 13 FOR THE FIRST TIME IT IS HIGHLY RECOMMENDED YOU FLASH THE 13 BOOTLOADER TO BOTH SLOTS BEFORE UPDATE (read warning at top of page) Follow step 7a to accomplish updating both slots to the Android 13 bootloader:

    7a. Type fastboot flash bootloader --slot=all <bootloader image in platform tools>


    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
    This is great, it's been like 7 years since I last rooted. Can you also do one for OTA step by step?
    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?!