Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CrimsonBloodfang opened this issue Mar 29, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@CrimsonBloodfang
Copy link

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 CrimsonBloodfang added the enhancement New feature or request label Mar 29, 2024
@CrimsonBloodfang
Copy link
Author

Kernel

@CrimsonBloodfang
Copy link
Author

@MarisaDAZA
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants