yashsingh1/xdaforums huggingface dataset:
[Essential Phone Guides, News, & Discussion] bmg1001:
Important Information for the Essential PH-1 can be found here. Keep it bookmarked.

Tips on updating via OTA after rooting can be found here.

In the case that you mess something up on your device, you may find it helpful to revert back to stock with the unofficial factory images graciously provided by @invisiblek and @aer0zer0 over here.

Official TWRP XDA Thread for the Essential PH-1

Join the Essential PH-1 Discord Server! -- Lots of cool people here!

Join the Essential PH-1 Development Telegram Channel!

Stock Boot Images for most builds can be found at my Google Drive link here.

Have a Red Verity Warning when booting your device? Click here.

If the link to the boot.fix.red image isn't working, you can also find it here or in my Google Drive link in the first post.

Essential Phone (PH-1) Partition Layout

Dumping Boot Images

1. Find the current slot with

fastboot getvar current-slot

or

adb shell getprop ro.boot.slot_suffix

2. Switch to the opposite slot in Fastboot using the command

fastboot set_active other

3. Flash TWRP using the command

fastboot flash boot twrp.img

4. Now, boot into TWRP and use the following command from your PC, replacing X in "boot_X" with the original slot from step 1 (a or b). TRIPLE CHECK:

adb shell dd if=/dev/block/bootdevice/by-name/boot_X of=/sdcard/boot.img

5. Profit! Don't forget to switch back to the original partition with the same command from step 2!

extractTarFork() error when restoring data from a TWRP backup

1. Reinstall the ROM from which the backup is based on.

2. Wipe your data. You can do this from the recovery or from fastboot using the command

fastboot -w

3. Boot into the ROM. When going through the initial setup, use the EXACT same security setup as the one from your backup. For example, if you used a Fingerprint + Password in the backed up ROM, use the exact same combo along with the exact same password as well. There is no need to set up anything else, like accounts.

4. Flash, install, and reboot into TWRP. You should now be able to restore the data backup without any issues.
[Essential Phone Guides, News, & Discussion] Kisakuku:
AFH mirrors for images:

Build NMJ32F

NMJ32F patched boot image

NMJ32F factory image

Build NMJ20D

NMJ20D patched boot image

NMJ20D factory image

TWRP (alpha v4)
[Essential Phone Guides, News, & Discussion] spotmark:
Thanks for getting the latest boot image up so quickly.
[Essential Phone Guides, News, & Discussion] prozo:
Thanks for the detailed guide, it worked great!

Any idea how to install xposed sdk 25? I tried the adb sideload function and the Magsik Module but both failed. Any ideas?
[Essential Phone Guides, News, & Discussion] spotmark:
You need to flash the system and boot images from Invisiblek's stock ROM dump. You'll then be unrooted and will be able to accept the update.
[Essential Phone Guides, News, & Discussion] gk1984:
Factory reset no longer required if your bootloader is already unlocked? Does TWRP read encypted storage now? Or is that still a problem?
[Essential Phone Guides, News, & Discussion] aer0zer0:
[MENTION=4550123]bmg1001[/MENTION] , good looks, here are more free XDA points to trade in for that pool table, lol.
[Essential Phone Guides, News, & Discussion] bmg1001:
As far as I know, TWRP still doesn't have decryption fully working just yet, but installing Magisk works fine without any factory resets.
[Essential Phone Guides, News, & Discussion] bmg1001:
Xposed works fine for me. Make sure you installed the correct Xposed Installer/Manager apk linked in the thread for the Xposed Module. Also, it may take a reboot or two for Xposed to fully activate.
[Essential Phone Guides, News, & Discussion] reas0n:
Did anyone manage to disable encryption? I tried everything and failed
[Essential Phone Guides, News, & Discussion] prozo:
Maybe I'm not gathering the information correctly, using the Magisk Module itself doesn't work, sideloading the zip file via the adb fastboot TWRP.img doesn't work either, using the actual Xposed APK installer doesn't work either. I rebooted the phone about 4 times before removing it entirely.

