Skip to content

Commit

Permalink
Release v2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
U039b committed Apr 24, 2018
1 parent 60c6204 commit cc7f23a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
3 changes: 0 additions & 3 deletions exodus_core/analysis/static_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,6 @@ def get_application_details(self):
objs = gpc.api.search(self.get_package(), 5)
try:
for obj in objs:
# print('%s - %s' % (self.get_package(), obj['docId']))
if self.get_package() == obj['docId']:
self.app_details = obj
return self.app_details
Expand All @@ -356,14 +355,12 @@ def save_icon(self, path):
with open(path, 'wb') as f:
f.write(z.read(icon))
_ = Image.open(path)
print('From APK %s - %s'% (icon, path))
return path
except:
logging.debug('Unable to get the icon from the APK - downloading from details')
try:
saved_path = self._get_icon_from_details(path)
if os.path.isfile(path) and os.path.getsize(path) > 0:
print('From details')
return saved_path
except Exception as e:
logging.error(e)
Expand Down
10 changes: 5 additions & 5 deletions exodus_core/analysis/test_exodus_analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ def test_icon_diff(self):
self.assertNotEqual(diff_5, diff_6)

def test_app_uid(self):
self.assertEqual(ApkSignature('./apks/braiar.apk').app_uid, '38585E1B26493DAB170A08177C6A739D9DB974FE')
self.assertEqual(ApkSignature('./apks/whatsapp.apk').app_uid, 'F799956E176E259FC28EB51AAD2E3519C9033619')
self.assertEqual(ApkSignature('./apks/hsbc.apk').app_uid, 'E3B4E87A002A37436CC6B008D3B43C0DB1A4FE13')
self.assertEqual(ApkSignature('./apks/instapaper.apk').app_uid, '64B99DBA34AFBC3709F75871837465892DF31771')
self.assertEqual(ApkSignature('./apks/blooddonation.apk').app_uid, '775AFB467E4EF556A42B28181A70B79BA67B4497')
self.assertEqual(StaticAnalysis('./apks/braiar.apk').get_application_universal_id(), '38585E1B26493DAB170A08177C6A739D9DB974FE')
self.assertEqual(StaticAnalysis('./apks/whatsapp.apk').get_application_universal_id(), 'F799956E176E259FC28EB51AAD2E3519C9033619')
self.assertEqual(StaticAnalysis('./apks/hsbc.apk').get_application_universal_id(), 'E3B4E87A002A37436CC6B008D3B43C0DB1A4FE13')
self.assertEqual(StaticAnalysis('./apks/instapaper.apk').get_application_universal_id(), '64B99DBA34AFBC3709F75871837465892DF31771')
self.assertEqual(StaticAnalysis('./apks/blooddonation.apk').get_application_universal_id(), '775AFB467E4EF556A42B28181A70B79BA67B4497')

def test_list_classes(self):
# Briar
Expand Down

0 comments on commit cc7f23a

Please sign in to comment.