diff --git a/patch-main.py b/patch-main.py index 15a56ce..54c01ec 100755 --- a/patch-main.py +++ b/patch-main.py @@ -28,7 +28,7 @@ def patch_class(path: str) -> None: with open(path, "w") as file: matched = False for line in lines: - if ".method static constructor ()V" in line: + if ".method public constructor ()V" in line: matched = True if matched and "return-void" in line: file.write("const-string v0, \"frida-gadget\"\n")