don't call androguard when not necessary

This commit is contained in:
Jean-Marie Mineau 2025-05-23 16:11:51 +02:00
parent 56534b6576
commit 9f9593e505
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2

View file

@ -89,6 +89,8 @@ def check_app_result(
dex = DEX(dex_bin)
classes_by_cl[cl_id].extend(dex.get_classes())
# Don't do androguard scan when there is no other dynloading
if len(data["dyn_code_load"]) != 0:
apk_name = f"{path.name}.apk"
apk = APK(str(app_folder / apk_name))
cl_id = data["apk_cl_id"]