Skip to content

Android Platform Guide

This guide covers Android-specific setup, considerations, and best practices for using friTap on Android devices.

Prerequisites

Device Requirements

  • Rooted Android device (required for friTap operation)
  • Android 7.0+ (minimum supported version)
  • ARM, ARM64, x86-64 or x86 architecture support
  • USB Debugging enabled
  • Developer Options enabled

Development Machine Setup

# Install ADB (Android Debug Bridge)
# Ubuntu/Debian
sudo apt install android-tools-adb

# macOS
brew install android-platform-tools

# Windows
# Download from https://developer.android.com/studio/releases/platform-tools

Device Setup

Enable Developer Options

  1. Go to Settings → About Phone
  2. Tap Build Number 7 times
  3. Go back to Settings → Developer Options
  4. Enable USB Debugging

Root Access Verification

# Check device connection
adb devices

# Verify root access
adb shell su -c "id"

# Expected output:
# uid=0(root) gid=0(root) groups=0(root)

frida-server Installation

Step 1: Download frida-server

# Check device architecture
adb shell getprop ro.product.cpu.abi

# Download matching frida-server from GitHub releases
# Example for ARM64:
wget https://github.com/frida/frida/releases/download/17.0.0/frida-server-17.0.0-android-arm64.xz
xz -d frida-server-17.0.0-android-arm64.xz

Step 2: Install on Device

# Push to device
adb push frida-server-17.0.0-android-arm64 /data/local/tmp/frida-server

# Set permissions
adb shell chmod 755 /data/local/tmp/frida-server

# Start frida-server
adb shell su -c "/data/local/tmp/frida-server &"

# Verify it's running
adb shell ps | grep frida-server

Basic Android Analysis

Package Name Discovery

# List all installed packages
adb shell pm list packages

# Search for specific app
adb shell pm list packages | grep instagram

# Get package details
adb shell dumpsys package com.instagram.android | grep version

Basic Analysis Commands

# Extract TLS keys from Android app
fritap -m -k instagram_keys.log com.instagram.android

# Capture decrypted traffic
fritap -m --pcap instagram_traffic.pcap com.instagram.android

# Spawn app from beginning
fritap -m -s -k keys.log com.example.app

# Verbose analysis with debug output
fritap -m -v -k keys.log -do com.example.app

Android-Specific Features

Anti-Root Detection Bypass

Many Android apps detect root access and refuse to run:

# Enable anti-root bypass
fritap -m --anti_root -k keys.log com.example.app

# Combined with spawn mode
fritap -m -s --anti_root -k keys.log com.example.app

Spawn Gating

Capture child processes and services:

# Capture all spawned processes
fritap -m --enable_spawn_gating -k keys.log com.example.app

# Useful for apps that use services or multiple processes

Default Socket Information

When socket information cannot be determined:

# Use fallback socket information (127.0.0.1:1234-127.0.0.1:2345)
fritap -m --enable_default_fd --pcap traffic.pcap com.example.app

PairIP-Protected Apps (anti-tamper)

Apps hardened with Google PairIP (libpairipcore.so) crash with a SIGSEGV under friTap's default inline hooks. Use the scan-free --pairip-safe mode:

fritap -m -k keys.log --pairip-safe -v com.example.app

See the dedicated guide: PairIP-Protected Apps.

SSL/TLS Libraries on Android

Supported Libraries

friTap has comprehensive support for Android TLS libraries, covering both system libraries and statically-linked implementations.

Library Apps Using It friTap Support Notes
BoringSSL/OpenSSL Chrome, most Google apps ✓ Full Key extraction + traffic
Conscrypt Android system, many apps ✓ Full Uses BoringSSL internally
GnuTLS Some native apps ✓ Full Key extraction + traffic
WolfSSL IoT/embedded apps ✓ Full Key extraction + traffic
mbedTLS Embedded/IoT apps R/W Traffic hooks only
NSS Firefox, Mozilla apps ✓ Full Key extraction + traffic
Cronet Chrome-based networking ✓ Full Pattern-based hooking
Flutter Flutter applications ✓ Full Built-in patterns
S2N-TLS AWS SDK apps ✓ Full Key extraction + traffic
Rustls Rust-based apps Keys Key extraction only
Go TLS Go applications ✓ Full Runtime version detection
BouncyCastle/Spongycastle Java crypto apps ✓ Full Java-level hooking
Mono BTLS Xamarin/.NET apps ✓ Full Pattern-based hooking
MetaRTC WebRTC applications ✓ Full Pattern-based hooking
Fizz (Meta) Facebook, Instagram (TLS 1.3 + mvfst QUIC) Keys arm64 only; located without symbols — see Fizz (Meta)
Java TLS Pure Java apps ✓ Full Java-level hooking

Legend: - ✓ Full: Key extraction + traffic decryption - R/W: Read/Write hooks (traffic without keys) - Keys: Key extraction only

QUIC keys and OHTTP are captured alongside TLS

QUIC key material — Google QUICHE (Chrome/Cronet), Cloudflare quiche, and Mozilla neqo (Firefox) — is extracted on Android together with the TLS keylog; no separate flag is required. Likewise, OHTTP (Oblivious HTTP, NSS HPKE) is captured within --protocol tls — there is no separate --protocol ohttp or --ohttp flag, since tls covers the whole TLS family (TLS, QUIC, and OHTTP).

Pattern-Based Hooking for Stripped Libraries

Many Android apps ship stripped or statically-linked TLS stacks where the key-extraction symbols (SSL_log_secret, etc.) are not exported. friTap resolves these byte-pattern first, falling back to its built-in pattern registry when no symbol is available — no manual offsets required for the common cases.

# Use patterns for Flutter apps
fritap -m --patterns flutter_patterns.json -k keys.log com.flutter.app

# Generate custom patterns with BoringSecretHunter
docker run --rm -v "$(pwd)/binary":/usr/local/src/binaries \
  -v "$(pwd)/results":/host_output boringsecrethunter

friTap includes built-in patterns for common libraries, but you may need to generate custom patterns for specific app versions.

Built-in pattern registry (Android)

The Android hook registry (agent/platforms/android.ts) ships matchers for the stripped/statically-linked stacks below. These are matched by library filename, so a stripped APK is hooked without any extra configuration:

Library / stack Matches (filename) friTap registry entry
libcronet (GMS / mainline / APEX) libcronet*.so, libmainlinecronet.<ver>.so Cronet, Cronet (mainline runtime), Google QUICHE (Cronet)
libflutter *flutter*.so Flutter BoringSSL
libmonochrome (Chrome / WebView) *monochrome*.so Cronet (Monochrome), Google QUICHE (Monochrome)
Signal / RingRTC libsignal_jni*.so, libringrtc_rffi*.so Cronet (Signal), Cronet (RingRTC)
Cloudflare Warp libwarp_mobile*.so Cronet (Warp Mobile)
Meta Fizz (Facebook / Instagram) any arm64 *.so passing the content filter (e.g. libcoldstart.so, libstartup.so) Fizz (Meta)

Chrome / Cronet are BoringSSL underneath

The Chrome, Cronet, Signal, RingRTC and Warp matchers all route to the same BoringSSL key-extraction hook. Chrome-browser QUIC specifically lives in libmonochrome*.so (no resolvable symbols), which is why pattern-based hooking is mandatory there.

Meta Fizz is matched by content, not by filename

