ANTAAF
Android Network Traffic Analyzer & Active Firewall
Created on 11th March 2026
•
ANTAAF
Android Network Traffic Analyzer & Active Firewall
The problem ANTAAF solves
ANTAAF is a privacy-focused Android network monitoring tool. It solves several key problems:
🔒 1. Network Privacy & Transparency
Most apps on your phone make network connections you don't know about — sending data to trackers, analytics servers, or unknown destinations. ANTAAF lets you see every connection every app makes, giving you full visibility into what's happening on your device behind the scenes.
🚫 2. No Root Required
Traditional packet capture on Android requires root access. ANTAAF works around this by simulating a local VPN — it intercepts all traffic locally on the device without needing root and without sending data to any remote VPN server.
🔍 3. Deep Traffic Inspection
Extract SNI, DNS queries, HTTP URLs, and remote IPs
Inspect HTTP requests/responses with built-in decoders
Decrypt HTTPS/TLS traffic (via mitmproxy)
View full payload as hexdump or text
📦 4. Traffic Export & Analysis
Dump traffic to PCAP files (Wireshark-compatible), stream to a remote receiver for real-time analysis, or download from a browser.
🛡️ 5. Traffic Filtering & Anomaly Detection
Create rules to filter known-good traffic, making it easy to spot suspicious or anomalous connections.
🌍 6. Geolocation of Servers
Identifies the country and ASN of remote servers via offline DB lookups, so you know where your data is going.
Challenges we ran into
🔴 1. Package Rename Gone Wrong
A package rename operation resulted in truncated/corrupted source files, causing widespread compilation errors across the project. This required restoring corrupted files and fixing package name mismatches to get the project building again. (Conversations: "Fixing Compilation Errors" x2)
🔴 2. Compilation & Build Issues
Even after fixing the rename, you dealt with persistent compilation errors from the ./gradlew assembleStandardDebug build — likely cascading issues from the corrupted files and mismatched references throughout the codebase.
🟡 3. Code Quality & Stability Bugs
You uncovered several bugs in core files like PCAPdroid.java and CaptureService.java:
Null pointer exceptions
Android 13+ API compliance issues
Thread-safety problems with lazy initialization and SharedPreferences mutation
🟡 4. UI Refactoring Complexity
Replacing the side drawer navigation with a bottom navigation bar required careful restructuring to:
Avoid toolbar/content overflow issues
Maintain secondary options via a "More" tab
Refine the dark mode theme for a premium look without breaking the layout
🟡 5. Adding Chart Visualizations
Integrating MPAndroidChart for network data visualization (per-app network graphs, data usage charts) was non-trivial — it required:
Wiring up data from ConnectionsRegister and StatsActivity
Adding a new "Network Graph" tab to AppDetailsActivity
Building export/share functionality for the graphs and reports
Fixing text visibility issues (e.g., white text on light backgrounds in app_overview.xml)
🟠 6. Feasibility of Web Conversion
You explored converting the Android app into a website with the same functionality — ultimately a complex challenge since ANTAAF relies heavily on Android-specific APIs (VPN service, packet capture, system app enumeration) that don't have direct web equivalents.
Summary
Category Challenge Severity
Build Corrupted files from package rename 🔴 Critical
Build Cascading compilation errors 🔴 Critical
Code Quality Null pointers, thread-safety, API compliance 🟡 Medium
UI/UX Navigation refactor (drawer → bottom nav) 🟡 Medium
Feature Chart visualization integration 🟡 Medium
Feasibility Android → Web conversion 🟠 Exploratory
Tracks Applied (1)
Special Track
Technologies used