yashsingh1/xdaforums huggingface dataset:
[Essential Phone Guides, News, & Discussion] Immelstorn:
I flashed twrp.img to boot, rebooted to recovery, flashed stock boot via twrp, then I am trying to flash magisk and I get

"Failed to mount /system (Device or resource busy"

and I can't mount it manually - the same error.

Please, help!

UPD: just rebooted phone and Magisk is installed, so this error was not important I guess...
[Essential Phone Guides, News, & Discussion] hallevison:
Well aer0zer0 suggested it:

But I will try it without rebooting.

---------- Post added at 05:38 PM ---------- Previous post was at 05:02 PM ----------

That worked. Thanks for all your help.

For the record, this is what I did:

Original 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 as a boot image using TWRP. Do not wipe data

Install Magisk_v15.2.zip with TWRP. This generated an error, but ignore. Do not wipe data.

Reboot. Do not reinstall TWRP.
[Essential Phone Guides, News, & Discussion] bjs339:
I'm hoping someone can help get me unstuck. When I first unlocked my bootloader, I failed to unlock_critical as well. I went ahead and rooted with Nougat NMJ51B and all was well. Now I went ahead and unlocked_critical, knowing that it would wipe the phone. But when I restarted the system, it never fully booted. Just got stuck on the spinner.

I can still get into recovery and my bootloader is still unlocked, so I'm sure this is fixable. I've tried going back through flashing NMJ51B with TWRP to the boot partition, and it seems to work, but the device still won't start. Now when I try to reboot system it goes straight to TWRP.

Sorry, you can probably tell that I'm a little out of my depth and flustered. I'm just not sure how to get out of this and back to the point where I have a bootable system.

---------- Post added at 07:07 PM ---------- Previous post was at 06:21 PM ----------

Nevermind. I ran flash-all.bat and have recovered. Whew! Moment of panic.
[Essential Phone Guides, News, & Discussion] Genghis1227:
Quick question, do we have to repatch the bootloader with magisk each time there is an update?
[Essential Phone Guides, News, & Discussion] Genghis1227:
I was able to root it and passed safety net but when I reset to factory I lost root? I guess because it is system-less that if you factory reset you lose it. I'm waiting for everything to restore from the google backup before I go back in and install magisk again.
[Essential Phone Guides, News, & Discussion] ghus:
I am in the process of running flash-all.bat on the latest full stock image NMJ88C_back_to_stock.zip. Before I attempt twrp and magisk root.

I wanna make sure that this will not erase the userdata or sdcard partition of my phone. Usually the android stock images do so (the userdata partition at least is in the the stock flash script) and I have to manually remove it.

Also I am a bit confused with the partition layout of essential. I do not seem to be able to identify userdata now in the script or even something remotely similarly named. Same applies for cache partition. Do these partitions exist with another name in essential structure? I was trying to fastboot format cache and was getting errors. What gives?
[Essential Phone Guides, News, & Discussion] Akosp:
i unlocked both the bootloader and bootloader_critical

but when I flash twrp using fastboot flash boot twrp.img, and I reboot into recovery, it sends me straight back into the bootloader. twrp is flashing correctly according to the adb log...

any ideas? im on NMJ88C

edit: does it have to do with twrp installing to the boot_b slot? I understand that the essential phone has two partitions, does it need to install into both for this to work?
[Essential Phone Guides, News, & Discussion] tech_head:
Have flashed multiple times. At least the Oreo 2 Beta does not wipe user data and apps.

In that flash there is no user data flashed or formatted.

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

Do you have the correct twrp?

You need the correct twrp because you flash the boot partition.
[Essential Phone Guides, News, & Discussion] Akosp:
I downloaded the v11 and it didn't work so I tried the 7 and that also didn't work. I just ran the back to stock zip and I'm gonna try again.
[Essential Phone Guides, News, & Discussion] NaterTots:
V11 worked for me. Maybe list exactly what you did when you were doing it?
[Essential Phone Guides, News, & Discussion] avd:
I had the same problem. Redownloading twrp-11 and renaming it twrp.img before flashing worked. Probably a bad download the first time I tried.
[Essential Phone Guides, News, & Discussion] reverenddak:
I think this is worth repeating every few days.

TWRP can't boot Oreo. You have to reinstall the STOCK BOOT image after booting into TWRP (custom recovery), and THEN flash Magisk and whatever, to reboot back into system.
[Essential Phone Guides, News, & Discussion] avd:
Right in the OP, but perhaps can be reinforced.
[Essential Phone Guides, News, & Discussion] Akosp:
okay so my problem was I wasn't putting the files in the right directory... tip for those using minimal adb and fastboot, make sure youre in the root folder containing adb.exe and fastboot.exe and not just the program shortcut...
[Essential Phone Guides, News, & Discussion] Brojinacus:
hey guys, iv been messing around with my PH-1, and i've had some issues with getting magisk to download. I changed OS to lineage 15.1, and when I install magisk with TWRP, it shows that it is not downloaded in magisk manager. I used the custom rom instructions, can magisk still isnt downloading. it shows completed on TWRP, then I have to reload lineage, and reboot. but magisk just isnt there. i've tried flashing magisk then lineage, and vice versa. i cant seem to figure it out! I even tried flashing from inside the magisk manager and it shows installation as failed.

anyone have a fix?
[Essential Phone Guides, News, & Discussion] Airwolf79:
You should be flashing the boot.img b4 Magisk, which will replace twrp with the stock recovery. Is that what you're doing? It's in the OP. You don't need to flash LOS again if u do that.
[Essential Phone Guides, News, & Discussion] Brojinacus:
I misinterpreted. When it said flash the boot image, I thought it meant flash the lineage os again.

I'll try it out when I'm home, but there's a boota.IMG and bootb.IMG now. I tried installing on both partitions to see if that was an issue. Would I boot the image of the original starting partition?
[Essential Phone Guides, News, & Discussion] Airwolf79:
Did u follow the guide here for rooting custom ROMs? It's right below rooting stock Oreo. You shouldn't have boot a & b if u followed the guide. No need to flash both partitions, just the opposite that your Rom is on. You might be able to find the boot.img for LOS in the LOS thread or discord so u won't have to do the whole dump procedure.
[Essential Phone Guides, News, & Discussion] waverbach:
Cannot Lock Bootloader

Guyz I root my sprint verson using this guide here. But I cannot lock back my bootloader. It soft brick it. The circling dots never stop. So I have to go back and and reinstall the oreo beta again.'

How do I solve this?
[Essential Phone Guides, News, & Discussion] -DarkKnight-:
Anyone have the boot.img of open beta 3?
[Essential Phone Guides, News, & Discussion] arpitp:
Currently on Beta 2 with Magisk.

Would I need to uninstall/flash anything to be able to sideload or OTA install the new Beta 3? (Since TWRP is replaced with the stock boot image on the way out/before installing Magisk, I wasn't sure if anything else was needed).

If I upgrade, I'm guessing I can't reinstall Magisk/root until the beta 3 boot image is available? (Can anyone confirm that Magisk wouldn't survive the update?)
[Essential Phone Guides, News, & Discussion] geoff5093:
I'm almost done sideloading the beta 3 over my rooted beta 2 image, I'll let you know how it goes.

Edit: So it booted up fine and so far everything seems normal, but I did lose root. Opening Magisk Manager it prompts me saying Magisk isn't installed, and opening a root app says I do not have root. I also lost the GCam Magisk module I had previously, but other than that no issues. I'll just wait for the B3 boot image to come out and I'll re-root.
[Essential Phone Guides, News, & Discussion] avd:
Is it a beta or a release?
[Essential Phone Guides, News, & Discussion] arpitp:
Beta. Essential announced it today. They also said they're in the final testing phases of the final release over on today's Reddit AMA.

---------- Post added at 09:24 PM ---------- Previous post was at 09:23 PM ----------

Great, thanks for the heads up!

I think I'd prefer to hold on to the GCam for now (it's pretty much the only thing I use root for, but I like the camera!)
[Essential Phone Guides, News, & Discussion] geoff5093:
Agreed about Gcam, but you can sideload it as an APK as well (get the one in red): https://www.celsoazevedo.com/files/android/google-camera/
[Essential Phone Guides, News, & Discussion] arpitp:
They're pushing it out with the January security update, but it's still technically Beta:

https://www.essential.com/developer/beta-builds

---------- Post added at 09:43 PM ---------- Previous post was at 09:39 PM ----------

Huh... are there any speed/stability/feature differences between this one and the Magisk version?

(The Arnova APK seems to be being developed on OP3, and Magisk version on Essential; not sure if that matters)
[Essential Phone Guides, News, & Discussion] GospelNerd:
I just unrooted and sideloaded Beta 3 ... had an issue on the phone displayed an error "unable to open sysfs..." then it wouldn't boot, went into recovery and it showed a red error saying it couldn't access the android system, data could be corrupt, suggested a factory reset. So, I did a reset, and it booted up. About Phone says I'm on the Beta 3 build. :confused:

So, re-installing everything now. Things look ok

I did root mainly for the Gcam as well. [MENTION=4133445]geoff5093[/MENTION] do you have any other instructions on sideloading it? Also, there are multiple 'ones in red' at this link.
[Essential Phone Guides, News, & Discussion] Ascertion:
Oreo B3 boot.img already uploaded in OP. What a boss.
[Essential Phone Guides, News, & Discussion] geoff5093:
I'd use the newest one in red, and next to it is a suggested settings post
[Essential Phone Guides, News, & Discussion] teostar:
i just followed the instructions in post 2 to root nougat, when i reboot i see magisk manager installed but now my wifi cant turn on. any suggestions?
[Essential Phone Guides, News, & Discussion] Genghis1227:
Just got the notification of the official Oreo update!
[Essential Phone Guides, News, & Discussion] Airwolf79:
Are you running version 88C, and did you flash the stock boot.img for 88C b4 flashing Magisk?
[Essential Phone Guides, News, & Discussion] teostar:
thanks that seemed to be it.:good:
[Essential Phone Guides, News, & Discussion] Genghis1227:
Ok...it's Beta 3...but now I have a dead android robot when trying to unroot to flash. Help?

---------- Post added at 06:05 PM ---------- Previous post was at 06:03 PM ----------

What did you to do restore? I have a dead android image after I tried to unroot ...
[Essential Phone Guides, News, & Discussion] reverenddak:
I was just about to ask!

Thanks!

---------- Post added at 04:15 PM ---------- Previous post was at 04:12 PM ----------

Did you hold Power + Vol Up? That should get you to recovery. It scared me too when I tried to sideload, but it's there in the sideload instructions.
[Essential Phone Guides, News, & Discussion] Genghis1227:
Crap...I think I know why...I didn't enable USB debugging. Going to contact essential.. :(

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

I can't get fastboot or adb to recognize the device...

---------- Post added at 06:55 PM ---------- Previous post was at 06:17 PM ----------

Thank goodness they have a flashall.bat... Restoring the device now and then sideloading Oreo Beta 3. Going to have to restore everything but at least it can be revived.
[Essential Phone Guides, News, & Discussion] reverenddak:
I can confirm that Beta3 can be sideloaded, and rooted with Magisk 15.3, and everything seems to be working fine.
[Essential Phone Guides, News, & Discussion] tech_head:
Back to stock Beta 3 is now in the ROM area.

Flashing now.
[Essential Phone Guides, News, & Discussion] Genghis1227:
So you didn't take the OTA update but instead you sideloaded it with ADB?

Also after you sideloaded it did you just use magisk manager to install magisk again?
[Essential Phone Guides, News, & Discussion] future/primitive:
No broken WiFi or hotspot?
[Essential Phone Guides, News, & Discussion] reverenddak:
I tried the OTA first, several times. It wouldn't work, but not sure why. It could of been because I was rooted or had a modified boot image. OTA worked for B2, but I wasn't rooted yet. So that'd be my guess, and it makes sense.

I took the chance of sideloading *without* unrooting (keeping Magisk), and it worked fine. But I lost root. I assume because the update updates the boot image (which is bad news for custom recovery).

Magisk Manager was still installed, and (as suspected) all the Magisk modules were removed. You won't be able to install Magisk through Magisk Manager, because you need root.

I just rerooted from scratch using the instructions from the OP, and it worked fine.

---------- Post added at 03:11 AM ---------- Previous post was at 03:08 AM ----------

Wifi seemed spotty fir a minute, but seems fine now. Im typing on this my PH-1.

Did notice that NFC setting was grayed-out when I tested Android Pay, but a reboot fixed that.

Hotspot working fine.
[Essential Phone Guides, News, & Discussion] Brojinacus:
thanks for the info Airwolf! Im new to the phone-jitsu, so im still learning how everything works, terms/vocab, all the fun stuff. I haven't rooted yet, but im fairly confident i know how to now. ill probably just follow the boot dump procedure because i'm not knowledged enough to improvise with your technique. I noticed the beta 3 just came out, so that raised some questions for me:

since im on lineage, do i have to worry about oreo anymore? will lineage send me the updates when they come out, even though the ph-1 is an unofficial device? (i know this is the wrong thread, i posted on lineage thread as well). and i have set my apps up. i noticed theres a whole lot of phone wiping that goes on. is there a way to preserve my apps and my app settings when playing with OS? it kept my settings when i was reflashing lineageOS trying to get it rooted, not sure about the rules of that.

thanks for helping a noob out! it really is appreciated
[Essential Phone Guides, News, & Discussion] teostar:
How does 1 flash xposed if we have to remove twrp to keep root? i tried flashing after flashing magisk but it gave errors and didnt flash.
[Essential Phone Guides, News, & Discussion] bmg1001:
Use the systemless Magisk version of Xposed.
[Essential Phone Guides, News, & Discussion] GospelNerd:
After the OTA wouldn't install a few times while rooted, I unrooted (flashed the stock boot image), and it still wouldn't install. So I found the zip on the AMA and sideloaded it. The phone display showed an error and I thought it failed. When I rebooted, it wouldn't boot so dropped back into recovery with a red message warning I had a data problem and giving me the option to try to boot again or factory reset. So I reset. After that it boots just fine. I've reinstalled all my apps and rooted again with Magisk 15.3... everything seems back to normal, hunky dory. I even reinstalled the modded GCam module which was why I rooted in the first place.

Edit: I should make clear, the sideload didn't fail and I'm on Beta 3 now
[Essential Phone Guides, News, & Discussion] mobileman88:
I did the same thing. somehow the phone keeps getting stuck into bootloader no matter what i did and after a while, I can't even see it in fastboot devices. Last few times it booted, it changed my serial number into hexadecimal in fastboot devices then it simply refused to boot and is stuck in a blank black screen. Have never seen this issue in the many years of android. Sure looks like a hardware problem which caused the bootloader to keep looping and then even lose its serial #.
[Essential Phone Guides, News, & Discussion] Genghis1227:
BTW, how does one unroot with magisk. Uninstall and reboot hosed my phone. Maybe flash stock boot image, install the OTA, and reroot?

Maybe I'll just sideload the OTA next time.
[Essential Phone Guides, News, & Discussion] 1Krima:
I sideloaded beta 3, booted into the bootloader, flashed twrp11.img, booted into recovery, flashed stock boot image from beta 3, flashed Magisk 15.3, and rebooted. I did not uninstall Magisk manager before doing any of this and everything is working great.
[Essential Phone Guides, News, & Discussion] chadgauth:
I did the same exact thing and I get a bootloop with "Can't load Android system. Your data may be corrupt...." YMMV
[Essential Phone Guides, News, & Discussion] tech_head:
Side load didn't go well.

I went the route of flashing via fastboot with the B3 from here.

https://xdaforums.com/essential-phone/development/stock-7-1-1-nmj20d-t3701681

No issues after root and Magisk.
[Essential Phone Guides, News, & Discussion] NaterTots:
I also did adb sideload of Beta 3, from Beta 2 that was rooted, then flashed twrp, boot, and magisk again. No problems.
[Essential Phone Guides, News, & Discussion] future/primitive:
Anyone gained root after ota b3 updating ? I've just updated after a very scary loss of partitions and though wanting root I'm now wary lol
[Essential Phone Guides, News, & Discussion] Marconis:
Need some serious help. Royally screwed up rooting and accidentally wiped my entire device (literally everything down to the core, it was a ****show...accidentally selected all to wipe, thought I was swiping to unlock and swiped to actually wipe everything. This is all because I had no WiFi after flashing Magisk) and there is nothing to boot into. I have not left recovery mode and am attempting to flash the factory image from Essential using flash-all.bat, but it says <waiting on any device>. The device is recognized in fastboot.exe when typing adb devices command which shoots back the serial number as well as recovery as the state. I have copied fastboot.exe into the folder with flash-all, and still, nothing. The Essential drivers are updated. At a loss, really frustrated. Please help!!! Oh, and typing in fastboot devices does nothing.﻿
[Essential Phone Guides, News, & Discussion] Airwolf79:
We're u able to use fastboot b4 this happened? U should be in bootloader mode, not recovery.
[Essential Phone Guides, News, & Discussion] Marconis:
Not really sure...I was using that Minimal ADB Fastboot tool and think I only used adb commands to unlock/flash.

---------- Post added at 03:54 AM ---------- Previous post was at 03:50 AM ----------

When I do that it warns me I have no OS installed. Should I still do it?
[Essential Phone Guides, News, & Discussion] Airwolf79:
U need bootloader mode to run fastboot commands, not recovery. Power and volume down.
[Essential Phone Guides, News, & Discussion] Marconis:
OK, just did it from bootloader and says flashing is not allowed for critical partitions.
[Essential Phone Guides, News, & Discussion] Airwolf79:
Yes, if ur in fastboot, run the flash-all.bat. I would wipe again though using fastboot -w.
[Essential Phone Guides, News, & Discussion] Marconis:
Installation failed due to critical partition. How do I unlock that? That must be the culprit here...
[Essential Phone Guides, News, & Discussion] Airwolf79:
U are seeing ur serial # now when u hit fastboot devices, right?

---------- Post added at 04:07 AM ---------- Previous post was at 04:04 AM ----------

Fastboot unlock_critical

---------- Post added at 04:12 AM ---------- Previous post was at 04:07 AM ----------

Or: fastboot flashing unlock_critical. Can't remember. Edit: yes 2nd one is correct.
[Essential Phone Guides, News, & Discussion] Marconis:
OK, unlocked critical and device is recognized, but I am getting this error at the end of flash-all: Invalid sparse file format at header magi...if I boot up it says my device is corrupt and goes into a bootloop. I've done -w command, too.﻿
[Essential Phone Guides, News, & Discussion] Genghis1227:
At this point you might want to consider restoring back to stock Nougat.

https://www.essential.com/developer/current-builds

Use the flashall.bat

I did that when I hosed my root when OB3 came out.
[Essential Phone Guides, News, & Discussion] Airwolf79:
Ok, open the flash-all.bat (or flash-all.sh, whichever one will open) in a text editor and copy paste the commands one at a time. All the files are in ur platform-tools folder right? Run the fastboot -w again b4 u try.

---------- Post added at 04:38 AM ---------- Previous post was at 04:35 AM ----------

Exactly what he's been trying to do.
[Essential Phone Guides, News, & Discussion] Genghis1227:
Might have missed that part... Carry on!
[Essential Phone Guides, News, & Discussion] Marconis:
Yes they are in Minimal ADB Fastboot folder, and I created a subfolder for organization of files and copied/pasted fastboot.exe into there. Even with clean download from Essential my device is corrupt however no errors. Confused and annoyed.
[Essential Phone Guides, News, & Discussion] Airwolf79:
Wait, does it say "your device software can't be checked for corruption"? That's normal with an unlocked bootloader. Don't lock it again!

---------- Post added at 04:52 AM ---------- Previous post was at 04:51 AM ----------

So u got it to boot?
[Essential Phone Guides, News, & Discussion] Marconis:
No, it is the red message and it says it is corrupted, then goes into bootloop. I tried installing the commands one by one and the error sparse thing is coming back when I get to system, says invalid max size or some crap.
[Essential Phone Guides, News, & Discussion] Airwolf79:
Hmm, what OS version are u trying to install? I would try flashing 88C from the stock dumps thread in Roms. Download it again, and if that doesn't work, try a different version. Hope u get it worked out. Gotta go.
[Essential Phone Guides, News, & Discussion] Marconis:
Oh my god...I fixed it. The download file was corrupted, and I was also being inpatient. It worked. I got it. THANK YOU SO MUCH!
[Essential Phone Guides, News, & Discussion] Genghis1227:
Did you just run the flashall.bat and done?
[Essential Phone Guides, News, & Discussion] Airwolf79:
A little nerve racking, eh? Good job!
[Essential Phone Guides, News, & Discussion] Genghis1227:
My heart sank the other day when I booted and I saw a dead Android. But I knew it was recoverable.
[Essential Phone Guides, News, & Discussion] Marconis:
I had to do it one by one, the system commands were throwing me off I think.

---------- Post added at 05:29 AM ---------- Previous post was at 05:24 AM ----------

Same here...knew deep down recoverable, but couldn't believe what a stupid mistake I had made and that this is how I had to spend my Friday night. Good people around here.
[Essential Phone Guides, News, & Discussion] Airwolf79:
If u haven't read this, there's some good info in this FAQ by Invisblek: https://mata.readthedocs.io/en/latest/ not sure if ur red corruption message is the verity message, but he touches on that toward the bottom of the FAQ with a method to clear it. A good read either way. Be more careful in the future!
[Essential Phone Guides, News, & Discussion] Genghis1227:
This is a very educational read about our device. Thank you for this.
[Essential Phone Guides, News, & Discussion] Airwolf79:
You're welcome. Just keep in mind, some of these methods have outdated links or other workarounds. It behooves us all to read as much as possible before messing with our phones.
[Essential Phone Guides, News, & Discussion] future/primitive:
[/COLOR]

Indeed:svetius: