fix(gui): change callMethodName of constructors in Frida action (#1714)(PR #1715)

* Change callMethodName of constructors in Frida action

* Fix format violation in FridaAction

* Fix format violation in FridaAction
This commit is contained in:
Mathis Hesse
2022-11-07 20:11:22 +01:00
committed by GitHub
parent bc8d7c4fc3
commit 4aaea2b93f
@@ -79,12 +79,12 @@ public final class FridaAction extends JNodeAction {
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;