How freddyshoesvirtual/kali-nethunter-app works
NetHunter is an Android installer, updater, and control interface for a Kali Linux chroot. Users enter through the app’s navigation activity, then use feature screens to manage the chroot and its services or access security and device tools. The sampled code shows chroot management, service persistence, privileged shell execution, terminal bridging, audio playback, and GPS publishing. Other documented or tree-visible feature screens are included, but their internal wiring is not inferred where source excerpts do not show it.
Main entry points: KaliServicesData.java Service state and actions · ChrootManagerFragment.java Chroot manager · CompatCheckService.java Compatibility checks · LocationUpdateService.java Location publisher
Components 25
App and Chroot
- App navigation
src/com/offsec/nethunter/AppNavHomeActivity.java - Chroot manager
src/com/offsec/nethunter/ChrootManagerFragment.java - Compatibility checks
src/com/offsec/nethunter/service/CompatCheckService.java - Kali services
src/com/offsec/nethunter/KaliServicesFragment.java - Service state and actions
src/com/offsec/nethunter/RecyclerViewData/KaliServicesData.java - Service database
src/com/offsec/nethunter/SQL/KaliServicesSQL.java - Notifications
src/com/offsec/nethunter/service/NotificationChannelService.java
Execution Runtime
- Runtime paths
src/com/offsec/nethunter/utils/NhPaths.java - Root shell execution
src/com/offsec/nethunter/utils/ShellExecuter.java - Terminal bridge
src/com/offsec/nethunter/bridge/Bridge.java - Terminal sessions
src/com/offsec/nethunter/service/TerminalService.java - Service executor
src/com/offsec/nethunter/Executor/KaliServicesExecutor.java
Security Features
- Nmap tools
src/com/offsec/nethunter/NmapFragment.java - SearchSploit
src/com/offsec/nethunter/SearchSploitFragment.java - USB Arsenal
src/com/offsec/nethunter/USBArsenalFragment.java - DuckHunter
src/com/offsec/nethunter/DuckHunterFragment.java - CARsenal
src/com/offsec/nethunter/CARsenalFragment.java - Evil Twin
src/com/offsec/nethunter/EvilTwinFragment.java - NFC tools
src/com/offsec/nethunter/NFCFragment.java
Device Services
- Audio playback
src/com/offsec/nethunter/AudioFragment.java - Playback service
src/com/offsec/nethunter/audio/AudioPlaybackService.java - GPS controls
src/com/offsec/nethunter/KaliGpsServiceFragment.java - Location publisher
src/com/offsec/nethunter/gps/LocationUpdateService.java
Other components
- Android user
- NeoTerm app
Connections 12
- Android user → App navigation: opens app
- Chroot manager → Service executor: runs chroot task
src/com/offsec/nethunter/ChrootManagerFragment.java - Chroot manager → Notifications: starts notification
src/com/offsec/nethunter/ChrootManagerFragment.java - Compatibility checks → Root shell execution: checks chroot
src/com/offsec/nethunter/service/CompatCheckService.java - Compatibility checks → Runtime paths: resolves paths
src/com/offsec/nethunter/service/CompatCheckService.java - Kali services → Service state and actions: manages service data
src/com/offsec/nethunter/KaliServicesFragment.java - Service state and actions → Service executor: dispatches actions
src/com/offsec/nethunter/RecyclerViewData/KaliServicesData.java - Service state and actions → Service database: backs up data
src/com/offsec/nethunter/RecyclerViewData/KaliServicesData.java - Audio playback → Playback service: uses playback
src/com/offsec/nethunter/AudioFragment.java - GPS controls → Location publisher: controls publisher
src/com/offsec/nethunter/KaliGpsServiceFragment.java - Location publisher → Android user: publishes location
src/com/offsec/nethunter/gps/LocationUpdateService.java - Terminal bridge → NeoTerm app: targets remote interface
src/com/offsec/nethunter/bridge/Bridge.java