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

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

Resolve "Update guide to firmware partitions"

parent 6ba1eecf
Loading
Loading
Loading
Loading
+18 −14
Original line number Diff line number Diff line
## Ensuring all firmware partitions are consistent

In some cases slot `b` can be unpopulated or contain much older firmware than slot `a`, leading to various issues including a potential hard-brick. We can ensure none of that will happen by copying the contents of slot `a` to slot `b`. 
{% include alerts/tip.html content="The steps below only need to be run once per device." %}

This step is `mandatory`.
In some cases, the inactive slot can be unpopulated or contain much older firmware than the active slot, leading to various issues including a potential hard-brick. We can ensure none of that will happen by copying the contents of the active slot to the inactive slot.

To do this, sideload the `copy-partitions-20210323_1922.zip` package by doing the following:
1. Download the `copy-partitions-20210323_1922.zip` file from [here](https://www.androidfilehost.com/?fid=2188818919693768129).
{% if device.uses_twrp %}
2. Sideload the `copy-partitions-20210323_1922.zip` package:
    * On the device, select "Advanced", "ADB Sideload", then swipe to begin sideload
    * On the host machine, sideload the package using: `adb sideload copy-partitions-20210323_1922.zip`
{% else %}
2. Sideload the `copy-partitions-20210323_1922.zip` package:
    * On the device, select "Apply Update", then "Apply from ADB" to begin sideload.
    * On the host machine, sideload the package using: `adb sideload copy-partitions-20210323_1922.zip`
{% include alerts/warning.html content="The Recovery  will present a screen that says `Signature verification failed`, this is expected, please click `Continue`." %}
{% endif %}
To do this, sideload the `copy-partitions-20220613-signed.zip` package by doing the following:
    
 1. Download the `copy-partitions-20220613-signed.zip` file from [here](https://mirrorbits.lineageos.org/tools/copy-partitions-20220613-signed.zip). It should have a MD5 sum of `79f2f860830f023b7030c29bfbea7737` or a SHA-256 sum of `92f03b54dc029e9ca2d68858c14b649974838d73fdb006f9a07a503f2eddd2cd`.
{%- if device.uses_twrp %}
    
 2. Sideload the `copy-partitions-20220613-signed.zip` package:
    * On the device, select `Advanced`, `ADB Sideload`, then swipe to begin sideload
    * On the host machine, sideload the package using: `adb sideload copy-partitions-20220613-signed.zip`
{%- else %}
    
  2. Sideload the `copy-partitions-20220613-signed.zip` package:
    * On the device, select `Apply Update`, then `Apply from ADB` to begin sideload.
    * On the host machine, sideload the package using: `adb sideload copy-partitions-20220613-signed.zip`

  3. Now reboot to recovery by tapping `Advanced`, then `Reboot to recovery`.
{%- endif %}