yashsingh1/xdaforums huggingface dataset:
[Essential Phone Guides, News, & Discussion] Thebear j koss:
Boot img should be inside the zip. Flash the zip using stock recovery or using adb. Use magisk 16.4 or 16.7 to create patched boot img. Flash patched boot img using twrp.

Sent from my Essential Phone using Thebear Blue XDA Labs
[Essential Phone Guides, News, & Discussion] surya17:
Is busybox working after 9.0 update? It's not working for me!
[Essential Phone Guides, News, & Discussion] gwizerd:
Just wondering what version of magisk you used. I used 16.7 and while phone is rooted l can't install any modules
[Essential Phone Guides, News, & Discussion] guliver365:
I found this link in the elemental thread

https://transfer.sh/YVFdi/Magisk-v16.7-1674-.zip

Working perfectly
[Essential Phone Guides, News, & Discussion] articoceanic:
how do i transfer the stock boot image to the phone to install via twrp?

i can't seem to do it. as stuck on boot loop. so can't transfer it via pc to usb.

and can't seem to sideload it either using fastboot and adb.

is there a command for it?

---------- Post added at 03:30 PM ---------- Previous post was at 03:27 PM ----------

just realised the stock boot image is the 20mb file linked at beginning of thread and not the 1.2gb file i downloaded.

how do i transfer it and magisk to the phone to install via twrp?

since i can't use the pc to access the usb to drag and drop the file. and sideload doesn't seem to be working. keeps giving errors zip. not recognised etc.
[Essential Phone Guides, News, & Discussion] rignfool:
I feel like the answer is written somewhere... Like maybe post 1...

Just in case...

Boot to TWRP... Make sure adb is running... Plug in phone...

adb push (path on PC to boot.img) /sdcard/boot.img
[Essential Phone Guides, News, & Discussion] articoceanic:
after a lot of trial and error solution i need is a way to transfer magisk and stock boot image to my phone.

i can enter twrp, so if i can somehow get those images into the phone, i think i can continue with rooting and it should fix it.

but i don't know how to transfer the files over?

sideload keeps giving error as i think it's trying to install them.

---------- Post added at 04:29 PM ---------- Previous post was at 04:27 PM ----------

I must be doing something wrong as keeps giving me error messages. in twrp adb doesn't recognise the phone as a connected device so can't transfer it. or a whole bunch of adb cmd command list comes up.

do i need to be in some setting in twrp to push the file over?

:) doh moment.

I Forgot a space. that's why it kept failing the push.

---------- Post added at 04:43 PM ---------- Previous post was at 04:29 PM ----------

looks like it still didn't work. still stuck in boot screen.

:(

installed twrp.

installed stockboot.img through twrp install image option

installed magisk.zip through twrp install zip option

rebooted phone. stuck on boot screen.

magisk installation gives error in twrp

Failed to mount '/system' (Device or resource busy)

Otherwise everything goes according to instructions on page 1.
[Essential Phone Guides, News, & Discussion] jamiejames:
Are you flashing the right boot.img? Are you flashing it to the boot partition? Failed to mount is normal. Sometimes takes a couple of reboots to achieve root
[Essential Phone Guides, News, & Discussion] guliver365:
If I were you I would do it all over again go in the other thread rom kernel go to stock dump download the original pie not the OTA unzip it in your fast boot folder on your PC find the file flash allwipe click on it make sure USB debugging logi in AndroidI on, and you are done for the first part

From this,start your phone now you can download directly the boot image and magisk into the essential and root it after side loading twrp
[Essential Phone Guides, News, & Discussion] surya17:
I'm facing the same issue!
[Essential Phone Guides, News, & Discussion] RandomPooka:
I've had nothing but trouble trying to flash modules via TWRP, but installing them in the Magisk Manager app has worked fine
[Essential Phone Guides, News, & Discussion] gwizerd:
Working great now. Just flashed magisk 16.0 then updated back to 16.7. the only hickup happens when i try to flash xposed. Since our version isn't available yet it fails. Once i reboot the phone all other working modules flash just fine?
[Essential Phone Guides, News, & Discussion] Thebear j koss:
Need to patch stock boot.img using magisk manager. Flash the patched boot img in twrp then flash magisk.
[Essential Phone Guides, News, & Discussion] gwizerd:
I just flashed the patched boot img with twrp and rebooted. No need to flash magisk as the manager will have already placed it in the boot.img.

You can download the boot image from the xda developers thread on rooting the essential phone?

---------- Post added 12th August 2018 at 12:02 AM ---------- Previous post was 11th August 2018 at 11:59 PM ----------

If your stuck on boot loop try data reset. Its no fun but it worked great for me. Google should recover most of your aps and settings[COLOR="Silver
[Essential Phone Guides, News, & Discussion] articoceanic:
nothing worked until i stumbled across this post

xdaforums.com/essential-phone/how-to/to-essential-phone-owners-recently-t3818132

fastboot flashing unlock_critical

it said to run the above command to avoid bricking the phone. so i thought i would run it in fastboot just in case i messed up installing the rom somewhere along the line. bootloader was already unlocked, but this seems to be an extra level of unlocking.

and lo and behold the phone booted up fine without me having to do anything.

but wifi was not working. and for some reason phone now says it is in 7.1.1 android even tho i updated it to android 9.0 using ota.

so booted into fastboot again, installed twrp, installed stock boot image, installed magisk 16.7.

my wifi still doesn't work and the phone keeps saying it is 7.1.1. NM164C

is the stock boot image linked here under pie the wrong version?

which stock boot image should i be using,as i was on andorid 9.0 when i tried rooting it. but it didn't work. and now it is saying i am on anrdroid 7.1.1. even tho i never downgraded it. camera app not working and everything keeps crashing.

i can't even tell which androind i am on now????
[Essential Phone Guides, News, & Discussion] articoceanic:
i tried installing android ota 9.0 from essentail website 1.25gb file. Using twrp.

but it keeps giving me error message saying

invalid zipe file fomat

error installing zip file '/sdcard/ph1-imagesppr1.180610.091.zip'

unable to find partition for path '/cache'

any idea how i can re-install stock rom 9.0?

hmm. weirldy twrp seems to be permantly installed on my phone in recovery mode. i can enter it whenever i go into fastboot and recovery. without having to flash into it. edit finally dissapeard aftertrying to flash "patched stock image nmj32f" as someone said that would fix wifi. didn't work.

any ideas on how i can isntall andriod 9.0 and restart this whole root process?
[Essential Phone Guides, News, & Discussion] spotmark:
You need to download the OTA zip not the Fastboot zip.
[Essential Phone Guides, News, & Discussion] articoceanic:
thought i did. but maybe i was using the fastboot one without realising. i'll try downloading the ota one now and hopefully that will work.

yeah you are right. dumbo me thought i had downloaded the ota one, but it was the fastboot version. downloading the ota one now. fingers crossed.
[Essential Phone Guides, News, & Discussion] spotmark:
That one should flash fine with TWRP.
[Essential Phone Guides, News, & Discussion] articoceanic:
:good:AWESOME. Thanks i never would have noticed i had downloaded the fastboot version and not OTA version. Managed to get it back to 9.0.

Hopefully root has remained. If not, going to go through the root process again. But hopefully this time time with no problems. :fingers-crossed:
[Essential Phone Guides, News, & Discussion] droidian5:
[MENTION=2371173]spotmark[/MENTION] are you rooted on p?
[Essential Phone Guides, News, & Discussion] spotmark:
Data should remain but you're going to have to re-root.

Yes.
[Essential Phone Guides, News, & Discussion] articoceanic:
wooo hooo.

was a new phone, bought on amazon prime deal. so had no data. so don't mind losing it.

yeah, you were right. had to reroot it. but now i have root. Feels good.

what's the best adblockers around at moment?

I used to use xposed installer on my old phone, adway, adblock plus, and youtube adaway. But the magisk thread says xposed not compatible with magisk. Not even sure what magisk is other than rooting software. I just want root to get minimise soooooooo many ads everywhere.
[Essential Phone Guides, News, & Discussion] spotmark:
I use Adaway. Seems to work fine.
[Essential Phone Guides, News, & Discussion] droidian5:
Yes AdAway is why I want to root my Pie! Did you use the method listed in the OP? What version of Magisk? Which ADB did you use?

Reason I'm asking is the last time I tried it scared the crap out of me when it was stuck in a bootloop, like many others have experienced. Any tips would be greatly appreciated.

- both boot and critical are unlocked

- I have a good USB 2.0 A to C cord

- I have ADB from aer0der0 zips
[Essential Phone Guides, News, & Discussion] droidian5:
This looks so easy. But yet it is so hard. I am stuck at a bootloop and no recovery, says no command wen attempting

Used the essential adb

used latest p stock image

tried ex

tried inmacd magix

I was on stock P,

Now what do I do?

---------- Post added at 09:13 PM ---------- Previous post was at 08:51 PM ----------

I was able to ADB TWRP and then just flashed image and have a working phone!, but no root. At least all is not lost and I am learning!
[Essential Phone Guides, News, & Discussion] sash11:
I'm having an issue rooting the PH-1 with Pie on it. In order to get calls recorded phone must be rooted now. Boot loader is unlocked and critical is unlocked as well. I flash twrp and boot into recovery, but phone goes into Android recovery with robot and exclamation mark. How do I make it boot into twrp?

When I flashed twrp I see one error message:

fastboot flash boot twrp.img

Sending 'boot__a' (45048 KB) OKAY [ 1.105s]

Writing 'boot__a' FAILED (remote: No such partition.)

Finished. Total time: 1.121s
[Essential Phone Guides, News, & Discussion] lynnux:
Try 'fastboot flash boot_a twrp.img'. I've had the same problem, this solved it. This sends and writes it to the 'a' partition, which is the active partition for your phone at the moment.
[Essential Phone Guides, News, & Discussion] RavinDal:
Install or sideload

I tried and followed the steps in the guide but after installing the magisk.zip in TWRP I received a "Failed to mount /system" error which resulted in a bootloop. Flashed stock images and now Im back to square one. Should I still try installing it or sideload via adb in TWRP?
[Essential Phone Guides, News, & Discussion] sash11:
I had the same message after rooting my phone, but it booted fine and it was rooted. But I have another issue now - safety net is not passing. I see a message The response is invalid.

Google pay and Netflix work, but RD Client and Outlook do not.
[Essential Phone Guides, News, & Discussion] droidian5:
I'm following the Magisk thread and lots of folks are reporting issues. Sounds like Google has changed some things again. It's a game of cat and mouse!
[Essential Phone Guides, News, & Discussion] droidian5:
[MENTION=4550123]bmg1001[/MENTION]

I Tried Magisk 16.4, failed with error:1, failed to mount "/system" (device or resource busy). Looks like Magisk Manager installed, but not root. Magisk Manager is asking if I want to install Magisk-v16.0 (1600).zip now. It could be that I had installed Magisk Manager yesterday. I will try it again after uninstalling Magisk Manager..........

Same error 2nd attempt, and it did not install Magisk Manager, so I must have installed that last night. Any thoughts? Can we install Magisk from within Magisk Manager?
[Essential Phone Guides, News, & Discussion] aer0zer0:
Mount system in twrp read only prior to flashing magisk
[Essential Phone Guides, News, & Discussion] droidian5:
Tried that by choosing Mount in TWRP and selecting System, making sure the check box is there for mounting read only. Now it just gives error 2, failure to install magisk zip, tried 16.4, 16.7, and ianmacd latest all giving the same error? Not sure what I am doing different/wrong at this point. Any other tips?
[Essential Phone Guides, News, & Discussion] aer0zer0:
That's a new one. Something don't seem right. Are you doing anything else, or just boot.img--->magisk
[Essential Phone Guides, News, & Discussion] droidian5:
Boot.img then magisk nothing else

I tried to install EX the other day. Do you think that would cause any problems? My assumption is that flashing the image sets it back to stock kernal. Is that correct?
[Essential Phone Guides, News, & Discussion] aer0zer0:
That's my understanding
[Essential Phone Guides, News, & Discussion] Thebear j koss:
Need to patch boot img using magisk manager. Flash patched boot img using twrp. No need to flash magisk.

Sent from my Essential Phone using Thebear Blue XDA Labs
[Essential Phone Guides, News, & Discussion] sash11:
I patched boot image through Magisk app, reset the phone and flushed patched boot through fastboot without going into twrp. After phone booted, Magisk app wanted to update itself. Root is present and working. But safety net gives an error still. I guess it is broken in Pie.
[Essential Phone Guides, News, & Discussion] aer0zer0:
Safetynet is having new api issues per toojohnwu
[Essential Phone Guides, News, & Discussion] gazorp:
I ran the procedure without issue, however superSU says binary is occupied. Also, busybox and titanium cannot request root., Seems like the instructions are not working with pie. Any tips?
[Essential Phone Guides, News, & Discussion] droidstyle:
The instructions work fine with PIE.
[Essential Phone Guides, News, & Discussion] NanoDice:
I just followed this guide twice today.

The first time, I was able to get into TWRP but had some issues people were facing: Failed to mount system when installing magisk, then it entered into a bootloop.

I had to wipe/factory reset my phone.

I then flashed twrp again, but this time, entering into recovery is showing "no command". If I hold down the power button and volume up, it goes into Android Recovery instead of TWRP.

I went back into bootloader and flashed twrp again, then ran recovery. This time, it correctly goes into TWRP. I didn't do anything in TWRP, then rebooted system. This caused it to boot loop.

How do I proceed?
[Essential Phone Guides, News, & Discussion] droidian5:
Reflash twrp, then just flash boot image and you should be good to go
[Essential Phone Guides, News, & Discussion] NanoDice:
Can you please tell me if this is correct:

In bootloader:

1) fastboot flash boot_b twrp-mata_11.img

2) Went into TWRP and flashed boot.img

