mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
scanner: show error if scan_binary fails to run apkanalyzer
This commit is contained in:
parent
649347dcd4
commit
211dd65ff0
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue