mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-11 15:13:27 +02:00
Merge branch 'master' into 'master'
update: handle renameManifestPackage when extracting icons with androguard See merge request fdroid/fdroidserver!480
This commit is contained in:
commit
d290eb96f9
@ -1228,7 +1228,11 @@ def scan_apk_androguard(apk, apkfile):
|
||||
icon_id_str = apkobject.get_element("application", "icon")
|
||||
if icon_id_str:
|
||||
icon_id = int(icon_id_str.replace("@", "0x"), 16)
|
||||
icon_name = arsc.get_id(apk['packageName'], icon_id)[1]
|
||||
resource_id = arsc.get_id(apk['packageName'], icon_id)
|
||||
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]
|
||||
apk['icons_src'] = _get_apk_icons_src(apkfile, icon_name)
|
||||
|
||||
arch_re = re.compile("^lib/(.*)/.*$")
|
||||
|
Loading…
Reference in New Issue
Block a user