You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think something like this could be a rough solution, but I did not manage to get frida to use patched version of frida-java-bridge:
diff --git a/lib/types.js b/lib/types.js
index 6a0f977..9b8d91f 100644
--- a/lib/types.js+++ b/lib/types.js@@ -477,7 +477,13 @@ function getArrayType (typeName, unbox, factory) {
}
// The type name we get is not always the correct representation of the type so we make it so here.
- const internalTypeName = '[L' + elementTypeName.replace(/\./g, '/') + ';';+ let internalElementTypeName = '';+ if (elementTypeName.replace[0] === '[') {+ internalElementTypeName = elementTypeName.replace(/\./g, '/');+ } else {+ internalElementTypeName = 'L' + elementTypeName.replace(/\./g, '/') + ';';+ }+ const internalTypeName = '[' + internalElementTypeName;
try {
result.$w = factory.cast(arr, factory.use(internalTypeName), owned);
} catch (e) {
Hello,
I run into a problem while trying to instrument methods that take an array of array of byte as argument. For exemple:
I believe the issue comes from here:
frida-java-bridge/lib/types.js
Line 480 in 1e23abb
I think something like this could be a rough solution, but I did not manage to get frida to use patched version of frida-java-bridge:
PS: Is there some documentation for running a patched java-bridge? I tried https://github.com/frida/frida-tools?tab=readme-ov-file#loading-your-custom-frida-java-bridge and failled
The text was updated successfully, but these errors were encountered: