Created
December 15, 2020 11:11
-
-
Save harshitrajpal/e5512a58c65e9db2f24b9c79732795ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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