yashsingh1/xdaforums huggingface dataset:
[Moto E4 Guides, News, & Discussion] kartik verma:
[MENTION=4117181]KyleBryant[/MENTION] is right u need to unlock bootloader first.

For moto e4 international version no unique key required for bootloader unlocking also i successfully port twrp recovery to international version from qualcomm variant which is developed by [MENTION=6485916]squid2[/MENTION].

everything works well except external storage selection in twrp recovery i can't figure out the problem.

---------- Post added at 12:59 AM ---------- Previous post was at 12:06 AM ----------

[MENTION=4117181]KyleBryant[/MENTION]

i ported this qualcomm variant recovery to mtk variant, everything works well after some edits but not able to use external sdcard in twrp recovery and i can't figure out the problem nor i have valid mount flags of external sdcard. anyway to fix this problem ? :(
[Moto E4 Guides, News, & Discussion] e4noob:
Dude you are the expert who made this guide. That'[s awesome. I see all these comments talking about different bits and pieces of the process and I have zero idea what is going on. I am generally tech savvy too but not android/linux. I'm gonna watch some videos on rooting to get some basic idea.

If we get the one click utility at some point it would be awesome. We'll see how it goes. May be I'll learn to handle it the normal way. Good luck to you on making these helpful guides. I'll come back to it at some point.
[Moto E4 Guides, News, & Discussion] KyleBryant:
Thanks man, and yeah it takes some learning. I've been messing with Android since 2011 it's all trial and error.
[Moto E4 Guides, News, & Discussion] vettejock99:
So I wanted to add that I was able to finally flash Magisk and have it show up as rooted. I'm afraid I can't give an absolute guide as I was doing a bit of trial and error but IIRC, I flashed stock image (and I have a backup of stock including boot.img). I installed Magisk 12 and then I installed the r259 version of phh superuser. FWIW, I've never needed to flash no-verity if I have a newer version of Magisk on there. Anyway, I didn't have root so I flashed Magisk uninstaller and then I tried a specific version of Magisk v13.0 (96f8efc). It gave me a different message saying it detected a patched boot.img and asked me to restore a stock one. I did that and then it installed and I have root as well (though I still can't install Magisk modules).

So I'm guessing that you could possibly skip the phh and v12 dance I did and just flash that version of Magisk onto a stock install and you might be good to go.
[Moto E4 Guides, News, & Discussion] KyleBryant:
That's good to hear, yeah I was still unable to install modules too, I ended up switching to phh and then used xposed
[Moto E4 Guides, News, & Discussion] HKSpeed:
What does this step do in regards to using TWRP to backup, restore, and flash zips? I'm not familiar with r/w and encryption settings. I rooted my E4 using Mer2017's instructions a week before squid2 made TWRP for this device. So I don't know if something is messed up for me since my installation process was different than your instructions. Thanks.
[Moto E4 Guides, News, & Discussion] KyleBryant:
It removes encryption and allows you to gain control over system files in twrp as well as make full system backups of a working rom. The downside is to make it work you basically wipe the phone to stock.
[Moto E4 Guides, News, & Discussion] KyleBryant:
OP updated with links to the mediatek TWRP
[Moto E4 Guides, News, & Discussion] kartik verma:
[MENTION=4117181]KyleBryant[/MENTION] you have typed my username wrong in the first post. its [MENTION=5608673]kartik verma[/MENTION] not [MENTION=4557198]kartikverma[/MENTION] :silly:
[Moto E4 Guides, News, & Discussion] KyleBryant:
Fixed
[Moto E4 Guides, News, & Discussion] kartik verma:
can i get the boot image of qualcomm variant.

:o
[Moto E4 Guides, News, & Discussion] KyleBryant:
Here ya go, stock unrooted.
[Moto E4 Guides, News, & Discussion] kartik verma:
thanks mate :highfive:
[Moto E4 Guides, News, & Discussion] thenextdon13:
Will there be an effort to get changes merged into upstream TWRP?

Thanks
[Moto E4 Guides, News, & Discussion] Juanchavez80:
I can't get it to flash TRWP but i can get it to boot to the bootloader
[Moto E4 Guides, News, & Discussion] thenextdon13:
Do you mean that you can get it to boot to TRWP, but can't install TRWP?

Last night i booted to TRWP and 'installed' the two .zip files called for in the instructions... but didn't try installing TRWP. That said, it appears my rooting attempt failed- 'Root verifier' indicates I do not have root.

I can try installing TRWP tonight. Did you get any error messages?

Anyone have thoughts on what I may have done wrong? I saw no error messages...
[Moto E4 Guides, News, & Discussion] :
Make sure your typing "fastboot flash" not "fastboot boot" or it will only boot twrp not install it.

---------- Post added at 10:22 PM ---------- Previous post was at 10:19 PM ----------

I have only been able to get root with phh's superuser. The last beta build seems to work best. Some apps can't get root permissions with the last stable build.
[Moto E4 Guides, News, & Discussion] thenextdon13:
Ah, I just found that using phh's superuser R259 with Terminal and typing 'su' provides expected results (app pops up and asks permission, permission appears to be granted).. however 'root verifier' still shows phone as not rooted. Same things to be the case with R310-beta (provided you don't have to do a full wipe, and can just go into twrp and 'install' it over the top of the old one)
[Moto E4 Guides, News, & Discussion] Djoec1983:
Any chance someone with the MetroPCS variant could pull the stock messaging app and upload the APK for me? Would be much appreciated!?
[Moto E4 Guides, News, & Discussion] wrkerr:
That just requires sharing /system/app/Messenger/Messenger.apk with you, right?

