Skip to content

Commit

Permalink
Merge pull request #18 from noobpk/dev
Browse files Browse the repository at this point in the history
optimize for androidhook
  • Loading branch information
noobpk authored Mar 17, 2022
2 parents d795ebc + 502d921 commit 99e770a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Frida Android Hook ChangeLog

## [Unrelease] - 2022-03-17

### Added

### Changed
- Update androidhook. Check python3 command exists

## [Unrelease] - 2022-01-24

### Added
Expand Down
15 changes: 12 additions & 3 deletions frida-android-hook/androidhook
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,16 @@ versions of setuptools happy
import subprocess
import shlex
import sys
from shutil import which

command = shlex.split("python3 " +"core/hook.py")
command.extend(sys.argv[1:])
subprocess.call(command)
try:
if(which('python3') is not None):
command = shlex.split("python3 " +"core/hook.py")
else:
command = shlex.split("python " +"core/hook.py")

command.extend(sys.argv[1:])
subprocess.call(command)

except Exception as e:
raise e

0 comments on commit 99e770a

Please sign in to comment.