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

Root question

Search This thread

andMego

Senior Member
Jul 24, 2015
265
55
Miami
So how do I root this thing?

Verstuurd vanaf mijn Moto E (4) met Tapatalk
Did you try this?
UNLOCK YOUR BOOTLOADER

WARNING: UNLOCKING YOUR BOOTLOADER VOIDS YOUR WARRANTY.PROCEED AT YOUR OWN RISK.
NOTE: Unlocking the bootloader will Wipe/ factory reset your device, and will delete all personal data from your device such as apps, photos, messages, and settings.


INSTRUCTIONS:

  1. Make sure to take a backup of your entire device data.
  2. Download the Android SDK OR Download the Minimal ADB and Fastboot
  3. Install the latest Motorola USB Drivers on your desktop. Download here.
  4. Put your device in fastboot mode (power off, then press the power and volume down buttons simultaneously).
  5. Open Command Prompt on androidsdk/platform-tools/ (Hold Shift and right click and press open command window here)
  6. Connect your Phone to PC
  7. Type this in the CMD prompt window - fastboot oem get_unlock_data
  8. You will get a return string. Copy it. [Right Click-Mark- Mark the text by pressing the shift key-Now press Ctrl+C]
  9. Paste all the lines together in a notepad. Remove the empty spaces.

  10. Now go to the Motorola Site.Sign in using your Google account or Motorola ID. Scroll down the page and paste the copied string in the field at step #6. Then click on ‘Can my device be unlocked?’, after which a "REQUEST UNLOCK KEY" button will appear at the bottom of page.
  11. To get your unlock key, select the ‘I Agree’ option. Note: You will receive an email with your Unlock Key at the email address you used to log in there.
  12. Important – Copy the 20-character key that Motorola sent you via email. Make sure your device is connected.
  13. Then in CMD type: fastboot devices (To check your device is connected)
  14. Then type: fastboot oem unlock UNIQUE_KEY

    NOTE: In above command, replace the word ‘UNIQUE_KEY’ with the unlock code that you got via email. Then hit enter and the unlocking process should begin. Wait for a while and soon you’ll see ‘Bootloader Unlocked’ warning on your Moto E.

    To relock the bootloader:

    Go to Fastboot and give the command fastboot oem lock

You can always appreciate my work by pressing the Thanks Button.:good:
Good Day


---------- Post added at 06:50 AM ---------- Previous post was at 06:48 AM ----------

After you unlock your bootloader you can flash SuperSU in a custom recovery but someone would need to make one of those
 

mer2017

New member
Jul 3, 2017
3
20
Root Moto E4 (XT1768)

Here's what worked for me (I have the snapdragon version of this phone):

Follow the following at your own risk!

If you're an expert with rooting, the twrp build that works for this phone is at https://forum.xda-developers.com/g5/development/unofficial-twrp-3-1-0-0-moto-g5-t3574450. Otherwise, details are below.
I'm assuming whoever is reading this has some rooting familiarity.

The short version is:
1. Unlock the boot loader
2. Boot twrp
3. Flash su and no-verify zip
4. Reboot to root'd phone.

0. Prepare

Get the following:
i. Motorola usb drivers: your pc won't talk properly with the device without these. google around for these.
ii. adb and fastboot: used to unlock the bootloader and boot twrp https://developer.android.com/studio/releases/platform-tools.html
iii. su zip: I used phh's https://superuser.phh.me/superuser-r259.zip you can probably get chainfire's or whatever else working
iv. no-verity-opt-encrypt-5.1 zip: https://www.androidfilehost.com/?fid=24459283995297893
v. twrp: this build seems to work for the E4 https://forum.xda-developers.com/g5/development/unofficial-twrp-3-1-0-0-moto-g5-t3574450
vi: (optional) stock roms: in case you need to go back https://androidfilehost.com/?w=files&flid=195327 applying these with RSD lite (if RSD can *actually* detect your phone) or manually (https://www.youtube.com/watch?v=njXQYn53SPc) should work.

