Proxy Master v3.4.9版本的 MD5 值为:14d0aa2468d13530c8f6e96bcc114bf5
以下内容为反编译后的 ng.java 源代码,内容仅作参考
package com.yandex.mobile.ads.impl;
import android.annotation.SuppressLint;
import android.content.Context;
import android.view.ViewGroup;
import android.webkit.WebSettings;
import android.webkit.WebView;
import java.util.LinkedHashMap;
public abstract class ng extends WebView {
public final LinkedHashMap f16773a;
public ng(Context context) {
super(context);
kotlin.jvm.internal.k.e(context, "context");
this.f16773a = new LinkedHashMap();
f();
}
private final void f() {
WebSettings settings = getSettings();
kotlin.jvm.internal.k.d(settings, "getSettings()");
settings.setAllowFileAccess(false);
if (v7.a(11)) {
settings.setAllowContentAccess(false);
if (v7.a(16)) {
settings.setAllowFileAccessFromFileURLs(false);
settings.setAllowUniversalAccessFromFileURLs(false);
}
}
}
public void a(Context context) {
kotlin.jvm.internal.k.e(context, "context");
}
public final void a(String sourcePageData) {
kotlin.jvm.internal.k.e(sourcePageData, "sourcePageData");
loadDataWithBaseURL("https://yandex.ru", sourcePageData + c() + "<body style='margin:0; padding:0;'>", "text/html", "UTF-8", null);
}
@Override
@SuppressLint({"JavascriptInterface", "AddJavascriptInterface"})
public final void addJavascriptInterface(Object any, String jsName) {
kotlin.jvm.internal.k.e(any, "any");
kotlin.jvm.internal.k.e(jsName, "jsName");
super.addJavascriptInterface(any, jsName);
this.f16773a.put(jsName, any);
}
public String c() {
return "";
}
public final Object d() {
return this.f16773a.get("AdPerformActionsJSI");
}
public void e() {
nu1.a((ViewGroup) this);
for (String str : this.f16773a.keySet()) {
removeJavascriptInterface(str);
}
this.f16773a.clear();
destroy();
getClass().toString();
}
@Override
public final void removeJavascriptInterface(String jsName) {
kotlin.jvm.internal.k.e(jsName, "jsName");
if (v7.a(11)) {
super.removeJavascriptInterface(jsName);
}
}
public final void setDisplayZoomControls(boolean z6) {
if (v7.a(11)) {
getSettings().setDisplayZoomControls(z6);
}
}
}