Any chance you can walk me through how you got it installed without the TWRP recovery fully installed?
[Essential Phone Guides, News, & Discussion] bmg1001:
All I did was install the Xposed APK and then the Xposed Magisk Module. After two reboots, the apk said everything was working. This is the apk I used: https://drive.google.com/file/d/16-OHpswcngp1KLtkWCBDwwl8AvFafR5H/view?usp=drivesdk
[Essential Phone Guides, News, & Discussion] prozo:
Thanks for replying so quickly I appreciate it, the file you linked keeps opening on my end and fails to install saying it's corrupt
[Essential Phone Guides, News, & Discussion] bmg1001:
The apk should be the same one found here: https://xdaforums.com/xposed/unofficial-systemless-xposed-t3388268
[Essential Phone Guides, News, & Discussion] prozo:
Alright I got it to work

So I didn't use the APK instead I downloaded the zip from the XDA thread that is specifically for Magisk Module and then added via the modules tab on the left side of the Magisk Module APK.

After I restarted I had the newly installed APK to download and install the proper version of Xposed 88.2 sdk25

Another restart and boom I got the active module notification in green.

Thanks man!

Thread for downloads can be found here:

https://www.google.com/amp/s/xdaforums.com/xposed/unofficial-systemless-xposed-t3388268/amp/
[Essential Phone Guides, News, & Discussion] 12paq:
Thank you for this!

My PH-1 is arriving today. SooOoo excited!
[Essential Phone Guides, News, & Discussion] drocny87:
Would using flashfire work to install the ota?
[Essential Phone Guides, News, & Discussion] spotmark:
Couldn't tell you. I just used TWRP to flash the system and boot, and then took the update, and then rerooted.
[Essential Phone Guides, News, & Discussion] Ascertion:
Anyone figured out how to get the Magisk modules working on Oreo yet?
[Essential Phone Guides, News, & Discussion] tribulationwolf:
Got a question. I'm rooted with magisk on Oreo and want to put SuperSU on here cuz it is required by an app I want to use. How can I do this without messing up root with magisk or losing my data?
[Essential Phone Guides, News, & Discussion] Mike02z:
Yes, there is. I rooted on Oreo fine. Look back a few pages.
[Essential Phone Guides, News, & Discussion] treIII:
I also obtained root on Oreo by fastboot flash boot oreomgaisk.img. problem I'm have is that if I install the Google camera port it causes problems once I use the camera and I lose all sound. No sound on you tube no touch sounds etc... Are you using the gcam port? And if so do you mind letting me know which version works for you while rooted on Oreo? Thanks
[Essential Phone Guides, News, & Discussion] mrcooter:
No. Personally I find the stock camera to be better from my experience. But I also don't like messing with all the settings in the port. I want a camera that just works.
[Essential Phone Guides, News, & Discussion] treIII:
Ok thanks. I've reflashed stock etc..and reloaded Oreo to find out why phone was losing sound. Couldn't figure it out.
[Essential Phone Guides, News, & Discussion] Elvis_Stojko:
I have this issue occasionally as well. And this was before root. Perhaps it has to do with the Gcam mod, but I am leaning towards it being an Oreo issue.
[Essential Phone Guides, News, & Discussion] treIII:
It has to do with gcam. If I uninstall gcam then reboot problem doesn't exist. I wonder if installing gcam manually in system priv would fix the issue? I'll try later
[Essential Phone Guides, News, & Discussion] Elvis_Stojko:
Successfully rooted Oreo beta, followed OP "Old Method" to a tee.
[Essential Phone Guides, News, & Discussion] IC_Blood:
Looking for the same thing. First I thought is was because update channel was not set beat in settings so Magisk detected a higher version that the latest but it failed again after changing it to beta.

Also, after Googling, I found a similar post on the Magisk 14.3 thread and the guy suggest that after flashing, you have to click install and install manually even if everything show that you arleady have Magisk in Magisk Manager. Tried this too and no sucess, I even had to reflash the boot.img via fastboot since root disapeared after this. If you find something please let me know.

---------- Post added at 05:44 PM ---------- Previous post was at 04:47 PM ----------

When I try to add via the modules tab or even via Magisk Manager directly I get:

*************************************
! /data/magisk isn't setup properly!
! Please install magisk v14.0+1
*************************************
Failed!
Installation error!
[Essential Phone Guides, News, & Discussion] kleinbiker:
I installed TWRP and in TWRP tried installing Magisk-v14.0.zip. I get an error from the Magisk installer saying /system could not be mounted. Any idea why that might be? Thx.
[Essential Phone Guides, News, & Discussion] Mike02z:
14.0 is an old version. I used 14.3 then updated to 14.4 with no issues. Grab the 14.4 release and you should be OK.
[Essential Phone Guides, News, & Discussion] kleinbiker:
Just tried 14.3 and it goes a bit further. Still got the same error when it's at the step "updating partition details" but the phone is rooted. Will ignore the error for now. Thx.
[Essential Phone Guides, News, & Discussion] bryanus:
Hey guys, I used the "new" method, which does not mention using a modified boot image. Is it not required anymore? I was able to root with Magisk 14.3 without it and it's working fine. I'm just wondering if missed something.
[Essential Phone Guides, News, & Discussion] bmg1001:
The TWRP builds in the new method are basically the stock boot images but with TWRP in them already, so this allows you to just flash TWRP, then Magisk, then simply reboot. The TWRP build in the old method had a nonfunctional kernel, which is why it was necessary to flash the modified stock boot image afterwards.
[Essential Phone Guides, News, & Discussion] bryanus:
Thanks for this great explanation!

---------- Post added at 10:43 AM ---------- Previous post was at 10:27 AM ----------

So...when a new OTA comes out from Essential, with the modified TWRP using the 'new' method, is the above updating process still valid (without the last step of flashing of a modified boot image)?
[Essential Phone Guides, News, & Discussion] Shadow Samurai:
ok I don't know what the f!!@*# is going on....followed everything step by step, I'm no noob to adb and flashing but I am to this stupid A/B partition...

I can't decrypt my data so that twrp can access it...doesn't give me the option to enter my pattern or anything!!!

Please help, I've been going in circles for like 2 hours now

---------- Post added at 10:54 PM ---------- Previous post was at 10:35 PM ----------

Update:

figured it out...

don't need twrp, just the oreo magisk img file and then manually install magisk apk and update it

SUCCESSFULLY WORKING W/ ROOT ON OREO NOW
[Essential Phone Guides, News, & Discussion] aer0zer0:
https://www.androidfilehost.com/?fid=817906626617948231

Oreo TWRP with working touch may/may not have working crypto, may need to manually mount system

https://www.androidfilehost.com/?fid=745849072291690200

Stock Oreo Boot.img, this can be flashed in twrp, over twrp, in real time, then magisk away.

this is more or less a novelty. it works if you flash the back to stock oreo images, then flash twrp, then boot into recovery, manually mount system, format data (wipes you internalSD so backup beforehand), then you can flash whatever you want through TWRP...ONCE, like magisk) it doesnt have working crypto, and until we have working crypto, its a novelty

Hate me, Thank [MENTION=2385005]invisiblek[/MENTION]
[Essential Phone Guides, News, & Discussion] avd:
Tried all afternoon to root the Sprint C rom. The trick was to install the beta Magisk (14.3). Now all works well and it passes safety check.

Also I had to use fastboot as root user.
[Essential Phone Guides, News, & Discussion] ampink7756:
Cannot unlock bootloader

Can someone please help me... I cannot unlock my bootloader on Sprint essential ph1

[IMG="bootloader"]https://ibb.co/hCqviR[/Img]

