百度手机卫士 v8.8.0版本的 MD5 值为:a85894a6923c8a39f0c3a3a686ad7443

以下内容为反编译后的 iuh.java 源代码,内容仅作参考


package dxoptimizer;

import android.webkit.WebView;
import java.lang.ref.WeakReference;

public class iuh {
    protected WeakReference<WebView> a;
    protected long b;
    protected String c;

    public iuh(WebView webView, long j, String str) {
        this.a = new WeakReference<>(webView);
        this.b = j;
        this.c = str;
    }

    public void a(Object obj) {
        WebView webView = this.a.get();
        if (webView != null) {
            String str = "'undefined'";
            if (obj instanceof String) {
                str = "'" + ((Object) ((String) obj).replace("\\", "\\\\").replace("'", "\\'")) + "'";
            } else if ((obj instanceof Number) || (obj instanceof Long) || (obj instanceof Integer) || (obj instanceof Double) || (obj instanceof Float)) {
                str = obj.toString();
            } else if (obj instanceof Boolean) {
                str = obj.toString();
            }
            webView.loadUrl("javascript:window.JsBridge&&JsBridge.callback(" + this.b + ",{'r':0,'result':" + str + "});");
        }
    }

    public void a() {
        WebView webView = this.a.get();
        if (webView != null) {
            webView.loadUrl("javascript:window.JsBridge&&JsBridge.callback(" + this.b + ",{'r':1,'result':'no such method'})");
        }
    }

    public void a(String str) {
        WebView webView = this.a.get();
        if (webView != null) {
            webView.loadUrl("javascript:" + str);
        }
    }
}