If so, here you go.

https://drive.google.com/file/d/0BzWc3pbevMVxcHBGWkNMQTJCeEU/view?usp=sharing
[Moto E4 Guides, News, & Discussion] crashnova:
Is there anyway to root the MetroPCS variant? The bootloader is unlocked and TWRP is installed. I'm trying EVERYTHING and no dice.
[Moto E4 Guides, News, & Discussion] KyleBryant:
Yes, place dm no verity and phhsu zips on your sd card , boot into twrp and go to format data, type yes and when it finishes reboot TWRP then flash noverity and then flash phhsu.
[Moto E4 Guides, News, & Discussion] :
I just posted in another thread, there's a new magisk 14.0 that flashed and seems to work ok other than it won't download modules.

Edit: doesn't pass the safteynet check either.
[Moto E4 Guides, News, & Discussion] ImAustin366624:
I bought a moto E4 and immediately rooted it, when I went to take a picture the camera didn't work so I thought it was a hardware problem. I contacted amazon and received a replacement today, I checked the camera and it was working perfectly so I rooted it and it stopped working I'm now here with two Moto E4s without working cameras. Any help would be appreciated.
[Moto E4 Guides, News, & Discussion] andMego:
Which version? The unlocked US from Amazon?

---------- Post added at 01:43 AM ---------- Previous post was at 01:42 AM ----------

TWRP is no longer needed, in the main magisk thread there's instructions for how to do it without a custom recovery.
[Moto E4 Guides, News, & Discussion] ImAustin366624:
Unlocked US version I bought from amazon. https://www.amazon.com/dp/B06ZZVZN4X/ref=twister_B0736HYCZ5
[Moto E4 Guides, News, & Discussion] crashnova:
Mind linking that specific post bro? Or instructions on how to get magisk on this phone. I'm rooted but with phh and it's not systemless, unfortunately.
[Moto E4 Guides, News, & Discussion] andMego:
https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445 first post in this thread. I currently do not have an unlocked bootloader.
[Moto E4 Guides, News, & Discussion] kartik verma:
official stock firmware from motorola for qualcomm variant (build - Perrry & SPerry)

verizon & sprint.

link :

https://firmware.center/firmware/Motorola/Moto E4/Stock/

---------- Post added at 04:02 AM ---------- Previous post was at 03:58 AM ----------

