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

应用版本信息
应用名称:Masth Guru
版本号:2.0.2
包名称:com.masth.masthGuru

MD5 校验值:4bc781c930851c75a6ce46bc3a7af00a

反编译源代码说明

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


package e.a.a.a.d.h;

import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
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;
import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public final class s2 {

    private static volatile s2 f895h;
    private final String a;
    protected final com.google.android.gms.common.util.d b;
    protected final ExecutorService c;

    private final com.google.android.gms.measurement.a.a f896d;

    private int f897e;

    private boolean f898f;

    private volatile f1 f899g;

    protected s2(Context context, String str, String str2, String str3, Bundle bundle) {
        this.a = (str == null || !k(str2, str3)) ? "FA" : str;
        this.b = com.google.android.gms.common.util.g.d();
        z0.a();
        ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(1, 1, 60L, TimeUnit.SECONDS, new LinkedBlockingQueue(), new e2(this));
        threadPoolExecutor.allowCoreThreadTimeOut(true);
        this.c = Executors.unconfigurableExecutorService(threadPoolExecutor);
        this.f896d = new com.google.android.gms.measurement.a.a(this);
        new ArrayList();
        try {
            if (com.google.android.gms.measurement.internal.r7.b(context, "google_app_id", com.google.android.gms.measurement.internal.x4.a(context)) != null && !g()) {
                this.f898f = true;
                Log.w(this.a, "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;
            }
        } catch (IllegalStateException unused) {
        }
        if (!k(str2, str3)) {
            if (str2 == null || str3 == null) {
                if ((str2 == null) ^ (str3 == null)) {
                    Log.w(this.a, "Specified origin or custom app id is null. Both parameters will be ignored.");
                }
            } else {
                Log.v(this.a, "Deferring to Google Analytics for Firebase for event data collection. https://goo.gl/J1sWQy");
            }
        }
        j(new t1(this, str2, str3, context, bundle));
        Application application = (Application) context.getApplicationContext();
        if (application == null) {
            Log.w(this.a, "Unable to register lifecycle notifications. Application null.");
        } else {
            application.registerActivityLifecycleCallbacks(new r2(this));
        }
    }

    protected static final boolean g() {
        try {
            Class.forName("com.google.firebase.analytics.FirebaseAnalytics");
            return true;
        } catch (ClassNotFoundException unused) {
            return false;
        }
    }

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

    private final void i(String str, String str2, Bundle bundle, boolean z, boolean z2, Long l) {
        j(new h2(this, l, str, str2, bundle, z, z2));
    }

    public final void j(i2 i2Var) {
        this.c.execute(i2Var);
    }

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

    public static s2 q(Context context, String str, String str2, String str3, Bundle bundle) {
        com.google.android.gms.common.internal.q.j(context);
        if (f895h == null) {
            synchronized (s2.class) {
                if (f895h == null) {
                    f895h = new s2(context, str, str2, str3, bundle);
                }
            }
        }
        return f895h;
    }

    public final void B(String str) {
        j(new u1(this, str));
    }

    public final void C(String str, String str2, Bundle bundle) {
        j(new q1(this, str, str2, bundle));
    }

    public final void D(String str) {
        j(new v1(this, str));
    }

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

    public final void a(int i, String str, Object obj, Object obj2, Object obj3) {
        j(new d2(this, false, 5, str, obj, null, null));
    }

    public final void b(Bundle bundle) {
        j(new p1(this, bundle));
    }

    public final void c(Activity activity, String str, String str2) {
        j(new s1(this, activity, str, str2));
    }

    public final void d(boolean z) {
        j(new g2(this, z));
    }

    public final int l(String str) {
        b1 b1Var = new b1();
        j(new f2(this, str, b1Var));
        Integer num = (Integer) b1.e0(b1Var.f(10000L), Integer.class);
        if (num == null) {
            return 25;
        }
        return num.intValue();
    }

    public final long m() {
        b1 b1Var = new b1();
        j(new z1(this, b1Var));
        Long l = (Long) b1.e0(b1Var.f(500L), Long.class);
        if (l != null) {
            return l.longValue();
        }
        long nextLong = new Random(System.nanoTime() ^ this.b.a()).nextLong();
        int i = this.f897e + 1;
        this.f897e = i;
        return nextLong + i;
    }

    public final com.google.android.gms.measurement.a.a n() {
        return this.f896d;
    }

    public final f1 p(Context context, boolean z) {
        try {
            return e1.asInterface(DynamiteModule.e(context, DynamiteModule.b, ModuleDescriptor.MODULE_ID).d("com.google.android.gms.measurement.internal.AppMeasurementDynamiteService"));
        } catch (DynamiteModule.a e2) {
            h(e2, true, false);
            return null;
        }
    }

    public final String s() {
        b1 b1Var = new b1();
        j(new y1(this, b1Var));
        return b1Var.j(50L);
    }

    public final String t() {
        b1 b1Var = new b1();
        j(new b2(this, b1Var));
        return b1Var.j(500L);
    }

    public final String u() {
        b1 b1Var = new b1();
        j(new a2(this, b1Var));
        return b1Var.j(500L);
    }

    public final String v() {
        b1 b1Var = new b1();
        j(new x1(this, b1Var));
        return b1Var.j(500L);
    }

    public final List w(String str, String str2) {
        b1 b1Var = new b1();
        j(new r1(this, str, str2, b1Var));
        List list = (List) b1.e0(b1Var.f(5000L), List.class);
        return list == null ? Collections.emptyList() : list;
    }

    public final Map x(String str, String str2, boolean z) {
        b1 b1Var = new b1();
        j(new c2(this, str, str2, z, b1Var));
        Bundle f2 = b1Var.f(5000L);
        if (f2 == null || f2.size() == 0) {
            return Collections.emptyMap();
        }
        HashMap hashMap = new HashMap(f2.size());
        for (String str3 : f2.keySet()) {
            Object obj = f2.get(str3);
            if ((obj instanceof Double) || (obj instanceof Long) || (obj instanceof String)) {
                hashMap.put(str3, obj);
            }
        }
        return hashMap;
    }
}