Device rooting

Technical guide

All the following phases are applicable for devices with AB layout (e.g. all the pixels) and were tested on a Google Pixel 6a.

  • Enable the Developer Options and the USB Debugging on the device.

  • Identify device and partition layout (A/B vs A-only)

    If A/B, you will often patch the boot image and flash it back (no custom recovery needed on some devices). If A-only, you commonly flash a custom recovery (TWRP) then flash Magisk.

  • Install the latest Magisk version from here on the mobile device:

  • Unlock OEM in Developer Options to unlock the bootloader:

  • Download the system OTA (Over-The-Air) update related to your system version and extract it:

Download payload-dumper-go to dump the OTA payload payload.bin and collect the boot.img in the results folder using the following command:

  • Transfer the boot.img from the PC to the mobile device, for example:

  • Run magisk and, after clicking on the install button, select the boot.img previously transfered to patch it:

    or run via adb shell:

  • Transfer the patched boot image, created by magisk, to the PC:

  • Restart the device on bootloader

  • Unlock the bootloader

  • Flash patched boot image

    image
  • Reboot the device

    image

Last updated