Fizz is statically linked into arbitrarily named Meta libraries, so its row matches every .so and then applies a cheap, cached content filter: arm64 only, system/APEX paths skipped, accepted when the library itself defines Meta's fizz_probe_secret_available export (not one resolved from a dependency), or by path or name alone for app-private libraries (/data/data/<pkg>/lib-compressed/) and the known Meta host names (libcoldstart, libstartup, libscrollmerged, libstreamingmerged). The filter never scans memory; the installer then confirms Fizz asynchronously (the probe export, or the RTTI name N4fizz17KeyDerivationImplE in the library's r--, then r-x ranges). Default and --modern run the same row. No byte patterns are used: deriveSecret is located by a TLS 1.3 label vote plus an RTTI/relative-vtable walk, and the result is cached per build-id. Keys only — use -k with -f -p. Late-loaded (dlopen) libraries are handled; the first scan takes a few seconds per library. See Fizz (Meta).

See Pattern-based Hooking for the pattern-file schema, the --patterns/--offsets/--force-scan flags, and how to author patterns with BoringSecretHunter, r2 or Ghidra.

QUIC / HTTP/3 on Android

Modern Android apps increasingly use QUIC (HTTP/3) through Chrome's network stack (Cronet / libmonochrome). friTap extracts QUIC keys alongside TLS and can capture decrypted QUIC/HTTP/3 plaintext. The QUIC stacks covered on Android are Google QUICHE (Chrome/Cronet), Cloudflare quiche, and Mozilla neqo (Firefox); their key material is dumped together with the TLS keylog — no separate flag is needed.

--quic-only — QUIC-only hooking

Install only the QUIC hooks and skip the TLS-library hooks (BoringSSL, NSS, GnuTLS, ...), OHTTP, the keylog scan pass, and the Android Java hooks:

# Attach with QUIC hooks only (lighter attach, no Java VM safepoint sync)
fritap -m --quic-only -k quic_keys.log com.android.chrome

This gives a dramatically lighter attach (no multi-MB pattern scans, and on Android no Java VM safepoint synchronization), which helps friTap attach to a target that is already in active QUIC traffic. On Android the filter scope is Google QUICHE (Cronet) only.

--quic-capture-mode {stream,app-api}

Select the QUIC plaintext capture boundary (default: stream):

# Default lower-boundary stream-level hooks
fritap -m --quic-capture-mode stream -k keys.log com.android.chrome

# Application-API boundary with decoded HTTP/3 headers (Chrome / Android Google QUICHE)
fritap -m --quic-capture-mode app-api -k keys.log com.android.chrome
  • stream (default) — current lower-boundary stream-level hooks (QuicStream / QuicStreamSequencer::Readv).
  • app-api — captures at the application-API "Boundary-4" with decoded HTTP/3 headers. Only available for Chrome/Android Google QUICHE.

--quic-egress-headers-layer {auto,quiche-internal,chrome-shim,session-level}

Override which layer of the HTTP/3 egress-headers chain the agent attaches to (default: auto). This only takes effect with --quic-capture-mode app-api:

# Force the chrome-shim fallback layer (testing the egress chain)
fritap -m --quic-capture-mode app-api --quic-egress-headers-layer chrome-shim \
  -k keys.log com.android.chrome

auto keeps the winner-takes-all fallback chain (quiche-internal preferred, chrome-shim as fallback, session-level as last resort). Set it explicitly to force a particular layer when validating chain behavior on builds where the quiche-internal path still resolves.

Chrome: attach vs spawn

Chrome opens around nine QUIC connections (google.com, googleapis, Cloudflare, ...) as preconnects within the first seconds after launch. When you attach to a running Chrome (fritap -m <device_id> <pid>), these connections already exist and their TLS handshakes are never observed, so friTap has no client_random or secrets for them:

  • they are missing from the keylog, and tshark cannot decrypt them;
  • in the .tap file they show up as sid:quic: connections with body-only flows (no stream id, protocol unknown).

Chrome reuses these connections for later requests (for example google.com searches). friTap recovers such post-attach requests on a best-effort basis: new request streams on a pre-attach connection are captured through the frame path, and their HEADERS are decoded without the connection's QPACK state. Method, path and authority are recovered when Chrome encodes them as static-table or literal fields. Values that reference the pre-attach QPACK dynamic table cannot be recovered.

Connections opened after the attach are fully covered: client_random, cr:quic connection ids, decoded HTTP/3 and a complete keylog. Resumed (0-RTT) connections are bound as well.

For complete coverage of Chrome, and of other Chromium-based apps that preconnect, use spawn mode so the hooks are installed before the first connection is opened:

fritap -m <device_id> -s -k chrome_keys.log -p chrome.pcap com.android.chrome

See the QUIC protocol guide for the full HTTP/3 capture model.

Decrypted Plaintext Capture Stability

Recent Android work improved the reliability of plaintext (decrypted) capture for apps whose TLS sockets are not directly reachable from the SSL object. Stacks that wrap the socket in an in-memory BIO (or do async I/O) leave the SSL object without a usable socket file descriptor, which previously produced flows with missing peer addresses.

friTap now correlates each thread's most-recent stream-socket FD with the SSL_Read/SSL_Write calls happening synchronously on that same thread, recovering the peer endpoint for the connection. The tracker is armed lazily — only the first time a socket-less SSL object is actually observed — so apps that always expose a valid FD pay no overhead. Only TCP (SOCK_STREAM) sockets are eligible, so DNS/QUIC datagram sockets are never mis-attributed as the peer of a TLS connection.

In practice this means more complete --pcap output (correct source/destination addresses) for apps using BIO-wrapped or NIO/async networking, with no extra flags.

Cronet and HttpEngine plaintext (Android arm64)

TCP TLS plaintext (-p) is also captured from the stripped BoringSSL inside app-embedded Cronet (libcronet.<version>.so), GMS Dynamite Cronet and the platform HttpEngine (libhttpengine.so, Android 14+):

  • Cronet builds that do not export SSL_read/SSL_write are handled by the supplementary row "BoringSSL plaintext (Cronet)", which locates them from BoringSSL's ssl_lib.cc error sites. Builds that do export them keep the export-based hooks, so no record is captured twice.
  • Where .eh_frame_hdr has no entry for a function, the locators fall back to function bounds from arm64 landing-pad instructions (PACIASP / bti c).
  • libhttpengine.so no longer drops to key-only mode with "Error: missing argument … Only key extraction will be available for libhttpengine.so": it has no SSL_get_fd / SSL_SESSION_get_id, so friTap recovers the socket per SSL object and leaves the session id empty. Its QUIC traffic is covered by the "Google QUICHE (HttpEngine)" row.

Verified on a Pixel 5 with app-embedded Cronet, GMS Cronet, HttpEngine, WebView and Chrome.

Per-request SDK attribution (Java request context)

With --attribute-sdk, flows are attributed to the SDK that caused them (see USAGE.md and Transport vs originator). Chromium-based stacks send all requests from a shared network thread, so the native backtrace rarely names the SDK. On Android, friTap therefore also hooks the Java side where each request is built and records that Java stack per request:

fritap -m -p out.pcap --attribute-sdk --tap out.tap com.example.app

When the hooks are installed: only with --attribute-sdk and either a plaintext capture (-p) or a full capture with keys (-f -k). They are not installed with -f alone, --pairip-safe (no ART instrumentation) or --quic-only (no Java hooks). They are removed again when friTap detaches.

-f installs no plaintext hooks, so with -f -k --attribute-sdk the request contexts are written to <pcap>.request_contexts.jsonl (one JSON object per event, listed under request_contexts in the <pcap>.fritap.json manifest) and the flows are attributed when the .tap is built from the capture:

fritap -m -f -k keys.log -p out.pcap --attribute-sdk --tap out.tap com.example.app

Supported stacks:

Stack What is hooked
App-embedded Cronet org.chromium.net.impl.CronetUrlRequest (constructor, start(), redirect/response/end callbacks)
GMS Cronet (Play services Dynamite) the same class in the Dynamite class loader, found again after an engine is built
HttpEngine (Android 14+) the platform copy of CronetUrlRequest in the boot class loader
WebView loadUrl, postUrl, loadDataWithBaseURL, and WebViewClient.shouldInterceptRequest

