Add Essential PH-1
Change-Id: Ida816198753317292a35c56eada1f84e2dfc491e
diff --git a/_config.yml b/_config.yml
index 96891e3..51500e5 100644
--- a/_config.yml
+++ b/_config.yml
@@ -59,6 +59,9 @@
elephone:
output: true
+ essential:
+ output: true
+
fairphone:
output: true
diff --git a/_essential/essentialph1.markdown b/_essential/essentialph1.markdown
new file mode 100644
index 0000000..f99a3ad
--- /dev/null
+++ b/_essential/essentialph1.markdown
@@ -0,0 +1,49 @@
+---
+layout: device
+title: "Essential PH-1"
+codename: mata
+downloadfolder: mata
+oldurl:
+supportstatus: Current
+maintainer: Dees_Troy
+devicetree: https://github.com/TeamWin/android_device_essential_mata.git
+oem: Essential
+---
+
+{% include disclaimer.html %}
+
+{% include supportstatus.html %}
+
+{% include download.html %}
+
+Essential PH-1 Install Instructions
+
+Read these instructions and follow them carefully.
+
+The Essential Phone uses the newer AB partition scheme first introduced on the Pixel 1. As such there is no recovery partition. Instead, the recovery is part of the boot image. Unlike the Pixel devices, Essential has disabled fastboot boot so there is no way to temporarily boot TWRP to perform an installation.
+
+We are going to use the other boot slot to flash the initial copy of TWRP and boot TWRP. To do this you will need to turn on developer options and enable USB debugging. You will also need to enable OEM unlocking and unlock the bootloader. I am not going to discuss how to get the proper drivers installed or assist you with doing these basic steps. There's tons of guides elsewhere for these items if you need it. I will say that unlocking the bootloader requires using fastboot flashing unlock instead of fastboot oem unlock. Once you have adb working, run this command:
+`adb shell getprop ro.boot.slot_suffix`
+
+It should say:
+`[ro.boot.slot_suffix]: [_a]`
+Or:
+`[ro.boot.slot_suffix]: [_b]`
+
+Make note of whether you are currently using slot A or B. Next power off the device and boot to the bootloader using your USB cable and volume down. You want to switch to the other boot slot. If you are currently on slot A, type this:
+`fastboot --set-active=_b`
+Or on slot B type this:
+`fastboot --set-active=_a`
+
+You should see something like this:
+```Setting current slot to 'a'...
+OKAY [ 0.042s]
+finished. total time: 0.042s```
+
+Once it's on the right boot slot, type this:
+`fastboot flash boot twrp-3.2.3-0-mata.img && fastboot reboot`
+
+Your device should now boot into TWRP. From here, decrypt your device if needed at the password prompt. Go to the reboot page and tap on the button at the bottom to switch back to the slot you were originally using. Once you have finished making your backups, run this command:
+`adb push twrp-installer-3.2.3-0-mata.zip /sdcard`
+
+In TWRP, tap on Install and browse to the zip and install it. TWRP will now be installed to both slots. TWRP is now installed and you can reboot and use your device as normal, though with TWRP installed, you won't be able to take OTA updates without restoring the stock boot image.
diff --git a/_oem/essential.markdown b/_oem/essential.markdown
new file mode 100644
index 0000000..0e0a88d
--- /dev/null
+++ b/_oem/essential.markdown
@@ -0,0 +1,4 @@
+---
+layout: device
+oem: Essential
+---
diff --git a/oem/essential.html b/oem/essential.html
new file mode 100644
index 0000000..e4a5002
--- /dev/null
+++ b/oem/essential.html
@@ -0,0 +1,18 @@
+---
+layout: oem
+title: Essential
+permalink: /Devices/Essential/
+exclude: true
+---
+
+<div class="home">
+
+ <hr />
+ <ul class="post-list" id="post-list">
+ {% for post in site.essential %}
+ <p>
+ <strong><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }} ({{ post.codename }})</a></strong>
+ </p>
+ {% endfor %}
+ </ul>
+</div>