Skip to content

Commit

Permalink
fix(gui): change callMethodName of constructors in Frida action (#1714)…
Browse files Browse the repository at this point in the history
…(PR #1715)

* Change callMethodName of constructors in Frida action

* Fix format violation in FridaAction

* Fix format violation in FridaAction
  • Loading branch information
daMatz authored Nov 7, 2022
1 parent bc8d7c4 commit 4aaea2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jadx-gui/src/main/java/jadx/gui/ui/codearea/FridaAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ private String generateMethodSnippet(JMethod jMth) {
JavaMethod javaMethod = jMth.getJavaMethod();
MethodInfo methodInfo = javaMethod.getMethodNode().getMethodInfo();
String methodName = StringEscapeUtils.escapeEcmaScript(methodInfo.getName());
String callMethodName = methodName;

if (methodInfo.isConstructor()) {
methodName = "$init";
callMethodName = "$new";
}

String callMethodName = methodName;
String shortClassName = javaMethod.getDeclaringClass().getName();

String functionUntilImplementation;
Expand Down

0 comments on commit 4aaea2b

Please sign in to comment.