How To Guide [CLOSED] Firmware is out! Get your root on!

Status
Not open for further replies.
Search This thread

Jojo_Burton

Member
Oct 1, 2010
13
1
Hello,

I am on the latest update .037. I am having trouble with the boot.img file. Magisk 23 cannot unpack it and magisk 22 and 22.1 both cannot repack it. I have the unlocked phone from google using on the Verizon network. I saw 2 images for P6 in the factory images. Im assuming I pick the non-verizon version since i bought the unlocked version?

I followed every root step exactly as instructed in the OP. i unlocked and relocked the phone and started fresh 2 or 3 times. redownloaded and tried both verizn and non verizon factory images boot.img file.

still cannot unpack boot.img with latest magisk and cant repack with older versions.

thanks in advance.
 
Hello,

I am on the latest update .037. I am having trouble with the boot.img file. Magisk 23 cannot unpack it and magisk 22 and 22.1 both cannot repack it. I have the unlocked phone from google using on the Verizon network. I saw 2 images for P6 in the factory images. Im assuming I pick the non-verizon version since i bought the unlocked version?

I followed every root step exactly as instructed in the OP. i unlocked and relocked the phone and started fresh 2 or 3 times. redownloaded and tried both verizn and non verizon factory images boot.img file.

still cannot unpack boot.img with latest magisk and cant repack with older versions.

thanks in advance.
Are you using the latest magisk canary 23015? Or latest stable magisk 23? You need to use the former.
 
  • Like
Reactions: Jojo_Burton

Lainey52900

Member
Dec 14, 2021
6
1
is it normal to be on a screen with the google logo and a loading bar after flashing? should I be worried?
 
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 24
    Update 12/15/21: Magisk 23016 incorporates fixes for vbmeta header patching; disabling verity/verification is no longer necessary. Update and root should work as it always has - simply patch and flash the boot image.

    Any update method can be used. If you've already disabled verity/verification, simply don't worry about it at next update; no need to re-enable.

    I am closing this thread.

    On Android 12, boot verification must be disabled in order to run a patched boot image. Unfortunately, if you have never disabled it before, it will require you to wipe data. To be clear:
    ***************************************************
    PERMANENT ROOT CURRENTLY REQUIRES A DATA WIPE.
    ***************************************************
    However, if you don't want to lose your data, you can "live boot" the patched image as long as /vbmeta and /boot are stock. This will allow you to use temporary root. DO NOT attempt to Direct Install Magisk to the boot image.

    For subsequent updates, it is imperative that you do not allow the device to boot into system before you have disabled Verified Boot.

    What this means: If you sideload the OTA, IMMEDIATELY reboot to bootloader and reflash /vbmeta with --disable-verity and --disable-verification. If you dirty flash the factory image, make sure you add these two switches to the command.

    If you fail to do this, and allow the device to boot into system, you WILL have to wipe data to disable it again.

    IF YOU ARE ROOTED, DO NOT USE AUTOMATIC UPDATES AS THIS WILL REFLASH /VBMETA WITHOUT DISABLING BOOT VERIFICATION!


    Factory Images

    OTA Images

    Latest Magisk Canary

    1. On your device, enable Developer Options (tap build number 8 times), and enable the OEM Unlocking toggle. Reboot to bootloader:
    2. Code:
      adb reboot bootloader
    3. Unlock bootloader:
      Code:
      fastboot flashing unlock
    4. Download the latest factory image and extract it. Inside, you will find the bootloader image, the radio image, and the image-device-buildnumber.zip. Extract boot.img and vbmeta.img from this zip.
    5. Flash vbmeta:
      Code:
      fastboot flash vbmeta --disable-verity --disable-verification <drag and drop vbmeta.img>
    6. Allow the device to boot into Android. Once you have Magisk installed, copy the boot.img and patch it in Magisk, then copy it back to your PC.
    7. Reboot to bootloader.
    8. Flash patched boot image:
      Code:
      fastboot flash boot <drag and drop magisk_patched-23xxx_xxxxx.img>
    9. Reboot into system.

    1. Download the latest factory image and extract it. Inside, you will find the bootloader image, the radio image, and the image-device-buildnumber.zip. Extract boot.img from this zip.
    2. Reboot to bootloader.
    3. Update bootloader and radio if they are out of date. BE CAREFUL, A MISTAKE CAN BRICK YOUR DEVICE! If you update the bootloader, remember to reboot back to bootloader so that the update reads the correct bootloader version.
    4. Update system:
      Code:
      fastboot update --disable-verity --disable-verification <drag and drop image-device-buildnumber.zip here>
      Note: If you get an error for bootloader/radio version, this means you need to update bootloader and/or radio; go back to step 3.
    5. Allow the device to boot into Android. Copy the boot.img and patch it in Magisk, then copy it back to your PC.
    6. Reboot to bootloader.
    7. Flash patched boot image:
      Code:
      fastboot flash boot <drag and drop magisk_patched-23xxx_xxxxx.img>
    8. Reboot into system.

    I personally do not recommend updating via OTA Sideload, as you would have to download and extract the factory zip anyway. AUTOMATIC OTA WILL LOSE ROOT AND REQUIRE A WIPE TO ROOT AGAIN.
    1. Sideload the OTA. When complete, IMMEDIATELY reboot to bootloader.
    2. Reflash vbmeta:
      Code:
      fastboot flash vbmeta --disable-verity --disable-verification <vbmeta.img>
    3. Boot to system and allow the update to complete.
    4. Patch and flash the boot image.

    Note: If you run into a bootloader message
    failed to load/verify boot images
    this means you forgot to disable verity and verification. Reflash vbmeta with the --disable options.

    If you run into this recovery message
    View attachment 5455805

    This means that verity and verification were not disabled before, and a wipe is required to proceed.
    7
    I managed to get the 64mb incremental OTA to install via System Update without having to rewipe data. The basic gist was I restored the stock boot.img in the Magisk app, then used dd to reset the disable flag bits in vbmeta, took the OTA from System Update, then used dd to restore the disable flags before rebooting.

    The downside is that switched me to slot B, which seems to come with compatibility issues with with Magisk on the Pixel 6. I immediately experienced the loss of root that others have described on reboot. It turns out that the Magisk app doesn't detect the change in slot and defaults to slot A.

    The solution to losing root on reboot was to fastboot flash boot_b magisk_patched-23011_xxxxx.img.

    Edit: A solution for the slot detection issue has been merged with mainline Magisk. It should be included in canary build 23014.
    6
    You're a beautiful human being. Thank you!
    My wife thinks so too, although "beautiful" isn't the word she uses
    6
    A new Magisk canary build (23013) was released 13 hours ago (release notes).

    Also, the PR that fixes slot detection on Pixel 6 has been merged, but it unfortunately didn't make it into 23013. Hopefully the wait for 23014 won't be too long.