Cyber Surfer v5.2.5版本的 MD5 值为:db13c5fce988de393e52d2679f934b22

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


package com.yandex.mobile.ads.impl;

import android.content.Context;
import android.view.MotionEvent;
import android.view.ViewGroup;
import android.webkit.WebSettings;
import android.webkit.WebView;
import com.safedk.android.analytics.brandsafety.DetectTouchUtils;
import java.util.HashMap;
public abstract class tf extends WebView {
    HashMap f14610a;

    public tf(Context context) {
        super(context);
        f();
    }

    private void f() {
        WebSettings settings = getSettings();
        settings.setAllowFileAccess(false);
        if (o7.a(11)) {
            settings.setAllowContentAccess(false);
            if (o7.a(16)) {
                settings.setAllowFileAccessFromFileURLs(false);
                settings.setAllowUniversalAccessFromFileURLs(false);
            }
        }
    }

    public final void a(String str) {
        StringBuilder a2 = sf.a(str);
        a2.append(c());
        a2.append("<body style='margin:0; padding:0;'>");
        loadDataWithBaseURL("https://yandex.ru", a2.toString(), "text/html", "UTF-8", null);
    }

    @Override
    public final void addJavascriptInterface(Object obj, String str) {
        super.addJavascriptInterface(obj, str);
        if (this.f14610a == null) {
            this.f14610a = new HashMap();
        }
        this.f14610a.put(str, obj);
    }

    protected String c() {
        return "";
    }

    public final Object d() {
        HashMap hashMap = this.f14610a;
        if (hashMap != null) {
            return hashMap.get("AdPerformActionsJSI");
        }
        return null;
    }

    @Override
    public boolean dispatchTouchEvent(MotionEvent motionEvent) {
        DetectTouchUtils.viewOnTouch(com.safedk.android.utils.h.y, this, motionEvent);
        return super.dispatchTouchEvent(motionEvent);
    }

    public void e() {
        int i = yp1.f15295b;
        try {
            if (getParent() instanceof ViewGroup) {
                ((ViewGroup) getParent()).removeView(this);
            }
        } catch (Exception unused) {
        }
        try {
            removeAllViews();
        } catch (Exception unused2) {
        }
        HashMap hashMap = this.f14610a;
        if (hashMap != null) {
            for (String str : hashMap.keySet()) {
                removeJavascriptInterface(str);
            }
            this.f14610a.clear();
        }
        destroy();
        getClass().toString();
    }

    public final void g() {
        if (o7.a(11)) {
            getSettings().setDisplayZoomControls(false);
        }
    }

    @Override
    public void onMeasure(int i, int i2) {
        if (1 == 0) {
            setMeasuredDimension(0, 0);
        } else {
            super.onMeasure(i, i2);
        }
    }

    @Override
    public final void removeJavascriptInterface(String str) {
        if (o7.a(11)) {
            super.removeJavascriptInterface(str);
        }
    }
}