导航菜单

页面标题

页面副标题

Antivirus Cleaner v1.2.0.0 - o.java 源代码

正在查看: Antivirus Cleaner v1.2.0.0 应用的 o.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.thinkup.expressad.advanced.view;

import android.content.Context;
import android.graphics.Bitmap;
import android.net.Uri;
import android.text.TextUtils;
import android.webkit.ValueCallback;
import android.webkit.WebResourceRequest;
import android.webkit.WebResourceResponse;
import android.webkit.WebView;
import com.thinkup.core.common.ooo.mom;
import com.thinkup.core.common.ooo.omm;
import com.thinkup.core.common.res.o0;
import com.thinkup.core.express.web.m;
import com.thinkup.expressad.advanced.js.NativeAdvancedJSBridgeImpl;
import com.thinkup.expressad.advanced.o0.n;
import com.thinkup.expressad.atsignalcommon.windvane.WindVaneWebView;
import java.io.FileInputStream;
import java.net.URLDecoder;
import java.util.HashMap;

public final class o extends m {
    com.thinkup.expressad.advanced.o0.o m;
    String o;
    private n o0;
    private final String n = "NativeAdvancedWebViewClient";
    private final String oo = com.thinkup.core.express.o.o.m("YkRXhr5AWBPfNgzuH7JQ+2Ha");
    private final String om = com.thinkup.core.express.o.o.m("Y+xgWkl2");

    public o(String str, com.thinkup.expressad.advanced.o0.o oVar, n nVar) {
        this.o = str;
        this.m = oVar;
        this.o0 = nVar;
    }

    private WebResourceResponse o(WebView webView, String str) {
        Uri parse;
        String scheme;
        if (!TextUtils.isEmpty(str) && this.o0 != null) {
            try {
                String replace = str.startsWith("file") ? str.replace("file://", "") : "";
                if (!TextUtils.isEmpty(str) && (parse = Uri.parse(str)) != null && (scheme = parse.getScheme()) != null && !TextUtils.isEmpty(scheme) && (scheme.equals(this.om) || scheme.equals("mb-h5"))) {
                    replace = this.o0.o(URLDecoder.decode(Uri.parse(str).getQueryParameter("uri")));
                }
                Context context = webView.getContext();
                if (context == null) {
                    context = com.thinkup.expressad.foundation.m.m.n().oo();
                }
                boolean o = mom.o(replace, o0.o(context).o(4));
                boolean z = com.thinkup.expressad.m.o;
                if (!TextUtils.isEmpty(replace) && o && !replace.contains("127.0.0.1") && !replace.startsWith("http")) {
                    HashMap hashMap = new HashMap();
                    hashMap.put("Access-Control-Allow-Origin", "*");
                    WebResourceResponse webResourceResponse = new WebResourceResponse("video/mp4", com.thinkup.expressad.foundation.on.o.moo0, new FileInputStream(replace));
                    webResourceResponse.setResponseHeaders(hashMap);
                    return webResourceResponse;
                }
                return null;
            } catch (Throwable th) {
                th.getMessage();
            }
        }
        return null;
    }

    public final void m() {
        if (this.o0 != null) {
            this.o0 = null;
        }
    }

    @Override
    public final void onPageStarted(WebView webView, String str, Bitmap bitmap) {
        super.onPageStarted(webView, str, bitmap);
        try {
            webView.evaluateJavascript("javascript:" + omm.o().m(), new ValueCallback<String>() {
                private static void o() {
                }

                @Override
                public final void onReceiveValue(String str2) {
                }
            });
        } catch (Throwable unused) {
        }
    }

    @Override
    public final WebResourceResponse shouldInterceptRequest(WebView webView, String str) {
        return o(webView, str);
    }

    @Override
    public final boolean shouldOverrideUrlLoading(WebView webView, String str) {
        try {
            try {
                WindVaneWebView windVaneWebView = (WindVaneWebView) webView;
                if (System.currentTimeMillis() - windVaneWebView.lastTouchTime > com.thinkup.expressad.m.n.o.n) {
                    com.thinkup.expressad.foundation.o0.o0 o0Var = ((NativeAdvancedJSBridgeImpl) windVaneWebView.getObject()).getmCampaignList().get(0);
                    windVaneWebView.getUrl();
                    com.thinkup.expressad.m.n.o.o(o0Var);
                    return false;
                }
            } catch (Exception e) {
                e.printStackTrace();
            }
            com.thinkup.expressad.advanced.o0.o oVar = this.m;
            if (oVar == null) {
                return true;
            }
            oVar.o(str);
            return true;
        } catch (Throwable unused) {
            return false;
        }
    }

    @Override
    public final WebResourceResponse shouldInterceptRequest(WebView webView, WebResourceRequest webResourceRequest) {
        return o(webView, webResourceRequest.getUrl().toString());
    }

    private boolean o(String str) {
        Uri parse;
        String scheme;
        if (TextUtils.isEmpty(str) || (parse = Uri.parse(str)) == null || (scheme = parse.getScheme()) == null || TextUtils.isEmpty(scheme)) {
            return false;
        }
        return scheme.equals(this.om) || scheme.equals("mb-h5");
    }
}