Question how to root with magisk?

Search This thread
Hi everyone, I prefer remain with the Chinese rom for a while but I'd like to root my moto x40 with magisk.

I've tried but after flashing the patched boot.img the phone boot normally. the firmware has vbmeta so I followed the procedure suggested by the guide in this situations.
the weird thing is the patched root remain exactly with the same original dimensions.

I think this is an a type partition firmware due to boot.img presence but there is also a file called vendor_boot.img. according with this article seems an a/b type.


I attach a screen of the firmware content, the log of patched boot file and the adb process.

Please, can anyone explain me how can I root successfully? thanks
 

Attachments

  • logpatched boot.log
    2.1 KB · Views: 8
  • IMG_20230505_065931.jpg
    IMG_20230505_065931.jpg
    386.9 KB · Views: 36
  • Screenshot_20230504-093147.png
    Screenshot_20230504-093147.png
    721.3 KB · Views: 38

sooyong94

Senior Member
Dec 25, 2010
186
31
Malaysia
Did you unlock the bootloader? Once done you need to flash a patched init_boot.img instead of boot.img through fastboot.

This guide should be useful (it's for the Pixel 7s, but should work with this phone, and of course use the init_boot.img from the original ROM file for your phone)

Hope that helps :)
 

sooyong94

Senior Member
Dec 25, 2010
186
31
Malaysia
hi, thank you for the answer.

yes the bootloader was unlocked.
This rom is the same as my phone's. I had take by lolinet.

unfortunately magisk is unable to patch vendor_boot , I'm trying to attach it.
Is Someone able to patch?
You need to patch init_boot.img using Magisk, and flash both init_boot_a and init_boot_b with the patched file through fastboot
 
  • Like
Reactions: mikaelcbr2

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    hi, thank you for the answer.

    yes the bootloader was unlocked.
    This rom is the same as my phone's. I had take by lolinet.

    unfortunately magisk is unable to patch vendor_boot , I'm trying to attach it.
    Is Someone able to patch?
    You need to patch init_boot.img using Magisk, and flash both init_boot_a and init_boot_b with the patched file through fastboot