-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hooking to Context doesn't work #67
Comments
try: Java.perform(function() {
var context = Java.use("android.content.Context");
/* FileOutputStream openFileOutput (String name, int mode) */
context.openFileOutput.overload("java.lang.String","java.lang.Integer").implementation = function(name, mode) {
this.openFileOutput.overload("java.lang.String","java.lang.Integer").call(this, name, mode);
}
}); |
Same issue. |
I stumbled upon this ticket when I had the same problem. This is caused by the fact that So then the code would be:
|
You can call the Context with |
Hey. I ran into a small issue during instrumentation. Hooking into this function of context simply doesn't work. I wanted to know if the issue is on my side.
python script
The app is running and the frida-server is running on the android emulator. I'm sure that this piece of code is being called since I have the source code. The issue is that it is never hooked. Am I doing something wrong here?
The text was updated successfully, but these errors were encountered: