yashsingh1/xdaforums huggingface dataset:
[Essential Phone Guides, News, & Discussion] avd:
I had the same exact problem.

It was pretty due to a bad download of TWRP.

Install stock image.

Boot into system, let system stabilize

boot into bootloader

Flash twrp

Use buttons to get into recovery

Use TWRP to flash boot image

Then rey3

Then magisk

Then use TWRP to boot into system.

I did rename twrp-mata_11.img to twrp.img but that should not make a difference.
[Essential Phone Guides, News, & Discussion] bmg1001:
Seems like the newest Nougat builds (NMJ88C & NMK24B) and TWRP aren't playing nice together for whatever reason. While you can still root these builds, you just won't have TWRP once the process is done. It's basically the same process as Oreo.

1. Flash latest TWRP (if for some reason you run into any errors, you can try TWRP v7)

2. If on NMJ88C, install the stock boot image for NMJ88C. If on NMK24B, install the stock boot image for NMK24B.

3. Install Magisk

4. Reboot!
[Essential Phone Guides, News, & Discussion] sasquatch23:
Do you mean flash TWRP for the december build? I can't seem to find the v7 as well. Could you possibly link me to both.
[Essential Phone Guides, News, & Discussion] bmg1001:
You can find all normal TWRP builds here: https://www.invisiblek.org/mata/
[Essential Phone Guides, News, & Discussion] johdost:
when flashing stock boot image, i delete TWRP so i cant boot into it and install magisk.

when not flashing stock boot image i can boot into twrp and install magisk. this successfully roots my device, but unfortunately wifi is broken afterwards (tried this 4 times).

any advice pls?
[Essential Phone Guides, News, & Discussion] aer0zer0:
Install the stock boot.img IN twrp. Then install magisk IN twrp. You can do it in real time in twrp, even though you are overwriting it
[Essential Phone Guides, News, & Discussion] cz829x18:
No problem, I'm not sure how long it took. I typed in the commands and that message came up, I just waited about 5 minutes or so and pulled up the command window and noticed it finished flashing the system image.
[Essential Phone Guides, News, & Discussion] drocny87:
it took a few min but it did flash, now i am installing the OTA and gonna reroot. thanks
[Essential Phone Guides, News, & Discussion] gokart2:
Has anyone tried sideloading the latest superSU zip to achieve root?
[Essential Phone Guides, News, & Discussion] aer0zer0:
Its a non-critical error related to fastboot version being "not right". Absolutely not a big deal.
[Essential Phone Guides, News, & Discussion] cz829x18:
It worked, that's all that matters.
[Essential Phone Guides, News, & Discussion] YourDadsHusband:
This is my first time rooting any phone and I'm getting an error that my google-fu can't conquer. Every time I attempt to flash TWRP i get the following error

:

FAILED (remote: Requested download size is more than max allowed)

can anybody point me in the right direction with this?
[Essential Phone Guides, News, & Discussion] tribulationwolf:
quick question, I'm rooted on 20D and want to update to 32F. Do I have to revert to stock, take the OTA, and then flash the rooted 32F? Or can I just flash the rooted 32F over the rooted 20D by running "fastboot flash boot boot_root_nmj32f.img"? while not messing up my phone.
[Essential Phone Guides, News, & Discussion] prgopala:
Nope, it does not wipe the data. If you want to wipe data then the command is fastboot -w and that will erase your userdata partition.

---------- Post added at 12:33 PM ---------- Previous post was at 12:27 PM ----------

I had the same question last night since i was rooted on 20D and wanted to upgrade to 32F without losing data. I did the below

- Once you are on 20D and rooted just flash the stock images for 32F from here https://xdaforums.com/essential-phone/development/stock-7-1-1-nmj20d-t3701681

- This will essentially update your system to 32F without any loss of data. But you will lose root since it will remove magisk (since stock system is being flashed) and also the boot will be reverted to stock 32F.

- Next you follow the same steps outlined in the OP of this thread to root again. In this case you will use the modified boot image from 32F instead at the last step.

Hope this helps.
[Essential Phone Guides, News, & Discussion] tribulationwolf:
so i will have to reinstall twrp, magisk, and flash the rooted 32f after flashing the stock 32f to upgrade with root while keeping all data?
[Essential Phone Guides, News, & Discussion] prgopala:
Yes thats right
[Essential Phone Guides, News, & Discussion] tribulationwolf:
Tell me if i did something wrong. What i did was extract the zip into the adb and fastboot directory then ran the flash-all bat. Everything seemed to go successfully but now my phone is staying on the boot animation screen.
[Essential Phone Guides, News, & Discussion] ad78:
My TWRP is not responding
[Essential Phone Guides, News, & Discussion] prgopala:
Did you root after running flash-all.bat?

The same steps that you did for rooting 20D needs to be done for 32F
[Essential Phone Guides, News, & Discussion] hoopsdavis:
My phone isn't recognized once I get into bootloader mode. Any help? I was able to unlock bootloader but device isn't recognized now.
[Essential Phone Guides, News, & Discussion] AxxPyrtlexx20:
Touch screen doesn't work in twrp right now, follow the instructions above and you'll have it working
[Essential Phone Guides, News, & Discussion] tribulationwolf:
Yes, I did flash the 32f rooted img after the flash to stock. It's booting up now and everything seems to be working except my GPS. No matter what app I try with my GPS does not find my current location but buts me where i was when I used it last before upgrade and reroot which is 2 hours away. HELP
[Essential Phone Guides, News, & Discussion] mackentosh:
You need "minimal adb fastboot"

You can get minimal adb fastboot here

https://xdaforums.com/showthread.php?t=2317790

And here's a tutorial on how to use it

[youtube]_DNWCqSAAVM[/youtube]

I was stuck too, I couldn't get my computer to see my phone in fastboot mode until I watched this video
[Essential Phone Guides, News, & Discussion] maxsavchenko:
Thank you, bmg1001 for your work!

Is there any way to make TWPR persistent?
[Essential Phone Guides, News, & Discussion] charlie.s:
Thanks to the excellent guide, I successfully rooted with Magisk under both NMJ20D and NMJ32F. In both cases, when I attempt to reboot to recovery, I get the "no command" error. Re-flashing the modified TWRP , I can get TWRP running, but of course I lose root.

Any ideas?

thanks!
[Essential Phone Guides, News, & Discussion] mackentosh:
I get the same thing now
[Essential Phone Guides, News, & Discussion] bmg1001:
You have to install the stock boot image from within TWRP. You'll find an option called "Install images" or something along those lines.
[Essential Phone Guides, News, & Discussion] socali:
First, you need to flash TWRP v11 from fastboot.

Then within TWRP you need to flash stock boot and immediately after (do not reboot yet) flash magisk.

Only then reboot - and now you'll have rooted boot with wifi working.

No. You will not longer have TWRP since recovery is now bundled inside the boot image.
[Essential Phone Guides, News, & Discussion] kakabobo:
so currently there is no way to make use of TWRP to perform backup ?
[Essential Phone Guides, News, & Discussion] avd:
I guess you can flash twrp and make a back up. Reflash boot and magisk to go back, or, after restoring image.
[Essential Phone Guides, News, & Discussion] surface13:
That would be my understanding. Flash the original boot.img of your current build.

Run the update for the new build.

Grab the new builds boot.img

Have magisk patch that boot.img

Flash the new builds patched-boot.img that magisk made
[Essential Phone Guides, News, & Discussion] ali.sbi:
running Oreo beta 2 and i'm be able to flash and boot to TWRP,after that i installed stock image file that is provided in OP and TWRP ask me to do it as boot or system file?did it as system file and it was successful but after that when i flashed Magisk it gives me error 1 in TWRP 'cannot mount ....' and after i reboot to system my phone stuck at essential logo so I should side load oreo update to bring me back to the system , any suggestions for achiveing root on oreo beta 2?tnx
[Essential Phone Guides, News, & Discussion] bmg1001:
When installing the boot image in TWRP, you're supposed to flash it to the "boot" partition, not "system." ;)
[Essential Phone Guides, News, & Discussion] Airwolf79:
I'm currently running latest version of Resurrection Remix (12/9). Which boot.img do I need to patch in order to root, the stock one, or the boot.img from the Rom? I assume I can just patch the stock one from 88C since I am running the 88C firmware, correct?
[Essential Phone Guides, News, & Discussion] aer0zer0:
I can't believe that happened
[Essential Phone Guides, News, & Discussion] bmg1001:
You'd need the boot image from your ROM, I doubt the 88C boot image would work.
[Essential Phone Guides, News, & Discussion] Airwolf79:
Thanks for answering. Could u point me in the right direction on how to get it? I don't even know who's maintaining RR since there's no thread. Is it Invisiblek?
[Essential Phone Guides, News, & Discussion] JoshuaUB78:
Where is the new builds boot.img stored and how, specifically, do you get magisk to patch it? I'm running magisk manager in core mode, is that a problem?
[Essential Phone Guides, News, & Discussion] bmg1001:
Just added a root method for everyone on any custom ROM. Should work for RR too. It is meant for advanced users, but if you read it through and you think you can do it, go ahead and try.
[Essential Phone Guides, News, & Discussion] Tech_Savvy:
sir I'm on latest nougat from sprint....can i flash your twrp builds with matching build numbers or is there a difference from the unlocked varient to the sprint varient
[Essential Phone Guides, News, & Discussion] bmg1001:
No difference, just make sure to use the correct image for your current build.
[Essential Phone Guides, News, & Discussion] Airwolf79:
Thank you so much! This worked flawlessly. In the future, if I want to reflash the same Rom, can I just patch the boot.img that I dumped with Magisk?
[Essential Phone Guides, News, & Discussion] bmg1001:
Yeah, patching it with the Magisk Manager should work fine.
[Essential Phone Guides, News, & Discussion] ali.sbi:
Explaine why u can not belive it...

I did it first as boot but i face error 1 when flashing magisk so i repeat the guide as system file and no luck.

And one more question should i flash hacked magisk that is shared in RR section?or just latest vertion in Magisk website?

There is no way to have TWRP remaining on device after this ?
[Essential Phone Guides, News, & Discussion] mobileman88:
It's still being resolved. If you flash rey kernel, you can still have twrp. But touch doesn't work
[Essential Phone Guides, News, & Discussion] ali.sbi:
RR with Root access!

i saw your method and i think i can not handle it it's out of my knowlage. please give me an instruction steps for flashing RR and having root access?i used to flashing and rooting many devices but essential is completly diffrent one.:(:(:(:(:(
[Essential Phone Guides, News, & Discussion] aer0zer0:
Boot.img is only for boot. Hence the name. Never wanna flash boot to system or system to boot.

The easiest way is the custom rom method, so you have a copy of your "clean" boot.img. then everything is easy.

The error 1 is from the twrp boot.img (recovery is built into boot on this device). You need a clean boot.img prior to flashing magisk.

You can always flash stock, boot.img is in the back to stock zip, no commands required. Or if someone has a RR boot.img clean, or pre-magisked, that'll work as well.

Good luck
[Essential Phone Guides, News, & Discussion] ali.sbi:
thank you i achived root on oreo beta 2. now i wanna flash RR over oreo beta 2 would be any problem ? if no whats the steps for flashing RR and having root ?flashing twrp reboot to recovery fter that factory reset and then flashing RR?what about root?:eek::eek:
[Essential Phone Guides, News, & Discussion] aer0zer0:
Can't flash over top, need nougat firmware.
[Essential Phone Guides, News, & Discussion] ali.sbi:
can not downgrade?you mean first need to flash nought frimware and then flash RR over it?how to find 7.1 frimware?
[Essential Phone Guides, News, & Discussion] aer0zer0:
https://xdaforums.com/essential-phone/development/stock-7-1-1-nmj20d-t3701681
[Essential Phone Guides, News, & Discussion] surface13:
I get the boot.img file from the full dump zips.

