bmax121 / APatch

The patching of Android kernel and Android system
GNU General Public License v3.0
4.51k stars 339 forks source link

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

Open CrimsonBloodfang opened 7 months ago

CrimsonBloodfang commented 7 months ago

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

CrimsonBloodfang commented 7 months ago

Kernel

CrimsonBloodfang commented 6 months ago

https://github.com/turex/siberia_hi6250_kernel

MarisaDAZA commented 5 months ago

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+