(Optional) Patching recovery
I will be providing the original and patched recovery_ramdisk.img
image.
The recovery_ramdisk_magisk.img
image is the patched output from the following steps.
1. Download your stock image
- Download from HuaweiStockRom.
- Depending on whether or not the free links work or are expired, you may need to pay for a paid link.
- Link (Paid by me)
- Original COR-L29_9.1.0.405_C432E1R1P9T8
- I was able to use the
recovery_ramdisk.img
from a different stock rom version than my own, but your milleage may vary.
2. Extracting recovery_ramdisk
- Unzip your downloaded stock image.
- Find the file
UPDATE.APP
which stores all of our partitions. - Download the image splitting Python script.
- Extract the partition:
python ./split_image.py ./UPDATE.APP
. - Find the
recovery_ramdisk.img
image from the/output
folder.
3. Patching recovery_ramdisk with Magisk
The following is based on the following instructions from Magisk.
- Copy the
recovery_ramdisk.img
to your phone.- Use USB cable and copy over to internal storage.
- Or copy to a SD card and insert it into your phone.
- Download and install Magisk to your phone (doesn’t require root to patch image)
- Link (Backup)
- Link (Official github)
- Requires you to enable permission to install APKs from external sources.
- Open the Magisk app.
- Press the
Install
button. - Select the
Select and Patch a File
option. - Browse to where the
recovery_ramdisk.img
image is located - Wait for the patching to finish.
- Copy the patched image
magisk_patched-*.img
from theDownloads
folder.- By default Magisk is configured to save patched images to
Downloads
. - If it isn’t present read the text log after patching to determine where it is located.
- By default Magisk is configured to save patched images to