0.1 Prepare the phone:
Get developer options on android and turn on "OEM unlocking" and "USB debugging".
Test that your pc can see the phone by running:

Code:
adb devices

0.2 Dump your zips onto the phone:
For this, I dumped the superuser-r259.zip and no-verity-opt-encrypt-5.1 zip onto an sd card (formatted as external).
I didn't try this without an sd card.

0.3 (optional) install the superuser apk
Install the apk before flashing to get root immediately after booting back from twrp.

1. Unlock the boot loader
The post here details how to unlock the motorola boot loader. Keep in mind it will probably void any warranty on the phone. This process involves signing up for a motorola account to get the unlock code.
https://forum.xda-developers.com/showpost.php?p=72878183&postcount=2

2. Boot twrp
Read the warnings in https://forum.xda-developers.com/g5/development/unofficial-twrp-3-1-0-0-moto-g5-t3574450
Because we'll be flashing stuff here, the phone may refuse to boot afterwards since a part of it changed without its knowledge. That's why the no-verify zip is necessary, to bypass this check on boot.

Put your phone in fastboot and run:

Code:
fastboot boot twrp-3.1.0-0-cedric.img

3. Flash su and no-verify zip
In twrp, hit cancel on the decryption screen and start twrp in read.
Go to install, switch to sd card, find the the zip location and flash su then no-verify.

4. Reboot
That should be it. When you reboot back to android, install the superuser apk if you haven't already and feel free to use your root.
 
Last edited:

fountain1

Member
Jul 6, 2017
16
3
Moto e4 is not on the list of the phones that can be unlocked, I have already chatted with moto customer care and they told me its bootloader can't b unlocked yet.
 

andMego

Senior Member
Jul 24, 2015
265
55
Miami
These are the important questions.

Like seriously. How the hell.
I'm saying it obviously works because it's been done

---------- Post added at 10:11 PM ---------- Previous post was at 09:28 PM ----------

I just unlocked my bootloader so it obviously works

---------- Post added at 10:11 PM ---------- Previous post was at 10:11 PM ----------

I just unlocked my bootloader so it obviously works
 

andMego

Senior Member
Jul 24, 2015
265
55
Miami
Now my phone isn't booting, says it can't load the kernel, I flashed the no verify thing but that isn't helping

---------- Post added at 11:49 PM ---------- Previous post was at 11:44 PM ----------

And now after turning it on and off many times it's working!
 

andMego

Senior Member
Jul 24, 2015
265
55
Miami
I still can't figure out how to root it, any ideas? I flashed SuperSU in TWRP many times and it's still not working.
 

L551

Senior Member
Nov 30, 2010
149
27
I've successfully gotten my Moto e4 rooted. Proof:
ehJkueA.png
 

L551

Senior Member
Nov 30, 2010
149
27
We know it's doable, we aren't looking for proof, we are looking for how to do it ourselves

First, I unlocked the bootloader through motorola's tool. Second, as there is no official TWRP for the e4, I used the Moto G5's TWRP img to BOOT from. (Flashing will not work, boot from it using fastboot) https://forum.xda-developers.com/g5/development/unofficial-twrp-3-1-0-0-moto-g5-t3574450

After in TWRP, I made a backup of stock everything. You'll need it if something goes wrong during the entire process.

After making sure that I was backed up, I then flashed Magisk 13.1. After that successfully flashed, I then flashed this file: https://www.androidfilehost.com/?fid=24459283995297893 . After rebooting (This may take a while), everything looked much the same, and it may look the same for you as well.

In my own case, the Magisk ZIP that I flashed did not install the Magisk Manager. Install that via the APK available in the Magisk 13.1 thread. After I did all that, I had successful root.
 

andMego

Senior Member
Jul 24, 2015
265
55
Miami
First, I unlocked the bootloader through motorola's tool. Second, as there is no official TWRP for the e4, I used the Moto G5's TWRP img to BOOT from. (Flashing will not work, boot from it using fastboot) https://forum.xda-developers.com/g5/development/unofficial-twrp-3-1-0-0-moto-g5-t3574450

After in TWRP, I made a backup of stock everything. You'll need it if something goes wrong during the entire process.

After making sure that I was backed up, I then flashed Magisk 13.1. After that successfully flashed, I then flashed this file: https://www.androidfilehost.com/?fid=24459283995297893 . After rebooting (This may take a while), everything looked much the same, and it may look the same for you as well.

In my own case, the Magisk ZIP that I flashed did not install the Magisk Manager. Install that via the APK available in the Magisk 13.1 thread. After I did all that, I had successful root.
I did all that but the magisk zip used to say it didn't Support my boot image and now it's just giving error 255
 

L551

Senior Member
Nov 30, 2010
149
27
Magisk won't install if your boot image is anything other than stock. So if you've attempted other methods, you'll need to restore the boot to stock.
 
  • Like
Reactions: sd_shadow

Top Liked Posts

  • There are no posts matching your filters.
  • 14
    So how do I root this thing?

    Verstuurd vanaf mijn Moto E (4) met Tapatalk
    Did you try this?
    UNLOCK YOUR BOOTLOADER

    WARNING: UNLOCKING YOUR BOOTLOADER VOIDS YOUR WARRANTY.PROCEED AT YOUR OWN RISK.
    NOTE: Unlocking the bootloader will Wipe/ factory reset your device, and will delete all personal data from your device such as apps, photos, messages, and settings.


    INSTRUCTIONS:

    1. Make sure to take a backup of your entire device data.
    2. Download the Android SDK OR Download the Minimal ADB and Fastboot
    3. Install the latest Motorola USB Drivers on your desktop. Download here.
    4. Put your device in fastboot mode (power off, then press the power and volume down buttons simultaneously).
    5. Open Command Prompt on androidsdk/platform-tools/ (Hold Shift and right click and press open command window here)
    6. Connect your Phone to PC
    7. Type this in the CMD prompt window - fastboot oem get_unlock_data
    8. You will get a return string. Copy it. [Right Click-Mark- Mark the text by pressing the shift key-Now press Ctrl+C]
    9. Paste all the lines together in a notepad. Remove the empty spaces.

    10. Now go to the Motorola Site.Sign in using your Google account or Motorola ID. Scroll down the page and paste the copied string in the field at step #6. Then click on ‘Can my device be unlocked?’, after which a "REQUEST UNLOCK KEY" button will appear at the bottom of page.
    11. To get your unlock key, select the ‘I Agree’ option. Note: You will receive an email with your Unlock Key at the email address you used to log in there.
    12. Important – Copy the 20-character key that Motorola sent you via email. Make sure your device is connected.
    13. Then in CMD type: fastboot devices (To check your device is connected)
    14. Then type: fastboot oem unlock UNIQUE_KEY

      NOTE: In above command, replace the word ‘UNIQUE_KEY’ with the unlock code that you got via email. Then hit enter and the unlocking process should begin. Wait for a while and soon you’ll see ‘Bootloader Unlocked’ warning on your Moto E.

      To relock the bootloader:

      Go to Fastboot and give the command fastboot oem lock

    You can always appreciate my work by pressing the Thanks Button.:good:
    Good Day


    ---------- Post added at 06:50 AM ---------- Previous post was at 06:48 AM ----------

    After you unlock your bootloader you can flash SuperSU in a custom recovery but someone would need to make one of those
    11
    Root Moto E4 (XT1768)

    Here's what worked for me (I have the snapdragon version of this phone):

    Follow the following at your own risk!

    If you're an expert with rooting, the twrp build that works for this phone is at https://forum.xda-developers.com/g5/development/unofficial-twrp-3-1-0-0-moto-g5-t3574450. Otherwise, details are below.
    I'm assuming whoever is reading this has some rooting familiarity.

    The short version is:
    1. Unlock the boot loader
    2. Boot twrp
    3. Flash su and no-verify zip
    4. Reboot to root'd phone.

    0. Prepare

    Get the following:
    i. Motorola usb drivers: your pc won't talk properly with the device without these. google around for these.
    ii. adb and fastboot: used to unlock the bootloader and boot twrp https://developer.android.com/studio/releases/platform-tools.html
    iii. su zip: I used phh's https://superuser.phh.me/superuser-r259.zip you can probably get chainfire's or whatever else working
    iv. no-verity-opt-encrypt-5.1 zip: https://www.androidfilehost.com/?fid=24459283995297893
    v. twrp: this build seems to work for the E4 https://forum.xda-developers.com/g5/development/unofficial-twrp-3-1-0-0-moto-g5-t3574450
    vi: (optional) stock roms: in case you need to go back https://androidfilehost.com/?w=files&flid=195327 applying these with RSD lite (if RSD can *actually* detect your phone) or manually (https://www.youtube.com/watch?v=njXQYn53SPc) should work.

    0.1 Prepare the phone:
    Get developer options on android and turn on "OEM unlocking" and "USB debugging".
    Test that your pc can see the phone by running:

    Code:
    adb devices

    0.2 Dump your zips onto the phone:
    For this, I dumped the superuser-r259.zip and no-verity-opt-encrypt-5.1 zip onto an sd card (formatted as external).
    I didn't try this without an sd card.

    0.3 (optional) install the superuser apk
    Install the apk before flashing to get root immediately after booting back from twrp.

    1. Unlock the boot loader
    The post here details how to unlock the motorola boot loader. Keep in mind it will probably void any warranty on the phone. This process involves signing up for a motorola account to get the unlock code.
    https://forum.xda-developers.com/showpost.php?p=72878183&postcount=2

    2. Boot twrp
    Read the warnings in https://forum.xda-developers.com/g5/development/unofficial-twrp-3-1-0-0-moto-g5-t3574450
    Because we'll be flashing stuff here, the phone may refuse to boot afterwards since a part of it changed without its knowledge. That's why the no-verify zip is necessary, to bypass this check on boot.

    Put your phone in fastboot and run:

    Code:
    fastboot boot twrp-3.1.0-0-cedric.img

    3. Flash su and no-verify zip
    In twrp, hit cancel on the decryption screen and start twrp in read.
    Go to install, switch to sd card, find the the zip location and flash su then no-verify.

    4. Reboot
    That should be it. When you reboot back to android, install the superuser apk if you haven't already and feel free to use your root.
    2
    Hmm I see what you mean but I think I did don't ask me again on that screen and can't get it to popup now. Should I just do a full wipe of my phone? System, Data, Cache, Internal Storage, and reflash to try again?
    I'm not talking about the screen that asks if twrp should leave system read only, I'm talking about the the screen that you decrypt your data at. Do not bother doing a full wipe (since you've never touched system either way), just flash the stock boot.img and try again.
    2
    How did you flash this Magisk 13.1? I keep getting an error failure to mount image. I did a stock ROM flash and wipe cache, data too and flashed nothing else prior to Magisk.
    Make sure your phone is encrypted and you don't give twrp access to your data (don't put your password in when you boot twrp)
    2
    We know it's doable, we aren't looking for proof, we are looking for how to do it ourselves

    First, I unlocked the bootloader through motorola's tool. Second, as there is no official TWRP for the e4, I used the Moto G5's TWRP img to BOOT from. (Flashing will not work, boot from it using fastboot) https://forum.xda-developers.com/g5/development/unofficial-twrp-3-1-0-0-moto-g5-t3574450

    After in TWRP, I made a backup of stock everything. You'll need it if something goes wrong during the entire process.

    After making sure that I was backed up, I then flashed Magisk 13.1. After that successfully flashed, I then flashed this file: https://www.androidfilehost.com/?fid=24459283995297893 . After rebooting (This may take a while), everything looked much the same, and it may look the same for you as well.

    In my own case, the Magisk ZIP that I flashed did not install the Magisk Manager. Install that via the APK available in the Magisk 13.1 thread. After I did all that, I had successful root.