1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-05 18:50:09 +02:00

scanner: show error if scan_binary fails to run apkanalyzer

This commit is contained in:
Hans-Christoph Steiner 2021-03-09 12:07:24 +01:00
parent 649347dcd4
commit 211dd65ff0

View File

@ -106,6 +106,9 @@ def scan_binary(apkfile):
logging.info("Scanning APK for known non-free classes.")
result = common.SdkToolsPopen(["apkanalyzer", "dex", "packages", "--defined-only", apkfile], output=False)
problems = 0
if result.returncode != 0:
problems += 1
logging.error(result.output)
for suspect, regexp in CODE_SIGNATURES.items():
matches = regexp.findall(result.output)
if matches: