[General Questions and Answers] G5 Plus Mate:
Okay,

thanks Mario6w891 for this approach. I could not follow it all the way, but it brought me to the right idea.

Here is how I rooted my Moto G84 5G. Basically it's a guide to root any (unlockable) Android device, if you find the boot.img file you need.

It's much text, but I would like you to understand what you are doing. So, if you are not all that experienced, read it carefully twice before start doing it.

Anyway, this is how we go:

First of all you need to

1. Unlock your phone's bootloader (warranty will be lost!):

Do it like this. If your "OEM unlocking" is greyed out in the developers options, what helped me is: removing the SIM Card and resetting the phone to factory settings.

For me OEM unlocking, as well as flashing the software, only works with Windows. Anything else I can to with Linux. Don't ask why.

2. Rooting.

The catch is, that you need a rooted device in order to root it. So, you need a compatible boot.img which you can patch with Magisk. You have them on your phone, but you can only extract them when you are rooted.

So, I downloaded the latest Stock Rom I could find from here.

In my case, for my G84-5g-XT2347-2, it was this rom.

In the meantime I did the OTA updating all to the end which brought me to Build-Number T3TCS33.18-48-6-4.

Now you have to get the latest Version(!) of Magisk and install the apk. Mine was 27.0. Extract the file boot.img from the stock rom zip file you downloaded and copy it to your phone.

Start Magisk and use (the upper) install and select "Patch a file", selecting the boot.img file. Click the blue "Let's go" (or something like that). Once done, it tells you where to find the patched boot.img (usually in the download folder) and it's name. Give it a short name like boot-patched.img and copy it to your PC.

You need to have fastboot and adb installed. But since you have unlocked your bootloader, you should have it already.

Connect your phone to the PC and go to the boot loader. For this, switch off the phone, wait 5 seconds and press Vol down and power at the same time. Or just type in a terminal:

adb reboot bootloader

On your PC, change to the directory where your patched img file is and type like:

fastboot boot boot-patched.img

Don't worry, this will not change your phone. We only try to boot from a boot.img, located on your PC. If it doesn't work, just reboot your phone the normal way and it boots up on it's own boot.img.

However, this will show, whether you boot.img file you found is compatible with your system. If it is, your system will now boot up, temporarily rooted(!) Worked in my case.

If not, you can completely flash the phone with the stock rom you have downloaded. Then, without going through the OTA update process, the boot.img file will be compatible.

Let the phone boot up. What we now need to do is to obtain the currently installed boot image(s). This is what we can only do with a rooted phone, which we have for now.

Why do later Android versions have 2 images? Android has a dual boot function. Google it up... But it cannot hurt to know what your active slot is, a or b. Find out with typing:

fastboot getvar current-slot

Keep the result in mind.

Now type:

adb shell

the we need to be the root user. Type:

su

Now we can extract the boot images.

Extract with:

dd if=/dev/block/by-name/boot_a of=/storage/emulated/0/boot_a.img
dd if=/dev/block/by-name/boot_b of=/storage/emulated/0/boot_b.img

You should find the two image files in the root directory of your phone. For me, this did not work. Instead I extracted them to the root folder of the my external SD-Card. In my case it looked like this:

dd if=/dev/block/by-name/boot_a of=/storage/6CFF-3E9D/boot_a.img
dd if=/dev/block/by-name/boot_b of=/storage/6CFF-3E9D/boot_b.img

These files you need to copy to your PC. Take good care of them, you will need them later on in case you want to update your phone once more.

(For this the phone would need to be unrooted and you unroot with those files.)

Now, reboot to bootloader again. This time you boot with the correct boot image. Depending on your active slot you boot for instance:

fastboot boot boot_b.img

Let the phone boot up all the way and start Magisk. Go to (the upper) install again. This time you choose "direct install (recommended)". This will patch your installed boot.img on your phone and root it. Magisk might ask you do do some more patching, allow it. If you use software like Adaway, you still need to activate "systemless host" in Magisk's settings option (the wheel, in the upper right).

Reboot your phone and, voilá, it's rooted. :D (y)

------------------------------------------

What if you want to update your phone later on?

You will have to unroot it. For this find out on what slot you are and reinstall the unrooted img file again. So, reboot to bootloader and type like

fastboot flash boot boot_a.img

Reboot and go through the OTA process. Then, hope that your old patched img file is still compatible. It will surely not be, once you upgrade to another Android Version like from Andoid 13 to Android 14. In this case you should make sure, that you find the matching stock rom to extracte the matching boot.img again.

However, if you have it, go though the same process again and, again, save you extracted boot images at a safe place on your PC, and maybe also on your phone.

------------------------

edit: in the meantime, the phone nags me to install Android 14. For this we need a compatible boot.img, again.

Here is a stock rom for XT2347-1, which should be compatible with XT2347-2 for this purpose (extracting the boot.img from the previously OTA updated phone)

If someone want to give it a shot... Maybe you can post the results.