mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-07 16:00:28 +03:00
port to androguard >= 4 and drop support for older than 3.3.3
This also makes androguard a hard requirement, which has been true for a while anyway. So the code that handles androguard as an optional requirement is removed. androguard from Debian/buster is new enough, so this does not seem like it will cause any problems.
This commit is contained in:
parent
cdc7c98707
commit
7a144a4762
5 changed files with 30 additions and 35 deletions
|
|
@ -1722,8 +1722,7 @@ def _sanitize_sdk_version(value):
|
|||
|
||||
def scan_apk_androguard(apk, apkfile):
|
||||
try:
|
||||
from androguard.core.bytecodes.apk import APK
|
||||
apkobject = APK(apkfile)
|
||||
apkobject = common.get_androguard_APK(apkfile)
|
||||
if apkobject.is_valid_APK():
|
||||
arsc = apkobject.get_android_resources()
|
||||
else:
|
||||
|
|
@ -2581,7 +2580,6 @@ def main():
|
|||
config = common.read_config(options)
|
||||
common.setup_status_output(start_timestamp)
|
||||
|
||||
common.use_androguard()
|
||||
if not (('jarsigner' in config or 'apksigner' in config)
|
||||
and 'keytool' in config):
|
||||
raise FDroidException(_('Java JDK not found! Install in standard location or set java_paths!'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue