Skip to content

Commit 5d5f46f

Browse files
fix fcn parameters
1 parent 751a970 commit 5d5f46f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

DexRepair.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ def repair_dex(
130130
if not os.path.isdir(output_dex_path):
131131
raise DexRepairError(f"{output_dex_path} not a directory!")
132132
print(f"Repairing {file_path}...")
133-
repair_dex_file(file_path, output_file_path, repair_sha1)
133+
repair_dex_file(file_path, repair_sha1, output_file_path)
134134
elif os.path.isfile(dex_path):
135-
repair_dex_file(dex_path, output_dex_path)
135+
repair_dex_file(dex_path, repair_sha1, output_dex_path)
136136
else:
137137
raise DexRepairError(f"Path not found: {dex_path}")
138138

@@ -188,7 +188,7 @@ def main():
188188
output = args.dex_file.replace(".dex", "_repaired.dex")
189189

190190
try:
191-
repair_dex(args.dex_file, output, args.sha)
191+
repair_dex(args.dex_file, args.sha, output)
192192
print("DEX repair completed successfully.")
193193

194194
except DexRepairError as e:

0 commit comments

Comments
 (0)