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

Commit 3e6c14b6 authored by Romain Hunault's avatar Romain Hunault
Browse files

Add LG devices

parent afe75a53
Loading
Loading
Loading
Loading

_data/devices/d802.yml

0 → 100644
+15 −0
Original line number Diff line number Diff line
codename: d802
name: G2 (International)e
vendor: LG
versions: [oreo]
status: [dev]
recovery_install_method: dd
root_method: [custom, 'https://forum.xda-developers.com/android/development/guide-root-method-lg-devices-t3049772']
#models: []
#before_install:
#is_ab_device: true
#no_oem_unlock_switch:
#custom_unlock_cmd:
#custom_recovery_codename:
#fastboot_boot: true
#is_unlockable: false

_data/devices/d855.yml

0 → 100644
+15 −0
Original line number Diff line number Diff line
codename: d855
name: G3 (International)
vendor: LG
versions: [nougat]
status: [dev]
recovery_install_method: dd
root_method: [custom, 'http://forum.xda-developers.com/lg-g3/general/guide-root-lg-firmwares-kitkat-lollipop-t3056951']
#models: []
#before_install:
#is_ab_device: true
#no_oem_unlock_switch:
#custom_unlock_cmd:
#custom_recovery_codename:
#fastboot_boot: true
#is_unlockable: false

_data/devices/h850.yml

0 → 100644
+14 −0
Original line number Diff line number Diff line
codename: h850
name: G5 (International)
vendor: LG
versions: [nougat]
status: [dev]
recovery_install_method: fastboot_lg
#models: []
#before_install:
#is_ab_device: true
#no_oem_unlock_switch:
#custom_unlock_cmd:
#custom_recovery_codename:
#fastboot_boot: true
#is_unlockable: false
+1 −0
Original line number Diff line number Diff line
> Warning: Installing a custom recovery will erase all data on your device! Before proceeding, ensure the data you would like to retain is backed up to your PC and/or a online drive.
+53 −0
Original line number Diff line number Diff line
{%- assign device = site.data.devices[page.device] -%}
{% if device.custom_recovery_codename %}
{% assign custom_recovery_codename = device.custom_recovery_codename %}
{% else %}
{% assign custom_recovery_codename = device.codename %}
{% endif %}

## Rooting your device

> Important: The device must be rooted before proceeding any further.

{% case device.root_method[0] %}
{% when 'custom' %}
1. Root your device by following [this]({{ device.root_method[1] }}) guide.
{% when 'kingroot' %}
1. Download KingRoot from [here](https://kingroot.net/).
   1. Install and run the apk to achieve root. Ensure you have a working Internet connection.
{% when 'towelroot' %}
1. Download TowelRoot from [here](https://towelroot.com/).
   1. Click the large lambda symbol to download the apk.
   1. Install and run the apk to achieve root.
{% endcase %}

## Installing a custom recovery using `dd`

{% include alerts/warning_install_custom_recovery.md %}

{% if device.custom_recovery_link %}
1. Download a custom recovery - you can download one [here]({{ device.custom_recovery_link }}).
{% else %}
{% if device.uses_lineage_recovery %}
1. Download a custom recovery - you can download [Lineage Recovery](https://download.lineageos.org/{{ custom_recovery_codename }}). Simply download the latest recovery file, named something like `lineage-{{ device.current_branch }}-{{ site.time | date: "%Y%m%d" }}-recovery-{{ custom_recovery_codename }}.img`.
{% else %}
1. Download a custom recovery - you can download [TWRP](https://dl.twrp.me/{{ custom_recovery_codename }}).
{% endif %}
{% endif %}
1. Place the recovery image file on the root of /sdcard (USB debugging have to be enabled in developer options) :

    ```shell
    adb push twrp-x.x.x-x-{{ device.codename }}.img /sdcard/twrp-{{ device.codename }}.img
    ```
1. Now, open an `adb shell` from a command prompt (on Windows) or terminal (on Linux or macOS) window. In that shell, type the following commands:

    ```shell
    su
    dd if=/sdcard/twrp-{{ device.codename }}.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery
    ```
1. Manually reboot into recovery
   With the device powered off, hold `Volume Down` + `Power`. Release all buttons and press `Power` again as soon as the LG logo appears.

{% if device.vendor == "LG" %}
1. Accept the factory reset prompt using the hardware buttons. If you have done everything correctly, this will not actually reset your device but instead will install the custom recovery.
{% endif %}
Loading