You can find them in this post

I extract the boot image, place it in my google drive

I run magisk and it asks, "Do you want to install Magisk-v##.zip now? (assuming you're not rooted already) I hit install, then Patch Boot Image File, then direct it to the file it should be patching, which I previously placed in my google drive. (It should be patching the boot.img of the build you want rooted which in turn should also be the build you're running. Do not patch Oreo Beta 2 boot.img and flash it to a nougat build)

Hope this helps, if I'm not clear, please let me know.

Thanks,
[Essential Phone Guides, News, & Discussion] takeclear:
Tying to follow this guide but I'm running into issues with this damn phone. Once i'm in the Bootloader and I try to run fastboot devices nothing happens. If I try flashing TWRP i just get a <waiting on any device> message. All the drivers are updated, and I've tried it on 3 different computers, one being a fresh install of adb/fastboot. My HTC 10 is recognized perfectly fine when i run fastboot commands.

Running Oreo Beta 2 right now.
[Essential Phone Guides, News, & Discussion] aer0zer0:
Did you install essential drivers from website
[Essential Phone Guides, News, & Discussion] spotmark:
[MENTION=4550123]bmg1001[/MENTION] Thanks for the write up on how to dump the boot image for root. As I've said before, I'm no developer, but I know how to follow directions. I just followed your instructions, just to give it a try, and it worked perfectly. The more you know... :good:
[Essential Phone Guides, News, & Discussion] takeclear:
Yep, directly from their website. Device manager shows the fastboot driver when the phones in the bootloader.
[Essential Phone Guides, News, & Discussion] Ascertion:
I'm going to give this a try on Lineage 15.1. I am confused why the traditional method of flashing Magisk after ROM install doesn't work though. It's weirdly complicated.

Thanks
[Essential Phone Guides, News, & Discussion] aer0zer0:
if using 15.2, boot once after flashing with no magisk, once you have booted, twrp and magisk, itll work
[Essential Phone Guides, News, & Discussion] avd:
Are you using Linux? Try sudo fastboot. Assuming you are in bootloader.
[Essential Phone Guides, News, & Discussion] takeclear:
Just Windows. Tried it on 7 & 10. This phone is the only one not working with Fastboot. My 10 works, brothers 6p, parents 5x's. This is getting annoying as I want root.
[Essential Phone Guides, News, & Discussion] Serial Kazama:
Try fastboot -i 0x2e17 devices, any output?

Gesendet von meinem Pixel 2 XL mit Tapatalk
[Essential Phone Guides, News, & Discussion] STH23:
I want to confirm before buying it. Can this root any Essential Phone? There is 2 variant right? Sprint and Unlocked. Thanks in advanced.
[Essential Phone Guides, News, & Discussion] Serial Kazama:
Root goes on any device as far as I know. But on sprint you got Net Lock wich only Sprint can unlock.

Gesendet von meinem Pixel 2 XL mit Tapatalk
[Essential Phone Guides, News, & Discussion] STH23:
Thanks for the reply. If unlocked version is rootable ,Im getting one. Thanks again for the reply
[Essential Phone Guides, News, & Discussion] takeclear:
Running that brings up the Fastboot device list and shows my device in the cmd line. Now how do I get fastboot commands to actually work. Lol
[Essential Phone Guides, News, & Discussion] Serial Kazama:
The quickest and easy way you Typ -i 0x2e17 after every fastboot. Like Fastboot -i 0x2e17 devices or fastboot -i 0x2e17 flashing unlock. The perfekt way, update your SDK Platform-Tools for Windows. Latest Vision is 27.0.0.1

https://developer.android.com/studio/releases/platform-tools.html

Gesendet von meinem Pixel 2 XL mit Tapatalk
[Essential Phone Guides, News, & Discussion] tech_head:
Both versions have an unlocked bootloader.

