Hi. Yes, I have a Huawei Mate 10 8.0.0.You omitted the most important details like model, firmware
Assuming ramdisk.img, you should have Huawei with exactly EMUI 8.x?
Do you still have your ramdisk patched with the old Magisk - to revert if neccessary.
Try (re) patching with the new Magisk that ramdisk img previously (successfully) patched by the old Magisk, instead of patching the stock ramdisk
Try also with Magisk Canary (it's newer than Stable)
Use the appropriate (Stable or Canary) Magisk app
I have tried patching the original ramdisk and the last patched ramdisk (20.4). Nothing worked. Magisk and Magisk Canary patch the ramdisk wrong.
It's strange, because when Magisk/Canary patches the ramdisk wrong, the size of the file obtained is the same as the original ramdisk: 16 MB. However, in the old ramdisk patched correctly, the size was reduced: from 16 MB to 8 MB.
Is it possible that new versions of Magisk are not compatible with my phone? I currently have v20.4. The latest version of Magisk is 22.1. For example, if my phone was only compatible with version 21.0 (at most), how could I patch the ramdisk to version 21?
(Sorry for my bad English).