1. Java.perform(function () {
    2. console.log("start hooking...");
    3. function showstack() {
    4. var log = Java.use("android.util.Log");
    5. var Throwable = Java.use("java.lang.Throwable");
    6. console.log(log.getStackTraceString(Throwable.$new()))
    7. }
    8. var TextUtils=Java.use("android.text.TextUtils");
    9. TextUtils.isEmpty.implementation=function (a){
    10. if(a=="1888888888"){
    11. showstack();
    12. console.log(a);
    13. }
    14. return this.isEmpty(a);
    15. }
    16. })

    判断变量是否为空