[MOTO G6+] Root guide from start (pro users)

manos78

Senior Member
Jan 17, 2014
808
303
0
Hi,

This guide is based on my experience with a Moto G6+ RETEU XT1926-3.
And it supersedes the explanations on this thread: https://forum.xda-developers.com/moto-g6/help/root-g6-t3786379
In any case is only for experienced users! If you like to create a more user friendly guide, then contribute to it!

GUIDE:

  • Boot for first time (don't use your gmail user, just skip all!). Enable "developer options". Set "OEM Unlocking". Set "USB debugging".
  • Get your Bootloader Unlock Key from Motorola: https://forum.xda-developers.com/moto-g6/how-to/guide-unlock-bootloader-t3791238
  • Connect to PC with USB and Accept the connection. In the PC Shell:
    "adb reboot bootloader"; "fastboot oem unlock UNIQUE_KEY" (2 times); "fastboot reboot bootloader". Afer end check that all is OK!
  • Insert SD-Card, and check it works!
  • In the PC Shell:
    "adb reboot bootloader"; "fastboot boot twrp-3.2.1-0-evert.img".
    When the TWRP boots --> READ-ONLY mode! Inside "Mount" select "Micro SD card" and push button "Disable MTP". Open ADB shell.
    WARNING: This TWRP is an unofficial version for Moto X4! Don't flash it!
  • Inside the ANDROID (ADB) shell:
    "dd if=/dev/block/platform/soc/c0c4000.sdhci/by-name/boot of=/external_sd/boot.img"
    "dd if=/dev/block/platform/soc/c0c4000.sdhci/by-name/logo of=/external_sd/logo.bin"
  • Power off, extract the SD-Card and secure copy your backup!
  • Power on in fastboot mode. Then flash patched logo.bin (for disable unlock warning), and flash boot patched kernel:
    "fastboot flash logo logo.bin"
    "fastboot boot patched_boot-MotoG6+-OPW27.113-45.img"
  • Reboot and make the initial setup with your regular user. Check that all is OK!
  • Before any reboot install MagiskManager:
    https://github.com/topjohnwu/MagiskManager/releases
  • Upgrade to lasted Magisk Beta:
    - Inside the Magisk Manager "Settings", change "Update Channel" to "Beta".
    - Then in the Main Magisk select "install" and "Install" the last version (v16.7) with "Direct Install".
    - Reboot.
That's all! Your phone is rooted with MagiskSU, and you can install Magisk Modules! :good:

If you boot with the patched boot kernel and install Magisk with the direct mode then you will have a backup of the stock boot.img inside Magisk. Useful for OTA updates and to uninstall it. In this case points 4-7 is not required (but recomended). The backup is stored in "/data/stock_boot_XXXXXXXXX.img.gz".

PENDING: Disable dm-verity (/data encryption) for TWRP backups!

GREETINGS:
@jekyll86 for Magisk patched kernel image https://forum.xda-developers.com/moto-g6/development/guide-magisk-patched-boot-image-opw27-t3794977
@luiz_neto for patched logo https://forum.xda-developers.com/moto-g6/development/bootlogo-remove-message-unlocked-t3789155
@luiz_neto for unofficial TWRP for Moto X4 https://forum.xda-developers.com/showpost.php?p=76501832&postcount=3
@lohanbarth for Unlock Bootloader guide https://forum.xda-developers.com/moto-g6/how-to/guide-unlock-bootloader-t3791238
 
Last edited:

stifmaster81

Senior Member
Feb 27, 2013
747
47
28
root for the normal g6, still nothing? I would also like to know how the tea is decrypted, Thank you

Enviado desde mi moto g(6) mediante Tapatalk
 

manos78

Senior Member
Jan 17, 2014
808
303
0
root for the normal g6, still nothing? I would also like to know how the tea is decrypted, Thank you
No at time! I don't have any G6, only G6+ that it's a very different device.

Here an idea for any that have sufficient skills and one Moto G6:
- Search for a similar device with a custom recovery (TWRP).
- Try to boot this TWRP image (fastboot boot twrp.img).
- If it works, extract the kernel to boot.img using the shell of the TWRP.
- Use some Magisk Manager tool for repack/patch the extracted boot.img.
- Try to boot this kernel (fastboot boot patch_boot.img).
- If it works, then install the Magisk Manager and patch the flash kernel.

After that, you have rooted your device! Then extract then the patched kernel and share with others. The rest of the guide will be the same with this custom kernel.
:cool:
 

stifmaster81

Senior Member
Feb 27, 2013
747
47
28
No at time! I don't have any G6, only G6+ that it's a very different device.

Here an idea for any that have sufficient skills and one Moto G6:
- Search for a similar device with a custom recovery (TWRP).
- Try to boot this TWRP image (fastboot boot twrp.img).
- If it works, extract the kernel to boot.img using the shell of the TWRP.
- Use some Magisk Manager tool for repack/patch the extracted boot.img.
- Try to boot this kernel (fastboot boot patch_boot.img).
- If it works, then install the Magisk Manager and patch the flash kernel.

After that, you have rooted your device! Then extract then the patched kernel and share with others. The rest of the guide will be the same with this custom kernel.
:cool:
Very complicated for me, I'll wait to see if someone gets something out

Enviado desde mi moto g(6) mediante Tapatalk

---------- Post added at 02:40 PM ---------- Previous post was at 02:35 PM ----------

To decrypt the mobile, can something be done? By command line Nexus type or something?

Enviado desde mi moto g(6) mediante Tapatalk
 

manos78

Senior Member
Jan 17, 2014
808
303
0
What is this for? i rooted my g6+ just booting this twrp and normally flash magisk zip in recovery and that was it.
Well, I do in this way because:

1) This TWRP isn't for Moto G6+, instead is for Moto X4. So, if it's something wrong in the partition mapping (fstab) then you can end with a bricked device. I'm satisfied if you can do it... but you be in risk.

2) If you review my guide, you will see how to obtain a BACKUP of the "boot.img". With your method, you'll lose it. And then, how you will apply the next OTA when it comes?

In any case, it's good to discover and test more rooting methods.
Perhaps for users with the Moto G6 or Moto G6 play, this other method can help them.
Regards.
 
  • Like
Reactions: Howlbeck

CreasingMass Dev

Senior Member
Jul 16, 2014
749
467
0
C. Izcalli
Well, I do in this way because:

1) This TWRP isn't for Moto G6+, instead is for Moto X4. So, if it's something wrong in the partition mapping (fstab) then you can end with a bricked device. I'm satisfied if you can do it... but you be in risk.

2) If you review my guide, you will see how to obtain a BACKUP of the "boot.img". With your method, you'll lose it. And then, how you will apply the next OTA when it comes?

In any case, it's good to discover and test more rooting methods.
Perhaps for users with the Moto G6 or Moto G6 play, this other method can help them.
Regards.
ye i don't care about OTAs, rooted my device just 30mins after getting it wishing there was some treble stuff but nah, anyway i don't care about losing that, i still use my g5 plus instead of this one because of the roms, can't use moto stock Sh!t it's just useless and full of bs
 

manos78

Senior Member
Jan 17, 2014
808
303
0
i still use my g5 plus instead of this one because of the roms, can't use moto stock Sh!t it's just useless and full of bs
Wooh! I really hate my Moto G5+ ... 3GB or RAM is a joke from Motorola. The 4GB of RAM of the Moto G6+ is a glory! And I prefer Oreo than Nougat, in Stock with a lot of Magisk modules.
 

manos78

Senior Member
Jan 17, 2014
808
303
0
FYI,

If you rooted your Moto G6+ with this guide, and now you like to apply the June's OTA over the April firmware... then, you need to wait!
The OTA refuses to install, even if you uninstall Magisk, or boot with the stock kernel, or reflash the stock kernel.
 

worried_G6

New member
Dec 29, 2018
1
0
0
Have same issue....

I have a Moto G6.
When submitting the string on Motorola's site, I get this;
Your device does not qualify for bootloader unlocking
Any ideas how to get around this roadblock?
 

madbat99

Senior Member
Mar 1, 2014
5,539
3,285
113
I have a Moto G6.
When submitting the string on Motorola's site, I get this;
Your device does not qualify for bootloader unlocking
Any ideas how to get around this roadblock?
There is no way around it. if your device is branded from Verizon or probably AT&t the bootloader is not unlockable.