A very quick personal entry to summarize how to install magisk in my lineage device. It seems that now every time the OS is upgraded magisk should also be re-installed on it. The procedure is described in the project documentation but I prefer my usual detailed steps.
Download and install/upgrade the latest magisk app on the phone once it is upgraded.
Magisk need to patch the boot.img of the lineage distribution. Download the used lineage bundle for your phone.
Install python and the protobuf package on your laptop in order to extract the zip.
dnf install python python-protobuf
Download extract_android_ota_payload tool and execute it over the zip file.
wget https://raw.githubusercontent.com/cyxx/extract_android_ota_payload/master/extract_android_ota_payload.py
wget https://raw.githubusercontent.com/cyxx/extract_android_ota_payload/master/update_metadata_pb2.py
python extract_android_ota_payload.py lineage-18.1-YYYYMMDD-nightly-XXX-signed.zip .
Extracting 'payload.bin' from OTA file...
Extracting 'boot.img'
Extracting 'system.img'
Use adb to push the image to the phone:
adb push boot.img /sdcard/Download/
Open the application on the phone, click install, Select and patch File and locate the image. Click Let's go. A patched magisk_patched-XXXXX_XXXXX.img is generated. Copy it to your laptop.
adb pull /sdcard/Download/magisk_patched-XXXXX_XXXXX.img
Now just flash the new boot image to your phone.
adb reboot-bootloader
fastboot devices
fastboot flash boot magisk_patched-XXXXX_XXXXX.img
And that is all. Magisk is installed and now my firewall can be configured again.
Regards!
Comments