Unlocked Bootloader ADB installed
First of all, install LineageOS 20 by following this instructions (thanks Mashopy). Turn on the phone and finalize installation before proceeding
Install Magisk following this method
Build the docker container and follow this to build the kernel using the automated kernel builder
Follow the aforementioned guide on kali.org to install every patch available for this kernel (4.14.19). Remember to commit every time you make a change
Change the kernel config according to the guide and remember to do it so from the build.sh menu and not from make menuconfig
because your .config
will be deleted.
- Create Nethunter APK from the
build.sh
menu. - Flash it as a Magisk module not from recovery
- Launch Nethunter and finalize installation
- Install Kernel Flasher to your phone.
- Create Anykernel .img-dtb from the
buil.sh
menu. Copy it to the phone. - Flash it through Kernel Flasher.
Open Nethunter and test:
- USB HID
- WIFI
- Bluetooth
- etc...