Install LineageOS / NetHunter
Published: Tue, Jul 08, 25
Install LineageOS + Root + F-Droid + BusyBox + NetHunter
β Full Tutorial β Install LineageOS + Root + F-Droid + BusyBox + NetHunter (AβZ)
(Example device: Google Pixel 2 XL β adjust files for your own device!)
πΉ 0. Set up your PC (Linux)
Install tools:
sudo apt update
sudo apt install android-sdk-platform-tools fastboot adb unzip curl wget
Check versions:
adb version
fastboot --version
These work on:
Ubuntu / Debian
Arch (use pacman -S android-tools)
Fedora (dnf install android-tools)
πΉ 1. Download what youβll need
LineageOS -
LineageOSβ Pick your device (Pixel 2 XL = taimen)
TWRP -
TWRPβ Download your .img file
Magisk (for root)
Magiskβ Download your .apk file
NikGApps (optional)
NikGAppsβ Download your .apk file
NetHunter
NetHunterβ Rootless APK or full images
F-Droid APK
F-DroidF-Droid APK (BusyBox)
πΉ 2. Enable Developer Options & OEM Unlock
On your phone:
Go to Settings β About phone β Build number
Tap 7 times β βYouβre now a developer!β
Go to Settings β System β Developer Options
-Enable OEM Unlocking
-Enable USB Debugging
πΉ 3. Connect device and verify ADB
Plug in USB cable.
Check ADB connection:
adb devices
`If it says βunauthorized,β check the screen and approve the dialog.
πΉ 4. Reboot to fastboot
adb reboot bootloader
OR hold:
Power + Vol Down β bootloader screen
πΉ 5. Unlock the bootloader
β οΈ This wipes your entire phone. Back up first!
- Run:
fastboot flashing unlock
On older devices:
fastboot oem unlock
Confirm on-screen prompt.
πΉ 6. Flash TWRP Recovery
Assuming twrp.img is in your current folder:
fastboot flash recovery twrp.img
OR for A/B devices:
fastboot boot twrp.img
β This boots TWRP without flashing, handy for Pixel.
πΉ 7. Wipe data for a clean install
In TWRP:
Wipe β Advanced Wipe β select:
Dalvik / ART Cache
System
Data
Cache
Swipe to wipe β
πΉ 8. Install LineageOS
Option A β ADB sideload:
In TWRP:
Advanced β ADB Sideload
On PC:
adb sideload lineage-xx.zip
Option B β Copy to storage:
Enable MTP in TWRP β copy file
Tap Install β select ZIP β swipe to flash
πΉ 9. Install GApps (Optional)
Same as Lineage:
Flash NikGApps ZIP
OR MindTheGapps, BitGApps, etc.
πΉ 10. Install Magisk (Root)
Two ways:
Method 1 β Patch boot.img
Install LineageOS first
Boot into system
Install Magisk APK
Tap β Install β Select and patch a file β pick your boot.img
Magisk generates magisk_patched.img
Back to fastboot:
fastboot flash boot magisk_patched.img
fastboot reboot
Done!
Method 2 β Flash ZIP in TWRP
Copy Magisk ZIP to phone
TWRP β Install β flash Magisk ZIP
Reboot
(A/B devices prefer patched boot.img method.)
πΉ 11. Install F-Droid
Sideload F-Droid.apk
Browse and install open-source apps
πΉ 12. Install BusyBox
Search βBusyBoxβ in F-Droid
Install and grant root
Run install to create symlinks
πΉ 13. Install NetHunter
NetHunter Rootless:
Download NetHunter Rootless APK
Install from F-Droid or sideload
Launch β download Kali minimal or full chroot
Done!
NetHunter Full:
Download NetHunter ZIPs for your device
Flash via TWRP
Install NetHunter App & Terminal APKs
Launch NetHunter β finish setup
πΉ 14. Hardware for Hacking
β Wi-Fi dongles that work out-of-box:
Alfa AWUS036NHA β Atheros AR9271
Alfa AWUS036NH β Ralink RT3070
TP-Link TL-WN722N v1 β Atheros AR9271
β Bluetooth dongles:
CSR8510 A10
CSR 4.0 nano dongles
These support Bluetooth scanning, attacks, HID, etc.
Troubleshooting
No device detected β check USB cable, drivers
Bootloop β wipe caches, reflash ROM
No Wi-Fi monitor β need compatible dongle
Chroot fails β try different mirrors or manual import
Quick Links:
LineageOS Downloads
LineageOS
TWRP Downloads
TWRP
Magisk Releases
Magisk
F-Droid
F-Droid
NetHunter Official Page
NetHunter
Security Tip:
use F-Droid to download Tor Browser for Android by enabling the Guardian Projectβs Repository
Guardian Projectβs
F-Droid Repoβs ADD:
F-Droid