Install Wireless_firmware.zip as a magisk module & flash the kernel using twrp or any other custom recovery
{ flashing the kernel will preserve root }
Not sure everything works correctly , use at your own risk
Installation
1) Download the zip file containing the kernel
2) Flash the zip using twrp or franco kernel manager
3) Install Busybox
4) Download Wireless_firmware.zip open Magisk and install the zip as Magisk module
5) Install Nethunter store
6) Install Nethunter app & Nethunter terminal from Nethunter store
7) Open Nethunter app & Download the full chroot kalifs within the app and let the app setup everything. After it finishes it'll start the chroot automatically
8) Update the sources with apt-get update && apt-get upgrade in the chroot using nethunter terminal
9) Reboot the device
Note: if nethunter app crashes open any android terminal in su environment and paste the following.
pm grant com.offsec.nethunter android.permission.ACCESS_FINE_LOCATION
pm grant com.offsec.nethunter android.permission.ACCESS_COARSE_LOCATION
pm grant com.offsec.nethunter android.permission.READ_EXTERNAL_STORAGE
pm grant com.offsec.nethunter android.permission.WRITE_EXTERNAL_STORAGE
pm grant com.offsec.nethunter com.offsec.nhterm.permission.RUN_SCRIPT
pm grant com.offsec.nethunter com.offsec.nhterm.permission.RUN_SCRIPT_SU
pm grant com.offsec.nethunter com.offsec.nhterm.permission.RUN_SCRIPT_NH
pm grant com.offsec.nethunter com.offsec.nhterm.permission.RUN_SCRIPT_NH_LOGIN