-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
how to hook onCreate medthod in Application Class #480
Comments
bump |
So, Did you solute? |
Hi, I had this same issue, but was able to hook That is, in test.py:
Could you try this and see if it works? |
did you guys figure out? The script above does not work for me |
@H4oK3 Could you post your Android app code (only the relevant Activity/Application) and your Python/JS code? |
@henrytom1703 I'm running into the same issue, did you get this working? It looks like the App.onCreate() code is being run before hook code in Java.perform. The script was loaded after spawning before resuming. My test app is similar to the OPs. It was created in Android Studio as an "New Project > Empty Activity" and adding a new MyApp class that extends android.app.Application and overriding onCreate(). Interestingly the Frida hooking works if I use a debug build, but not a signed, release build. Device: Pixel 4a Suggestions that did not work.
|
Hello, @oleavr . Here my source code:
Java.perform(function () {
var app= Java.use("com.abc.app.MyCustomApplication");
app.onCreate.implementation = function() {
console.log("Called");
};
});
The text was updated successfully, but these errors were encountered: