fix
This commit is contained in:
parent
f5ecee8d78
commit
faf3b80871
1 changed files with 15 additions and 1 deletions
|
|
@ -248,6 +248,12 @@ def check_smali():
|
||||||
type=Path,
|
type=Path,
|
||||||
required=True,
|
required=True,
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--out",
|
||||||
|
help="Path to the file where to store the results",
|
||||||
|
type=Path,
|
||||||
|
required=True,
|
||||||
|
)
|
||||||
key_parser = parser.add_mutually_exclusive_group(required=False)
|
key_parser = parser.add_mutually_exclusive_group(required=False)
|
||||||
key_parser.add_argument(
|
key_parser.add_argument(
|
||||||
"--api-key-file",
|
"--api-key-file",
|
||||||
|
|
@ -335,4 +341,12 @@ def check_smali():
|
||||||
elif smali != smali_new:
|
elif smali != smali_new:
|
||||||
dist_dup_classes.add(cl)
|
dist_dup_classes.add(cl)
|
||||||
data[sha256]["redef_classes"] = list(dist_dup_classes)
|
data[sha256]["redef_classes"] = list(dist_dup_classes)
|
||||||
print(json.dumps(data))
|
if data[sha256]["redef_classes"]:
|
||||||
|
print(f"{sha256}:")
|
||||||
|
for c in data[sha256]["redef_classes"]:
|
||||||
|
print(f" {c}")
|
||||||
|
else:
|
||||||
|
print(f"{sha256}: No true redefinition")
|
||||||
|
|
||||||
|
with args.out.open("w") as f:
|
||||||
|
json.dump(data, f)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue