FORUMS
Remove All Ads from XDA
Win Honor 9 Lite

[GUIDE] Rooting your Essential PH-1

1,437 posts
Thanks Meter: 680
 
By bmg1001, Senior Member on 8th November 2017, 05:58 AM
View First Unread Post Reply Email Thread
WARNING: Before attempting to root your device, do note that by unlocking your bootloader and modifying your device with root, ROMs, etc... you are risking voiding your warranty! I am NOT responsible for what you do to your device either, so follow these instructions at your own risk. Make sure you know what you're doing, it's best to understand the process rather than just copy and paste commands and such.

General Information related to development on the Essential PH-1 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 over here. If you would like to accept OTA updates after flashing Magisk, you should probably uninstall Magisk from within the Magisk Manager first, and then flash your device back to stock, no wipe needed.


STOCK OREO 8.X


REQUIREMENTS:
An unlocked bootloader.
A working ADB/Fastboot environment on your computer. Knowledge on how ADB and Fastboot works is also preferred.
The stock boot image for whatever build you're running/trying to root.
The latest TWRP build for our device.
If on 8.1, remove your pin/pattern/passcode until the root process is done.

1. Download both the stock boot image for whatever build you're running and the Magisk or SuperSU zip. Transfer both files to your device's internal storage.

2. Reboot your phone into the bootloader, then open up your command prompt or terminal and flash the latest TWRP build for the device using:

Code:
fastboot flash boot twrp.img
3. Once TWRP has finished flashing, reboot into your recovery. When prompted, enter your pattern/passcode/password to decrypt your data in order to gain access to your internal storage.

4. Once you're in TWRP, install the stock boot image and then the Magisk/SuperSU zip.

5. Whenever Magisk/SuperSU finishes installing, simply reboot your device! You should now be rooted.

*NOTE: TWRP will NOT remain installed on your device.

CUSTOM ROMS // BOOT IMAGE EXTRACTION




REQUIREMENTS:
The latest TWRP build for our device.
Knowledge on how to use ADB/Fastboot, preferably also knowledge on how A/B partitions work.
For 8.1 roms, you'll want to have booted into the system and finished the Setup Wizard beforehand.

1. Download the latest TWRP build for your device. If you're on an 8.1 ROM, change your screenlock to "None" or "Swipe" too.

2. Find out what partition the system you want to root is on. You can do this either via adb shell or fastboot.
In ADB, you can use this command:
Code:
adb shell getprop ro.boot.slot_suffix
In Fastboot, you can use this command:
Code:
fastboot getvar current-slot
3. Once you know what partition your system is currently on (a or b), you'll want to reboot to fastboot. Once in fastboot, swap to the OPPOSITE partition using the command:
Code:
fastboot set_active other
4. Flash TWRP using:
Code:
fastboot flash boot twrp.img
5. Boot into the recovery. Once in TWRP, decrypt your data using your pattern/passcode/password. Confirm that you have proper full access to all your files in /sdcard. (If you see a bunch of randomly named folders and files or nothing at all, TWRP did not decrypt successfully.)

6. Use the following command to dump the boot image from your custom ROM. MAKE SURE TO USE THE CORRECT COMMAND. DO NOT MESS UP THE COMMAND. TRIPLE CHECK!

If your custom ROM was on A, you want to use the command:
Code:
adb shell dd if=/dev/block/bootdevice/by-name/boot_a of=/sdcard/boota.img
If your custom ROM was on B, you want to use the command:
Code:
adb shell dd if=/dev/block/bootdevice/by-name/boot_b of=/sdcard/bootb.img
7. Confirm that the boot image was successfully dumped. Afterwards, reboot back to fastboot. In fastboot, switch back to the original partition using the same command from step 3.

8. Flash TWRP using the same command from step 4. Once in TWRP, install the boot image you dumped earlier.

9. Flash Magisk.

10. Reboot! You should now be rooted successfully!

*NOTE: TWRP will NOT remain installed on your device.

Now that you are running a Custom ROM and are rooted, installing updates for these Custom ROMs should be much easier.

If the developer of your ROM already provides boot images, you can simply patch the boot image with the Magisk Manager and then simply flash it from fastboot using "fastboot flash boot patched_image.img" after flashing the update.

If your ROM has a built-in updater, like LineageOS, simply apply the OTA through the updater, but don't reboot once it finshes! First, open the Magisk Manager, select "Install", and then select "Install to Second Slot (After OTA)". Once done, you can reboot.

Otherwise...
1. Download the update zip for your ROM.

2. Reboot to fastboot and flash TWRP using
Code:
fastboot flash boot twrp.img
3. Boot into the recovery. Once in TWRP, you may be prompted to enter your password to access your data. Simply press "cancel."

4. Push the update.zip to /data/media on your device using the command
Code:
adb push update.zip /data/media/
5. Go to the install menu and navigate to /data/media. You should see the update zip for the ROM you pushed to there earlier.

