Skip to content

Frida Version Notes

friTap 2.x supports the whole Frida 17.x line (frida>=17.0.0,<18.0.0, see requirements.txt and compat.yml). Frida 17.28 or newer is recommended: it fixes several upstream problems (remote message size, hook-install races, observer deadlocks). On Android it did not measurably change friTap's first-handshake coverage (see the hooks_live_on_attach row below).

friTap picks the better behaviour only when it detects a new enough Frida. The workarounds for older releases stay in the code and stay active on those releases. An unknown or unparseable version always gets the conservative (old) behaviour.

Every version check goes through a named capability flag rather than an inline version comparison:

  • Host (Python): friTap/backends/frida_features.py (FridaFeatures, local_features() for the installed frida package, features_from_version() for a remote frida-server version).
  • Agent (TypeScript): agent/shared/frida_features.ts (fridaFeatures(), read from Frida.version inside the target).

Host and device versions can differ

local_features() describes the Python frida package on your machine. The remote frida-server's version is probed separately where it matters (the chunked loader). The agent's flags describe the Frida runtime injected into the target, which is the frida-server's version.

Capability flags

Capability flag Frida version What friTap does on newer What it does on older Where
hooks_live_on_attach (host) / hooksLiveOnAttach (agent) ≥ 17.28.0 Interceptor transactions are per-thread, so a hook is live when attach() returns. No notice. Logs one INFO line: frida X detected; frida >= 17.28 makes hooks live as soon as they are installed. Measured on Pixel 5 (2026-11-29, N=5 spawns per app): 17.28.1 did not improve first-handshake coverage. Chrome caught it 5/5 on both versions; the Conscrypt test app net.difer.weather caught it 2/5 on 17.27.5 and 0/5 on 17.28.1. Its first Crashlytics handshake is missed on both, so the gap is in friTap's hook path, not Frida's hook timing. friTap therefore keeps dlopen hooks as the primary path on every version. FridaBackend._notice_old_frida_minor in friTap/backends/frida_backend.py. The agent flag is defined but not consumed yet.
observer_replay_safe (host) / observerReplaySafe (agent) ≥ 17.28.0 Module-observer onAdded replay of already loaded modules no longer deadlocks against hooks. Treated as unsafe. Defined in both frida_features modules; no consumer yet.
moduleObserver (agent only) feature-detected, not version-derived Process.attachModuleObserver exists. Absent. agent/shared/frida_features.ts; no consumer yet.
server_large_messages (host) remote frida-server ≥ 17.25.0 Loads the agent with one create_script call. Stages the agent through the chunked loader when the session is remote (-H) and the script is larger than about 128 KiB. An unknown server version also chunks. FridaBackend._should_chunk_load in friTap/backends/frida_backend.py; friTap/backends/frida_chunked_loader.py; error hint in friTap/backends/frida_remote_limits.py
leading_wildcard_patterns (host) / leadingWildcardPatterns (agent) ≥ 17.16.0 (threshold unproven: 17.15 rejects, 17.27.5 accepts, nothing in between was tested) Could scan the pattern as is. Memory.scan rejects a pattern that starts with a wildcard byte (invalid match pattern). withoutLeadingWildcards in agent/shared/arm64_xref.ts currently strips leading wildcards on every version; the flag is not consulted yet.
session_pid (host) ≥ 17.16.0 The Python Session wrapper exposes .pid. .pid is missing on the wrapper. Defined in friTap/backends/frida_features.py; no consumer yet.

Flags marked "no consumer yet" are in place so that a later change can branch on them without adding another version comparison.

Active workarounds

These run regardless of the flags above, either because no fixed Frida release exists yet or because the fix depends on runtime detection rather than a version.