3) Flashed Magiskv16.0.zip

4) Reboot

Still no Magisk Manager....
[Essential Phone Guides, News, & Discussion] sash11:
That is the order. However, after flashing this way Magisk manager was missing for me 2. I had to manually install apk.
[Essential Phone Guides, News, & Discussion] droidstyle:
You can not flash the boot.img to system in twrp. It has to be flashed to boot since it's a boot.img. then flash magisk.zip and reboot.
[Essential Phone Guides, News, & Discussion] droidian5:
Yep that is correct, but I too am having problems rooting P. Flashing Magisk, (tried various versions), ends up failing. Are you getting any red letter errors after flashing Magisk in TWRP?

I also manually installed Magisk, tried to patch the boot image, but that fails too. I am going to either try and flash LineageOS or BTS both partitions with P and try again. Researching.............

I'll let you know how it goes.
[Essential Phone Guides, News, & Discussion] droidian5:
SUCCESS!!

I was having problems rooting P, (which I took the OTA from Essential to get Pie). This is what I did to fix it:

- Went BTS using aer0zer0's latest for Pie, using wiping all script. File found here - https://xdaforums.com/essential-phone/development/stock-7-1-1-nmj20d-t3701681

-Followed the OP instructions using Pie boot image and Magisk 16.4

-PROFIT!

Thanks [MENTION=5447216]aer0zer0[/MENTION], [MENTION=4550123]bmg1001[/MENTION], [MENTION=2385005]invisiblek[/MENTION] for your good stuff!

---------- Post added at 09:00 PM ---------- Previous post was at 09:00 PM ----------

SUCCESS!!

I was having problems rooting P, (which I took the OTA from Essential to get Pie). This is what I did to fix it:

- Went BTS using aer0zer0's latest for Pie, using wiping all script. File found here - https://xdaforums.com/essential-phone/development/stock-7-1-1-nmj20d-t3701681

-Followed the OP instructions using Pie boot image and Magisk 16.4

-PROFIT!

Thanks [MENTION=5447216]aer0zer0[/MENTION], [MENTION=4550123]bmg1001[/MENTION], [MENTION=2385005]invisiblek[/MENTION] for your good stuff!
[Essential Phone Guides, News, & Discussion] aer0zer0:
Yay me!!!!!!

You will probably want at least the 16.7 beta at some point. I'm using the ianmacd nighties. Waiting for the safety net fix.

But good job!!!!
[Essential Phone Guides, News, & Discussion] gazorp:
If you read the comments, they do not. The instructions are both incomplete and outdated.
[Essential Phone Guides, News, & Discussion] droidian5:
Your script rocks! I think I will stick with P for a while. Thanks also for the tip on ianmacd's Magisk beta's.

---------- Post added at 09:33 PM ---------- Previous post was at 09:22 PM ----------

Yes they are not working for some, but that does not mean they are incomplete and outdated! They worked fine for me after I used aer0zer0's BTS. Once I was baseline to stock it worked just like it's supposed too.

Root and SafetyNet are a moving target! That will never change!

This is all a work in progress and sometimes things don't work as expected. It's frustrating when they don't work like they are supposed to, but with a little perseverance and patience, trial and error, things work out.