How requests are matched to flows: by method, normalized URL and the time on the host. An exact match is java-request/high (or medium when requests from different SDKs had the same URL). A WebView loadUrl/postUrl navigation is java-request/high; every other WebView request (subresources, and main-frame navigations the page makes by itself) gets the SDK of the WebView load that owns it as context/medium, and no claim when no owning load is known. A match on host and time alone gives no claim. Keys compare the first 682 characters of the canonical URL. Every finished request is also stored in the .tap as a request-context record, including requests that matched no flow and requests served from the cache (bucket: "cache").

Full URLs are recorded

The request context records the full URL, including the query string, plus the method, status and up to 32 Java frames. Query strings often hold tokens, ids or other personal data. URLs are capped at 2048 characters and escaped. Treat a .tap captured with --attribute-sdk like the decrypted traffic itself.

Known limits:

  • A WebView client set before friTap attached is not hooked if it overrides shouldInterceptRequest: overrides are found when the app calls setWebViewClient. Clients set later are hooked.
  • With a headless --tap capture, flows already written to the .tap are not updated when a matching request context arrives later.
  • On the flow side the URL scheme is assumed to be https (the flow carries only the authority and path).

--modern (EXPERIMENTAL agent path)

EXPERIMENTAL — default is the legacy path

--modern opts into the refactored ("modern") friTap agent code path. The default is the stable legacy path for TLS libraries. On Android/Windows the modern path unlocks the three-tier BoringSSL keylog chain and improved Cronet hooks, but it has known regressions versus legacy: iOS/macOS Cronet, Windows LSASS, and IPsec. Use it only when you specifically need the modern hooks.

# Opt into the modern agent path on Android
fritap -m --modern -k keys.log com.example.app

No protocol forces the modern path: --protocol ssh, mtproto, telegram, signal, and rc4 all run on the default legacy agent path too (as do the IPsec hooks, which are installed only via --protocol all/auto — --protocol ipsec is not selectable yet). Pass --modern explicitly only when you want the experimental modern hooks.

NSS (Firefox) and Fizz (Facebook, Instagram) key extraction does not depend on the path: the default and --modern run the same installers, so neither needs --modern. Plaintext is the same too: on Android both paths hook PR_Read/PR_Write for -p, as on Linux, macOS and Windows.

Application Categories

Social Media Apps

# Instagram
fritap -m -k instagram_keys.log com.instagram.android

# Facebook / Instagram via Meta Fizz (TLS 1.3 + QUIC keys, arm64): keys + full capture
fritap -m -k facebook_keys.log -f -p facebook_capture.pcap $(adb shell pidof com.facebook.katana)
fritap -m -k instagram_keys.log -f -p instagram_capture.pcap $(adb shell pidof com.instagram.android)

# Twitter
fritap -m --pcap twitter_traffic.pcap com.twitter.android

# TikTok
fritap -m -s -k tiktok_keys.log com.zhiliaoapp.musically

Banking Applications

Use Test Accounts Only

Always use test accounts and isolated environments when analyzing banking applications.

# Generic banking app analysis
fritap -m --anti_root -k bank_keys.log com.example.bankapp

# Monitor authentication flows
fritap -m -s --pcap bank_auth.pcap com.example.bankapp

Telegram (MTProto)

On Android, friTap's --protocol mtproto hooks extract Telegram's MTProto 2.0 keys (tshark cannot decrypt MTProto — friTap ships its own offline decryptor). Live MTProto plaintext capture is not implemented yet: the inbound/outbound plaintext hook sites are still unfilled, so capture the keys and the raw traffic live, then decrypt offline:

# Live: MTProto key extraction (auth keys written to the keylog)
fritap -m --protocol mtproto -k tg.keys org.telegram.messenger

# Live full capture: pcap + MTProto keylog for offline decryption
fritap -m --protocol mtproto -f -p tg.pcapng -k tg.keys org.telegram.messenger

To cover both Telegram encryption layers in one run, use the umbrella --protocol telegram: cloud chats (MTProto transport — not end-to-end) plus secret chats (MTProto 2.0 end-to-end). It writes one combined keylog (MTPROTO_AUTH_KEY + MTPROTO_E2E_KEY) consumed offline via --telegram-keylog:

# Live full capture: pcap + combined (cloud + secret) Telegram keylog
fritap -m --protocol telegram -f -p tg.pcapng -k tg.keys org.telegram.messenger

See Telegram (MTProto) for the keylog format, the offline --mtproto-keylog / --telegram-keylog decryption workflows, the crypto backend (which ships in friTap's base install, no extra needed), and scope/limitations.

Troubleshooting Android Issues

Common Problems

frida-server Not Starting:

# Check if already running
adb shell ps | grep frida-server

# Kill existing process
adb shell su -c "killall frida-server"

# Restart with correct permissions
adb shell su -c "/data/local/tmp/frida-server &"

frida-server or Injection Blocked by SELinux:

If frida-server refuses to start, or attaching/spawning fails with permission errors (look for avc: denied lines in adb logcat), SELinux enforcement may be blocking it. On a test device only, switch SELinux to permissive temporarily:

adb shell getenforce              # Enforcing / Permissive
adb shell su -c setenforce 0      # permissive until the next reboot

The setting resets to Enforcing on reboot (or run adb shell su -c setenforce 1). Never leave a personal device in permissive mode.

App Crashes Immediately:

# Use anti-root detection
fritap -m --anti_root -k keys.log com.example.app

# Avoid spawning mode
fritap -m -k keys.log com.example.app  # Attach to running process

No SSL Library Detected:

# Enable debug output
fritap -m -do -v com.example.app

# Try pattern matching
fritap -m --patterns android_patterns.json -k keys.log com.example.app

No Traffic Captured:

# Use default socket information
fritap -m --enable_default_fd --pcap traffic.pcap com.example.app

# Enable full capture
fritap -m --full_capture -p traffic.pcap -k keys.log com.example.app

Device-Specific Issues

Samsung Knox:

# Knox may interfere with root detection bypass
fritap -m --anti_root --enable_default_fd -k keys.log com.example.app

MIUI (Xiaomi):

# MIUI security features may require additional bypasses
fritap -m --anti_root -s -k keys.log com.example.app

LineageOS/Custom ROMs:

# Usually work well with standard commands
fritap -m -k keys.log com.example.app

Advanced Android Techniques

WebView Analysis

Many apps use WebViews for content:

# Capture WebView traffic
fritap -m --enable_spawn_gating -k webview_keys.log com.example.app

# Look for chromium-based WebView traffic

Background Service Analysis

# Monitor background services
fritap -m --enable_spawn_gating -k service_keys.log com.example.app

# Target specific service
fritap -m -k keys.log com.example.app:service

Delegate Processes (Discovery Profiles)

Some apps send their traffic through other apps: Gemini (com.google.android.apps.bard) hands its UI to the Google app, whose :search process makes the QUIC/HTTP/3 calls (with :googleapp and :interactor alongside). A tlsLibHunter discovery profile lists those processes and their roles (target, sibling, delegate, sdk_sandbox, shared_system):

# Capture with a saved profile
fritap -m -s --profile gemini_profile.json -k keys.log com.google.android.apps.bard

# Discover for 20 s (use the app meanwhile), then capture (needs tlsLibHunter)
fritap -m -s --discover 20 -k keys.log com.google.android.apps.bard

# Gate an extra package by hand (repeatable)
fritap -m -s --also-package com.google.android.googlequicksearchbox -k keys.log com.google.android.apps.bard

friTap spawn-gates every profile package, then force-stops the non-target delegate packages so they respawn under friTap and are hooked from their first connection. Profile processes still running afterwards are attached late (their existing connections cannot be decrypted). shared_system processes mix many apps' traffic and are only reported, never hooked (unless --include-shared-delegates: then their keys go to <keylog>.shared only). The capture keeps running after the target exits while an instrumented helper process lives. If the device has the USAP pool enabled, friTap prints the command to disable it, since pre-forked processes can escape spawn gating.

Why apps delegate, how discovery assigns roles, the profile format and measured results: Process discovery.

You do not have to know in advance: when an Android capture without a profile ends with no TLS keys (or the app exits right after start), friTap prints a [Hint] with the discovery commands to run next. See When friTap suggests discovery.

Storage Management

Whenever we do a full capture with friTap we don't remove the generated pcap files stored by default to /data/local/tmp/. Therefore it might be helpful to delete them from time to time.

# Monitor storage usage
adb shell df /data

# Compress old captures
gzip old_traffic.pcap

# Clean up temporary files
adb shell su -c "rm -rf /data/local/tmp/frida-*"

Security Considerations

App Store Analysis

  • Use isolated devices for unknown app analysis
  • Create separate Android user profiles
  • Monitor network traffic to external servers
  • Document all analysis activities

Malware Analysis

# Analyze suspicious APKs in isolated environment
fritap -m --anti_root --full_capture -p malware_full.pcap -k malware_keys.log com.suspicious.app

# Monitor for C&C communications
fritap -m --enable_spawn_gating --pcap malware_traffic.pcap com.suspicious.app

Automation Scripts

Batch Analysis Script

#!/bin/bash
# Android app batch analysis

DEVICE_ID="$1"
APP_LIST="$2"

while IFS= read -r app; do
    echo "Analyzing $app"
    timeout 300 fritap -m "$DEVICE_ID" -k "${app}_keys.log" \
                       --pcap "${app}_traffic.pcap" "$app"
done < "$APP_LIST"

Continuous Monitoring

#!/bin/bash
# Continuous Android app monitoring

APP_PACKAGE="$1"
DURATION="${2:-300}"  # Default 5 minutes

while true; do
    timestamp=$(date +%Y%m%d_%H%M%S)
    timeout "$DURATION" fritap -m -k "keys_${timestamp}.log" \
                               --pcap "traffic_${timestamp}.pcap" \
                               "$APP_PACKAGE"
    sleep 10
done

Integration with Other Tools

Wireshark Integration

# Live analysis with Wireshark
fritap -m --live com.example.app
# friTap prints the pipe path: <tempdir>/fritap_sharkfin.pcapng
# (<tempdir> follows $TMPDIR, e.g. /var/folders/... on macOS)

# Then, in another terminal, open the printed path:
wireshark -k -i <tempdir>/fritap_sharkfin.pcapng

The live pipe runs on the host, so it works for Android targets from a Linux or macOS host; it is not supported when friTap runs on Windows.

Capture live from inside Wireshark (extcap backend)

friTap ships a Wireshark extcap backend so you can start an Android capture directly from Wireshark's interface list. Install it once with:

fritap install-backend wireshark

After installing, friTap appears as a capture interface in Wireshark. See the CLI reference for install-backend and the live-capture mode in the Terminal UI guide.

Burp Suite Integration

# Set up proxy on Android device
adb shell settings put global http_proxy 192.168.1.100:8080

# Capture and analyze with Burp
fritap -m --pcap api_traffic.pcap com.example.app

Best Practices

1. Device Management

  • Use dedicated test devices
  • Maintain multiple Android versions
  • Keep frida-server updated
  • Regular device cleanup

2. Analysis Approach

  • Start with basic key extraction
  • Use spawn mode for initialization analysis
  • Enable anti-root detection when needed
  • Document app behavior patterns

3. Data Management

  • Organize captures by app and date
  • Compress old analysis data
  • Maintain analysis notes
  • Back up important findings

4. Security

  • Use isolated networks
  • Analyze unknown apps in containers
  • Monitor for suspicious behavior
  • Follow responsible disclosure

Next Steps