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 toast = Java.use("android.widget.Toast");
    9. toast.show.implementation = function () {
    10. showstack();
    11. console.log("toast.show: ");
    12. return this.show();
    13. }
    14. })

    方式一:完全留空,app检查是都编辑框为空
    image.png
    方法二:输入点信息,让app判断
    image.png