How to flash kernel in Redmi 13C/Poco C65 (gale/gust)

How to flash kernel in Redmi 13C/Poco C65 (gale/gust)

wulan17

Using TWRP/Orangfox

  1. Copy the kernel to phone
  2. Reboot phone to recovery
  3. choose install
  4. find and choose your_kernel.zip
  5. slide to install
  6. wait until finish
  7. select wipe dalvik and swipe
  8. reboot system


Using AOSP recovery

  1. Copy the kernel to platform-tools dir
  2. reboot phone to recovery
  3. in the phone select apply update and then apply from adb
  4. in the pc open platform-tools dir in explorer
  5. type "cmd" in the explorer address bar and enter
  6. type adb sideload <kernel_name.zip> and enter
  7. in the phone select yes and wait until finish
  8. reboot to system


# Bonus

How to install apatch

!!! Only non-ksu kernel works

Using magiskboot on Android devices

  1. Download latest Magisk from Release Page.
  2. Rename Magisk-*(version).apk to Magisk-*.zip and unzip it.
  3. Push Magisk-*/lib/arm64-v8a/libmagiskboot.so to your device by ADB: adb push Magisk-*/lib/arm64-v8a/libmagiskboot.so /data/local/tmp/magiskboot
  4. Push stock boot.img and Image in AnyKernel3 to your device.
  5. Enter adb shell and run cd /data/local/tmp/ directory, then chmod +x magiskboot
  6. get your rom boot.img and copy it to /data/local/tmp
  7. Enter adb shell and run cd /data/local/tmp/ directory, execute ./magiskboot unpack boot.img to unpack boot.img, you will get a kernel file, this is your stock kernel.
  8. extract Image.gz-dtb from your_kernel.zip
  9. Replace kernel with Image.gz-dtb by running the command: mv -f /path/to/Image.gz-dtb kernel
  10. Execute ./magiskboot repack boot.img to repack boot image, and you will get a new-boot.img file.

Using magiskboot on Windows/macOS/Linux PC

  1. Download the corresponding magiskboot binary for your OS from magiskboot_build.
  2. Prepare your rom boot.img and extract Image.gz-dtb from your_kernel.zip in your PC.
  3. Run chmod +x magiskboot.
  4. Enter the corresponding directory, execute ./magiskboot unpack boot.img to unpack boot.img, you will get a kernel file, this is your stock kernel.
  5. Replace kernel with Image.gz-dtb by running the command: mv -f Image.gz-dtb kernel
  6. Execute ./magiskboot repack boot.img to repack the boot image, and you will get a new-boot.img file.

7. copy new-boot.img to your phone


Using twrp

  1. follow flashing kernel via twrp until step number 7
  2. enter twrp backup menu
  3. backup boot to intenal storage
  4. reboot to system
  5. Open your favorite filemanager
  6. go to Internal/TWRP/ find boot.emmc.win
  7. rename boot.emmc.win to new-boot.img


Patching boot.img

  1. open apatch app and click the patch button (in the right up corner, the left of 3 dot)
  2. click "select a boot image to patch"
  3. choose new-boot.img
  4. set the superkey
  5. click on start button
  6. wait until finish
  7. flash Internal storage/Download/apatch_patched_blablabla.img using twrp or fastboot
  8. after boot to system open apatch app and click on superkey
  9. input your superkey which you set on the patch process before and click OK


Report Page