Sunbit v2.4.4版本的 MD5 值为:a5021e5e2a58eb1d6741b432fe7533c4
以下内容为反编译后的 n0.java 源代码,内容仅作参考
package com.just.agentweb;
import android.webkit.WebView;
import java.lang.ref.WeakReference;
public class n0 {
private static final String f5604f = "javascript:%s.callback(%d, %d %s);";
private int f5605a;
private boolean b = true;
private WeakReference<WebView> c;
private int f5606d;
private String f5607e;
public static class a extends Exception {
public a(String str) {
super(str);
}
}
public n0(WebView webView, String str, int i2) {
this.c = new WeakReference<>(webView);
this.f5607e = str;
this.f5605a = i2;
}
public void a(Object... objArr) throws a {
if (this.c.get() != null) {
if (this.b) {
StringBuilder sb = new StringBuilder();
for (Object obj : objArr) {
sb.append(",");
boolean z = obj instanceof String;
boolean a2 = a(obj);
if (z && !a2) {
sb.append("\"");
}
sb.append(String.valueOf(obj));
if (z && !a2) {
sb.append("\"");
}
}
String format = String.format(f5604f, this.f5607e, Integer.valueOf(this.f5605a), Integer.valueOf(this.f5606d), sb.toString());
v0.a();
this.c.get().loadUrl(format);
this.b = this.f5606d > 0;
return;
}
throw new a("the JsCallback isn't permanent,cannot be called more than once");
}
throw new a("the WebView related to the JsCallback has been recycled");
}
private boolean a(Object obj) {
if ((obj instanceof q.e.i) || (obj instanceof q.e.f)) {
return true;
}
String obj2 = obj.toString();
try {
try {
new q.e.i(obj2);
} catch (q.e.g unused) {
return false;
}
} catch (q.e.g unused2) {
new q.e.f(obj2);
}
return true;
}
public void a(boolean z) {
this.f5606d = z ? 1 : 0;
}
}