Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 41bbb05a authored by Nicolas Gelot's avatar Nicolas Gelot
Browse files

Merge branch '414-pixel-locked-bootloader' into 'master'

Add locked bootloader section for pixel 4, 4XL and 5

Closes #414

See merge request e/documentation/user!932
parents 794c9340 8e7aef7c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -56,6 +56,7 @@ install:
- { mode: Easy Installer }
recovery_install_command: fastboot flash boot
oem_unlock_file_name: oem_unlock_generic
oem_lock_file_name: oem_lock_pixel
recovery_install_file_name: recovery_install_fastboot_generic
install_e_file_name: install_e_with_erecovery
downloads_file_name: device_downloads_erecovery
+2 −1
Original line number Diff line number Diff line
@@ -64,6 +64,7 @@ install:
- { mode: Install doc }
- { mode: Easy Installer }
oem_unlock_file_name: oem_unlock_generic
oem_lock_file_name: oem_lock_pixel
recovery_install_file_name: recovery_install_fastboot_generic
recovery_install_command: fastboot flash boot
install_e_file_name: install_e_with_erecovery
+1 −0
Original line number Diff line number Diff line
@@ -57,6 +57,7 @@ maturity: orange
install:
- { mode: Install doc }
oem_unlock_file_name: oem_unlock_generic
oem_lock_file_name: oem_lock_pixel
recovery_install_file_name: recovery_install_fastboot_generic
recovery_install_command: fastboot flash vendor_boot
install_e_file_name: install_e_with_erecovery
+25 −11
Original line number Diff line number Diff line
# Steps to install /e/OS from recovery

{%  include alerts/tip.html content="Use the volume keys to navigate and power key to select" %}
{% include alerts/tip.html content="Use the volume up key to choose the arrow at the top to go back to main screen" %}
{% include alerts/tip.html content="If your PC is unable to detect your device with adb in the /e/OS recovery main screen tap `Advanced` >> `Enable adb`" %}

## Format the device

   {% include alerts/tip.html content="If your PC is unable to detect your device in adb ..in the /e/OS recovery main screen tap `Advanced` >> `Enable adb`" %}
On /e/OS Recovery main screen:

On /e/OS Recovery Main Screen:
1. Select `Factory reset`
1. Select `Format data / Factory reset` option
1. Next screen will display a warning that this action cannot be undone
1. Select `Format data` to proceed or `Cancel` if you want to go back
1. If you selected `Format data` ..the format process will complete
1. If you selected `Format data`, the format process will complete

   {% include alerts/tip.html content="You will see text in small font on the lower left side of the screen mentioning format progress"%}

@@ -24,9 +27,10 @@ On /e/OS Recovery Main Screen:

1. Display will now return to the Factory Reset screen

   {% include alerts/tip.html content="Use the volume up key to choose the arrow at the top to go back to main screen" %}
## Install /e/OS

In /e/OS recovery main screen:

   In /e/OS Recovery main screen:
1. Select `Apply Update` and in next screen `Apply update from adb`
1. In the next screen, the device is now in sideload mode

@@ -46,8 +50,18 @@ On /e/OS Recovery Main Screen:
1. The phone screen will now display some text with a message similar to
   > `Script succeeded result was [1.000000]`

   This means that the install was successful
1. Use the `volume key` to select the `back arrow` on the top left of the phone screen
1. Go back to the main screen and select `Reboot system now`
    > The reboot process may take 5 - 10 minutes
   This means that the install was successful.

{% if device.oem_lock_file_name %}

{% capture oem_lock %}templates/{{device.oem_lock_file_name}}.md{% endcapture %}
{% include {{ oem_lock }} %}

{% else %}
## Reboot the device

In /e/OS recovery main screen:

1. Select `Reboot system now`
    > The reboot process may take 5 - 10 minutes
{% endif %}
+26 −0
Original line number Diff line number Diff line
## Locking the bootloader

In /e/OS recovery main screen:

1. Select `Advanced`
1. Select `Reboot to bootloader`

Once the device is in fastboot mode:
1. Verify your PC finds it by typing:
    ```
    fastboot devices
    ```
    {% include alerts/tip.html content="If you see `no permissions fastboot` while on Linux or macOS, try running `fastboot` as root." %}

1. Download the [avb custom key](https://images.ecloud.global/stable/pkmd_pixel.bin)
1. Erase the previous key `fastboot erase avb_custom_key`
1. Flash the new key previously downloaded `fastboot flash avb_custom_key pkmd_pixel.bin`
1. Lock the device `fastboot flashing lock`
1. Use the volume key to select `Lock the bootloader`

## Reboot the device

1. Use power button to `Start` the device
    > The reboot process may take 5 - 10 minutes

{% include templates/post_oem_lock.md %}
Loading