• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[GUIDE] How to root it

Search This thread

taboelephant

Member
Feb 20, 2021
8
9
No prob, we're all learning, and all you need to fix a device that doesn't boot, is an unlocked bootloader, since u can re-flash, I did this on a few devices ( moto x4 ; moto G5s ; moto g9+ ) and succeeded on repairing those...
I am going to do just that, but it is possible that I misinterpreted the problem because the phone only starts in the lock screen, I can't unlock it there, the toucscreen does not work. Is the solution still the same? (install stock rom?)
 
  • Like
Reactions: MrZeroXD

MrZeroXD

Member
Feb 20, 2018
27
7
The phone works like new, I couldn't believe it myself, all thanks to you I'm really grateful. If you have PayPal or something similar, please provide it and I will return your favour in the future.

Wow, very thanks, I normally wouldn't accept any donations, but here the situation isn't very great :/ so, if you WANT I would say very thanks 😁😁

That's my paypal email

[email protected]
 

panda.at.home

New member
May 5, 2021
2
1
Hope I'm not too late, I'm stuck at unlocking the bootloader.

fastboot oem get_unlock_data
returns
FAILED (command write failed (Success))

to preface, i already enable oem unlock and usb debugging.
I also am using the cable from the box (USB C - USB C).
fastboot devices does return the serial number.
 

MrZeroXD

Member
Feb 20, 2018
27
7
Hope I'm not too late, I'm stuck at unlocking the bootloader.

fastboot oem get_unlock_data
returns
FAILED (command write failed (Success))

to preface, i already enable oem unlock and usb debugging.
I also am using the cable from the box (USB C - USB C).
fastboot devices does return the serial number.
That's weird, never see that before, whats your model number ? And country of your device ?
 

danyl_nirva

New member
May 6, 2021
1
0
First, I assume you know what root, fastboot, SafetyNet, bootloader, adb is ( SEARCH FIRST BEFORE DOING THESE STEPS! ) and you know the risks of rooting a device!

Me nor the XDA guys are responsible for bricked devices, nor any damage to you and/or your device.

So, after that, let's dive into the steps of rooting it :)

First of all is to download your stock android image ( in case something goes wrong plus the boot.img needed for this process )

You can download your stock image the way you want, you can use lolinet etc, just make sure it matches your device!

So, open the image you downloaded, extract the boot.img file and put it on the phone's internal memory, then download Magisk Manager ( I personally used GitHub to download.... ) and open it.

Ahora, seleccione 'Instalar' (el que dice Magisk, no el administrador), vaya a 'Seleccionar y parchear un archivo'

Navegue y seleccione su boot.img, luego espere a que se complete, después de eso, verá un archivo en la carpeta de descargas en el teléfono llamado 'magisk_patched.img', tome este archivo y colóquelo en la computadora.

El siguiente paso es que deberá desbloquear su cargador de arranque (no cubriré cómo hacerlo aquí, pero una búsqueda rápida sobre 'cómo desbloquear el cargador de arranque de Motorola' debería ayudar), pero tenga en cuenta que formateará su teléfono (perderá todos los datos guardados, ¡así que preste atención!)

Después, vuelva a poner el teléfono en modo fastboot (vol menos + botón de encendido), luego, en la ventana de terminal que está usando fastboot, ejecute este comando:

arranque fastboot magisk_patched.img

(Supongo que pones magisk_patched en la misma carpeta en la que estás ejecutando fastboot (caso de Windows))

RECUERDE PROBAR TODO EN SU DISPOSITIVO EN ESTA PARTE ANTES DE CONTINUAR !!!!!

SI SU TELÉFONO NO SE INICIÓ O SE INICIÓ PERO CON UN MAL FUNCIONAMIENTO DETÉNGASE AHORA Y REINICIE ELLO, TAL VEZ SU STOCKROM NO ESTABA CORRECTO O ALGO MÁS ...

Después de eso, su dispositivo normalmente se iniciará, instale Magisk Manager y verifique si "dice" instalado y muestra la versión.

Si es así y su dispositivo funciona bien, reinicie nuevamente para fastboot y luego ejecútelo en la ventana de la terminal:

fastboot flash boot magisk_patched.img

Esto hará que la raíz sea persistente después de reiniciar.

Ahora, como esperabas, estás arraigado :)

Un consejo extra:
[ESCONDER]
¡Safetynet fallará! Para solucionarlo, abra Magisk Manager, luego vaya a su configuración, luego toque para habilitar "MagiskHide" y luego toque "Ocultar Magisk Manager" escriba un nuevo nombre para el Administrador y boom, eso es todo, ahora SafetyNet funcionará (en mi caso lo hizo jeje)
[/ESCONDER]

Soy nuevo en inglés, aprendo solo, así que cualquier error de escritura, etc., dímelo y lo arreglaré. :)
También soy nuevo en XDA también hihi
 

panda.at.home

New member
May 5, 2021
2
1
That's weird, never see that before, whats your model number ? And country of your device ?
Model: XT2087-2


I bought that one specifically.
 
  • Like
Reactions: MrZeroXD

MrZeroXD

Member
Feb 20, 2018
27
7
Model: XT2087-2


I bought that one specifically.
I've no idea TBH :(
 

obtuce

Senior Member
May 1, 2012
149
33
UPDATE : i found a topic about something simular. it still isn't working :(


Hey guys.

so, i tried to get lineageOS to work on this device with TWRP. running into some major issues. stuck either at lineage logo or it boot loops on the logo screen.

what i have done :

bootloader unlocked.

rooted as per this method on stock ROM. worked perfectly exactly as explained here.

then. the trouble starts.

installed TWRP. now, this whole A/B crap is new to me and i am not sure if i did this correctly..

flashed TWRP to BOTH A + B.

factory reset on both A + B.. then, installed lineage on A. reboot to A, installed G apps.. back to bootloader to re-flash TWRP to both A+B or else lineage recovery overrides TWRP.

Reboot.

phone works perfectly. lineage boots fine.. however, i have lost root.

rebooted into bootloader to flash the magisk patched boot img. and voila, nothing works anymore.

did i miss a step somewhere along the lines please?? i am reading something about encryption ?

also worth noting when i reboot back to TWRP, unable to mount errors .

any help would be appreciated. thanks
 
Last edited:

MrZeroXD

Member
Feb 20, 2018
27
7
UPDATE : i found a topic about something simular. it still isn't working :(


Hey guys.

so, i tried to get lineageOS to work on this device with TWRP. running into some major issues. stuck either at lineage logo or it boot loops on the logo screen.

what i have done :

bootloader unlocked.

rooted as per this method on stock ROM. worked perfectly exactly as explained here.

then. the trouble starts.

installed TWRP. now, this whole A/B crap is new to me and i am not sure if i did this correctly..

flashed TWRP to BOTH A + B.

factory reset on both A + B.. then, installed lineage on A. reboot to A, installed G apps.. back to bootloader to re-flash TWRP to both A+B or else lineage recovery overrides TWRP.

Reboot.

phone works perfectly. lineage boots fine.. however, i have lost root.

rebooted into bootloader to flash the magisk patched boot img. and voila, nothing works anymore.

did i miss a step somewhere along the lines please?? i am reading something about encryption ?

also worth noting when i reboot back to TWRP, unable to mount errors .

any help would be appreciated. thanks
Basically with lineage, U flashed your stock rooted by magisk boot.img ? Lineage uses another boot.img, so U got a bootloop.

What I recommend is, install stock using fastboot ( U can get the rom whenever U want but I would use lolinet ), then do the basic steps, flash copy partitions, then lineage, and so U need to get the lineages boot.img ( I'm not sure where U'll find it ) put on the phone ( running lineage ) open magisk, patch the boot.img, then fastboot boot magisk-patched.img ( the one U patched using lineage ), if all goes well, then flash, it should work.
 

cesardemi

Senior Member
Apr 27, 2009
104
8
Madrid
Hi. Since a couple days ago, my Google Pay started to reject being used for NFC payments and the Magisk Google Play attestation also fails (cts profile = negative).
I reflashed the original boot.img for my stock ROM and also uninstalled Magisk from the phone, but the Google Pay check still rejects NFC payments and also the Google Play Protect certification indicates the device as not certified.
All of this started since some days ago and I don't remember installing anything new. Has anyone being experiencing the same? Or anyone got any idea how to fix this?

Thanks!
 
  • Like
Reactions: MrZeroXD

MrZeroXD

Member
Feb 20, 2018
27
7
Hi. Since a couple days ago, my Google Pay started to reject being used for NFC payments and the Magisk Google Play attestation also fails (cts profile = negative).
I reflashed the original boot.img for my stock ROM and also uninstalled Magisk from the phone, but the Google Pay check still rejects NFC payments and also the Google Play Protect certification indicates the device as not certified.
All of this started since some days ago and I don't remember installing anything new. Has anyone being experiencing the same? Or anyone got any idea how to fix this?

Thanks!
Yeah, mine happened too, I used a guide called "September Fix Magisk" just try on Google, it uses XPrivacy Lua + LSPosed and Magisk, mine is working fine after that.
 
  • Like
Reactions: cesardemi

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    First, I assume you know what root, fastboot, SafetyNet, bootloader, adb is ( SEARCH FIRST BEFORE DOING THESE STEPS! ) and you know the risks of rooting a device!

    Me nor the XDA guys are responsible for bricked devices, nor any damage to you and/or your device.

    So, after that, let's dive into the steps of rooting it :)

    First of all is to download your stock android image ( in case something goes wrong plus the boot.img needed for this process )

    You can download your stock image the way you want, you can use lolinet etc, just make sure it matches your device!

    So, open the image you downloaded, extract the boot.img file and put it on the phone's internal memory, then download Magisk Manager ( I personally used GitHub to download.... ) and open it.

    Now, select 'Install' ( the one that says Magisk, not the manager ), go to 'Select and Patch a file'

    Navigate and select your boot.img, then wait for it to complete, after that, you'll see a file in the Download folder on the phone called 'magisk_patched.img' grab this file and put it on the computer.

    The next step is that you'll need to unlock your bootloader ( I'll not cover how to do that here, but a quick search on ' how to unlock Motorola bootloader' should help ), but be aware that it will format your phone ( you'll lose any saved data, so pay attention! )

    After, put the phone in fastboot mode again ( vol minus + power button ), then on the terminal window you're using fastboot, run this command:

    fastboot boot magisk_patched.img

    ( I assume you put the magisk_patched in the same folder you're running fastboot ( Windows case ) )

    REMEMBER TO TEST EVERYTHING ON YOUR DEVICE IN THIS PART BEFORE CONTINUING!!!!!

    IF YOUR PHONE DIDN'T BOOT OR BOOTED BUT WITH MALFUNCTION STOP NOW AND REBOOT IT, MAYBE YOUR STOCKROM WASN'T CORRECT OR SOMETHING ELSE...

    After that your device will normally boot, install Magisk Manager and check if it "says" installed and displays the version.

    If so and your device runs fine, reboot again to fastboot then run on the terminal window:

    fastboot flash boot magisk_patched.img

    This will make the root persistent after reboots

    Now as you expected, you're rooted :)

    A bonus tip:

    Safetynet will fail! To fix that, open Magisk Manager, then go to it's settings, then tap to enable "MagiskHide" and then tap "Hide Magisk Manager" type a new name for the Manager and boom, that's it, now SafetyNet will work ( In my case it did hehe )


    I'm new to English, learning alone, so any mistyping etc tell me and I'll fix it :)
    Also I'm new to XDA too hihi
    3
    I bought my device last Black Friday and rooted it this week with this guide.
    I’ve downloaded my boot.img from Lolinet and googled how to unlock a bootloader of a Moto phone.
    I’ve also enabled oem unlock in developer settings.
    It’s not so difficult.
    The bonus tip from the OP is very helpful. Only rename Magisk is not enough. Also hide the manager to pass the safetynet test.
    2
    Lenovo tool does not work although my model exists its: G9 plus XT2087-2 error that appears: Unable to match tche appropriate firmware. Some key information cannot be read from the device. You can find my stock room here:
    https://mirrors.lolinet.com/firmware/moto/odessa/official/. Its RETEU or RETEU_PL version: XT2087-2_ODESSA_RETEU_10_QPA30.19-Q3-32-50_subsidy-DEFAULT. I am from Poland, so it could be RETEU_PL. How can I install this stock room if the lenovo tool doesn't work?
    1
    Thanks a lot for sharing your experience!

    Has there been anyone else who managed to root this device?
    I really want to buy one but first I want to make sure I will be able to root it from day 1. I don't like to use an unrooted phone :p
    1
    Hi. Since a couple days ago, my Google Pay started to reject being used for NFC payments and the Magisk Google Play attestation also fails (cts profile = negative).
    I reflashed the original boot.img for my stock ROM and also uninstalled Magisk from the phone, but the Google Pay check still rejects NFC payments and also the Google Play Protect certification indicates the device as not certified.
    All of this started since some days ago and I don't remember installing anything new. Has anyone being experiencing the same? Or anyone got any idea how to fix this?

    Thanks!
    Yeah, mine happened too, I used a guide called "September Fix Magisk" just try on Google, it uses XPrivacy Lua + LSPosed and Magisk, mine is working fine after that.