Thanks again [MENTION=5447216]aer0zer0[/MENTION], [MENTION=4550123]bmg1001[/MENTION], [MENTION=2385005]invisiblek[/MENTION] for your good stuff!
[Essential Phone Guides, News, & Discussion] RavinDal:
Hey man, could you list down a detailed guide of how you managed to root on Pie? I'm still new so I'd truly appreciate it if you could help. I failed to do so once and got stuck in a bootloop after magisk said Failed to mount /system so I just went back to stock and waited to see if anyone else got it right. Much thanks in advance!
[Essential Phone Guides, News, & Discussion] droidian5:
Sure, but it won't be tonight. But your assignment in the meantime is to check out aer0zer0's OP here: https://xdaforums.com/essential-phone/development/stock-7-1-1-nmj20d-t3701681

Read this again and again and again!: https://mata.readthedocs.io/en/latest/

Get ready to go BTS, (back to stock), by backing up your stuff. You may be able to get by without wiping all but no guarantees.
[Essential Phone Guides, News, & Discussion] RavinDal:
Alright, thank you once again for the help. I'll read into these asap
[Essential Phone Guides, News, & Discussion] DoR3M3:
[MENTION=4550123]bmg1001[/MENTION] for #4 I have to flash TWRP as;

fastboot flash boot_b twrp-mata_11.img

If I don't and flash by the the instructions I'll get this back at the term;

fastboot flash boot twrp-mata_11.img

Sending 'boot__b' (45048 KB) OKAY [ 1.361s]

Writing 'boot__b' FAILED (remote: No such partition.)
[Essential Phone Guides, News, & Discussion] sash11:
I had the same problem. After that phone went into boot loop and eventually came to a screen asking me to factory reset. I did that and phone booted to the other slot _a with Oreo 8.1.

Then it offered to update to Pie. I did that. On the second attempt to flash twrp it went ok. While in twrp when flashing stock boot.img, it has to be flashed not into system, but into boot partition.

After rooting this way, I tried yet another method - patching stock boot.img through Magisk application. The benefit of doing it this way is that I don't have to flash twrp at all. I just flash patched boot.img in fastboot. After reboot phone is rooted. Then all I have to do is open Magisk and let it update itself to the latest version.
[Essential Phone Guides, News, & Discussion] aer0zer0:
You have a double underscore. You will need to specify boot_b in your command.....thanks google, and your new adb/fastboot binaries.

Stick with the adb/fastboot binaries essential provides , unless your using Linux, then remember to specify every partition with _a or _b
[Essential Phone Guides, News, & Discussion] NanoDice:
Mine eventually started working.

I did the following:

1) flashed TWRP in bootloader

2) go straight to recovery (TWRP)

3) flash boot.img

4) flash Magiskv16.7

At this point, it gave an error saying that system cannot be mounted.

5) I rebooted system, but DID NOT install TWRP app.

6) Crossed my fingers, and it rebooted!

I checked my apps again and saw again that Magisk Manager was not loaded. So I went to https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445 and manually downloaded the Manager apk and installed it. I went into the manager after installing and saw that it successfully detected the flashed 16.7 version, however the Latest Version on top says Invalid Update Channel. If you see that, just drag down on your screen so that it refreshes. It should say 16.0.

If you tap Safety Net Check and it comes back invalid, DO NOT WORRY. Upon further research, I found that it's because Magisk is using an older api, but it WILL still work fine and your phone is STILL rooted.

For those who are having problems, please refer to this guide on reddit: https://www.reddit.com/r/essentialp...rade_to_android_p_beta_2_running_magisk_v164/

instead of the one on the front page.

If you haven't unlocked yet, READ THIS: https://xdaforums.com/essential-phone/how-to/to-essential-phone-owners-recently-t3818132
[Essential Phone Guides, News, & Discussion] droidian5:
Weird how this is working out so differently for each of us. There is no consistentcy with the errors/problems/issues/resolutions! Glad it finally worked out!
[Essential Phone Guides, News, & Discussion] DoR3M3:
I'm using the Android Platform Tools adb/fastboot in Linux... ;)

So, I realized using Linux as you pointed out, need to specifiy the partitions.

So you are using the Magisk Nightlies, these are better to use?

https://github.com/ianmacd/MagiskBuilds

And what's this 'wiping script' you mention?

If I'm not using TWRP and flashing from fastboot, what else is there besides fastboot -w? So that data/cache/system are wiped?