mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 07:22:29 +03:00
parent
5281228ea5
commit
d1ded7f64d
1 changed files with 5 additions and 3 deletions
|
@ -1049,10 +1049,12 @@ def scan_apk(apk_file):
|
||||||
'antiFeatures': set(),
|
'antiFeatures': set(),
|
||||||
}
|
}
|
||||||
|
|
||||||
if SdkToolsPopen(['aapt', 'version'], output=False):
|
try:
|
||||||
scan_apk_aapt(apk, apk_file)
|
import androguard
|
||||||
else:
|
androguard # silence pyflakes
|
||||||
scan_apk_androguard(apk, apk_file)
|
scan_apk_androguard(apk, apk_file)
|
||||||
|
except ImportError:
|
||||||
|
scan_apk_aapt(apk, apk_file)
|
||||||
|
|
||||||
# Get the signature, or rather the signing key fingerprints
|
# Get the signature, or rather the signing key fingerprints
|
||||||
logging.debug('Getting signature of {0}'.format(os.path.basename(apk_file)))
|
logging.debug('Getting signature of {0}'.format(os.path.basename(apk_file)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue