How To Guide [GUIDE] Pixel 6 Pro "raven": Unlock Bootloader, Update, Root, Pass SafetyNet

Search This thread

ermintrude

Member
Mar 9, 2019
5
1
Installing the March update today via the factory image and fastboot (as I usually do) I found that patching and flashing boot.img as I usually do didn't work: it booted OK (albeit slower than usual), but no root.

I eventually realised that this is the release-candidate issue mentioned above, now affecting regular updates (so beware!)

After a lot of fruitless experimentation with Pixel 7 boot images etc (none of which worked), I discovered to my relief that the latest Alpha of the Magisk app does the trick fine (usual method: patch boot.img on the device and then boot from it or flash it with fastboot as normal.)

I hope this saves somebody a bit of time (and that it solves the problem for them too.)

Apparently it may not get fixed in Magisk proper, as the issue seems to be a screwup by Google.
 

snovvman

Senior Member
Jun 6, 2008
1,544
529
Installing the March update today via the factory image and fastboot (as I usually do) I found that patching and flashing boot.img as I usually do didn't work: it booted OK (albeit slower than usual), but no root.

I eventually realised that this is the release-candidate issue mentioned above, now affecting regular updates (so beware!)

After a lot of fruitless experimentation with Pixel 7 boot images etc (none of which worked), I discovered to my relief that the latest Alpha of the Magisk app does the trick fine (usual method: patch boot.img on the device and then boot from it or flash it with fastboot as normal.)

To what release-candidate issue are you referring? I was on QPR beta, and just flashed the March (release) update on P6P. Did my usual thing, patch the boot, flash-all, flash the patched boot, got root, no issues. I'm on Magisk 25210.

I have my own unrelated issue that I've seen in the past few months--after flash-all and flash patched boot, restart takes me to an corrupted image. To fix it, I simply re-flash again and everything works.

Interesting but haven't seen that elsewhere (yet) and curious if this can be confirmed.

Add me to the list of those who DID NOT have the issue @ermintrude had.
 
  • Like
Reactions: digger16309

ermintrude

Member
Mar 9, 2019
5
1
Not a release candidate at all, but the *regular* March update from Google's factory image site: it's
raven-tq2a.230305.008.e1-factory-def2deef.zip

What I was saying was not that I had installed a release candidate, but that I had run into the same problems with a regular update as those who *had* installed a release candidate.

It was posted on Google's site very late: only a day or so ago.
 
Not a release candidate at all, but the *regular* March update from Google's factory image site: it's
raven-tq2a.230305.008.e1-factory-def2deef.zip

What I was saying was not that I had installed a release candidate, but that I had run into the same problems with a regular update as those who *had* installed a release candidate.

It was posted on Google's site very late: only a day or so ago.
This is the first time I've ever run into issues updating the monthly on my P6P, Part my fault because I forgot to unhide Magisk (although I didn't think this would cause issues as it hasn't in the past) but somehow I lost root. Not all that big of a deal as I uninstalled Magisk and patched the new update and that fixed the issue but for some strange unknown reason I'm now showing Magisk Delta (which is what I installed), but I'm also showing the icon for the hidden Magisk app which I uninstalled prior to re-rooting. I'm guessing that one of the files must have been left behind. Strangely, everything is working perfectly, Passes root check and integrity, all my modules are there and working as well. Seeing everything is working as it should and I'm not having any issues I'm just going to leave it as is. I think if I try to uninstall the old Magisk app it might take a file with it that shouldn't be uninstalled and I don't feel like doing a full wipe if I don't need to. Anyone else have an issue similar to this please let me know.
 
  • Like
Reactions: digger16309

TheKum

New member
Apr 8, 2019
3
1
Following the OP Updated to Android 13 QPR3 beta T3B1.230224.005, lost root .
Tried several times with patching factory boot img without success.
Then I patched stock boot img from pixel 7 pro QPR3 beta, rooted without no problem.
Everything is working fine. Hope this helps.
 

V0latyle

Forum Moderator
Staff member
Major issue flashing the march factory image. I'm using Platform Tools 33.0.3 and I'm getting this:

Sending 'radio_a' (94452 KB) FAILED (Write to device failed in SendBuffer() (Too many links))
fastboot: error: Command failed
< waiting for any device >
Rebooting into bootloader FAILED (remote: 'failed to download image')
fastboot: error: Command failed
--------------------------------------------
Bootloader Version...: slider-1.2-9465321
Baseband Version.....: g5123b-107485-221101-B-9242015
Serial Number........: ************
--------------------------------------------
extracting android-info.txt (0 MB) to RAM...
Checking 'product' OKAY [ 0.000s]
Checking 'version-bootloader' OKAY [ 0.000s]
Checking 'version-baseband' FAILED

Device version-baseband is 'g5123b-107485-221101-B-9242015'.
Update requires 'g5123b-112825-230302-B-9675756'.

fastboot: error: requirements not met!
Press any key to exit...
Double check and make sure you're using the correct files for your device. Remember, Pixel 6 is oriole, 6 Pro is raven. Try a different USB cable. Make sure you're using a type A to type C cable, as C to C cables don't seem to work correctly.
 
  • Like
Reactions: StanWiz

V0latyle

Forum Moderator
Staff member
I'm definitely using Raven. I don't know what to do. It's throwing an error looking for an updated radio I can't flash. -9675756.

I guess I could try updating OTA since I'm completely unrooted...
Just as a matter of information, if you wanted to force the system update to ignore the bootloader and radio versions, you'd use the --force flag: fastboot update --force image-device-buildnumber.zip
 
  • Like
Reactions: digger16309

Annil

Senior Member
Dec 6, 2012
55
21
For me update on latest march update is not going to sucess with Root unfortunately :(
Till now I was using Magisk Delta and used Pixelflasher - worked everytime like a charm.

Now after march update I lost root and am not able to regain it. I patched boot image with Delta Magisk but when booting (live or flash), root is not present.

When selecting Canary Build from Magisk, Pixelflasher is telling
WARNING! Problematic Magisk Manager Version: 981ccabb:25210 is installed. Advised not to use this version.

Anyone facing similar issues and is able to help to regain Root?

Edit:
There seems to be an issue between latest Magisk and March update...
I had to downgrade from 25210 to 25206 which works now flawlessly as usual.
 
Last edited:

Annil

Senior Member
Dec 6, 2012
55
21
I downgraded by renaming the lower version apk file to magisk.zip and installed this then as "new module install from zip file" in Magisk - this way always works for me easiest/fastest and is desribed in FAQ of Magisk.
 
For me update on latest march update is not going to sucess with Root unfortunately :(
Till now I was using Magisk Delta and used Pixelflasher - worked everytime like a charm.

Now after march update I lost root and am not able to regain it. I patched boot image with Delta Magisk but when booting (live or flash), root is not present.

When selecting Canary Build from Magisk, Pixelflasher is telling
WARNING! Problematic Magisk Manager Version: 981ccabb:25210 is installed. Advised not to use this version.

Anyone facing similar issues and is able to help to regain Root?

Edit:
There seems to be an issue between latest Magisk and March update...
I had to downgrade from 25210 to 25206 which works now flawlessly as usual.
I had the same exact problem, on delta and using PixelFlasher. After some trial and error I figured out how to get it back to where it was. It's actually really simple. Just uninstall any instance of the Magisk app you have installed, including any hidden magisk app you may have forgotten to unhide (uninstall them just like any other app by long pressing on the app and dragging it to the top where it says uninstall). Once you have all instances of the Magisk app uninstalled, just use PixelFlasher like you normally do. Download the March update, process and patch it, flash it and let PixelFlasher do it's thing. Thats it, you're back to where you were before you lost root except now you're on the March release. All your modules will still be there and enabled (just remember to keep data when flashing). Let me know how it goes.
 
  • Like
Reactions: V0latyle

dilligaf56

Senior Member
Feb 22, 2011
187
58
SoCal, USA
Hmmm. I'm still on the February update, rooted, with Magisk 25210. Given the issues above, I'm wondering if I should just wait until the issue with Magisk is resolved before updating to March (or April, when it's available)...right now everything works fine other than some screen weirdness (flashing) after a day or so, which resolves after a reboot. Is there any pressing reason to update to March at this point?
 
Hmmm. I'm still on the February update, rooted, with Magisk 25210. Given the issues above, I'm wondering if I should just wait until the issue with Magisk is resolved before updating to March (or April, when it's available)...right now everything works fine other than some screen weirdness (flashing) after a day or so, which resolves after a reboot. Is there any pressing reason to update to March at this point?
Personality, I just like running the latest builds with all the most recent updates. I've just always updated the nightlies on whatever ROM I was running so it's probably more of a habit than anything. If your device is running perfectly fine and you're happy with it, there's really no need to update other than security reasons or if you're wanting on some kind of fix for whatever issue you might be having.
 

dilligaf56

Senior Member
Feb 22, 2011
187
58
SoCal, USA
Personality, I just like running the latest builds with all the most recent updates. I've just always updated the nightlies on whatever ROM I was running so it's probably more of a habit than anything. If your device is running perfectly fine and you're happy with it, there's really no need to update other than security reasons or if you're wanting on some kind of fix for whatever issue you might be having.
I usually like to be on the latest build as well, so as soon as I see that there aren't any major issues, I upgrade (still using the OG CLI method, not PixelFlasher, though am going to look into it). It looks like there have been more problems than usual this month. Is there a link to the changelog for the March update anywhere? Thanks for the come-back.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Ok so i been on Android 13 for ever now i never rooted when on Android 12 i a confused what i all need to exactly do for root. Do i need to download my current firmware and then adload the boot.img to all slots? I guess i have been confused since i got this phone exactly what to do and its holding me back on root.
    Let me give you a little advice, when I rooted my Pixel 6 Pro, it was the first device I had rooted since my Nexus 6p. I came across the PixelFlasher program developed by Badabing2003 and haven't gone back to the old school way of doing things. once you learn how to use it, it's so easy! it literally takes me about 4 minutes to update my device every month when the update releases. The first thing you want to do is read the OP from the beginning and follow the instructions. If for some reason you can't figure something out and can't find what you're looking for, just ask your question in the thread and someone will get back to you pretty quick. if you need to you can always message me and I'll try to help you out.
    1
    I feel like this is a really dumb question but I am reading sort of multiple answers, so am curious what latest "best practice" is -- I have a Pixel 6 Pro, bought unlocked from Google, with a Verizon SIM. (i.e., it wasn't a Verizon model) Should I flash the regular/World image or the specific Verizon image? is it just a difference of tweaks for Verizon's service?) I don't want it to make any changes to the phone that would lock it to Verizon... I usually flash before a Verizon variant pops up but I'm late this month... (I haven't had any issues with the phone either way)

    It sounds like it's generally preferable to use the carrier version but just wanted to make sure that's still the case and I wasn't going to mess anything up.
    I would flash the regular world version as its a GSM Unlocked model from Google (the same one I have). The Verizon SIM will work just fine in it just like any other carrier. If it was the specific Verizon model, I would have said flash the Verizon update as it probably has something that works with their specific device because it has a different chip and also works on the millimeter wave band.
    1
    I feel like this is a really dumb question but I am reading sort of multiple answers, so am curious what latest "best practice" is -- I have a Pixel 6 Pro, bought unlocked from Google, with a Verizon SIM. (i.e., it wasn't a Verizon model) Should I flash the regular/World image or the specific Verizon image? is it just a difference of tweaks for Verizon's service?) I don't want it to make any changes to the phone that would lock it to Verizon... I usually flash before a Verizon variant pops up but I'm late this month... (I haven't had any issues with the phone either way)

    It sounds like it's generally preferable to use the carrier version but just wanted to make sure that's still the case and I wasn't going to mess anything up.
    Because it's verizon and mnvo carriers, i use the vz one on my unlocked google phone on Verizon's network. I imagine a signal tweak but don't know if i see an actual better signal.
    I also use the global before the verizon comes out and it works just as well, so either.
  • 98
    ⚠️⚠️⚠️ WARNING! IF YOU ARE UPDATING TO ANDROID 13 FOR THE FIRST TIME, READ THIS FIRST!⚠️⚠️⚠️

    If you are looking for my guide on a different Pixel, find it here:
    For best results, use the latest stable Magisk release.
    Discussion thread for migration to 24.0+.
    Note: Magisk prior to Canary 23016 does not incorporate the necessary fixes for Android 12+.


    WARNING: YOU AND YOU ALONE ARE RESPONSIBLE FOR ANYTHING THAT HAPPENS TO YOUR DEVICE. THIS GUIDE IS WRITTEN WITH THE EXPRESS ASSUMPTION THAT YOU ARE FAMILIAR WITH ADB, MAGISK, ANDROID, AND ROOT. IT IS YOUR RESPONSIBILITY TO ENSURE YOU KNOW WHAT YOU ARE DOING.

    Prerequisites:


    Android Source - Setting up a device for development


    1. Follow these instructions to enable Developer Options and USB Debugging.
    2. Enable OEM Unlocking. If this option is grayed out, unlocking the bootloader is not possible.
    3. Connect your device to your PC, and open a command window in your Platform Tools folder.
    4. Ensure ADB sees your device:
      Code:
      adb devices
      If you don't see a device, make sure USB Debugging is enabled, reconnect the USB cable, or try a different USB cable.
      If you see "unauthorized", you need to authorize the connection on your device.
      If you see the device without "unauthorized", you're good to go.
    5. Reboot to bootloader:
      Code:
      adb reboot bootloader
    6. Unlock bootloader: THIS WILL WIPE YOUR DEVICE!
      Code:
      fastboot flashing unlock
      Select Continue on the device screen.

    1. Install Magisk on your device.
    2. Download the factory zip for your build.
    3. Inside the factory zip is the update zip: "device-image-buildnumber.zip". Open this, and extract boot.img
    4. Copy boot.img to your device.
    5. Patch boot.img with Magisk: "Install" > "Select and Patch a File"
    6. Copy the patched image back to your PC. It will be named "magisk_patched-23xxx_xxxxx.img". Rename this to "master root.img" and retain it for future updates.
    7. Reboot your device to bootloader.
    8. Flash the patched image:
      Code:
      fastboot flash boot <drag and drop master root.img here>
    9. Reboot to Android. Open Magisk to confirm root - under Magisk at the top, you should see "Installed: <Magisk build number>

    1. Before you download the OTA, open Magisk, tap Uninstall, then Restore Images. If you have any Magisk modules that modify system, uninstall them now.
    2. Take the OTA update when prompted. To check for updates manually, go to Settings > System > System Update > Check for Update
    3. Allow the update to download and install. DO NOT REBOOT WHEN PROMPTED. Open Magisk, tap Install at the top, then Install to inactive slot. Magisk will then reboot your device.
    4. You should now be updated with root.

    1. Download the OTA.
    2. Reboot to recovery and sideload the OTA:
      Code:
      adb reboot sideload
      Once in recovery:
      Code:
      adb sideload ota.zip
    3. When the OTA completes, you will be in recovery mode. Select "Reboot to system now".
    4. Allow system to boot and wait for the update to complete. You must let the system do this before proceeding.
    5. Reboot to bootloader.
    6. Boot the master root image (See note 1):
      Code:
      fastboot boot <drag and drop master root.img here>
      Note: If you prefer, you can download the factory zip and manually patch the new boot image, then flash it after the update. Do not flash an older boot image after updating.
    7. Your device should boot with root. Open Magisk, tap Install, and select Direct Install.
    8. Reboot your device. You should now be updated with root.
    Note: You can use Payload Dumper to extract the contents of the OTA if you want to manually patch the new boot image. However, I will not cover that in this guide.

    Please note that the factory update process expects an updated bootloader and radio. If these are not up to date, the update will fail.
    1. Download the factory zip and extract the contents.
    2. Reboot to bootloader.
    3. Compare bootloader versions between phone screen and bootloader.img build number
      Code:
      fastboot flash bootloader <drag and drop new bootloader.img here>
      If bootloader is updated, reboot to bootloader.
    4. Compare baseband versions between phone screen and radio.img build number
      Code:
      fastboot flash radio <drag and drop radio.img here>
      If radio is updated, reboot to bootloader.
    5. Apply update:
      Code:
      fastboot update --skip-reboot image-codename-buildnumber.zip
      When the update completes, the device will be in fastbootd. Reboot to bootloader.
    6. Boot the master root image (See note 1):
      Code:
      fastboot boot <drag and drop master root.img here>
      Note: If you prefer, you can manually patch the new boot image, then flash it after the update. Do not flash an older boot image after updating.
    7. Your device should boot with root. Open Magisk, tap Install, and select Direct Install.
    8. Reboot your device. You should now be updated with root.
    Note: If you prefer, you can update using the flash-all script included in the factory zip. You will have to copy the script, bootloader image, radio image, and update zip into the Platform Tools folder; you will then have to edit the script to remove the -w option so it doesn't wipe your device.
    The scripted commands should look like this:
    Code:
    fastboot flash bootloader <bootloader image name>
    fastboot reboot bootloader
    ping -n 5 127.0.0.1 > nul
    fastboot flash radio <radio image name>
    fastboot reboot bootloader
    ping -n 5 127.0.0.1 > nul
    fastboot update  --skip-reboot <image-device-buildnumber.zip>
    Once this completes, you can reboot to bootloader and either boot your master patched image, or if you patched the new image, flash it at this time.

    PixelFlasher by @badabing2003 is an excellent tool that streamlines the update process - it even patches the boot image for you.
    The application essentially automates the ADB interface to make updating and rooting much easier. However, it is STRONGLY recommended that you still learn the "basics" of using ADB.

    For instructions, downloads, and support, please refer to the PixelFlasher thread.

    1. Follow the instructions on the Android Flash Tool to update your device. Make sure Lock Bootloader and Wipe Device are UNCHECKED.
    2. When the update completes, the device will be in fastbootd. Reboot to bootloader.
    3. Boot the master root image (See note 1):
      Code:
      fastboot boot <drag and drop master root.img here>
      Note: If you prefer, you can download the factory zip and manually patch the new boot image, then flash it after the update. Do not flash an older boot image after updating.
    4. Your device should boot with root. Open Magisk, tap Install, and select Direct Install.
    5. Reboot your device. You should now be updated with root.

    SafetyNet has been deprecated for the new Play Integrity API. More information here.

    In a nutshell, Play Integrity uses the same mechanisms as SafetyNet for the BASIC and DEVICE verdicts, but uses the Trusted Execution Environment to validate those verdicts. TEE does not function on an unlocked bootloader, so legacy SafetyNet solutions will fail.

    However, @Displax has modified the original Universal SafetyNet Fix by kdrag0n; his mod is able to force basic attestation instead of hardware, meaning that the device will pass BASIC and DEVICE integrity.

    Mod available here. Do not use MagiskHide Props Config with this mod.

    This is my configuration that is passing Safety Net. I will not provide instructions on how to accomplish this. Attempt at your own risk.

    Zygisk + DenyList enabled
    All subcomponents of these apps hidden under DenyList:
    • Google Play Store
    • GPay
    • Any banking/financial apps
    • Any DRM media apps
    Modules:
    • Universal SafetyNet Fix 2.3.1 Mod - XDA post
    To check SafetyNet status:
    To check Play Integrity status:
    I do not provide support for Magisk or modules. If you need help with Magisk, here is the Magisk General Support thread. For support specifically with Magisk v24+, see this thread.

    Points of note:
    • The boot image is NOT the bootloader image. Do not confuse the two - YOU are expected to know the difference. Flashing the wrong image to bootloader could brick your device.
    • While the Magisk app is used for patching the boot image, the app and the patch are separate. This is what you should see in Magisk for functioning root:
      screenshot_20230323-072859-3-png.5870161
    • "Installed" shows the version of patch in the boot image. If this says N/A, you do not have root access - the boot image is not patched, or you have a problem with Magisk.
    • "App" simply shows the version of the app itself.
    • If you do not have a patched master boot image, you will need to download the factory zip if you haven't already, extract the system update inside it, then patch boot.img.
    • If you prefer updating with the factory image, you can also extract and manually patch the boot image if desired.
    • Some Magisk modules, especially those that modify read only partitions like /system, may cause a boot loop after updating. As a general rule, disable these modules before updating. You are responsible for knowing what you have installed, and what modules to disable.


    Credits:
    Thanks to @badabing2003 , @pndwal , @Displax , @Az Biker , @ipdev , @kdrag0n , @Didgeridoohan , and last but not least, @topjohnwu for all their hard work!
    9
    Magisk Stable is now at version 24.1, so I will no longer be providing any Magisk updates.

    You can use any version of Magisk now - Stable, Beta, or Canary. as long as it is 23016 or newer.

    Once again, if you want to switch versions of Maagisk, it is HIGHLY RECOMMENDED that you "Complete Uninstall" within Magisk before installing the new version. Multiple instances of Magisk can break root.

    If you simply want to update Magisk, the best way to do so is from within the app.


    Once the February update is out, I will perform some testing with installing to inactive slot, and if it works, I will update this guide.

    Given the low activity on this thread, I will probably close it if everything goes well with the next update.

    Thank you all for your testing and contributions.
    8
    My update process is to remove vbmeta.img (in addition to removing the -w flag in the flash-all script) from the factory zip before I flash it in fastboot. Seems to have worked so far, ymmv.
    7
    Now THIS is a useful thread! Thanks 👍

    I might try to root my P6P this week-end.

    If I already took the OTA from Google, can I just go to #6? (there's no data on my phone yet, just BL unlocked)

    "6. Reflash vbmeta to disable boot verification"
    7
    Magisk Canary updated to 23019
    Changes:
    - [Zygisk] Skip loading modules into the Magisk app to prevent conflicts
    - [MagiskBoot] Change `zopfli` to a more reasonable config so it doesn't take forever
    - [General] Several `BusyBox` changes

    Preferred method of update is from within Magisk app.


    If installing for the first time, here is the APK Download