diff --git a/mobsf/StaticAnalyzer/views/android/icon_analysis.py b/mobsf/StaticAnalyzer/views/android/icon_analysis.py index 09627d70c9..949e0806f8 100755 --- a/mobsf/StaticAnalyzer/views/android/icon_analysis.py +++ b/mobsf/StaticAnalyzer/views/android/icon_analysis.py @@ -230,7 +230,8 @@ def get_icon_apk(apk, app_dic): if icon_file: src = Path(icon_file) # Copy PNG/SVG to Downloads - out = Path(settings.DWD_DIR) / (app_dic['md5'] + '-icon' + src.suffix) + icon = app_dic['md5'] + '-icon' + src.suffix.lower() + out = Path(settings.DWD_DIR) / icon if src and src.exists() and src.is_file(): copy2(src.as_posix(), out.as_posix()) app_dic['icon_path'] = out.name