-
Notifications
You must be signed in to change notification settings - Fork 956
Closed
Labels
Description
Describe the bug
import <path/to/script.js> is broken:
> import ~/Desktop/frida_script.js
An unexpected internal exception has occurred. If this looks like a code related error, please file a bug report!
'Agent' object has no attribute 'background'
Python stack trace: Traceback (most recent call last):
File "/objection/objection/console/repl.py", line 361, in run
self.run_command(document)
File "/objection/objection/console/repl.py", line 169, in run_command
exec_method(arguments)
File "//objection/objection/commands/frida_commands.py", line 85, in load_background
agent.background(hook)
AttributeError: 'Agent' object has no attribute 'background'
To Reproduce
- Run command 'import anyscript.js'
Similar issues
None I could find when searching for "background".
Expected behavior
The script should load, like before.
Evidence / Logs / Screenshots
Stacktrace above.
Environment (please complete the following information):
- Device: Android device
- OS: Android 13
- Frida Version: 16.5.2
- Objection Version: from git, latest master as of now (5f22e0a)
Application
Not application dependent.
Additional context
Looks like the background method used here:
| agent.background(hook) |
was removed from Agent in this commit: 865fb7d
Reactions are currently unavailable