[IMG="bootloader 1"]https://ibb.co/dwRqHm[/IMG]
[Essential Phone Guides, News, & Discussion] mobileman88:
I would not keep 2 versions too. Anyways the twrp touch issue has already been solved with the modified boot image in the OP. use that and you will be fine.
[Essential Phone Guides, News, & Discussion] RandomPooka:
I think you replied to the wrong comment.
[Essential Phone Guides, News, & Discussion] TT_Vert:
I've done it multiple times otherwise I would not have mentioned it. Both are fully functional, rooted, etc.

Dave
[Essential Phone Guides, News, & Discussion] NLBeev:
I believe you. But the topic was about a not fully working PH-1.

To solve this syncing slots is a good start.
[Essential Phone Guides, News, & Discussion] xDark_:
Thanks, but I ended up just flashing back to Oreo from the stock ROM thread and starting over completely fresh, so I could get a proper install.
[Essential Phone Guides, News, & Discussion] sash11:
Updated to Magisk 17.2 through direct install method. No issues!
[Essential Phone Guides, News, & Discussion] NLBeev:
Updated Magisk manager through the app.

Magisk 17.2 flashed the zip in TWRP.

https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

Edit:

Magisk 17.2 is the latest beta.
[Essential Phone Guides, News, & Discussion] SpectraFun:
I am a new PH1 User and i have install latest PIE Septmeber and have unlock both Bootloader option. Also i have download twrp_sep and a patched sept_boot but how flash it now?

I get this message:

D:\Software_Tools\Multimedia\Handy-Taplet\Handy\Backup\Download\Recovery>fastboot set_active other

Setting current slot to '`' FAILED (remote: Invalid Slot Suffix)

D:\Software_Tools\Multimedia\Handy-Taplet\Handy\Backup\Download\Recovery>fastboot flash boot TWRP-SEP.img

Sending 'boot__a' (65536 KB) OKAY [ 1.825s]

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

Finished. Total time: 1.845s

EDIT: i have flash now twrp_sep but after reboot to recovery i have no touch. Thene i reboot to system but also not work, its reboot to twrp but no touch.
[Essential Phone Guides, News, & Discussion] NLBeev:
Goto post #1987 and flash one of the patched boot images.
[Essential Phone Guides, News, & Discussion] sash11:
If you are using google fastboot it might not work. You need to specify the slot names, i.e.

fastboot getvar current-slot

fastboot set_active [a,b]

fastboot flash boot_b patched_boot.img or

fastboot flash boot_a patched_boot.img
[Essential Phone Guides, News, & Discussion] SpectraFun:
I have make it and touch work now in twrp. Root is also fine.

D:\Software_Tools\Multimedia\Handy-Taplet\Handy\Backup\Download\Recovery>fastboot devices

PM1LHMA832902735 fastboot

D:\Software_Tools\Multimedia\Handy-Taplet\Handy\Backup\Download\Recovery>fastboot getvar current-slot

current-slot: _b

finished. total time: 0.001s

D:\Software_Tools\Multimedia\Handy-Taplet\Handy\Backup\Download\Recovery>fastboot set_active a

Setting current slot to 'a'...

OKAY [ 0.031s]

finished. total time: 0.031s

D:\Software_Tools\Multimedia\Handy-Taplet\Handy\Backup\Download\Recovery>fastboot flash boot_a 4.4.152-boot-twrp-mgk17.img

target reported max download size of 536870912 bytes

sending 'boot_a' (47940 KB)...

OKAY [ 1.297s]

writing 'boot_a'...

OKAY [ 1.018s]

finished. total time: 2.314s
[Essential Phone Guides, News, & Discussion] Koncrete:
So just so I know I'm not crazy... It is possible to get twrp, ElementalX and magisk all installed and working at the same time right?
[Essential Phone Guides, News, & Discussion] bmg1001:
Yes. Flash TWRP zip, flash EX, and flash Magisk.
[Essential Phone Guides, News, & Discussion] Koncrete:
Hmm. So I guess I'mma start fresh tomorrow then because something isn't right. I ota'd September and this is how I've been trying to do this.

From bootloader flash twrp.img to opposite slot

