About frida-gadget-injection
A skill for embedding Frida Gadget in Android or iOS apps when ordinary attach is unavailable or instrumentation must load from within the app. It guides mode selection, packaging, signing, and verification.
Key features
- 01Gadget listen, connect, and script modes
- 02Android library and config placement
- 03iOS embedding and app re-signing
- 04Device and process verification
- 05Configuration troubleshooting
Use cases
- 01Instrumenting an app without root or jailbreak
- 02Loading instrumentation before target behavior
- 03Running an embedded script without an interactive host
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ rudra-ravi/ frida-skills --skill frida-gadget-injectionAfter installing, type/frida-gadget-injectionin Claude Code to confirm it loaded.
Bundled filesagents/openai.yamlreferences/gadget-patterns.md
Details
From the project READMEFrida Gadget Injection
Use this skill when normal attach is blocked, root or jailbreak is unavailable, or instrumentation must load from inside the target app.
Decide Gadget Mode
- Use
listenmode when a host should attach after the app starts. - Use
connectmode when Gadget should call back to a host. - Use
scriptmode for an embedded script that must run without an interactive host. - On jailed iOS, account for code-signing policy before relying on
Interceptor.
Android Shape
- Match Gadget architecture to APK ABI.
- Place the Gadget
.sowhere the app will load it. - Add the matching
.configfile beside Gadget. - Load the library early enough for the target behavior.
- Rebuild, sign, install, and run the app.
Example config:
{
"interaction": {
"type": "listen",
"address": "127.0.0.1",
"port": 27042
}
}
iOS Shape
- Match Gadget to device architecture and Frida version.
- Embed Gadget in the app bundle or dynamic library load path.
- Add the
.configfile named exactly like the Gadget binary plus.config. - Re-sign the app with the required entitlements.
- Launch the app and connect with Frida tools.
Verify
frida-ls-devices
frida-ps -Uai
frida -U Gadget
If Gadget does not appear, verify library load, config filename, app signing, architecture, and logs before editing hooks.
References
Read references/gadget-patterns.md for configuration examples and troubleshooting.
Comments
Markdown supported