mirror of
https://github.com/MobSF/Mobile-Security-Framework-MobSF.git
synced 2026-10-12 02:06:59 +00:00
committed by
Ajin Abraham
parent
6680b0f281
commit
60a0d3d2d1
@@ -116,10 +116,16 @@ def get_icon(apk_path, res_dir):
|
||||
icon_resolution = 0xFFFE - 1
|
||||
icon_name = a.get_app_icon(max_dpi=icon_resolution)
|
||||
if icon_name:
|
||||
return {
|
||||
'path': os.path.join(os.path.dirname(apk_path), icon_name),
|
||||
'hidden': False
|
||||
}
|
||||
if '.xml' in icon_name:
|
||||
return {
|
||||
'path': guess_icon_path(res_dir),
|
||||
'hidden': False
|
||||
}
|
||||
else:
|
||||
return {
|
||||
'path': os.path.join(os.path.dirname(apk_path), icon_name),
|
||||
'hidden': False
|
||||
}
|
||||
return {
|
||||
'path': guess_icon_path(res_dir),
|
||||
'hidden': True
|
||||
|
||||
Reference in New Issue
Block a user