Maxcredito v1.2.1版本的 MD5 值为:2605738f37f8ddb81288799ddcbfcbe8
以下内容为反编译后的 a.java 源代码,内容仅作参考
package g.j.a.a.f;
import android.app.Activity;
import android.app.ActivityManager;
import android.app.Application;
import android.content.Context;
import android.os.Bundle;
import android.os.Process;
import com.google.firebase.analytics.FirebaseAnalytics;
import com.google.firebase.remoteconfig.RemoteConfigConstants;
import com.hiii.mobile.track.TrackerManager;
import com.xinmi.android.moneed.bean.LoginData;
import com.xinmi.android.moneed.util.AppCrashHandler;
import g.b.a.a.d;
import g.b.a.b.p;
import g.b.a.b.t;
import g.i.a.a.f;
import g.i.a.a.i;
import g.i.a.a.k;
import g.j.a.a.s.a0;
import g.j.a.a.s.g0;
import g.j.a.a.s.u;
import j.i;
import j.u.k0;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import kotlin.Pair;
import kotlin.text.StringsKt__StringsKt;
public abstract class a extends d implements AppCrashHandler.a {
public long d;
public static final class RunnableC0200a implements Runnable {
public RunnableC0200a() {
}
@Override
public final void run() {
try {
g.i.a.a.c cVar = g.i.a.a.c.a;
g.b.a.b.b bVar = g.b.a.b.b.a;
String a = cVar.a(bVar.a());
t.a.j(bVar.a(), "key_gaid", a != null ? a : "");
g.j.a.a.e.d dVar = g.j.a.a.e.d.b;
FirebaseAnalytics firebaseAnalytics = FirebaseAnalytics.getInstance(a.this);
j.z.c.t.e(firebaseAnalytics, "FirebaseAnalytics.getInstance(this)");
dVar.b(firebaseAnalytics.getFirebaseInstanceId());
g.j.a.a.m.a.a.a("googleGaid", "id = " + a);
} catch (Exception e2) {
e2.printStackTrace();
}
}
}
public static final class b implements TrackerManager.a {
@Override
public Map<String, Object> a() {
g.j.a.a.n.b bVar = g.j.a.a.n.b.c;
if (bVar.e()) {
LoginData a = bVar.a();
j.z.c.t.d(a);
String customerId = a.getCustomerId();
j.z.c.t.d(customerId);
return k0.j(i.a("customerId", customerId));
}
return new LinkedHashMap();
}
}
public static final class c implements Application.ActivityLifecycleCallbacks {
public c() {
}
@Override
public void onActivityCreated(Activity activity, Bundle bundle) {
j.z.c.t.f(activity, "activity");
}
@Override
public void onActivityDestroyed(Activity activity) {
j.z.c.t.f(activity, "activity");
}
@Override
public void onActivityPaused(Activity activity) {
j.z.c.t.f(activity, "activity");
}
@Override
public void onActivityResumed(Activity activity) {
j.z.c.t.f(activity, "activity");
if (j.z.c.t.b(activity.getClass().getSimpleName(), "LoginActivity")) {
a.this.d = System.currentTimeMillis();
}
}
@Override
public void onActivitySaveInstanceState(Activity activity, Bundle bundle) {
j.z.c.t.f(activity, "activity");
j.z.c.t.f(bundle, "outState");
}
@Override
public void onActivityStarted(Activity activity) {
j.z.c.t.f(activity, "activity");
}
@Override
public void onActivityStopped(Activity activity) {
j.z.c.t.f(activity, "activity");
if (j.z.c.t.b(activity.getClass().getSimpleName(), "LoginActivity")) {
long currentTimeMillis = System.currentTimeMillis();
HashMap hashMap = new HashMap(1);
hashMap.put("loginStaytime", Long.valueOf(currentTimeMillis - a.this.d));
TrackerManager.a.h(activity, "loginStaytime", hashMap);
}
}
}
@Override
public void a(Throwable th, String str) {
j.z.c.t.f(th, "throwable");
j.z.c.t.f(str, "extra");
g.i.a.a.i iVar = g.i.a.a.i.a;
Pair[] pairArr = new Pair[2];
String message = th.getMessage();
if (message == null) {
message = "";
}
pairArr[0] = i.a("errorMsg", message);
pairArr[1] = i.a("info", str);
iVar.d("AppCrashed", k0.h(pairArr));
}
@Override
public void attachBaseContext(Context context) {
j.z.c.t.f(context, "base");
super.attachBaseContext(context);
e.x.a.l(this);
}
public final void f() {
TrackerManager trackerManager = TrackerManager.a;
TrackerManager.i(trackerManager, this, "clickapp", null, 4, null);
long currentTimeMillis = System.currentTimeMillis() - 216000000;
g0 g0Var = g0.a;
int b2 = g0Var.b(this, currentTimeMillis);
HashMap hashMap = new HashMap(1);
hashMap.put("start01", "" + b2 + 1);
trackerManager.h(this, "start01", hashMap);
g0Var.a(this, currentTimeMillis);
g0Var.c(this);
HashMap hashMap2 = new HashMap(1);
hashMap2.put("app_language_version_default", g.b.a.f.b.b.c().d());
trackerManager.h(this, "app_language_version_default", hashMap2);
}
public g.i.a.a.d g() {
g.i.a.a.d dVar = new g.i.a.a.d();
dVar.h("xjH2Zj4xZQa3JbcEDvxgcR");
dVar.i(Boolean.FALSE);
dVar.j(false);
return dVar;
}
public String h(Context context, int i2) {
j.z.c.t.f(context, "cxt");
Object systemService = context.getSystemService("activity");
Objects.requireNonNull(systemService, "null cannot be cast to non-null type android.app.ActivityManager");
List<ActivityManager.RunningAppProcessInfo> runningAppProcesses = ((ActivityManager) systemService).getRunningAppProcesses();
if (runningAppProcesses != null) {
for (ActivityManager.RunningAppProcessInfo runningAppProcessInfo : runningAppProcesses) {
if (runningAppProcessInfo.pid == i2) {
return runningAppProcessInfo.processName;
}
}
}
return null;
}
public final void i() {
g.a.a.a.b.a.d(this);
}
public abstract void j();
public final void k() {
new Thread(new RunnableC0200a()).start();
}
public final void l() {
g.b.a.g.b bVar = new g.b.a.g.b();
bVar.i(60L);
bVar.j(60L);
bVar.l(60L);
bVar.k(g.j.a.a.s.d.z.l0());
bVar.a(new g.j.a.a.o.a.b());
bVar.a(new g.j.a.a.o.a.a());
g.b.a.g.c.a.d(bVar);
}
public final void m() {
g.i.a.a.d g2 = g();
g.j.a.a.e.b.c.e(g2 != null);
TrackerManager trackerManager = TrackerManager.a;
k.a aVar = new k.a(this);
aVar.d(true);
aVar.e(true);
aVar.b(true);
i.a.C0195a c0195a = new i.a.C0195a();
c0195a.g("https://salasa.xcreditech.com/sa?project=production");
c0195a.b(15);
c0195a.d(false);
c0195a.f(true);
c0195a.e(true);
c0195a.c(true);
aVar.f(c0195a.a());
aVar.c(g2);
trackerManager.b(aVar.a());
trackerManager.g(new b());
f.a.b(this);
u.a.b();
p pVar = p.a;
g.i.a.a.i.a.b(k0.h(j.i.a("appName", pVar.a(this)), j.i.a(RemoteConfigConstants.RequestFieldKey.APP_VERSION, pVar.b(this))));
f();
}
public boolean n() {
if (h(this, Process.myPid()) != null) {
return !StringsKt__StringsKt.y(r0, ":", false, 2, null);
}
return false;
}
public final void o() {
registerActivityLifecycleCallbacks(new c());
}
@Override
public void onCreate() {
super.onCreate();
if (n()) {
g.b.a.f.b.b.d(this);
j();
g.j.a.a.n.b.c.d();
g.b.a.e.a.a.a(this);
a0.a.a();
new AppCrashHandler(this).d(this);
i();
l();
m();
o();
k();
g.j.a.a.e.b bVar = g.j.a.a.e.b.c;
bVar.d(bVar.a());
}
}
}