Skip to content

Commit

Permalink
Fallback on get app name when androguard returns empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinabraham committed Nov 25, 2024
1 parent 5f5c115 commit 9522cc6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mobsf/StaticAnalyzer/views/android/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ def get_app_name(a, app_dir, is_apk):
if a:
# Parsed Androguard APK Object
try:
return a.get_app_name()
app_name = a.get_app_name()
if app_name:
return app_name
except Exception:
logger.warning('Failed to get app name from parsed APK object')
# Look for app_name in values folder.
Expand Down

0 comments on commit 9522cc6

Please sign in to comment.