phh's superuser has nothing to do with systemless interface during installation it just modify the boot image and nothing else.
[Moto E4 Guides, News, & Discussion] crashnova:
thanks for that. i said something about it because when trying to install busybox by stericson to su/xbin or su/bin it said something about root not being systemless. anyhow i got magisk to work. just not passing safetynet...yet.
[Moto E4 Guides, News, & Discussion] andMego:
You aren't passing safety net because the bootloader is unlocked, not because you are rooted.
[Moto E4 Guides, News, & Discussion] akito77:
Just updated my Magisk from 13.3 to 14.0 directly from within the Magisk Manager and it worked! (also updated the manager app too) Just FYI.

Still can't install Magisk modules though.
[Moto E4 Guides, News, & Discussion] adamjeeps:
Sprint Version Options

I have the Sprint version XT1766. I have unlocked the bootloader. Pretty sure it is Qualcomm (says it on the box). What are my options to get this unlocked? Can I root and flash a different carrier firmware? Sprint is a pain about unlocking even though it is paid off.
[Moto E4 Guides, News, & Discussion] wrkerr:
I was fiddling with it trying to get Magisk root to work, and in the process I decided to flash the stock boot.img again with mfastboot, and try from there. I should have known, but apparently when you first boot the stock boot.img, it rewrites recovery, so now I'm stuck again with an encrypted device and no way to flash root without wiping the device again.

Should have made that backup before I started messing around. lol

edit: Nevermind, I just didn't decrypt in twrp, mounted /system as read-only, flashed noverity and su again, and rebooted and everything was fine. ¯\_(ツ)_/¯
[Moto E4 Guides, News, & Discussion] RaiderWill:
That's Easy...

If You Want To Use Your CDMA Variant on Verizon's CDMA Network.. Just Use This... https://cellphoneunlocker.com/

And your good.. You don't need Sprints permission to dump them.. :cool:
[Moto E4 Guides, News, & Discussion] 00ffej:
For whatever reason, Moto's site is telling me my bootloader can't be unlocked. MetroPCS variant
[Moto E4 Guides, News, & Discussion] supermaxkato:
edit system files.....

[MENTION=4117181]KyleBryant[/MENTION], can you modify your build.prop with this process? Because I followed your steps on the xt1766 (sprint variant) but can't get phh su to work at all (using superuser-r275.zip). I have squids TWRP working and magisk works for root, but can't edit system files like build.prop. Maybe I missed a step or it's just not possible with the E4?
[Moto E4 Guides, News, & Discussion] thenextdon13:
How are you verifying su as working or not? I was using rootchecker, and it didn't work- however I verified root by running terminal and running su... I'm no expert, but it would appear the su doesn't work for all instances...

In my case, I modified build.prop via adb pull/push...
[Moto E4 Guides, News, & Discussion] andMego:
You sure you pasted the code properly? Did you make sure to agree to the terms?
[Moto E4 Guides, News, & Discussion] supermaxkato:
Thanks for replying, but I switched to the older version he posted (r259) and that worked. I still can't edit system files from the device though (like I can with all of my other Android's). So I'd prefer not to have to use ADB for system changes. Hoping anyone else has other suggestions for how to make this happen on the E4?
[Moto E4 Guides, News, & Discussion] hitokage004:
It might be a storage space issue that is keeping you from editing files. On the retail E4 I bought, the system partition was just the size needed, so I needed to remove something to be able to make changes. I think the safest way to free up some space is to use a utility that can move system apps to user apps, or you can try to do the same thing manually.
[Moto E4 Guides, News, & Discussion] rannochio:
Can ne one possible help me with rooting my Moto e4 xt1766...it's a Sprint variant and qcom
[Moto E4 Guides, News, & Discussion] SykkNyzz:
When will the OP return? BC I hope he includes that busybox is missing from the whole equation that some apps are dependent on.

---------- Post added at 11:26 AM ---------- Previous post was at 11:17 AM ----------

(Taking my statement from another post)

[/COLOR]https://www.androidfilehost.com/?fid=673368273298943737

