1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-05 18:50:09 +02:00

update: little trick to avoid some cases of XML app icons

refs #344
This commit is contained in:
Hans-Christoph Steiner 2018-07-13 15:38:26 +02:00
parent 75e9a9e176
commit 0e0a5019ab

View File

@ -1260,7 +1260,8 @@ def scan_apk_androguard(apk, apkfile):
if resource_id:
icon_name = arsc.get_id(apk['packageName'], icon_id)[1]
else:
icon_name = os.path.splitext(os.path.basename(apkobject.get_app_icon()))[0]
# don't use 'anydpi' aka 0xFFFE aka 65534 since it is XML
icon_name = os.path.splitext(os.path.basename(apkobject.get_app_icon(max_dpi=65534 - 1)))[0]
apk['icons_src'] = _get_apk_icons_src(apkfile, icon_name)
arch_re = re.compile("^lib/(.*)/.*$")