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; | |
} |