Anti Spy v30.16.1.24版本的 MD5 值为:c71fa7f3f1aa08291411b9a5a8b2e65d

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


package i1;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Parcelable;
import android.text.TextUtils;
import android.webkit.ValueCallback;
import android.webkit.WebView;
import c5.g6;
import c5.g7;
import c5.p5;
import c5.w3;
import com.google.android.gms.internal.ads.eb;
import com.google.android.gms.internal.ads.ib;
import com.google.android.gms.internal.ads.ok1;
import com.google.android.gms.internal.measurement.e9;
import com.google.android.gms.internal.measurement.ua;
import com.google.android.gms.internal.measurement.xa;
import com.google.android.gms.measurement.internal.AppMeasurementDynamiteService;
import com.google.firebase.iid.FirebaseInstanceIdReceiver;
import org.json.JSONException;
import org.json.JSONObject;
public final class e implements Runnable {
    public final int f15310a = 2;
    public final boolean f15311b;
    public final Object f15312c;
    public final Object f15313d;
    public final Object f15314n;
    public final Object f15315o;

    public e(ib ibVar, final eb ebVar, final WebView webView, final boolean z10) {
        this.f15315o = ibVar;
        this.f15313d = ebVar;
        this.f15314n = webView;
        this.f15311b = z10;
        this.f15312c = new ValueCallback() {
            @Override
            public final void onReceiveValue(Object obj) {
                ib ibVar2 = (ib) i1.e.this.f15315o;
                eb ebVar2 = ebVar;
                WebView webView2 = webView;
                String str = (String) obj;
                boolean z11 = z10;
                ibVar2.getClass();
                synchronized (ebVar2.f5069g) {
                    ebVar2.f5075m--;
                }
                try {
                    if (!TextUtils.isEmpty(str)) {
                        String optString = new JSONObject(str).optString("text");
                        if (ibVar2.C || TextUtils.isEmpty(webView2.getTitle())) {
                            ebVar2.b(optString, z11, webView2.getX(), webView2.getY(), webView2.getWidth(), webView2.getHeight());
                        } else {
                            ebVar2.b(webView2.getTitle() + "\n" + optString, z11, webView2.getX(), webView2.getY(), webView2.getWidth(), webView2.getHeight());
                        }
                    }
                    if (ebVar2.e()) {
                        ibVar2.f6254d.i(ebVar2);
                    }
                } catch (JSONException unused) {
                    ws.b("Json string may be malformed.");
                } catch (Throwable th) {
                    dk0 dk0Var = ws.f11024a;
                    r3.l.A.f18391g.h("ContentFetchTask.processWebViewContent", th);
                }
            }
        };
    }

    public e(com.google.android.gms.internal.measurement.d1 d1Var, boolean z10, Uri uri, String str, String str2) {
        this.f15315o = d1Var;
        this.f15311b = z10;
        this.f15312c = uri;
        this.f15313d = str;
        this.f15314n = str2;
    }

    public e(AppMeasurementDynamiteService appMeasurementDynamiteService, com.google.android.gms.internal.measurement.t0 t0Var, String str, String str2, boolean z10) {
        this.f15315o = appMeasurementDynamiteService;
        this.f15312c = t0Var;
        this.f15313d = str;
        this.f15314n = str2;
        this.f15311b = z10;
    }

    public e(FirebaseInstanceIdReceiver firebaseInstanceIdReceiver, Intent intent, Context context, boolean z10, BroadcastReceiver.PendingResult pendingResult) {
        this.f15312c = firebaseInstanceIdReceiver;
        this.f15313d = intent;
        this.f15314n = context;
        this.f15311b = z10;
        this.f15315o = pendingResult;
    }

    public e(h hVar, e1 e1Var, e1 e1Var2, boolean z10, t.b bVar) {
        this.f15315o = hVar;
        this.f15312c = e1Var;
        this.f15313d = e1Var2;
        this.f15311b = z10;
        this.f15314n = bVar;
    }

    @Override
    public final void run() {
        p5 p5Var;
        Bundle x10;
        String str;
        int i10 = this.f15310a;
        boolean z10 = this.f15311b;
        Object obj = this.f15315o;
        Object obj2 = this.f15313d;
        Object obj3 = this.f15314n;
        Object obj4 = this.f15312c;
        switch (i10) {
            case 0:
                t0.a(((e1) obj4).f15319c, ((e1) obj2).f15319c, z10);
                return;
            case 1:
                Intent intent = (Intent) obj2;
                Context context = (Context) obj3;
                BroadcastReceiver.PendingResult pendingResult = (BroadcastReceiver.PendingResult) obj;
                ((FirebaseInstanceIdReceiver) obj4).getClass();
                try {
                    Parcelable parcelableExtra = intent.getParcelableExtra("wrapped_intent");
                    Intent intent2 = parcelableExtra instanceof Intent ? (Intent) parcelableExtra : null;
                    int c6 = intent2 != null ? FirebaseInstanceIdReceiver.c(intent2) : FirebaseInstanceIdReceiver.b(context, intent);
                    if (z10) {
                        pendingResult.setResultCode(c6);
                    }
                    pendingResult.finish();
                    return;
                } catch (Throwable th) {
                    pendingResult.finish();
                    throw th;
                }
            case 2:
                if (((WebView) obj3).getSettings().getJavaScriptEnabled()) {
                    try {
                        ((WebView) obj3).evaluateJavascript("(function() { return  {text:document.body.innerText}})();", (ValueCallback) obj4);
                        return;
                    } catch (Throwable unused) {
                        ((ValueCallback) obj4).onReceiveValue("");
                        return;
                    }
                }
                return;
            case 3:
                g6 q10 = ((AppMeasurementDynamiteService) obj).f12714a.q();
                boolean z11 = this.f15311b;
                q10.n();
                q10.v();
                q10.A(new ok1(q10, (String) obj2, (String) obj3, q10.K(false), z11, (com.google.android.gms.internal.measurement.t0) obj4));
                return;
            default:
                Uri uri = (Uri) obj4;
                String str2 = (String) obj2;
                String str3 = (String) obj3;
                Object obj5 = ((com.google.android.gms.internal.measurement.d1) obj).f12097b;
                p5 p5Var2 = (p5) obj5;
                p5Var2.n();
                try {
                    g7 m10 = ((p5) obj5).m();
                    ((xa) ua.f12458b.get()).getClass();
                    c5.f j10 = ((p5) obj5).j();
                    w3 w3Var = c5.w.f2486x0;
                    boolean y10 = j10.y(null, w3Var);
                    e9.a();
                    c5.f j11 = ((p5) obj5).j();
                    w3 w3Var2 = c5.w.Q0;
                    boolean y11 = j11.y(null, w3Var2);
                    p5Var = p5Var2;
                    if (!TextUtils.isEmpty(str3)) {
                        try {
                            if (!str3.contains("gclid")) {
                                if (y11) {
                                    if (!str3.contains("gbraid")) {
                                    }
                                }
                                if (!str3.contains("utm_campaign") && !str3.contains("utm_source") && !str3.contains("utm_medium") && !str3.contains("utm_id") && !str3.contains("dclid") && !str3.contains("srsltid") && (!y10 || !str3.contains("sfmc_id"))) {
                                    m10.i().f1959m.d("Activity created with data 'referrer' without required params");
                                }
                            }
                            x10 = m10.x(Uri.parse("https://google.com/search?".concat(str3)), y10, y11);
                            if (x10 != null) {
                                x10.putString("_cis", "referrer");
                            }
                            if (z10) {
                                g7 m11 = ((p5) obj5).m();
                                ((xa) ua.f12458b.get()).getClass();
                                boolean y12 = ((p5) obj5).j().y(null, w3Var);
                                e9.a();
                                Bundle x11 = m11.x(uri, y12, ((p5) obj5).j().y(null, w3Var2));
                                if (x11 != null) {
                                    x11.putString("_cis", "intent");
                                    if (!x11.containsKey("gclid") && x10 != null && x10.containsKey("gclid")) {
                                        x11.putString("_cer", String.format("gclid=%s", x10.getString("gclid")));
                                    }
                                    str = str2;
                                    ((p5) obj5).V(str, "_cmp", x11);
                                    ((p5) obj5).f2297n.v(x11, str);
                                    if (TextUtils.isEmpty(str3)) {
                                        return;
                                    }
                                    ((p5) obj5).i().f1959m.a(str3, "Activity created with referrer");
                                    if (((p5) obj5).j().y(null, c5.w.f2456i0)) {
                                        if (x10 != null) {
                                            ((p5) obj5).V(str, "_cmp", x10);
                                            ((p5) obj5).f2297n.v(x10, str);
                                        } else {
                                            ((p5) obj5).i().f1959m.a(str3, "Referrer does not contain valid parameters");
                                        }
                                        ((p5) obj5).O("auto", "_ldl", null, true);
                                        return;
                                    } else if (!str3.contains("gclid") || (!str3.contains("utm_campaign") && !str3.contains("utm_source") && !str3.contains("utm_medium") && !str3.contains("utm_term") && !str3.contains("utm_content"))) {
                                        ((p5) obj5).i().f1959m.d("Activity created with data 'referrer' without required params");
                                        return;
                                    } else if (TextUtils.isEmpty(str3)) {
                                        return;
                                    } else {
                                        ((p5) obj5).O("auto", "_ldl", str3, true);
                                        return;
                                    }
                                }
                            }
                            str = str2;
                            if (TextUtils.isEmpty(str3)) {
                            }
                        } catch (RuntimeException e10) {
                            e = e10;
                            p5Var.i().f1952f.a(e, "Throwable caught in handleReferrerForOnActivityCreated");
                            return;
                        }
                    }
                    x10 = null;
                    if (z10) {
                    }
                    str = str2;
                    if (TextUtils.isEmpty(str3)) {
                    }
                } catch (RuntimeException e11) {
                    e = e11;
                    p5Var = p5Var2;
                }
                break;
        }
    }
}