BusyBox-1.26.2-Stericson-Stable.zip flashed via TWRP is the most stable to use, If you are using apps that require busybox, as the main busybox app doesn't work to install the files properly.
[Moto E4 Guides, News, & Discussion] jaxgmfb:
can you get recovery.img or recovery.bin...??
[Moto E4 Guides, News, & Discussion] SykkNyzz:
That comes already with it.
[Moto E4 Guides, News, & Discussion] KyleBryant:
I don't have that file and my computer has been down for about a month now. Someone here might be able to help though.
[Moto E4 Guides, News, & Discussion] KyleBryant:
I didn't include BusyBox in the guide because it isn't absolutely necessary.
[Moto E4 Guides, News, & Discussion] KyleBryant:
I included everything needed to unlock the bootloader, flash twrp, and obtain root. Everything else is is at the users discretion.
[Moto E4 Guides, News, & Discussion] wrkerr:
For anyone still struggling, I was finally able to get Magisk root working on my MetroPCS device. I extracted the boot.img from the stock ROM linked to in the OP. I used the new Magisk 14.1 beta to create a patched boot image from the stock one, then I booted into squid2's new TWRP 3.1.1-r2 and flashed it to the boot partition.

The device still fails SafetyNet---not sure why, but everything else seems to be working great.
[Moto E4 Guides, News, & Discussion] andMego:
The device fails safety net as soon as you unlock the bootloader, nothing to do with rooting. A while ago I posted a link to a potential fix. You shouldn't have needed to use twrp to flash the modified boot image, should've worked in regular recovery.
[Moto E4 Guides, News, & Discussion] wrkerr:
All my Nexus devices pass SafetyNet, even with unlocked bootloaders. Is there more strict criteria for Moto devices?
[Moto E4 Guides, News, & Discussion] andMego:
Yes, certain devices report their bootloader status. The fix is to make a custom kernel which doesn't send this report to safety net.
[Moto E4 Guides, News, & Discussion] fix-this!:
what about the plus model with snapdragon? how can we root that?
[Moto E4 Guides, News, & Discussion] KyleBryant:
No idea, considering this is for just the regular E4 I'd say you're in the wrong forum lol.
[Moto E4 Guides, News, & Discussion] MarcXT1767:
Moto e4 xt1767?

Is there still no option to root this without a PC

:confused:
[Moto E4 Guides, News, & Discussion] :
Magisk v14.2 works fine flashing with twrp for me.
[Moto E4 Guides, News, & Discussion] madbat99:
You have to have a pc to unlock the bootloader. This is not likely to change.
[Moto E4 Guides, News, & Discussion] burnsky05:
This phone shouldn't have any issues with this process, correct?

https://www.bestbuy.com/site/motoro...ne-unlocked-fine-gold/5955800.p?skuId=5955800
[Moto E4 Guides, News, & Discussion] :
The forums for that device is here:

https://xdaforums.com/moto-e4-plus
[Moto E4 Guides, News, & Discussion] KyleBryant:
That's an E4 plus, this is for the regular E4 with a Snapdragon chipset.
[Moto E4 Guides, News, & Discussion] Zachery Calahan:
SuperSU vs Magisk

I recommend using Magisk instead of SuperSU to root the Qualcomm E4. I find it works on my phone, unlike the SuperSU. In recovery, flash no-verity and then flash magisk 14.0. Should work for anyone experiencing issues. Make sure you didn't already flash SuperSU. If you did, just find a tutorial to remove it. They are all over the internet.
[Moto E4 Guides, News, & Discussion] manoloturbo:
I have a verizon prepaid moto e4 this works???

Thanks :confused:
[Moto E4 Guides, News, & Discussion] mn1968:
[MENTION=8543044]manoloturbo[/MENTION] If you are referring to unlocking the bootloader/rooting the Verizon variant, then the answer is no. The Verizon variant can not be rooted/bootloader unlocked.
[Moto E4 Guides, News, & Discussion] manoloturbo:
i guess i cant do anything with this phone!!:eek:
[Moto E4 Guides, News, & Discussion] madbat99:
Most Verizon phones are locked up tight. It is a decent phone without root. My wife has the virgin Mobile version (same as Sprint and boost) and she won't let me touch it (meaning root). But she still loves it. It has a pretty fast camera and basically stock Android, keeping it pretty snappy and responsive.

---------- Post added at 01:06 AM ---------- Previous post was at 01:04 AM ----------

For those that have rooted with magisk, does the tethering enable magisk module work to enable hotspot? (Boost version is probably who I'm asking)
[Moto E4 Guides, News, & Discussion] :
I haven't tried that, but a simple build.prop modification does the trick.
[Moto E4 Guides, News, & Discussion] voodooline:
Yeah I'm happy with stock. I'm a recovering flash addict so I went the locked route
[Moto E4 Guides, News, & Discussion] :
Yeah, I think I need an intervention and rehab. I'm a flashaholic and I enable myself by building myself,lol.
[Moto E4 Guides, News, & Discussion] voodooline:
Bahah it was bad when u had my opo and opx I would flash 3 to 6 times daily. Really miss AiCp. Keep up the good work though! Glad to see an amazing device get the proper treatment
[Moto E4 Guides, News, & Discussion] KyleBryant:
You're not the only one, I used 5 different roms this week alone lol
[Moto E4 Guides, News, & Discussion] :
I just built and flashed 6 in the same day a couple days ago.
[Moto E4 Guides, News, & Discussion] KyleBryant:
Jesus dude lol
[Moto E4 Guides, News, & Discussion] kskillz2000:
The link for verity reports back an error, so I can't dl. Can someone repost or send me a working link or file?

Thanks in advance

Edit: I found a working link
[Moto E4 Guides, News, & Discussion] :
Glad to have you join us.:)
[Moto E4 Guides, News, & Discussion] kskillz2000:
I've been around, just picked up this E4 after my 3 started acting up. So now to get twrp loaded and root this guy
[Moto E4 Guides, News, & Discussion] KyleBryant:
Updated link in OP to this post for you guys.
[Moto E4 Guides, News, & Discussion] domenci:
just wondering KyleBryant, did you encounter any issues installing xposed on the stock ROM and phh SU? I installed the official framework fine and it says it's activated, but when I download and install a module, it says it can't read the downloaded file to install it. Any insight? Thanks
[Moto E4 Guides, News, & Discussion] mikaleee:
Does this work with the unlocked version (XT1768)? I'm just a little skeptical because I just got this phone brand new :)

So you can get a rooted version of the 7.1.1 stock ROM this way?
[Moto E4 Guides, News, & Discussion] :
I do believe that is the same model as the developer who made the twrp has, so I would say yes.
[Moto E4 Guides, News, & Discussion] DanL0403:
Any success in unlocking your E4?
[Moto E4 Guides, News, & Discussion] KyleBryant:
I was having issues with Xposed on stock yes, I had to use the purify unofficial for it to work.
[Moto E4 Guides, News, & Discussion] domenci:
I tried the purify version but I'm having the same problem, it'll download the module but then when I install says "Could not read downloaded file". Wondering if it has something to do with my root setup. I'm using phh and I can get su in terminal, but the xposed installer never even asks for root. Same thing on official xposed installer and material design one also. I don't really understand magisk (first new phone+root in 4 years) but I'm wondering if that may be the answer
[Moto E4 Guides, News, & Discussion] KyleBryant:
I'm not too sure, mine worked with both phh and magisk.
[Moto E4 Guides, News, & Discussion] domenci:
You were supposed to have all the answers!!! Lol

I tried official, unnoficial and got the same thing... I even tried Francesco Franz's version (https://xdaforums.com/moto-e4/how-to/info-xposed-framework-nougat-t3687263) and got a bootloop... luckily the uninstaller worked to allieviate that. I'm running out of things to try, I just don't know where I'm messing up
[Moto E4 Guides, News, & Discussion] andresh12:
Halp

