agentleFS
Rudra-raviRudra-ravi/frida-skills/frida-troubleshooting/SKILL.md

frida-troubleshooting

Skill3 starsChanged 6 months agoMITView on GitHub

Diagnose Frida attach, spawn, version, frida-server, Gadget, hook, crash, Java, ObjC, class-loader, anti-instrumentation, and device connectivity failures.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill before changing hook logic when Frida itself may be failing.

    line 8
  2. Distinctive:

    If CodeShare or a universal bypass "works partly", extract which hook fired and which endpoint/behavior changed before adding more bypasses.

    line 47
  3. Very specific:

    If traffic still does not appear after pinning bypass, check proxy trust store, certificate transparency, native TLS, HTTP/3/QUIC, …

    line 48
  4. Distinctive:

    If a hook does not fire in an obfuscated app, hook data boundaries and stack traces instead of chasing renamed classes.

    line 49
  5. Distinctive:

    If the app exits without logs, inspect native anti-instrumentation and early lifecycle hooks with spawn mode.

    line 50
  6. Distinctive:

    Remove mutation and keep logging only.

    line 62
  7. Distinctive:

    Check string lifetime when replacing pointer arguments.

    line 65
  8. Very specific:

    Read references/error-playbook.md for common errors, likely causes, and next checks.

    line 70

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Frida Troubleshooting

Use this skill before changing hook logic when Frida itself may be failing.

First Evidence

Collect exact commands and output:

frida --version
frida-ls-devices
frida-ps -Uai

For Android:

adb devices
adb shell getprop ro.product.cpu.abi
adb shell /data/local/tmp/frida-server --version

For iOS:

frida-ps -Uai

Diagnosis Order

  1. Version mismatch: host frida-tools/Python package vs frida-server/Gadget.
  2. Device transport: USB, remote, emulator, jailbreak/root state, permissions.
  3. Mode mismatch: spawn needed for early code, attach sufficient only after target load.
  4. Runtime availability: Java.available, Java.perform(), ObjC.available.
  5. Loader/module timing: class, symbol, or module not loaded yet.
  6. Wrong overload/signature/address.
  7. App protection or anti-instrumentation causing early exit.

Practitioner Triage

  • Reproduce with a minimal script that only logs platform/runtime availability. Load the real agent only after the minimal script works.
  • If CodeShare or a universal bypass "works partly", extract which hook fired and which endpoint/behavior changed before adding more bypasses.
  • If traffic still does not appear after pinning bypass, check proxy trust store, certificate transparency, native TLS, HTTP/3/QUIC, alternate endpoints, backend device integrity checks, and non-HTTP protocols.
  • If a hook does not fire in an obfuscated app, hook data boundaries and stack traces instead of chasing renamed classes.
  • If the app exits without logs, inspect native anti-instrumentation and early lifecycle hooks with spawn mode.

Hook Does Not Fire

  • Prove the code path is executed without Frida.
  • Log module/class loading before installing the hook.
  • For Android, enumerate overloads and class loaders.
  • For iOS/Swift, enumerate symbols/modules and hook Objective-C-visible surfaces first.
  • For native code, verify signature and architecture, then attach to caller/callee boundaries.

Crash After Hook

  • Remove mutation and keep logging only.
  • Guard null pointers and invalid ObjC/Java objects.
  • Copy values inside callbacks; do not store recycled retval.
  • Check string lifetime when replacing pointer arguments.
  • Narrow broad hooks that fire too often or recurse.

References

Read references/error-playbook.md for common errors, likely causes, and next checks.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.