FORUMS
Remove All Ads from XDA
H10 Turbo

[GUIDE] Rooting your Essential PH-1

1,472 posts
Thanks Meter: 753
 
By bmg1001, Senior Member on 8th November 2017, 05:58 AM
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 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 and @aer0zer0 over here.

If you're on stock, rooted, and wish to update to a new build/update of the stock ROM, check if there is a "back-to-stock (BTS)" package available for the build you want to update to! Patch the boot image from within the Magisk Manager, then flash the BTS, and then flash the patched boot image to keep Magisk. When flashing the BTS, make sure to choose the "no wipe" flash-all script, otherwise you may risk accidentally deleting all your data on your device!


STOCK OREO 8.X // P DEVELOPER PREVIEW



For the P Developer Preview, you may need to reboot a few times in order for root to be installed properly. The P Developer Preview follows the same root method as Oreo.

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.0+, 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 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.

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

5. Whenever Magisk 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.
Also for 8.1 roms, make sure to remove any screen lock, such as a pattern, password, etc... before continuing.

IF THE DEVELOPER/MAINTAINER OF YOUR ROM ALREADY PROVIDES BOOT IMAGES, YOU CAN SKIP STEPS 2 THROUGH 8.

1. Download the latest TWRP build for your device.

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, 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. Did you remove your screen lock?)

6. Use one the following commands 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 (or downloaded.)

9. Flash Magisk.

10. Reboot! You should now be rooted successfully!

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

Updating some custom ROMs and keeping root:
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.
The Following 82 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: 753
 
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

For NMJ88C & NMK24B, click here.

1. Transfer the Magisk 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 by selecting it from the "Install" menu.

5. Whenever Magisk finishes installing, simply reboot your device! You should now be rooted!
The Following 12 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,607
 
More
AFH mirrors for images:
The Following 15 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,594
 
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,594
 
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: 461
 
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,519
 
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: 753
 
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: 753
 
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes