Installing NetHunter on the Xiaomi Mi A3
Table of Contents
From unpacking to running NetHunter in 4 steps:
- Installing adb and fastboot
- Unlock Bootloader
- Flash LineageOS Recovery and LineageOS 22 and Magisk
- Install NetHunter
1. Installing adb and fastboot
kali@kali:~$ sudo apt update
[...]
kali@kali:~$ sudo apt install adb fastboot
[...]
kali@kali:~$
2. Unlock Bootloader
- Go to Settings -> About Phone then tap 7 times on “Build number” to enable “Developer options”
- Go to Settings -> System -> Developer options and tap “OEM unlocking” then turn off device
- Hold Volume Down and Power Buttons till you see “FASTBOOT” screen now plug device to PC
- Open terminal and run
fastboot flashing unlock
and hold Volume Down then wait until “FASTBOOT” come back now runfastboot flashing unlock_critical
- After reboot u should see “Unlocked” on boot screen
3. Flash LineageOS Recovery and LineageOS 22 and Magisk
- Download boot_los22.img
- Reboot device holding Volume Down till “FASTBOOT” screen appear and connect it to PC
- Now open terminal and cd to directory where you downloaded boot_los22.img and flash recovery like below
kali@kali:~$ cd Downloads/
[...]
kali@kali:~/Downloads$ fastboot flash boot_a boot_los22.img
[...]
kali@kali:~/Downloads$ fastboot flash boot_b boot_los22.img
[...]
kali@kali:~/Downloads$
- To reboot device to flashed recovery run
fastboot reboot
and hold Volume Up button until you see “RECOVERY” screen - Tap “Apply update” then tap “Apply from ADB”
- Download lineage-22.0-20241114-UNOFFICIAL-laurel_sprout.zip
- Flash LineageOS 22
kali@kali:~/Downloads$ adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached
dea044c9 sideload
kali@kali:~/Downloads$ adb sideload lineage-22.0-20241114-UNOFFICIAL-laurel_sprout.zip
[...]
kali@kali:~/Downloads$
- Now wait for LineageOS to install if some error appear just tap “Yes”
- When it is installed tap “Reboot system now”
- Now setup your device like any android phone
- When you finished setting up your device reboot it and hold Volume Up
- If you see “RECOVERY” screen tap “Apply update” -> “Apply from ADB”
- Download Magisk-v28.1.apk
- Flash Magisk
kali@kali:~/Downloads$ adb devices
dea044c9 sideload
kali@kali:~/Downloads$ adb sideload Magisk-v28.1.apk
[...]
kali@kali:~/Downloads$
- Reboot Device and open newly installed app “Magisk” and setup it with instructions on screen
4. Install NetHunter
- Download kali-nethunter-2025.1-laurel-sprout-los-fifteen-full.zip
- Copy it from PC to device
- Open Magisk app, Modules -> Install from storage and select “kali-nethunter-2025.1-laurel-sprout-los-fifteen-full.zip”
- Then wait for installation to end, now tap “Reboot System”
- When phone starts you will see Kali Bootanimation
Enjoy Kali NetHunter on the Xiaomi Mi A3
Please help with the development by submitting issues and pull requests. We much appreciate it.
Updated on: 2025-Apr-13
Author:
mr00k3