From cc7f23a835966bd7b98891364f43b84bd28ba902 Mon Sep 17 00:00:00 2001 From: U+039b Date: Tue, 24 Apr 2018 18:07:41 +0200 Subject: [PATCH] Release v2.0.2 --- exodus_core/analysis/static_analysis.py | 3 --- exodus_core/analysis/test_exodus_analyze.py | 10 +++++----- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/exodus_core/analysis/static_analysis.py b/exodus_core/analysis/static_analysis.py index b93be10..66a7917 100644 --- a/exodus_core/analysis/static_analysis.py +++ b/exodus_core/analysis/static_analysis.py @@ -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 @@ -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) diff --git a/exodus_core/analysis/test_exodus_analyze.py b/exodus_core/analysis/test_exodus_analyze.py index 44d5036..0fedec0 100644 --- a/exodus_core/analysis/test_exodus_analyze.py +++ b/exodus_core/analysis/test_exodus_analyze.py @@ -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