frida_java_load_dex
Dynamically load a DEX file into a specified Android process, making its classes available for dynamic analysis with Frida's Java.use().
Instructions
Dynamically load a DEX file into an Android process at runtime.
Uses Java.openClassFile().load() to inject classes from the DEX.
After loading, the new classes are available via Java.use().
target: process name or pid (string).
dex_path: path to the .dex file on the target device filesystem.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target": "<target>",
"dex_path": "<dex_path>"
},
"name": "frida_java_load_dex"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | ||
| dex_path | Yes | ||
| device_id | No |