Skip to content

Commit

Permalink
[HOTFIX] Fixed that the icon cannot be found (#2265)
Browse files Browse the repository at this point in the history
fixed that the icon cannot be found when the suffix name is uppercase
  • Loading branch information
ohyeah521 authored Sep 13, 2023
1 parent 80639f4 commit 9e92980
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mobsf/StaticAnalyzer/views/android/icon_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9e92980

Please sign in to comment.