How to flash kernel in Redmi 13C/Poco C65 (gale/gust)
wulan17Using TWRP/Orangfox
- Copy the kernel to phone
- Reboot phone to recovery
- choose install
- find and choose your_kernel.zip
- slide to install
- wait until finish
- select wipe dalvik and swipe
- reboot system
Using AOSP recovery
- Copy the kernel to platform-tools dir
- reboot phone to recovery
- in the phone select apply update and then apply from adb
- in the pc open platform-tools dir in explorer
- type "cmd" in the explorer address bar and enter
- type adb sideload <kernel_name.zip> and enter
- in the phone select yes and wait until finish
- reboot to system
# Bonus
How to install apatch
!!! Only non-ksu kernel works
Using magiskboot on Android devices
- Download latest Magisk from Release Page.
- Rename
Magisk-*(version).apktoMagisk-*.zipand unzip it. - Push
Magisk-*/lib/arm64-v8a/libmagiskboot.soto your device by ADB:adb push Magisk-*/lib/arm64-v8a/libmagiskboot.so /data/local/tmp/magiskboot - Push stock boot.img and Image in AnyKernel3 to your device.
- Enter adb shell and run
cd /data/local/tmp/directory, thenchmod +x magiskboot - get your rom boot.img and copy it to /data/local/tmp
- Enter adb shell and run
cd /data/local/tmp/directory, execute./magiskboot unpack boot.imgto unpackboot.img, you will get akernelfile, this is your stock kernel. - extract Image.gz-dtb from your_kernel.zip
- Replace
kernelwithImage.gz-dtbby running the command:mv -f /path/to/Image.gz-dtb kernel - Execute
./magiskboot repack boot.imgto repack boot image, and you will get anew-boot.imgfile.
Using magiskboot on Windows/macOS/Linux PC
- Download the corresponding
magiskbootbinary for your OS from magiskboot_build. - Prepare your rom
boot.imgand extractImage.gz-dtbfrom your_kernel.zip in your PC. - Run
chmod +x magiskboot. - Enter the corresponding directory, execute
./magiskboot unpack boot.imgto unpackboot.img, you will get akernelfile, this is your stock kernel. - Replace
kernelwithImage.gz-dtbby running the command:mv -f Image.gz-dtb kernel - Execute
./magiskboot repack boot.imgto repack the boot image, and you will get anew-boot.imgfile.
7. copy new-boot.img to your phone
Using twrp
- follow flashing kernel via twrp until step number 7
- enter twrp backup menu
- backup boot to intenal storage
- reboot to system
- Open your favorite filemanager
- go to Internal/TWRP/ find boot.emmc.win
- rename boot.emmc.win to new-boot.img
Patching boot.img
- open apatch app and click the patch button (in the right up corner, the left of 3 dot)
- click "select a boot image to patch"
- choose new-boot.img
- set the superkey
- click on start button
- wait until finish
- flash Internal storage/Download/apatch_patched_blablabla.img using twrp or fastboot
- after boot to system open apatch app and click on superkey
- input your superkey which you set on the patch process before and click OK