Shinigami ID v1.1.3版本的 MD5 值为:c381e85feac697f048c400ae89b7b92d

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


package i4;

import android.app.Activity;
import android.app.Application;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.SystemClock;
import android.text.TextUtils;
import c4.x9;
import com.unity3d.ads.metadata.MediationMetaData;
import java.util.Objects;

public final class b5 implements Application.ActivityLifecycleCallbacks {

    public final c5 f6818o;

    public b5(c5 c5Var) {
        this.f6818o = c5Var;
    }

    @Override
    public final void onActivityCreated(Activity activity, Bundle bundle) {
        g4 g4Var;
        Uri uri;
        String stringExtra;
        String str;
        try {
            try {
                this.f6818o.f6903o.a().B.b("onActivityCreated");
                Intent intent = activity.getIntent();
                if (intent == null) {
                    g4Var = this.f6818o.f6903o;
                } else {
                    x9.f3294p.zza().zza();
                    Uri uri2 = null;
                    if (this.f6818o.f6903o.f6924u.v(null, s2.f7220w0)) {
                        Uri data = intent.getData();
                        if (data != null && data.isHierarchical()) {
                            uri = data;
                            if (uri != null && uri.isHierarchical()) {
                                this.f6818o.f6903o.B();
                                stringExtra = intent.getStringExtra("android.intent.extra.REFERRER_NAME");
                                if (!"android-app://com.google.android.googlequicksearchbox/https/www.google.com".equals(stringExtra) && !"https://www.google.com".equals(stringExtra) && !"android-app://com.google.appcrawler".equals(stringExtra)) {
                                    str = "auto";
                                    this.f6818o.f6903o.d().s(new h3.i(this, bundle != null, uri, str, uri.getQueryParameter("referrer")));
                                    g4Var = this.f6818o.f6903o;
                                }
                                str = "gs";
                                this.f6818o.f6903o.d().s(new h3.i(this, bundle != null, uri, str, uri.getQueryParameter("referrer")));
                                g4Var = this.f6818o.f6903o;
                            }
                            g4Var = this.f6818o.f6903o;
                        }
                        Bundle extras = intent.getExtras();
                        if (extras != null) {
                            String string = extras.getString("com.android.vending.referral_url");
                            if (!TextUtils.isEmpty(string)) {
                                uri2 = Uri.parse(string);
                            }
                        }
                    } else {
                        uri2 = intent.getData();
                    }
                    uri = uri2;
                    if (uri != null) {
                        this.f6818o.f6903o.B();
                        stringExtra = intent.getStringExtra("android.intent.extra.REFERRER_NAME");
                        if (!"android-app://com.google.android.googlequicksearchbox/https/www.google.com".equals(stringExtra)) {
                            str = "auto";
                            this.f6818o.f6903o.d().s(new h3.i(this, bundle != null, uri, str, uri.getQueryParameter("referrer")));
                            g4Var = this.f6818o.f6903o;
                        }
                        str = "gs";
                        this.f6818o.f6903o.d().s(new h3.i(this, bundle != null, uri, str, uri.getQueryParameter("referrer")));
                        g4Var = this.f6818o.f6903o;
                    }
                    g4Var = this.f6818o.f6903o;
                }
            } catch (RuntimeException e10) {
                this.f6818o.f6903o.a().f6874t.c("Throwable caught in onActivityCreated", e10);
                g4Var = this.f6818o.f6903o;
            }
            g4Var.y().q(activity, bundle);
        } catch (Throwable th) {
            this.f6818o.f6903o.y().q(activity, bundle);
            throw th;
        }
    }

    @Override
    public final void onActivityDestroyed(Activity activity) {
        k5 y10 = this.f6818o.f6903o.y();
        synchronized (y10.f7007z) {
            if (activity == y10.f7004u) {
                y10.f7004u = null;
            }
        }
        if (y10.f6903o.f6924u.x()) {
            y10.f7003t.remove(activity);
        }
    }

    @Override
    public final void onActivityPaused(Activity activity) {
        int i10;
        k5 y10 = this.f6818o.f6903o.y();
        synchronized (y10.f7007z) {
            y10.f7006y = false;
            i10 = 1;
            y10.v = true;
        }
        Objects.requireNonNull(y10.f6903o.B);
        long elapsedRealtime = SystemClock.elapsedRealtime();
        if (y10.f6903o.f6924u.x()) {
            h5 r10 = y10.r(activity);
            y10.f7001r = y10.f7000q;
            y10.f7000q = null;
            y10.f6903o.d().s(new r4(y10, r10, elapsedRealtime));
        } else {
            y10.f7000q = null;
            y10.f6903o.d().s(new l0(y10, elapsedRealtime, i10));
        }
        e6 A = this.f6818o.f6903o.A();
        Objects.requireNonNull(A.f6903o.B);
        A.f6903o.d().s(new z5(A, SystemClock.elapsedRealtime(), i10));
    }

    @Override
    public final void onActivityResumed(Activity activity) {
        e6 A = this.f6818o.f6903o.A();
        Objects.requireNonNull(A.f6903o.B);
        int i10 = 0;
        A.f6903o.d().s(new z5(A, SystemClock.elapsedRealtime(), i10));
        k5 y10 = this.f6818o.f6903o.y();
        synchronized (y10.f7007z) {
            y10.f7006y = true;
            if (activity != y10.f7004u) {
                synchronized (y10.f7007z) {
                    y10.f7004u = activity;
                    y10.v = false;
                }
                if (y10.f6903o.f6924u.x()) {
                    y10.f7005w = null;
                    y10.f6903o.d().s(new j5(y10, 1));
                }
            }
        }
        if (!y10.f6903o.f6924u.x()) {
            y10.f7000q = y10.f7005w;
            y10.f6903o.d().s(new j5(y10, 0));
            return;
        }
        y10.s(activity, y10.r(activity), false);
        m1 o4 = y10.f6903o.o();
        Objects.requireNonNull(o4.f6903o.B);
        o4.f6903o.d().s(new l0(o4, SystemClock.elapsedRealtime(), i10));
    }

    @Override
    public final void onActivitySaveInstanceState(Activity activity, Bundle bundle) {
        h5 h5Var;
        k5 y10 = this.f6818o.f6903o.y();
        if (!y10.f6903o.f6924u.x() || bundle == null || (h5Var = (h5) y10.f7003t.get(activity)) == null) {
            return;
        }
        Bundle bundle2 = new Bundle();
        bundle2.putLong("id", h5Var.c);
        bundle2.putString(MediationMetaData.KEY_NAME, h5Var.f6945a);
        bundle2.putString("referrer_name", h5Var.f6946b);
        bundle.putBundle("com.google.app_measurement.screen_service", bundle2);
    }

    @Override
    public final void onActivityStarted(Activity activity) {
    }

    @Override
    public final void onActivityStopped(Activity activity) {
    }
}