Make that slot active

Reboot recovery

Flash twrp

Wipe cash

Reboot recovery

Flash elex

Flash magisk

Wipe cash and restart

It usually gets all the way to the pin screen to unlock then reboots, gets to pin again then reboots to recovery and that's it.

Trying to decide now between flashing Sept fastboot or the Sept dedoxed package
[Essential Phone Guides, News, & Discussion] NLBeev:
EDIT

Contacted osm0sis; send a log.

There's now a new version available of the TWRP A/B Retention Script.

Tested on my PH-1 with Magisk manager.

Works great. TWRP of the active slot is now also installed on the opposite slot.
[Essential Phone Guides, News, & Discussion] GospelNerd:
October's out.. got that new image OP?
[Essential Phone Guides, News, & Discussion] RandomPooka:
It isn't like you can't download the damn thing directly from the Essential web site.

--EDIT--

Apologies. I missed the new TWRP image part a few posts back, and was thinking you were referring to the system images for Octoberween.
[Essential Phone Guides, News, & Discussion] GospelNerd:
Sorry, not trying to be annoying. I was talking about the new stock boot.img ... I'm just being lazy and I don't want to have to do the work to grab it myself (remove security, flash twrp, etc.) since [MENTION=4550123]bmg1001[/MENTION] usually posts it pretty quick anyway.
[Essential Phone Guides, News, & Discussion] aer0zer0:
https://www.androidfilehost.com/?fid=1322778262904018340

patched boot.img

stock, magisk, twrp....

Enjoy
[Essential Phone Guides, News, & Discussion] crankiro97:
Thanks for the file. What is the touch mod zip for?
[Essential Phone Guides, News, & Discussion] kma_29:
Emmm. ... How do I update?

Just reboot to recovery and flash this .img and it UPDATES everything that was in that 2xx Mb OTA?
[Essential Phone Guides, News, & Discussion] aer0zer0:
[MENTION=9317968]jacksummers[/MENTION] wanted a mod for applying the touchslop mod somewhere else on the essential forum

---------- Post added at 04:34 PM ---------- Previous post was at 04:33 PM ----------

no, thats a scary comment, lol

flash the boot.img in fastboot over top of the current boot.img, then you will have twrp with touch, and magisk, on stock img, since there is no sauce yet
[Essential Phone Guides, News, & Discussion] kma_29:
But... Why?
[Essential Phone Guides, News, & Discussion] aer0zer0:
not following fella.......
[Essential Phone Guides, News, & Discussion] kma_29:
What is the correct sequence to get October update using the file you shared?
[Essential Phone Guides, News, & Discussion] Thebear j koss:
These stupid updates always fail when trying to install. This a/b device partition is driving me nuts. Everytime i try an update it fails after downloading...
[Essential Phone Guides, News, & Discussion] aer0zer0:
its not a update

you need to be on OCT in order to use the patched boot.img to have magisk and twrp easy....

---------- Post added at 05:47 PM ---------- Previous post was at 05:47 PM ----------

flash the OTA in twrp.
[Essential Phone Guides, News, & Discussion] Thebear j koss:
How? Is there a zip of the OTA?
[Essential Phone Guides, News, & Discussion] sash11:
You have to do full unroot - uninstall Magisk from within Magisk Manager. Your phone will reboot and then you need to take the OTA. This will bring you up to the latest October patch level. Then you can flash the patched_boot.img provided by aer0zer0 and be rooted again. After that install Magisk Manager from apk.

If you have twrp permanent, then you can follow the guide in the second post of this thread.

---------- Post added at 10:59 PM ---------- Previous post was at 10:57 PM ----------

All OTAs and Fastboot Images are already posted on the official website.
[Essential Phone Guides, News, & Discussion] aer0zer0:
Essential posts them on their website when releasing OTA's, and fastboot images

https://storage.googleapis.com/essential-static/PH1-OTA-PPR1.181005.034.zip OTA

