Skip to content

Instantly share code, notes, and snippets.

@harshitrajpal
Created December 15, 2020 11:11
Show Gist options
  • Save harshitrajpal/e5512a58c65e9db2f24b9c79732795ad to your computer and use it in GitHub Desktop.
Save harshitrajpal/e5512a58c65e9db2f24b9c79732795ad to your computer and use it in GitHub Desktop.
//code to be used for hooking demonstration.
console.log("Script loaded!");
Java.perform(function myFunc() {
var myClass = Java.use("com.example.harshitrajpal.MainActivity");
myClass.returnValue.implementation = function() {
//var ret_value = this.returnValue();
var ret = 100;
return ret;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment