[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] prorooter007:
Disclaimer :

* Your warranty is now void.
*
* We're not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this Kernel
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at us for messing up your device, we will laugh at you.

A project by Offensive Security

The Kali NetHunter is an Android penetration testing platform targeted towards Nexus and OnePlus devices built on top of Kali Linux, which includes some special and unique features. Of course, you have all the usual Kali tools in NetHunter as well as the ability to get a full VNC session from your phone to a graphical Kali chroot, however the strength of NetHunter does not end there. We've incorporated some amazing features into the NetHunter OS which are both powerful and unique. From pre-programmed HID Keyboard (Teensy) attacks, to BadUSB Man In The Middle attacks, to one-click MANA Evil Access Point setups, access to the Offensive Security Exploit Database... And yes, NetHunter natively supports wireless 802.11 frame injection with a variety of supported USB NICs.

About the kernel:

ONLY FOR ROMS BASED ON 4.9 KERNEL (TREBLE AND NON-TREBLE)

This kernel is based on LightningKernel so all the features from LightningKernel

Based on CAF kernel 4.9

Linux version 4.9.190

CAF Tag LA.UM.7.6.2.r1-09500-89xx.0

Build with Clang 9.0.5

Added support for Treble/Non-Treble

Global CPU undervolt for better battery life

Implemented Arter's Rapid GC on F2FS

Boeffla wakelock blocker

State notifier

Westwood TCP congestion algorithm enabled by default

KCAL color control

Added Klapse (livedisplay driver similar to lineage live display)

Sound Control

F2FS Support

BFQ I/O scheduler

Fiops IO Scheduler

Deadline IO Scheduler

Anxiety IO Scheduler

Pixutil CPU Governor

Blu_schedutil CPU Governor

Smurfutil CPU Governor

Pixel_smurfutil CPU Governor

Lightningutil CPU Governor

Adreno Idler

Added Fsync on/off support

USB Fast Charge

Enabled 19MHz idle GPU frequency

Single zip for both Treble and Non-Treble roms

Powersuspend

Vibration Control

Wireguard VPN support

Voltage Control

DTS Ultra

Dynamic SchedTune Boost (disabled by default)

CRC ON / OFF support

Adrenoboost

TTL Target Support

Backlight Dimmer

Things you can play with this nethunter kernel:

Wifi penetration as long as you got a working dongle.

The usual utilities you used to play with Kali OS(limited to armhf or arm64).

Recommendations

Things you'll need for wifi penetration test:

A usb c otg adapter. (you can also buy another otg with additional ethernet port.)

A usb wifi dongle capable of monitor mode, you can try some with realtek/ralink/atheros chipset. AWUS036H / AWUS036NEH works great !

Things you need before start flashing

A working twrp recovery.

Latest magisk installer zip.

Nethunter kernel zip & magisk module zip for nethunter.(Please DO NOT flash the magisk module zip from recovery.)

INSTALLATION

Download latest Nethunter Kernel version

Boot into recovery

Flash NethunterKernel.zip

Reboot to system

Flash Nethunter Magisk module from magisk

Reboot system

Chroot installation

Flash Nethunter Kernel (Ignor if already installed)

Install Nethunter Magisk module (Ignor if already installed)

Install BusyBox (Ignor if already installed)

Reboot

Downloaded and install Kali Nethunter app (apk)

Downloaded chroot

Renamed chroot to kalifs-full.tar.xz and moved it to /sdcard

Open Kali Nethunter App -> Chroot Manager

Select "full" and "install from sdcard"

Wait for Chroot install (this may take a few minutes)

Click "Install & Update" - allow Root permission for Nethunter Terminal app

Enjoy!

How to backup, restore and delete nethunter chroot

Backup chroot

* For encrypted or unencrypted device that used "Directory method" to install the kali chroot.

Run the custom command called "Backup Kali Chroot" from nethunter app, it will do the job for you, and dont worry if you see nothing on the terminal, it is actually working on it. it will end up creating a .tar.gz file named "kalifs-backup.tar.gz" into /sdcard.

* For encrypted or unencrypted device that used "Image file method" to install the kali chroot.

Just backup your chroot .img file, it's just a matter of size.

Restore chroot

* For encrypted or unencrypted device that used "Directory method" to install the kali chroot.

Place your kalifs-backup.tar.gz into /sdcard

Open nethunter app and go to chroot manager, then click "install chroot", and select "Restore from SdCard".

Now wait until it finishes decompressing.

You are now good to go again.

* For encrypted or unencrypted device that used "Image file method" to install the kali chroot.

Just place your chroot .img file into /sdcard and make sure the file is named "kali-chroot.img".

Delete chroot

Reboot into recovery.

Navigate to "Advanced" -> "Terminal"

run "rm -rf /data/local/nhsystem/kali-armhf"

DOWNLOADS

Kernel: Github Releases

Magisk module for Nethunter (you can also download from magisk app/repo): Nethunter Magisk Module

Thanks to:

flex1911

Khusika

All the contributors from my git history

XDA:DevDB Information

[KERNEL] [Tissot ] [KALI-NETHUNTER] [15/07/19], Kernel for the Xiaomi Mi A1

Contributors

prorooter007

Source Code: [url]https://github.com/prorooter007/Nethunter_Kernel_Xiaomi_msm8953[/URL]

Kernel Special Features:

Version Information

Status: Stable

Current Stable Version: V1.9

Stable Release Date: 2019-08-30

Created 2019-07-15

Last Updated 2019-08-30