FORUMS
Remove All Ads from XDA
Honor View 10

[GUIDE] Rooting your Essential PH-1

1,425 posts
Thanks Meter: 650
 
By bmg1001, Senior Member on 8th November 2017, 06: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 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.


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.

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 (ADVANCED USERS ONLY!)


REQUIREMENTS:
The latest TWRP build for our device.
Knowledge on how to use ADB/Fastboot, preferably also knowledge on how A/B partitions work.

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.

4. Once in fastboot, swap to the OPPOSITE partition using the command:
Code:
fastboot set_active other
5. Flash TWRP using:
Code:
fastboot flash boot twrp.img
6. 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.) (If you're on LineageOS 15.1, change your screenlock to "None" beforehand. You'll also want to make sure you boot into LineageOS 15.1 at least once beforehand.)

7. In ADB, start up "adb shell" and then press enter twice. You might see something like "~ # [Jn", and it'll probably change to something similar after pressing enter again. This is fine. Type the commands in the next step right after this, no spaces after the "~ # [Jn" part.

8. 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:
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:
dd if=/dev/block/bootdevice/by-name/boot_b of=/sdcard/bootb.img
9. 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 4.

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

11. Flash Magisk.

12. Reboot! You should now be rooted successfully!

*NOTE: TWRP will NOT remain installed on your device.
The Following 63 Users Say Thank You to bmg1001 For This Useful Post: [ View ] Gift bmg1001 Ad-Free
 
 
8th November 2017, 07:27 AM |#2  
bmg1001's Avatar
OP Senior Member
Flag Los Angeles
Thanks Meter: 650
 
Donate to Me
More

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, 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 6 Users Say Thank You to bmg1001 For This Useful Post: [ View ] Gift bmg1001 Ad-Free
8th November 2017, 08:24 AM |#3  
Kisakuku's Avatar
Senior Member
Thanks Meter: 4,580
 
More
AFH mirrors for images:
The Following 12 Users Say Thank You to Kisakuku For This Useful Post: [ View ] Gift Kisakuku Ad-Free
8th November 2017, 01:45 PM |#4  
spotmark's Avatar
Senior Member
Massachusetts
Thanks Meter: 1,554
 
More
Thanks for getting the latest boot image up so quickly.
8th November 2017, 02: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, 03:06 PM |#6  
prgopala's Avatar
Senior Member
Flag Sydney
Thanks Meter: 99
 
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, 03:43 PM |#7  
spotmark's Avatar
Senior Member
Massachusetts
Thanks Meter: 1,554
 
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, 04:45 PM |#8  
Senior Member
Thanks Meter: 434
 
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, 04:53 PM |#9  
aer0zer0's Avatar
Senior Member
Flag Cortland NY
Thanks Meter: 757
 
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, 05:12 PM |#10  
bmg1001's Avatar
OP Senior Member
Flag Los Angeles
Thanks Meter: 650
 
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, 05:16 PM |#11  
bmg1001's Avatar
OP Senior Member
Flag Los Angeles
Thanks Meter: 650
 
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