diff --git a/scripts/GenerateFridaSnippetForDex.py b/scripts/GenerateFridaSnippetForDex.py index 0805725..2a61af1 100644 --- a/scripts/GenerateFridaSnippetForDex.py +++ b/scripts/GenerateFridaSnippetForDex.py @@ -55,8 +55,10 @@ def run(self, ctx): partypes.append(partype.getSignature(False, False)) parnames.append("arg%d" % i) # TODO: retrieve the decompiler-provided param names - no_return = m.getReturnType().isVoid() - + no_return = False + if m.getReturnType().getName() == 'void': + no_return = True + # the tag rendered in the console will use the method's actual names (i.e. the renames if any), not the original names tag = "%s.%s" % (m.getClassType().getSignature(True, False, False), m.getName(True))