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:
parent
649347dcd4
commit
211dd65ff0
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user