Skip to content

Commit

Permalink
made sure the wait for application finish happened before the output …
Browse files Browse the repository at this point in the history
…was written
  • Loading branch information
chame1eon committed Feb 27, 2021
1 parent 1f97ecd commit 395674d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# jnitrace Change Log

## 3.2.1
- Fixed bug where output was being written before the tracing was complete

## 3.2.0
- Added support for connecting to a remote Frida server

Expand Down
4 changes: 2 additions & 2 deletions jnitrace/jnitrace.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,12 +623,12 @@ def main():
if args.inject_method == "spawn":
device.resume(pid)

_wait_for_finish()

if args.output:
json.dump(formatter.get_output(), args.output, indent=4)
args.output.close()

_wait_for_finish()

_finish(args, device, pid, scripts)

if __name__ == '__main__':
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jnitrace",
"version": "3.2.0",
"version": "3.2.1",
"description": "A tool for tracing use of the JNI in Android apps",
"private": true,
"main": "jnitrace/src/main.js",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name='jnitrace',
version='3.2.0',
version='3.2.1',
description='A tool for tracing use of the JNI in Android apps',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 395674d

Please sign in to comment.