Java.perform(function(){//java code write here
console.log("hooking==>");
Java.use("com.example.junior.util.Utils").dip2px.implementation = function(context,float){
var result = this.dip2px(context,float);
console.log("context,float==>",context,float);
return result;
​
}
})
}
​
​
setImmediate(main)
Java.perform(function(){//java code write here
console.log("hooking==>");
Java.use("com.example.junior.util.Utils").dip2px.implementation = function(context,float){
​
return null;
​
}
})
}
​
​
setImmediate(main)
Java.perform(function(){
Java.use("android.widget.TextView").setText.overload('java.lang.CharSequence').implementation = function(txt){
​
var javaString = Java.use("java.lang.String")
var newstring = javaString.$new("demoli")
​
​
var res = this.setText(newstring)
console.log("res======>",res)
console.log("txt======>",txt)
console.log(Java.use("android.util.Log").getStackTraceString(Java.use("java.lang.Throwable").$new()));
return res;
}
})
}