Skip to content

Commit

Permalink
make apkid return versionCode as an integer
Browse files Browse the repository at this point in the history
  • Loading branch information
eighthave committed Apr 1, 2024
1 parent 30fdb63 commit e48a7f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions androguard/core/apk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2179,9 +2179,9 @@ def get_apkid(apkfile):
appid = value
elif versionCode is None and name == 'versionCode':
if value.startswith('0x'):
versionCode = str(int(value, 16))
versionCode = int(value, 16)
else:
versionCode = value
versionCode = int(value)
elif versionName is None and name == 'versionName':
versionName = value

Expand Down

0 comments on commit e48a7f2

Please sign in to comment.