Hi
I have Mi a2 code name jasmine_sprout rooted.
I want to flash it with compatible kernel that can support HID Attacks
In stock rooted rom , i am unable to see HID interface in Nethunter app.
So i flash it with android 10 rom named as DerpFest but it also wasted.


So, i try to compile the kernel for Nethunter using guide from the link https://www.kali.org/docs/nethunter/building-nethunter/


I try to compile it for both stock pie and android 10.
I am using Kali 2020.2 with all dependency installed for compiling.


Compiling for Android 10.


I use kernel source code from https://github.com/MiCode/Xiaomi_Ker.../jasmine-q-oss and following steps from https://www.kali.org/docs/nethunter/building-nethunter/
choose the config file "jasmine_perf_defconfig" for building nethunter_defconfig
Got some errors , unable to find it solutions








Compling of android 9 stock rom


I use kernel source code from https://github.com/MiCode/Xiaomi_Ker.../jasmine-p-oss and following steps from https://www.kali.org/docs/nethunter/building-nethunter/
choose the config file "jasmine_stock_defconfig" for building nethunter_defconfig
unable to patch the kernel from the script build.sh.
On executing kali-nethunter-kernel build script i Got some errors , unable to find it solutions







Please help in compiling kernel for mi a2.
Or if anyone has compile kernel for mi a2 support HID interface, please provide download links.