Java.perform(function () {
console.log("start hooking...");
function showstack() {
var log = Java.use("android.util.Log");
var Throwable = Java.use("java.lang.Throwable");
console.log(log.getStackTraceString(Throwable.$new()))
}
var TextUtils=Java.use("android.text.TextUtils");
TextUtils.isEmpty.implementation=function (a){
if(a=="1888888888"){
showstack();
console.log(a);
}
return this.isEmpty(a);
}
})
判断变量是否为空