导航菜单

页面标题

页面副标题

Tarjeta Transporte v3.0.29 - wd2.java 源代码

正在查看: Tarjeta Transporte v3.0.29 应用的 wd2.java JAVA 源代码文件

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


package com.sgcr;

import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.os.BadParcelableException;
import android.os.Bundle;
import android.os.NetworkOnMainThreadException;
import android.os.RemoteException;
import android.util.Log;
import android.util.Pair;
import com.google.android.gms.dynamite.DynamiteModule;
import com.google.android.gms.dynamite.descriptors.com.google.android.gms.measurement.dynamite.ModuleDescriptor;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.concurrent.ExecutorService;

public class wd2 {

    public static volatile wd2 f15789catch;

    public volatile uc2 f15790break;

    public final List f15791case;

    public int f15792else;

    public final yf f15793for;

    public boolean f15794goto;

    public final String f15795if;

    public final ExecutorService f15796new;

    public String f15797this;

    public final d4 f15798try;

    public static class Cfor extends md2 {

        public final iq2 f15799try;

        public Cfor(iq2 iq2Var) {
            this.f15799try = iq2Var;
        }

        @Override
        public final int mo8759if() {
            return System.identityHashCode(this.f15799try);
        }

        @Override
        public final void mo8760native(String str, String str2, Bundle bundle, long j) {
            this.f15799try.mo3566if(str, str2, bundle, j);
        }
    }

    public abstract class Cif implements Runnable {

        public final long f15800for;

        public final long f15801if;

        public final boolean f15802new;

        public Cif(wd2 wd2Var) {
            this(true);
        }

        public void mo7196for() {
        }

        public abstract void mo6023if();

        @Override
        public void run() {
            if (wd2.this.f15794goto) {
                mo7196for();
                return;
            }
            try {
                mo6023if();
            } catch (Exception e) {
                wd2.this.m17677native(e, false, this.f15802new);
                mo7196for();
            }
        }

        public Cif(boolean z) {
            this.f15801if = wd2.this.f15793for.mo17327if();
            this.f15800for = wd2.this.f15793for.mo17328new();
            this.f15802new = z;
        }
    }

    public class Cnew implements Application.ActivityLifecycleCallbacks {
        public Cnew() {
        }

        @Override
        public final void onActivityCreated(Activity activity, Bundle bundle) {
            wd2.this.m17670final(new jg2(this, bundle, activity));
        }

        @Override
        public final void onActivityDestroyed(Activity activity) {
            wd2.this.m17670final(new dh2(this, activity));
        }

        @Override
        public final void onActivityPaused(Activity activity) {
            wd2.this.m17670final(new bh2(this, activity));
        }

        @Override
        public final void onActivityResumed(Activity activity) {
            wd2.this.m17670final(new lg2(this, activity));
        }

        @Override
        public final void onActivitySaveInstanceState(Activity activity, Bundle bundle) {
            wc2 wc2Var = new wc2();
            wd2.this.m17670final(new fh2(this, activity, wc2Var));
            Bundle m17635this = wc2Var.m17635this(50L);
            if (m17635this != null) {
                bundle.putAll(m17635this);
            }
        }

        @Override
        public final void onActivityStarted(Activity activity) {
            wd2.this.m17670final(new xg2(this, activity));
        }

        @Override
        public final void onActivityStopped(Activity activity) {
            wd2.this.m17670final(new zg2(this, activity));
        }
    }

    public wd2(Context context, String str, String str2, String str3, Bundle bundle) {
        this.f15795if = (str == null || !m17668continue(str2, str3)) ? "FA" : str;
        this.f15793for = vp.m17325try();
        this.f15796new = tb2.m15935if().mo13047if(new ze2(this), 1);
        this.f15798try = new d4(this);
        this.f15791case = new ArrayList();
        if (!(!m17658package(context) || m17687transient())) {
            this.f15797this = null;
            this.f15794goto = true;
            Log.w(this.f15795if, "Disabling data collection. Found google_app_id in strings.xml but Google Analytics for Firebase is missing. Remove this value or add Google Analytics for Firebase to resume data collection.");
            return;
        }
        if (m17668continue(str2, str3)) {
            this.f15797this = str2;
        } else {
            this.f15797this = "fa";
            if (str2 == null || str3 == null) {
                if ((str2 == null) ^ (str3 == null)) {
                    Log.w(this.f15795if, "Specified origin or custom app id is null. Both parameters will be ignored.");
                }
            } else {
                Log.v(this.f15795if, "Deferring to Google Analytics for Firebase for event data collection. https://firebase.google.com/docs/analytics");
            }
        }
        m17670final(new vd2(this, str2, str3, context, bundle));
        Application application = (Application) context.getApplicationContext();
        if (application == null) {
            Log.w(this.f15795if, "Unable to register lifecycle notifications. Application null.");
        } else {
            application.registerActivityLifecycleCallbacks(new Cnew());
        }
    }

    public static wd2 m17655case(Context context) {
        return m17657else(context, null, null, null, null);
    }

    public static wd2 m17657else(Context context, String str, String str2, String str3, Bundle bundle) {
        wx0.m18045class(context);
        if (f15789catch == null) {
            synchronized (wd2.class) {
                if (f15789catch == null) {
                    f15789catch = new wd2(context, str, str2, str3, bundle);
                }
            }
        }
        return f15789catch;
    }

    public static boolean m17658package(Context context) {
        return new vm2(context, vm2.m17293if(context)).m17294for("google_app_id") != null;
    }

    public final void m17664break(int i, String str, Object obj, Object obj2, Object obj3) {
        m17670final(new sf2(this, false, 5, str, obj, null, null));
    }

    public final void m17665catch(Activity activity, String str, String str2) {
        m17670final(new he2(this, activity, str, str2));
    }

    public final void m17666class(Intent intent) {
        m17670final(new bg2(this, intent));
    }

    public final void m17667const(Bundle bundle) {
        m17670final(new zd2(this, bundle));
    }

    public final boolean m17668continue(String str, String str2) {
        return (str2 == null || str == null || m17687transient()) ? false : true;
    }

    public final void m17669extends(String str) {
        m17670final(new df2(this, str));
    }

    public final void m17670final(Cif cif) {
        this.f15796new.execute(cif);
    }

    public final void m17671finally(String str, String str2, Bundle bundle) {
        m17682return(str, str2, bundle, true, true, null);
    }

    public final long m17672for() {
        wc2 wc2Var = new wc2();
        m17670final(new lf2(this, wc2Var));
        Long s = wc2Var.s(500L);
        if (s != null) {
            return s.longValue();
        }
        long nextLong = new Random(System.nanoTime() ^ this.f15793for.mo17327if()).nextLong();
        int i = this.f15792else + 1;
        this.f15792else = i;
        return nextLong + i;
    }

    public final List m17673goto(String str, String str2) {
        wc2 wc2Var = new wc2();
        m17670final(new de2(this, str, str2, wc2Var));
        List list = (List) wc2.m17634catch(wc2Var.m17635this(5000L), List.class);
        return list == null ? Collections.emptyList() : list;
    }

    public final int m17674if(String str) {
        wc2 wc2Var = new wc2();
        m17670final(new uf2(this, str, wc2Var));
        Integer num = (Integer) wc2.m17634catch(wc2Var.m17635this(10000L), Integer.class);
        if (num == null) {
            return 25;
        }
        return num.intValue();
    }

    public final void m17675import(iq2 iq2Var) {
        wx0.m18045class(iq2Var);
        synchronized (this.f15791case) {
            for (int i = 0; i < this.f15791case.size(); i++) {
                if (iq2Var.equals(((Pair) this.f15791case.get(i)).first)) {
                    Log.w(this.f15795if, "OnEventListener already registered.");
                    return;
                }
            }
            Cfor cfor = new Cfor(iq2Var);
            this.f15791case.add(new Pair(iq2Var, cfor));
            if (this.f15790break != null) {
                try {
                    this.f15790break.registerOnMeasurementEventListener(cfor);
                    return;
                } catch (BadParcelableException | NetworkOnMainThreadException | RemoteException | IllegalArgumentException | IllegalStateException | NullPointerException | SecurityException | UnsupportedOperationException unused) {
                    Log.w(this.f15795if, "Failed to register event listener on calling thread. Trying again on the dynamite thread.");
                }
            }
            m17670final(new fg2(this, cfor));
        }
    }

    public final String m17676interface() {
        wc2 wc2Var = new wc2();
        m17670final(new jf2(this, wc2Var));
        return wc2Var.t(500L);
    }

    public final void m17677native(Exception exc, boolean z, boolean z2) {
        this.f15794goto |= z;
        if (z) {
            Log.w(this.f15795if, "Data collection startup failed. No data will be collected.", exc);
            return;
        }
        if (z2) {
            m17664break(5, "Error with data collection. Data lost.", exc, null, null);
        }
        Log.w(this.f15795if, "Error with data collection. Data lost.", exc);
    }

    public final uc2 m17678new(Context context, boolean z) {
        try {
            return ad2.asInterface(DynamiteModule.m3537try(context, DynamiteModule.f3916case, ModuleDescriptor.MODULE_ID).m3538new("com.google.android.gms.measurement.internal.AppMeasurementDynamiteService"));
        } catch (DynamiteModule.Cif e) {
            m17677native(e, true, false);
            return null;
        }
    }

    public final void m17679private(String str) {
        m17670final(new bf2(this, str));
    }

    public final String m17680protected() {
        wc2 wc2Var = new wc2();
        m17670final(new hf2(this, wc2Var));
        return wc2Var.t(500L);
    }

    public final void m17681public(String str, String str2, Bundle bundle) {
        m17670final(new fe2(this, str, str2, bundle));
    }

    public final void m17682return(String str, String str2, Bundle bundle, boolean z, boolean z2, Long l) {
        m17670final(new hg2(this, l, str, str2, bundle, z, z2));
    }

    public final void m17683static(String str, String str2, Object obj, boolean z) {
        m17670final(new be2(this, str, str2, obj, z));
    }

    public final String m17684strictfp() {
        wc2 wc2Var = new wc2();
        m17670final(new ff2(this, wc2Var));
        return wc2Var.t(50L);
    }

    public final Map m17685this(String str, String str2, boolean z) {
        wc2 wc2Var = new wc2();
        m17670final(new nf2(this, str, str2, z, wc2Var));
        Bundle m17635this = wc2Var.m17635this(5000L);
        if (m17635this == null || m17635this.size() == 0) {
            return Collections.emptyMap();
        }
        HashMap hashMap = new HashMap(m17635this.size());
        for (String str3 : m17635this.keySet()) {
            Object obj = m17635this.get(str3);
            if ((obj instanceof Double) || (obj instanceof Long) || (obj instanceof String)) {
                hashMap.put(str3, obj);
            }
        }
        return hashMap;
    }

    public final d4 m17686throws() {
        return this.f15798try;
    }

    public final boolean m17687transient() {
        try {
            Class.forName("com.google.firebase.analytics.FirebaseAnalytics", false, getClass().getClassLoader());
            return true;
        } catch (ClassNotFoundException unused) {
            return false;
        }
    }

    public final String m17688volatile() {
        wc2 wc2Var = new wc2();
        m17670final(new pf2(this, wc2Var));
        return wc2Var.t(500L);
    }
}