Skip to content

Commit

Permalink
Debug gplaycli
Browse files Browse the repository at this point in the history
  • Loading branch information
U039b committed Apr 24, 2018
1 parent b286da1 commit 83055f8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 39 deletions.
2 changes: 2 additions & 0 deletions exodus_core/analysis/static_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions exodus_core/analysis/test_exodus_analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
46 changes: 7 additions & 39 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 83055f8

Please sign in to comment.