Skip to content

Commit

Permalink
Improve apktool version parsing for Windows.
Browse files Browse the repository at this point in the history
Fixes #345
  • Loading branch information
leonjza committed Mar 30, 2020
1 parent c92c5fa commit 79aa7ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions objection/utils/patchers/android.py
Expand Up @@ -227,6 +227,10 @@ def is_apktool_ready(self) -> bool:
'-version',
]), timeout=self.command_run_timeout).out.strip()

# windows / delegator weirdness...
if 'Press any key to continue . . .' in o:
o = o.split('\n')[0]

if len(o) == 0:
click.secho('Unable to determine apktool version. Is it installed')
return False
Expand Down

0 comments on commit 79aa7ed

Please sign in to comment.