Skip to content

Based on InfiniR_kernel_ucmi with NetHunter Support for Xiaomi 10 and Xiaomi 10 Pro

License

Notifications You must be signed in to change notification settings

Yttehs-HDX/InfiniR_kernel_ucmi_NetHunter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kernel Characteristics

Compiler

Clang: ZyCromerZ/Clang 17.0.0

KenrelSU

Please run the following step before building.

cd /path/to/kernel/source
curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -

NetHunter

I've completed the steps below, so you don't have to do again.

cd /path/to/kernel/source
git clone https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-kernel.git
patch -p1 < kali-nethunter-kernel/patches/4.19/add-rtl88xxau-5.6.4.2-drivers.patch
patch -p1 < kali-nethunter-kernel/patches/4.19/add-wifi-injection-4.14.patch
patch -p1 < kali-nethunter-kernel/patches/4.19/fix-ath9k-naming-conflict.patch

For Rom Devs

Warnig: Use upstream source instead, If you don't know what the NetHunter Kernel is.

If you want to inline this kernel in your Roms then do this before building ( In kernel root directory ):

curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -

Do this Everytime you clone the repo bcz this kernel has the support for Kernel-SU and it needs to be recloned and checkout to latest stable tag.

For Kenrel Devs

Before Building

Please install all the dependencies.

For ArchLinux/Manjaro ( ArchLinux based Linux )

sudo pacman -S clang gcc llvm bc bison base-devel ccache curl flex gcc-multilib git git-lfs gnupg gperf imagemagick lib32-readline lib32-zlib elfutils lz4 sdl openssl libxml2 lzop pngcrush rsync schedtool squashfs-tools libxslt zip zlib lib32-ncurses wxgtk3 ncurses inetutils cpio z3

For others

# use relevant package manager ( apt, yum... )

Building Kernel

I'v made a fully automated script from scratch to the packaged kernel.

cd /path/to/kernel/source
./build.sh
  • Template example ( kali-nethunter-project/nethunter-installer/devices/devices.cfg )
# Xiaomi 10 for HyperOS Android 14
[ucmi]
author = "Yttehs"
arch = arm64
version = "${KERNEL_VERSION}"
flasher = anykernel
modules = 1
slot_device = 0
block = /dev/block/bootdevice/by-name/boot
devicenames = umi,cmi,Mi10,Mi10pro

Finally, get the zip in kali-nethunter-project/nethunter-installer/kernel-nethunter-YYYYMMDD_HHMMSS-ucmi-thirteen.zip.

Packages

No packages published

Languages

  • C 98.5%
  • Assembly 1.0%
  • Makefile 0.2%
  • Perl 0.1%
  • Shell 0.1%
  • Python 0.1%