From 83055f8bdb64199fadbcef0bcdef289079409684 Mon Sep 17 00:00:00 2001 From: U+039b Date: Tue, 24 Apr 2018 14:17:13 +0200 Subject: [PATCH] Debug gplaycli --- exodus_core/analysis/static_analysis.py | 2 + exodus_core/analysis/test_exodus_analyze.py | 1 + requirements.txt | 46 ++++----------------- 3 files changed, 10 insertions(+), 39 deletions(-) diff --git a/exodus_core/analysis/static_analysis.py b/exodus_core/analysis/static_analysis.py index 054662b..b93be10 100644 --- a/exodus_core/analysis/static_analysis.py +++ b/exodus_core/analysis/static_analysis.py @@ -356,12 +356,14 @@ 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 87dbfb0..736aa0d 100644 --- a/exodus_core/analysis/test_exodus_analyze.py +++ b/exodus_core/analysis/test_exodus_analyze.py @@ -69,6 +69,7 @@ def test_icon_diff(self): self.assertNotEqual(diff_5, diff_6) def test_app_uid(self): + self.assertEqual(ApkSignature('./apks/braiarpip free.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') diff --git a/requirements.txt b/requirements.txt index bc3940d..89e3655 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,42 +1,10 @@ -androguard==3.1.0 -args==0.1.0 -asn1crypto==0.24.0 -backcall==0.1.0 -beautifulsoup4==4.6.0 -certifi==2018.1.18 -cffi==1.11.5 -chardet==3.0.4 -clint==0.5.1 -colorama==0.3.9 -cryptography==2.2.2 -decorator==4.2.1 +Jinja2==2.10 +requests==2.18.4 +Pillow==5.0.0 dhash==1.3 -future==0.16.0 -gpapi==0.4.2 gplaycli==3.21 -idna==2.6 -ipython==6.3.0 -ipython-genutils==0.2.0 -jedi==0.11.1 -jellyfish==0.5.6 -joblib==0.11 -lxml==4.2.1 -networkx==2.1 -parso==0.1.1 -pexpect==4.4.0 -pickleshare==0.7.4 -Pillow==5.0.0 -prompt-toolkit==1.0.15 protobuf==3.5.2.post1 -ptyprocess==0.5.2 -pyasn1==0.4.2 -pyaxmlparser==0.3.7 -pycparser==2.18 -pycryptodome==3.6.0 -Pygments==2.2.0 -requests==2.18.4 -simplegeneric==0.8.1 -six==1.11.0 -traitlets==4.3.2 -urllib3==1.22 -wcwidth==0.1.7 +jellyfish==0.5.6 +cryptography==2.2.2 +beautifulsoup4==4.6.0 +androguard==3.1.0 \ No newline at end of file