https://storage.googleapis.com/essential-static/PH1-Images-PPR1.181005.034.zip FASTBOOT IMAGES
[Essential Phone Guides, News, & Discussion] Thebear j koss:
Yeah I had forgotten they posted zips of the OTA's. Thanks.
[Essential Phone Guides, News, & Discussion] RandomPooka:
I'm trying to figure out how the Magisk TWRP A/B Retention script in the Magisk Manager Downloads section could possibly work.

Don't you need to be full stock with no magisk or TWRP in your boot.img to take the OTA?

If so, how could the magisk script possibly function without having root permissions for writing the "other" boot partition?
[Essential Phone Guides, News, & Discussion] gorm:
Wow u made that short and easy.

Thank for the patched boot image
[Essential Phone Guides, News, & Discussion] aer0zer0:
I do what i can to help. Dont want to watch the whole omfg no touch in twrp again saga. They updated rom and hyp again. Lol, glad u enjoy
[Essential Phone Guides, News, & Discussion] avd:
TWRP exists, question is, how do you get the phone to boot the inactive partition.
[Essential Phone Guides, News, & Discussion] NLBeev:
You are making it easy for us. Thx for being so fast.
[Essential Phone Guides, News, & Discussion] kma_29:
Did not work this way, unrooted - rebooted, but still OTA failed.
[Essential Phone Guides, News, & Discussion] Scaevola:
Does this mean that the guide in the second post finally works for new OTAs after installing TWRP?

Or should I still need to patch manually the stock OTA or the boot image first?
[Essential Phone Guides, News, & Discussion] NLBeev:
When you are rooted on the current slot.....;)

The module patches the TWRP from your active and rooted slot to the inactive slot. After that both slots have the same TWRP.

If you want also root access on the inactive slot you need the Magisk manager to install Mgsk-root to the inactive slot.
[Essential Phone Guides, News, & Discussion] sash11:
It did not work for me either. But it should have in theory. After full unroot phone OTA failed to install. I had to go into stock recovery and sideload the OTA. That always works. All data and apps are intact. Then I patched stock boot.img from the fastboot image and flashed it to regain root. After that installed Magisk Manager. Somehow even though Magisk Manager showed that I'm rooted, root explorer could not get root access. So I just installed Magisk again from Magisk Manager with direct install. After that things went back to normal.

---------- Post added at 09:21 AM ---------- Previous post was at 09:15 AM ----------

I have not tried the guide myself) Instead I went a safer route and flashed stock boot.img to both slots first. But OTA still failed to install for me(
[Essential Phone Guides, News, & Discussion] RandomPooka:
Right, but if you're rooted on the active slot how can the OTA install? Won't it not even begin to install because you've got a modified boot.img? Or does it not check the boot image?
[Essential Phone Guides, News, & Discussion] kma_29:
Is there a guide for this?
[Essential Phone Guides, News, & Discussion] sash11:
Here is a YouTube video how to

[youtube]I0K1_FrbpDY[/youtube]
[Essential Phone Guides, News, & Discussion] NLBeev:
The trick is restoring stock boot with Magisk mgr and than start the OTA.

That worked for me in September, but failed this time. Others have posted that OTA failed also on their PH-1. OTA start but ends with error message.

I started plan B. Downloaded the official OTA.zip and flashed it with TWRP. After reboot the slot changed. Reroot needed. Flashed from the PC the new all-in-one boot.image of aer0zer0.
[Essential Phone Guides, News, & Discussion] Scaevola:
I updated to the latest version with the standard OTA route, but when I flashed the patched boot image from aer0zer0, the phone is stuck on boot (in the screen with the dots). What should I do?
[Essential Phone Guides, News, & Discussion] millicent:
I ota'd, flashed this boot fine.

One problem though, how can i get back magisk? magisk says it wants to update itself, prompt to downlaod and install new magisk manager, then it fails with "app not installed".

what to do?
[Essential Phone Guides, News, & Discussion] aer0zer0:
Uninstall your manager, then reinstall manager