fdroid-server/fdroidserver
Hans-Christoph Steiner be59b38ac1 update: handle ValueError from apkInspector in androguard 4.1
androguard 4.1 uses a new lib called apkInspector instead of zipfile.ZipFile
so that it can handle usable but invalid ZIP files.  It will also throw
ValueError on some things, for example:

Traceback (most recent call last):
  File "/builds/eighthave/fdroidserver/fdroidserver-2.3a0/tests/update.TestCase", line 878, in test_scan_apk_bad_zip
    fdroidserver.update.scan_apk(apkfile)
  File "/builds/eighthave/fdroidserver/fdroidserver-2.3a0/fdroidserver/update.py", line 1586, in scan_apk
    scan_apk_androguard(apk, apk_file)
  File "/builds/eighthave/fdroidserver/fdroidserver-2.3a0/fdroidserver/update.py", line 1725, in scan_apk_androguard
    apkobject = common.get_androguard_APK(apkfile)
  File "/builds/eighthave/fdroidserver/fdroidserver-2.3a0/fdroidserver/common.py", line 2673, in get_androguard_APK
    return APK(apkfile)
  File "/usr/local/lib/python3.10/dist-packages/androguard/core/apk/__init__.py", line 273, in __init__
    self.zip = ZipEntry.parse(filename, False)
  File "/usr/local/lib/python3.10/dist-packages/apkInspector/headers.py", line 410, in parse
    eocd = EndOfCentralDirectoryRecord.parse(apk_file)
  File "/usr/local/lib/python3.10/dist-packages/apkInspector/headers.py", line 59, in parse
    raise ValueError("End of central directory record (EOCD) signature not found")
ValueError: End of central directory record (EOCD) signature not found
2024-04-25 13:00:23 +02:00
..
asynchronousfilereader enable black on fdroidserver/asynchronousfilereader/__init__.py 2023-04-27 11:34:18 +02:00
__init__.py deploy: update_serverwebroots() for testable logic 2024-01-23 18:49:12 +01:00
__main__.py Fix "fdroid --version" 2024-01-25 12:00:05 +00:00
apksigcopier.py make F-Droid-specific changes to apksigcopier.py 2023-02-17 13:08:23 +00:00
btlog.py deploy: ensure mirrors and binary transparency always create 'master' 2023-05-10 09:21:14 +02:00
build.py check for <application android:testOnly="true"> 2024-04-03 13:47:04 +00:00
checkupdates.py checkupdates: add a bookworm blocklist item 2024-03-14 21:44:32 +08:00
common.py some parts of androguard 4.x use loguru instead of logging 2024-04-25 12:39:12 +02:00
deploy.py deploy: automatically convert to black format 2024-04-24 08:42:15 +00:00
exception.py basic downloading for scan_binary signatures 2022-10-06 12:08:23 +02:00
gpgsign.py fix code format for new black rule 2023-03-20 14:47:48 +01:00
import_subcommand.py Import - add more template content 2023-07-12 13:45:10 +00:00
index.py apply review suggestions 2024-04-24 11:56:07 +00:00
init.py method to globally set logging to output nicely to the console 2024-03-06 12:53:20 +00:00
install.py convert install.py to black code format 2024-03-06 13:31:46 +00:00
lint.py fix UpdateCheckMode string in lint 2024-04-10 15:50:26 +02:00
looseversion.py add looseversion license information to vendored file 2023-12-08 10:42:29 +01:00
metadata.py fix litecoin address regex 2024-02-28 08:00:39 +00:00
mirror.py method to globally set logging to output nicely to the console 2024-03-06 12:53:20 +00:00
net.py net: add test of automatic retries in download_file() 2024-03-06 13:31:46 +00:00
nightly.py Use fdroid.link for nightly README 2024-04-03 13:54:48 +00:00
publish.py publish: --error-on-failed to exit when signing/verifying fails 2024-04-03 15:33:18 +02:00
readmeta.py fix code format for new black rule 2023-03-20 14:47:48 +01:00
rewritemeta.py metadata: handle TYPE_STRINGMAP when writing out YAML 2023-05-23 10:47:03 +02:00
scanner.py scanner: update maven repo regex 2024-03-12 07:57:11 +00:00
signatures.py method to globally set logging to output nicely to the console 2024-03-06 12:53:20 +00:00
signindex.py fix code format for new black rule 2023-03-20 14:47:48 +01:00
tail.py Fix pylint warnings 2022-03-29 15:53:45 +02:00
update.py update: handle ValueError from apkInspector in androguard 4.1 2024-04-25 13:00:23 +02:00
verify.py fix code format for new black rule 2023-03-20 14:47:48 +01:00
vmtools.py vmtools: Properly initialize provider member 2023-03-21 14:00:58 +01:00