6. Simply flash the update zip and reboot to the bootloader once finished installing.

7. Once in fastboot, type the command
Code:
fastboot set_active other
8. Now boot back into the system. You will be booted back into the same old version of the ROM you originally came from.

9. On your phone, simply go to the Magisk Manager, select 'Install", and then select "Install to Second Slot (After OTA)"

10. Once it finishes installing, reboot back to fastboot and simply use the same command from Step 7, then reboot.

11. You will now be booted into the new update of your custom ROM with Magisk installed.
The Following 77 Users Say Thank You to bmg1001 For This Useful Post: [ View ] Gift bmg1001 Ad-Free
 
 
8th November 2017, 06:27 AM |#2  
bmg1001's Avatar
OP Senior Member
Flag Los Angeles
Thanks Meter: 680
 
Donate to Me
More

STOCK NOUGAT


REQUIREMENTS:
An unlocked bootloader.
A working ADB/Fastboot environment on your computer. Knowledge on how ADB and Fastboot works is also preferred.
TWRP (choose the correct one for your build)
Magisk or SuperSU (SuperSU is untested by me)

For NMJ88C & NMK24B, click here.

1. Transfer the Magisk or SuperSU flashable zip to your device.

2. Reboot your phone into the bootloader, then open up your command prompt or terminal and flash the correct TWRP build for your device via:

Code:
fastboot flash boot twrp.img
3. Once TWRP has finished flashing, reboot into your recovery. When prompted, enter your pattern/passcode/password to decrypt your data in order to gain access to your internal storage.

4. Once you're in TWRP, you can simply flash Magisk or SuperSU by selecting it from the "Install" menu.

5. Whenever Magisk/SuperSU finishes installing, simply reboot your device! You should no
The Following 10 Users Say Thank You to bmg1001 For This Useful Post: [ View ] Gift bmg1001 Ad-Free
8th November 2017, 07:24 AM |#3  
Kisakuku's Avatar
Senior Member
Thanks Meter: 4,603
 
More
AFH mirrors for images:
The Following 14 Users Say Thank You to Kisakuku For This Useful Post: [ View ] Gift Kisakuku Ad-Free
8th November 2017, 12:45 PM |#4  
spotmark's Avatar
Senior Member
Massachusetts
Thanks Meter: 1,582
 
More
Thanks for getting the latest boot image up so quickly.
The Following User Says Thank You to spotmark For This Useful Post: [ View ] Gift spotmark Ad-Free
8th November 2017, 01:29 PM |#5  
Junior Member
Thanks Meter: 4
 
More
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?
The Following User Says Thank You to prozo For This Useful Post: [ View ] Gift prozo Ad-Free
8th November 2017, 02:06 PM |#6  
prgopala's Avatar
Senior Member
Flag Sydney
Thanks Meter: 100
 
More
how to install the NMJ32F ota update when you are already rooted on NMJ20D?
Tried adb sideload but cannot install obviously because boot-loader is unlocked and is rooted.
8th November 2017, 02:43 PM |#7  
spotmark's Avatar
Senior Member
Massachusetts
Thanks Meter: 1,582
 
More
Quote:
Originally Posted by prgopala

how to install the NMJ32F ota update when you are already rooted on NMJ20D?
Tried adb sideload but cannot install obviously because boot-loader is unlocked and is rooted.

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.
8th November 2017, 03:45 PM |#8  
Senior Member
Thanks Meter: 456
 
More
Factory reset no longer required if your bootloader is already unlocked? Does TWRP read encypted storage now? Or is that still a problem?
8th November 2017, 03:53 PM |#9  
aer0zer0's Avatar
Recognized Contributor
Flag Cortland NY
Thanks Meter: 1,199
 
More
@bmg1001 , good looks, here are more free XDA points to trade in for that pool table, lol.
The Following User Says Thank You to aer0zer0 For This Useful Post: [ View ] Gift aer0zer0 Ad-Free
8th November 2017, 04:12 PM |#10  
bmg1001's Avatar
OP Senior Member
Flag Los Angeles
Thanks Meter: 680
 
Donate to Me
More
Quote:
Originally Posted by gk1984

Factory reset no longer required if your bootloader is already unlocked? Does TWRP read encypted storage now? Or is that still a problem?

As far as I know, TWRP still doesn't have decryption fully working just yet, but installing Magisk works fine without any factory resets.
The Following User Says Thank You to bmg1001 For This Useful Post: [ View ] Gift bmg1001 Ad-Free
8th November 2017, 04:16 PM |#11  
bmg1001's Avatar
OP Senior Member
Flag Los Angeles
Thanks Meter: 680
 
Donate to Me
More
Quote:
Originally Posted by 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?

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.
Post Reply Subscribe to Thread

Tags
essential, magisk, mata, root

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread