bmax121/APatch

Support patching for (Huawei) devices with kernel.img = boot.img+ramdisk

Opened this issue · 3 comments

Is your feature request related to a problem?/你的请求是否与某个问题相关?

I would like APatch to be compatible and work with Huawei kernels that have boot.img and ramdisk combined.

Describe the solution you'd like/描述你想要的解决方案

Maybe something the same way as Magisk does where they have separate patching method for devices with ramdisk? Or have mkbootimg tools functionality within the app?

Describe alternatives you've considered/描述您考虑过的备选方案

As an alternative, maybe I will have to manually unpack our kernel.img on a pc using 'mkbootimg tools' and patch the unpacked boot.img using APatch app, then repack patched boot.img + ramdisk back to kernel.img.. then flash kernel.img using twrp or fastboot

Additional context/其他信息

I can patch kernel.img successfully and reboot, but I will never have root access and entering Superkey will force reboot the device. I use Kernel version 4.4.302

It's the same with me. I can patch kernel partition and confirm super key. But device will bootloop, when I try to install system patch. My kernel version is 4.4.23+