Active workaround Affected versions Upstream status Code
Chunked agent loading for remote sessions: frida-server drops any host message above 128 KiB (TransportError: the connection is closed). frida-server 17.24.0 – 17.24.3. USB sessions to a frida-server were re-checked and are not affected. Fixed in 17.25.0 (frida-core PR #1267). Issues frida/frida#3806 and #3808 were still open when last checked. friTap/backends/frida_chunked_loader.py, frida_remote_limits.py, gated by server_large_messages. Dossier: research/frida_remote_message_size_limit/
arm32 linker-notifier freeze: Frida's hook on rtld_db_dlactivity in 32-bit ARM Android processes can branch into unmapped memory. The first Java.use() then faults in dlopen while holding the linker lock, and the app freezes. friTap probes the hook at runtime and skips the Android TLS Java hooks when it is broken. Measured on 17.24.3, 17.27.4, 17.27.5 and 17.28.1 (Pixel 5, Android 14; 17.28.1 re-test on 2026-11-29 still faults 3/3). Inferred from source: every release from 16.7.3 on, on devices where the first code cave is not writable. 64-bit processes are not affected. Not filed upstream (draft dossier only). agent/shared/rtld_notifier_probe.ts, called from agent/platforms/android.ts and agent/tls/platforms/android/conscrypt.ts. Dossier: research/frida_arm32_rtld_notifier_hook/
Fork-child crash: with child gating on, Frida's fork hook can SIGSEGV the target's fork child (Android ProcessBuilder, desktop Firefox on Linux). friTap keeps follow_exec off by default on every platform. --follow-exec opts back in and logs a warning. 17.24.3 – 17.28.1 (re-tested on 2026-11-29 on a Pixel 5 without friTap: 40/40 fork children SIGSEGV on both 17.27.5 and 17.28.1). Not filed upstream. A fix proposal is in the dossier's patch/. resolve_follow_exec in friTap/config.py. Dossier: research/frida_fork_child_crash/
JVMTI plugin guard: frida-java-bridge loads libopenjdkjvmti.so through a NativeFunction without exceptions: "propagate". An early attach can fault inside ART and wedge the app. friTap loads the plugin once itself, through a NativeFunction that lets faults propagate. frida-java-bridge 7.1.0 (bundled in friTap's agent). Measured on Pixel 5 / Android 14 / Chrome. Not known to be reported. agent/shared/java_jvmti_guard.ts, installed in agent/fritap_agent.ts
Array class-init guard: frida-java-bridge 7.1.0 runs GetFieldID(cls, "x", "Z") on every class it wraps, including array classes, which SIGSEGVs in ART. The guard skips that probe for array classes only. frida-java-bridge 7.1.0 (and, by inference, ≤ 7.0.10) combined with ART mainline modules that contain the triggering change. The Android release on its own does not decide it. Reported as frida-java-bridge issue #422. A candidate fix is the first commit of the open PR #424. agent/shared/java_array_class_init_guard.ts, installed in agent/fritap_agent.ts. Dossier: research/frida_java_bridge_array_class_init_crash/
Explicit Java-hook teardown before detach: frida-java-bridge's implicit deopt-restore on dispose races the app's threads and can SIGBUS it. friTap reverts .implementation swaps itself before Interceptor.detachAll(). frida-java-bridge (all versions so far). Bridge PR #415 is not merged. agent/shared/detach_teardown.ts
Image bounds on macOS: Module.size covers only __TEXT. friTap extends the bounds over the module's readable ranges so that data such as vtables in __DATA_CONST is found. All Frida 17.x on macOS. Unfixed. moduleImageBounds in agent/util/safe_memory.ts
Attach by package name on Android: Frida names Android app processes by their display label, so attaching by package id fails by name. friTap looks up the installed application by its identifier and attaches to its pid. All versions (this is how Frida names processes, not a bug). By design. FridaBackend._find_installed_application in friTap/backends/frida_backend.py
frida-server detection: without a running frida-server, Frida 17 still answers process enumeration and query_system_parameters() through a jailed ADB-backed fallback. Only access == "full" proves that a real (root) frida-server is running. Frida 17.x. By design (jailed fallback). friTap/server_manager/probe.py

Python < 3.11

requirements.txt, requirements-minimal.txt and constraints/frida17-legacy.txt exclude two releases on Python < 3.11:

frida>=17.0.0,!=17.16.4,!=17.17.0,<18.0.0; python_version < "3.11"
frida>=17.0.0,<18.0.0; python_version >= "3.11"

frida 17.16.4 and 17.17.0 import typing.NotRequired, which needs Python 3.11, yet still advertise Requires-Python: >=3.7. On Python 3.10 they fail with ImportError: cannot import name 'NotRequired' from 'typing'. frida 17.18.0 restored the typing_extensions fallback and works on 3.10 again.

dev/check_compat.py validates the pin's shape against compat.yml, so change both in the same PR. See also Frida Version Conflicts.

When to revisit

Check this list whenever a new Frida or frida-java-bridge release comes out. Do not remove a workaround without the maintainer's approval. Older releases are still supported, so most workarounds stay even after an upstream fix ships. Usually only the version threshold changes.

  • [ ] arm32 linker-notifier freeze: re-run research/frida_arm32_rtld_notifier_hook/repro/ on the new release (32-bit app, Pixel 5). If it is fixed, note the first fixed version. The runtime probe can stay, since it costs little.
  • [ ] Fork-child crash: re-run the device-free repro in research/frida_fork_child_crash/ (macOS) and the Android emulator repro. Consider re-enabling follow_exec by default only on fixed versions, and only with approval.
  • [ ] frida-java-bridge: check issue #422 / PR #424 and PR #415. When the bundled bridge version in package.json changes, re-test the JVMTI guard, the array class-init guard and Java-hook detach on a device.
  • [ ] Leading-wildcard threshold: bisect between 17.15 and 17.27.5 to confirm or correct LEADING_WILDCARD_PATTERNS_MIN (17.16.0 is a guess).
  • [ ] Unconsumed flags (session_pid, observer_replay_safe, observerReplaySafe, hooksLiveOnAttach, moduleObserver, leadingWildcardPatterns): decide whether a code path should branch on them.
  • [ ] macOS Module.size: check whether Frida now reports the full image size.
  • [ ] New Frida major (18.x): follow the process in compat.yml (bump the friTap major and add a row in the same PR).
  • [ ] When a new threshold is added, add it in both friTap/backends/frida_features.py and agent/shared/frida_features.ts (if it applies to both sides) and add a row to the tables above.