I just unlocked my bootloader, and I'm currently struggling to flash the twrp image. I think I managed to do it, but now when I reboot into recovery it gives me bad key. I'm using the metroPCS variant (Qualcomm of course)
[Moto E4 Guides, News, & Discussion] KyleBryant:
Let me see if I can find the boot.img I think that's what got it working for meb
[Moto E4 Guides, News, & Discussion] KyleBryant:
I can't seem to find the stock boot.img I had backed up
[Moto E4 Guides, News, & Discussion] andresh12:
I managed to get it working. I had flashed TWRP wrong using minimal adb. Now running the resurrection remix rom. Thanks for your guide though man. Made my life with this phone much better.
[Moto E4 Guides, News, & Discussion] KyleBryant:
No problem, I hope you get as much enjoyment out of this phone as I am.
[Moto E4 Guides, News, & Discussion] sumner2q:
can I use an micro usb otg flash drive to flash pph root file and no verifiy zip in TWRP
[Moto E4 Guides, News, & Discussion] madbat99:
Should be able to, TWRP can mount USB otg. Depends if the dev removed it when he built TWRP for this phone. Good question though.
[Moto E4 Guides, News, & Discussion] KyleBryant:
USB otg should still work, the option is there.
[Moto E4 Guides, News, & Discussion] sumner2q:
the recovery won't flash in fastboot but it will boot up the recovery img from my computer with cmd prompt but wont flash to my phone I did flash the factory firmware but now it won't let me flash a custom recovery from the bootloader.
[Moto E4 Guides, News, & Discussion] KyleBryant:
I'm not exactly sure what the issue is as I haven't experienced it, I did have to put the twrp img in my user directory on my PC to get it to flash, but since you got it to boot in general I'd say that's not an issue. I'm not exactly sure how to help you
[Moto E4 Guides, News, & Discussion] SykkNyzz:
If already rooted, I just use flashify. Simpler than attaching to a PC and it's never failed me tbh
[Moto E4 Guides, News, & Discussion] SykkNyzz:
Check out Flashify.
[Moto E4 Guides, News, & Discussion] SykkNyzz:
(Because people root this with Magisk without using TWRP) just get the APK and it will install that way.
[Moto E4 Guides, News, & Discussion] SykkNyzz:
Using the app, the install (zip) is at the bottom. It will do it without using the TWRP.
[Moto E4 Guides, News, & Discussion] :
Doesn't the Magisk app need root access for that?
[Moto E4 Guides, News, & Discussion] KyleBryant:
Disregard
[Moto E4 Guides, News, & Discussion] adamjeeps:
No, have not messed with it any more since then. The phone was free so not too worried about it.
[Moto E4 Guides, News, & Discussion] madbat99:
[MENTION=4117181]KyleBryant[/MENTION] worked great. Thanks bro.
[Moto E4 Guides, News, & Discussion] KyleBryant:
No problem man, enjoy.
[Moto E4 Guides, News, & Discussion] madbat99:
Got root, but I have to figure out why magisk modules won't install. A couple go through without errors but aren't installed, and some error out.
[Moto E4 Guides, News, & Discussion] KyleBryant:
Most if them you have to install through TWRP
[Moto E4 Guides, News, & Discussion] madbat99:
Cool, thanks. Just started playing with it this morning. I can't activate until I know I can make the hotspot work. Had to cut out my home internet (money troubles), and my phone is my internet for now.

I am really digging this phone.
[Moto E4 Guides, News, & Discussion] KyleBryant:
Yeah I feel like this might be the best $50 phone ever made
[Moto E4 Guides, News, & Discussion] madbat99:
[MENTION=4117181]KyleBryant[/MENTION] Hey bro, I'm rooting my wife's now. If I'm rooting with magisk, do I still need the no verity zip or does magisk patch that? just curious.
[Moto E4 Guides, News, & Discussion] KyleBryant:
I'd still do it just as a precaution, magisk does have a noverity built in but i always flashed it anyway.