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

Commit cd0b58a2 authored by Manoj Nair's avatar Manoj Nair
Browse files

Merge branch '722-adding-section-specific-to-oneplus-devices' into 'master'

Resolve "Adding section specific to OnePlus devices"

Closes #722

See merge request e/documentation/user!805
parents b5af8160 a2f0f1fd
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@ battery: {removable: False, capacity: 4500, tech: 'Li-Po'}
before_install_file_name: before_install_needs_specific_android_fw
before_install_args: {version: 12}
before_lineage_install: ab_copy_partitions
before_recovery_install: {instructions: 'boot_stack', partitions: [dtbo, vendor_boot]}
bluetooth: {spec: '5.2', profiles: [A2DP + aptX HD]}
cameras:
- {flash: 'Dual LED (dual tone)', info: '48 MP (main)'}
@@ -13,7 +14,7 @@ codename: lemonade
cpu: Kryo 680
cpu_cores: '8'
cpu_freq: 1 x 2.84 GHz + 3 x 2.42 GHz + 4 x 1.8 GHz
current_branch: 18.1
current_branch: 19.1
width: 2.92 in
height: 6.30 in
depth: 0.34 in
@@ -58,8 +59,8 @@ region: All
maturity: orange
install:
- { mode: Install doc }
copy_partitions_file_name: before_e_install_ab_copy_partitions
oem_unlock_file_name: oem_unlock_generic
before_recovery_install_file_name: before_recovery_install_boot_stack
recovery_install_command: fastboot flash boot
recovery_install_file_name: recovery_install_fastboot_ab
install_e_file_name: install_e_with_erecovery
+6 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
{% assign downloads_file_name        = "device_downloads" %}
{% assign before_install_file_name   = "before_install" %}
{% assign oem_unlock_file_name       = "oem_unlock" %}
{% assign before_recovery_install_file_name = "before_recovery_install" %}
{% assign recovery_install_file_name = "recovery_install" %}
{% assign copy_partitions_file_name  = "copy_partitions" %}
{% assign install_e_file_name        = "install_e" %}
@@ -24,6 +25,9 @@
{% if device.oem_unlock_file_name %}
    {% assign oem_unlock_file_name = device.oem_unlock_file_name %}
{% endif %}
{% if device.before_recovery_install_file_name %}
    {% assign before_recovery_install_file_name = device.before_recovery_install_file_name %}
{% endif %}

{% if device.recovery_install_file_name %}
    {% assign recovery_install_file_name = device.recovery_install_file_name %}
@@ -45,6 +49,7 @@
{% capture downloads_template_path %}templates/{{ downloads_file_name }}.md{% endcapture %}
{% capture before_install_template_path %}templates/{{ before_install_file_name }}.md{% endcapture %}
{% capture oem_unlock_template_path %}templates/{{ oem_unlock_file_name }}.md{% endcapture %}
{% capture before_recovery_install_template_path %}templates/{{ before_recovery_install_file_name }}.md{% endcapture %}
{% capture recovery_install_template_path %}templates/{{ recovery_install_file_name }}.md{% endcapture %}
{% capture copy_partitions_template_path %}templates/{{ copy_partitions_file_name }}.md{% endcapture %}
{% capture install_e_template_path %}templates/{{ install_e_file_name }}.md{% endcapture %}
@@ -54,6 +59,7 @@
{% include {{ downloads_template_path }} %}
{% include {{ before_install_template_path }} %}
{% include {{ oem_unlock_template_path }} %}
{% include {{ before_recovery_install_template_path }} %}
{% include {{ recovery_install_template_path }} %}
{% include {{ copy_partitions_template_path }} %}
{% include {{ install_e_template_path }} %}
+0 −0

Empty file added.

+17 −0
Original line number Diff line number Diff line
## Flashing additional partitions

{% include alerts/warning.html content="This platform requires additional partitions to be flashed for recovery to work properly, the process to do so is described below." %}

1. Download the following files from the directory named with the latest date [here](https://mirror.math.princeton.edu/pub/lineageos/full/{{ device.codename }}/).
{%- for partition in device.before_recovery_install.partitions %}
  * {{ partition }}.img
{%- endfor %}
2. Next we manually reboot into bootloader or download mode
  * {% t devices.with_the_device_powered_off %}
  * {% t device.download_boot %}
3. Flash the downloaded image files to your device by typing (replace `<...>` with the actual filenames):
  ```
  {%- for partition in device.before_recovery_install.partitions %}
fastboot flash {{ partition }} <{{ partition }}>.img
  {%- endfor %}
  ```