APK反编译源代码展示 - 南明离火平台提供

应用版本信息
应用名称:Consulta Recibo Luz Guia
版本号:8.0
包名称:com.satruk.consultareciboluzcfe

MD5 校验值:d53ec1a251294bef920c76a08ee856d9

反编译源代码说明

d.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。


package com.applovin.impl.adview;

import android.content.Context;
import android.net.Uri;
import android.view.MotionEvent;
import android.view.View;
import android.webkit.RenderProcessGoneDetail;
import android.webkit.WebSettings;
import android.webkit.WebView;
import androidx.emoji2.text.PL5oabeYVEZVxrhN8;
import com.applovin.impl.b.i;
import com.applovin.impl.sdk.ab;
import com.applovin.impl.sdk.utils.StringUtils;
import com.applovin.mediation.MaxReward;
import com.applovin.sdk.AppLovinPostbackListener;
import com.applovin.sdk.AppLovinSdkUtils;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class d extends i {
    private static WebView agI;
    private boolean agJ;
    private boolean agK;
    private final List<String> agL;
    private final Object agM;
    private com.applovin.impl.sdk.d.d agj;
    private com.applovin.impl.sdk.ad.e agq;
    private final com.applovin.impl.sdk.x logger;
    private final com.applovin.impl.sdk.n sdk;

    public class AnonymousClass1 extends ab {
        @Override
        public boolean onRenderProcessGone(WebView webView, RenderProcessGoneDetail renderProcessGoneDetail) {
            if (webView == d.agI) {
                d.agI.destroy();
                WebView unused = d.agI = null;
                AppLovinSdkUtils.runOnUiThread(new JMW1nY4qeylWh());
            }
            return super.onRenderProcessGone(webView, renderProcessGoneDetail);
        }
    }

    public d(e eVar, com.applovin.impl.sdk.n nVar, Context context) {
        super(context);
        ab abVar;
        b bVar;
        this.agL = new ArrayList();
        this.agM = new Object();
        if (nVar != null) {
            this.sdk = nVar;
            this.logger = nVar.BL();
            setBackgroundColor(0);
            WebSettings settings = getSettings();
            settings.setSupportMultipleWindows(false);
            settings.setJavaScriptEnabled(true);
            if (eVar != null) {
                abVar = eVar;
            } else {
                abVar = new ab();
            }
            setWebViewClient(abVar);
            if (eVar != null) {
                bVar = eVar.rr();
            } else {
                bVar = null;
            }
            setWebChromeClient(new c(bVar, nVar));
            setVerticalScrollBarEnabled(false);
            setHorizontalScrollBarEnabled(false);
            setScrollBarStyle(33554432);
            if (com.applovin.impl.sdk.utils.h.La() && ((Boolean) nVar.a(com.applovin.impl.sdk.c.b.aQo)).booleanValue()) {
                setWebViewRenderProcessClient(new f(nVar).rt());
            }
            setOnTouchListener(new dtvWz6I0F4TVD5dVYSit3W());
            setOnLongClickListener(new View.OnLongClickListener() {
                @Override
                public final boolean onLongClick(View view) {
                    boolean h;
                    h = d.this.h(view);
                    return h;
                }
            });
            return;
        }
        throw new IllegalArgumentException("No sdk specified.");
    }

    public static void Xcb5jjxCoQp9OA(com.applovin.impl.sdk.network.i iVar, AppLovinPostbackListener appLovinPostbackListener, com.applovin.impl.sdk.n nVar) {
        a(iVar, appLovinPostbackListener, nVar);
    }

    public static boolean a(View view, MotionEvent motionEvent) {
        if (view.hasFocus()) {
            return false;
        }
        view.requestFocus();
        return false;
    }

    private void b(com.applovin.impl.sdk.ad.e eVar) {
        Boolean sw;
        loadUrl("about:blank");
        int Ho = this.agq.Ho();
        if (Ho >= 0) {
            setLayerType(Ho, null);
        }
        if (com.applovin.impl.sdk.utils.h.KT()) {
            getSettings().setMediaPlaybackRequiresUserGesture(eVar.Hk());
        }
        if (com.applovin.impl.sdk.utils.h.KU() && eVar.Hm()) {
            WebView.setWebContentsDebuggingEnabled(true);
        }
        y Hn = eVar.Hn();
        if (Hn != null) {
            WebSettings settings = getSettings();
            WebSettings.PluginState sj = Hn.sj();
            if (sj != null) {
                settings.setPluginState(sj);
            }
            Boolean sk = Hn.sk();
            if (sk != null) {
                settings.setAllowFileAccess(sk.booleanValue());
            }
            Boolean sl = Hn.sl();
            if (sl != null) {
                settings.setLoadWithOverviewMode(sl.booleanValue());
            }
            Boolean sm = Hn.sm();
            if (sm != null) {
                settings.setUseWideViewPort(sm.booleanValue());
            }
            Boolean sn = Hn.sn();
            if (sn != null) {
                settings.setAllowContentAccess(sn.booleanValue());
            }
            Boolean so = Hn.so();
            if (so != null) {
                settings.setBuiltInZoomControls(so.booleanValue());
            }
            Boolean sp = Hn.sp();
            if (sp != null) {
                settings.setDisplayZoomControls(sp.booleanValue());
            }
            Boolean sq = Hn.sq();
            if (sq != null) {
                settings.setSaveFormData(sq.booleanValue());
            }
            Boolean sr = Hn.sr();
            if (sr != null) {
                settings.setGeolocationEnabled(sr.booleanValue());
            }
            Boolean ss = Hn.ss();
            if (ss != null) {
                settings.setNeedInitialFocus(ss.booleanValue());
            }
            Boolean st = Hn.st();
            if (st != null) {
                settings.setAllowFileAccessFromFileURLs(st.booleanValue());
            }
            Boolean su = Hn.su();
            if (su != null) {
                settings.setAllowUniversalAccessFromFileURLs(su.booleanValue());
            }
            Boolean sx = Hn.sx();
            if (sx != null) {
                settings.setLoadsImagesAutomatically(sx.booleanValue());
            }
            Boolean sy = Hn.sy();
            if (sy != null) {
                settings.setBlockNetworkImage(sy.booleanValue());
            }
            if (com.applovin.impl.sdk.utils.h.KV()) {
                Integer si = Hn.si();
                if (si != null) {
                    settings.setMixedContentMode(si.intValue());
                }
                if (com.applovin.impl.sdk.utils.h.KW()) {
                    Boolean sv = Hn.sv();
                    if (sv != null) {
                        settings.setOffscreenPreRaster(sv.booleanValue());
                    }
                    if (com.applovin.impl.sdk.utils.h.Ld() && (sw = Hn.sw()) != null) {
                        settings.setAlgorithmicDarkeningAllowed(sw.booleanValue());
                    }
                }
            }
        }
    }

    private void br(String str) {
        try {
            if (com.applovin.impl.sdk.x.Fk()) {
                this.logger.f("AdWebView", "Forwarding \"" + str + "\" to ad template");
            }
            loadUrl(str);
        } catch (Throwable th) {
            if (com.applovin.impl.sdk.x.Fk()) {
                this.logger.c("AdWebView", "Unable to forward to template", th);
            }
            this.sdk.Cq().d("AdWebView", str, th);
        }
    }

    public boolean h(View view) {
        if (com.applovin.impl.sdk.x.Fk()) {
            this.logger.f("AdWebView", "Received a LongClick event.");
            return true;
        }
        return true;
    }

    private String n(String str, String str2) {
        if (StringUtils.isValidString(str)) {
            return str.replace("{SOURCE}", str2);
        }
        return null;
    }

    private void rm() {
        synchronized (this.agM) {
            Iterator<String> it = this.agL.iterator();
            while (it.hasNext()) {
                br(it.next());
            }
            this.agL.clear();
        }
    }

    public static void rn() {
        if (agI != null) {
            return;
        }
        WebView b = com.applovin.impl.sdk.utils.u.b(com.applovin.impl.sdk.n.getApplicationContext(), "postbacks");
        agI = b;
        if (b == null) {
            return;
        }
        b.getSettings().setJavaScriptEnabled(true);
        agI.loadData("<html><head>\n<script type=\"text/javascript\">\n    window.al_firePostback = function(postback) {\n    setTimeout(function() {\n        var img = new Image();\n        img.src = postback;\n    }, 100);\n};\n</script></head>\n<body></body></html>", "text/html", "UTF-8");
        agI.setWebViewClient(new AnonymousClass1());
    }

    public static void rp() {
        rn();
    }

    public void bq(String str) {
        if (((Boolean) this.sdk.a(com.applovin.impl.sdk.c.b.aQN)).booleanValue()) {
            if (this.agK) {
                br(str);
                return;
            }
            synchronized (this.agL) {
                this.agL.add(str);
            }
            return;
        }
        br(str);
    }

    @Override
    public void computeScroll() {
    }

    @Override
    public void destroy() {
        this.agJ = true;
        this.agK = false;
        super.destroy();
    }

    public com.applovin.impl.sdk.ad.e getCurrentAd() {
        return this.agq;
    }

    public com.applovin.impl.sdk.d.d getStatsManagerHelper() {
        return this.agj;
    }

    @Override
    public void onScrollChanged(int i, int i2, int i3, int i4) {
    }

    @Override
    public void scrollTo(int i, int i2) {
    }

    public void setAdHtmlLoaded(boolean z) {
        this.agK = z;
        if (z && ((Boolean) this.sdk.a(com.applovin.impl.sdk.c.b.aQN)).booleanValue()) {
            rm();
        }
    }

    public void setStatsManagerHelper(com.applovin.impl.sdk.d.d dVar) {
        this.agj = dVar;
    }

    public void a(com.applovin.impl.sdk.ad.e eVar) {
        if (!this.agJ) {
            this.agq = eVar;
            try {
                b(eVar);
                if (com.applovin.impl.sdk.utils.u.b(eVar.getSize())) {
                    setVisibility(0);
                }
                if (eVar instanceof com.applovin.impl.sdk.ad.a) {
                    com.applovin.impl.sdk.ad.a aVar = (com.applovin.impl.sdk.ad.a) eVar;
                    String Fz = aVar.Fz();
                    if (!aVar.shouldInjectOpenMeasurementScriptDuringCaching() && aVar.isOpenMeasurementEnabled()) {
                        Fz = this.sdk.Cn().dp(Fz);
                    }
                    if (com.applovin.impl.sdk.utils.u.aj(com.applovin.impl.sdk.n.getApplicationContext())) {
                        Fz = com.applovin.impl.sdk.utils.u.dL(Fz);
                    }
                    loadDataWithBaseURL(eVar.Hl(), Fz, "text/html", null, MaxReward.DEFAULT_LABEL);
                    if (com.applovin.impl.sdk.x.Fk()) {
                        this.logger.f("AdWebView", "AppLovinAd rendered");
                        return;
                    }
                    return;
                }
                if (eVar instanceof com.applovin.impl.b.a) {
                    com.applovin.impl.b.a aVar2 = (com.applovin.impl.b.a) eVar;
                    com.applovin.impl.b.d LV = aVar2.LV();
                    if (LV != null) {
                        com.applovin.impl.b.i Mm = LV.Mm();
                        Uri Mz = Mm.Mz();
                        String uri = Mz != null ? Mz.toString() : MaxReward.DEFAULT_LABEL;
                        String MA = Mm.MA();
                        String LZ = aVar2.LZ();
                        if (!StringUtils.isValidString(uri) && !StringUtils.isValidString(MA)) {
                            if (com.applovin.impl.sdk.x.Fk()) {
                                this.logger.i("AdWebView", "Unable to load companion ad. No resources provided.");
                                return;
                            }
                            return;
                        }
                        if (Mm.My() == i.a.STATIC) {
                            if (com.applovin.impl.sdk.x.Fk()) {
                                this.logger.f("AdWebView", "Rendering WebView for static VAST ad");
                            }
                            String n = n((String) this.sdk.a(com.applovin.impl.sdk.c.b.aPk), uri);
                            if (aVar2.LK() && aVar2.isOpenMeasurementEnabled() && aVar2.LL()) {
                                n = this.sdk.Cn().dp(n);
                            }
                            loadDataWithBaseURL(eVar.Hl(), n, "text/html", null, MaxReward.DEFAULT_LABEL);
                            return;
                        }
                        if (Mm.My() == i.a.HTML) {
                            if (StringUtils.isValidString(MA)) {
                                String n2 = n(LZ, MA);
                                if (StringUtils.isValidString(n2)) {
                                    MA = n2;
                                }
                                if (aVar2.LK() && aVar2.isOpenMeasurementEnabled() && !aVar2.shouldInjectOpenMeasurementScriptDuringCaching()) {
                                    MA = this.sdk.Cn().dp(MA);
                                }
                                if (com.applovin.impl.sdk.x.Fk()) {
                                    this.logger.f("AdWebView", "Rendering WebView for HTML VAST ad with resourceContents: " + MA);
                                }
                                loadDataWithBaseURL(eVar.Hl(), MA, "text/html", null, MaxReward.DEFAULT_LABEL);
                                return;
                            }
                            if (StringUtils.isValidString(uri)) {
                                if (com.applovin.impl.sdk.x.Fk()) {
                                    this.logger.f("AdWebView", "Preparing to load HTML VAST ad resourceUri");
                                }
                                a(uri, eVar.Hl(), LZ, this.sdk, aVar2);
                                return;
                            }
                            return;
                        }
                        if (Mm.My() == i.a.IFRAME) {
                            if (StringUtils.isValidString(uri)) {
                                if (com.applovin.impl.sdk.x.Fk()) {
                                    this.logger.f("AdWebView", "Preparing to load iFrame VAST ad resourceUri");
                                }
                                a(uri, eVar.Hl(), LZ, this.sdk, aVar2);
                                return;
                            }
                            if (StringUtils.isValidString(MA)) {
                                String n3 = n(LZ, MA);
                                if (StringUtils.isValidString(n3)) {
                                    MA = n3;
                                }
                                if (aVar2.LK() && aVar2.isOpenMeasurementEnabled() && !aVar2.shouldInjectOpenMeasurementScriptDuringCaching()) {
                                    MA = this.sdk.Cn().dp(MA);
                                }
                                if (com.applovin.impl.sdk.x.Fk()) {
                                    this.logger.f("AdWebView", "Rendering WebView for iFrame VAST ad with resourceContents: " + MA);
                                }
                                loadDataWithBaseURL(eVar.Hl(), MA, "text/html", null, MaxReward.DEFAULT_LABEL);
                                return;
                            }
                            return;
                        }
                        if (com.applovin.impl.sdk.x.Fk()) {
                            this.logger.i("AdWebView", "Failed to render VAST companion ad of invalid type");
                            return;
                        }
                        return;
                    }
                    if (com.applovin.impl.sdk.x.Fk()) {
                        this.logger.f("AdWebView", "No companion ad provided.");
                        return;
                    }
                    return;
                }
                return;
            } catch (Throwable th) {
                throw new RuntimeException("Unable to render AppLovin ad (" + (eVar != null ? String.valueOf(eVar.getAdIdNumber()) : "null") + ") - " + th);
            }
        }
        com.applovin.impl.sdk.x.H("AdWebView", "Ad can not be loaded in a destroyed webview");
    }

    private void a(String str, String str2, String str3, com.applovin.impl.sdk.n nVar, com.applovin.impl.b.a aVar) {
        String n = n(str3, str);
        if (StringUtils.isValidString(n)) {
            if (aVar.LK() && aVar.isOpenMeasurementEnabled() && !aVar.shouldInjectOpenMeasurementScriptDuringCaching()) {
                n = nVar.Cn().dp(n);
            }
            String str4 = n;
            if (com.applovin.impl.sdk.x.Fk()) {
                com.applovin.exoplayer2.ui.LlsAwtCXtFvPG3dW4.wn2E4HDRIz8o8("Rendering webview for VAST ad with resourceContents : ", str4, this.logger, "AdWebView");
            }
            loadDataWithBaseURL(str2, str4, "text/html", null, MaxReward.DEFAULT_LABEL);
            return;
        }
        String n2 = n((String) nVar.a(com.applovin.impl.sdk.c.b.aPl), str);
        if (StringUtils.isValidString(n2)) {
            if (aVar.LK() && aVar.isOpenMeasurementEnabled()) {
                n2 = nVar.Cn().dp(n2);
            }
            String str5 = n2;
            if (com.applovin.impl.sdk.x.Fk()) {
                com.applovin.exoplayer2.ui.LlsAwtCXtFvPG3dW4.wn2E4HDRIz8o8("Rendering webview for VAST ad with resourceContents : ", str5, this.logger, "AdWebView");
            }
            loadDataWithBaseURL(str2, str5, "text/html", null, MaxReward.DEFAULT_LABEL);
            return;
        }
        if (com.applovin.impl.sdk.x.Fk()) {
            com.applovin.exoplayer2.ui.LlsAwtCXtFvPG3dW4.wn2E4HDRIz8o8("Rendering webview for VAST ad with resourceURL : ", str, this.logger, "AdWebView");
        }
        loadUrl(str);
    }

    public static void a(com.applovin.impl.sdk.network.i iVar, com.applovin.impl.sdk.n nVar, AppLovinPostbackListener appLovinPostbackListener) {
        AppLovinSdkUtils.runOnUiThread(new PL5oabeYVEZVxrhN8(5, iVar, appLovinPostbackListener, nVar));
    }

    public static void a(com.applovin.impl.sdk.network.i iVar, AppLovinPostbackListener appLovinPostbackListener, com.applovin.impl.sdk.n nVar) {
        String zJ = iVar.zJ();
        rn();
        if (agI == null) {
            appLovinPostbackListener.onPostbackFailure(zJ, -1);
            return;
        }
        if (iVar.HP() != null) {
            zJ = StringUtils.appendQueryParameters(zJ, iVar.HP(), ((Boolean) nVar.a(com.applovin.impl.sdk.c.b.aNW)).booleanValue());
        }
        String aG7kT0ezy = com.applovin.exoplayer2.ui.LlsAwtCXtFvPG3dW4.aG7kT0ezy("al_firePostback('", zJ, "');");
        if (com.applovin.impl.sdk.utils.h.KU()) {
            agI.evaluateJavascript(aG7kT0ezy, null);
        } else {
            agI.loadUrl("javascript:" + aG7kT0ezy);
        }
        appLovinPostbackListener.onPostbackSuccess(zJ);
    }
}