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-Droid F-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