I have the Sprint variant and I'm running Oreo Beta 2, rooted with Magisk.
[Essential Phone Guides, News, & Discussion] takeclear:
Can't believe I didn't even think to check for an SDK update. IT ended up working. Just weird how my brothers 6P and parents 5x's are on Oreo and were recognized just fine.
[Essential Phone Guides, News, & Discussion] avd:
Yes because that funny code is for the essential phones, so you need a updated config file that has the phone manufacturer code that's only been out for 4 or 5 months.
[Essential Phone Guides, News, & Discussion] Ascertion:
So reflash ROM and then Magisk after booting once? Or do I need to extract boot.img first?
[Essential Phone Guides, News, & Discussion] aer0zer0:
You might also need a haxd version of magisk, checkout the discord group, it's floating there. On stock, like OB2, Magisk 15.2 needs to be installed after initial boot if clean installed
[Essential Phone Guides, News, & Discussion] Airwolf79:
Flash ROM, then boot it. Don't set up password or FP yet. Look for the boot.img in the Lineage thread or discord. Otherwise u will have to extract it using method in OP. Then u can reflash twrp, flash boot img, and then Magisk 15.2 (no need for the haxd version).
[Essential Phone Guides, News, & Discussion] wce2k:
If I do the process as explained, will erase all my apps and configuration?

I have my Ph-1 with Oreo B2 for about two weeks
[Essential Phone Guides, News, & Discussion] Airwolf79:
No, wiping is not necessary. For OB1 or 2, you can just unzip the stock dump (from the back to stock thread in Roms), and copy the boot.img from that folder to ur phone.
[Essential Phone Guides, News, & Discussion] avd:
Unlocking bootloader and/or critical partitions will wipe device
[Essential Phone Guides, News, & Discussion] wce2k:
That's where the wipe will happens, when I unlock the bootloader in order to flash TWRP... correct?
[Essential Phone Guides, News, & Discussion] NaterTots:
Yes.

And you also want to do critical unlock after the bootloader unlock.
[Essential Phone Guides, News, & Discussion] wce2k:
What's that? (critical unlock)
[Essential Phone Guides, News, & Discussion] aer0zer0:
Allows Flashes all partition that are not system and boot
[Essential Phone Guides, News, & Discussion] avd:
The trick is to always leave them unlocked if you are not stock. Even unlocked stock let's you flash anytime we want with no wiping.
[Essential Phone Guides, News, & Discussion] tech_head:
If unlocked and you want to use Android Pay.

Flash TWRP,

Boot into TWRP

Flash stock boot.img

Flash magisk

Reboot the system
[Essential Phone Guides, News, & Discussion] Airwolf79:
Correct. I assumed he was already unlocked. Never assume I guess.
[Essential Phone Guides, News, & Discussion] avd:
Considering there is only one hardware device.

With the practice of Sprint having it's own firmware revision, the rest of the world having another, and being able to sideload Oreo beta unrooted, we have a lot of fragmentation.

At least everyone is using magisk as the rooting solution.

---------- Post added at 02:01 PM ---------- Previous post was at 01:31 PM ----------

Actually the biggest fragmentation is in the aftermarket camera software.
[Essential Phone Guides, News, & Discussion] hallevison:
I successfully got twrp to boot up, but it's asking me for the password. As far as I know I did not set a password on this thing. I did set a PIN for the screen, but that does not work.

Suggestions?
[Essential Phone Guides, News, & Discussion] bmg1001:
What OS/Build/ROM?
[Essential Phone Guides, News, & Discussion] hallevison:
It is stock. I installed all the updates when I first turned on the phone. Build is NMJ88C.
[Essential Phone Guides, News, & Discussion] aamadorj:
As mentioned by another user at this thread or another one related to the PH-1, TWRP keyboard is a little off, so you have to be extra careful when pressing the keys for your PIN.

This was the solution to the issue I was having weeks ago. Good luck.
[Essential Phone Guides, News, & Discussion] hallevison:
I did see that, and I thought I was being careful. But, after your reply I noticed that I could tell what buttons I was pressing and I was missing. All is good now. Thanks.

---------- Post added at 08:57 PM ---------- Previous post was at 08:41 PM ----------

Hi Again,

I was able to install NMJ88C_STOCK.img with no problem. However, when I tried Magisk-v15.2.zip I get the error "Failed to mount '/system' (Invalid argument)".

Suggestions?
[Essential Phone Guides, News, & Discussion] NaterTots:
You followed the OP instructions on how to root?

I'm on the beta and did.

Flash twrp

Flash boot

Flash magisk

Then reboot
[Essential Phone Guides, News, & Discussion] aamadorj:
As other users have reported, it seems this error message won't affect Magisk's installation. If I remember fine, the workaround to avoid this message is to manually mount system partition before running Magisk's ZIP.
[Essential Phone Guides, News, & Discussion] hallevison:
Thanks for your help!

OK. So, I went through the process of going back to the bootloader, reflashed twrp, booted into recovery, manually mounted /system (although I am not sure I did it right), installed the stock os image, and tried to install Magisk's zip. I got the same answer. Now, it will not let me manually mount /system.

Do you think I should reboot to system? What about clearing wiping data?
[Essential Phone Guides, News, & Discussion] avd:
Won't hurt to reboot system. Just make sure OEM unlock is checked.
[Essential Phone Guides, News, & Discussion] hallevison:
Crap - I bricked it! The TWRP says the /system is 0 size. I will try to go back to stock and see if that works

Thanks for you help!
[Essential Phone Guides, News, & Discussion] avd:
Sorry.

It's a bit of pain but keep trying.
[Essential Phone Guides, News, & Discussion] hallevison:
As long as I can get to the bootloader, I will. I have tried to go stock and it did not work. I will have to beg for help on that thread. Thanks!!!
[Essential Phone Guides, News, & Discussion] avd:
Oh btw look what just updated
[Essential Phone Guides, News, & Discussion] hallevison:
Is this right?

Hi Everyone:

I managed to get my phone back from la-la land and want to try to root it again. I have read the last couple of pages of this thread and must admit that I am a bit confused. So, let me list what I think I should do and ask you guys to tell me if I am right.

Current status: Phone is stock. The bootloader bootloader_critical are unlocked.

Downloads: twrp_mata_11.img, NMJ88C-STOCK.img, and Magisk_v15.2.zip.

Put NMJ88C-STOCK.img and Magisk_v1.52.zip on the phone

adb push NMJ88C-STOCK.img /sdcard/
adb push Magisk_v15.2.zip /sdcard/

Boot into bootloader

adb reboot-bootloader

Flash TWRP.

fastboot flash boot twrp_mata_11.img

Boot into recovery

Install NMJ88C-STOCK.img with TWRP. Do not wipe data

Reboot Phone to OS.

Boot into bootloader again

Flash TWRP again

Boot into recovery again

Install Magisk_v15.2.zip with TWRP. Do not wipe data.

Reboot.

This should work, right?
[Essential Phone Guides, News, & Discussion] Immelstorn:
I'm on NMJ88C, trying to flash twrp

>fastboot flash recovery twrp-mata_11.img
target reported max download size of 536870912 bytes
sending 'recovery' (45048 KB)...
OKAY [ 1.057s]
writing 'recovery'...
FAILED (remote: No such partition.)
finished. total time: 1.068s

what am I doing wrong?

UPD: found the answer in the post above - I should flash it into boot, not to recovery as I used to do for Nexus 6P.
[Essential Phone Guides, News, & Discussion] NaterTots:
I could be wrong, but I think you only need to flash the boot.img, then install magisk. You shouldn't need to reboot the system in between.

I followed the OP instructions and had no issues getting root.

---------- Post added at 04:06 PM ---------- Previous post was at 04:04 PM ----------

You should be doing "fastboot flash boot twrp.img"

Those are the instructions in the First Post.