恐 怖 老 奶 奶1破 解 版 中 文 版 无 敌 版 v4.15.00版本的 MD5 值为:2c4218ea002b12a6cce81f33a9f0144d
以下内容为反编译后的 a.java 源代码,内容仅作参考
package com.efs.sdk.base.a.d;
import android.content.IntentFilter;
import android.os.Build;
import android.os.Handler;
import android.os.Message;
import android.os.Process;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import android.util.Pair;
import android.webkit.ValueCallback;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.os.EnvironmentCompat;
import com.anythink.basead.b.a;
import com.efs.sdk.base.BuildConfig;
import com.efs.sdk.base.EfsReporter;
import com.efs.sdk.base.a.c.c;
import com.efs.sdk.base.a.e.f;
import com.efs.sdk.base.a.f.b;
import com.efs.sdk.base.a.g.d;
import com.efs.sdk.base.a.h.d;
import com.efs.sdk.base.a.h.e;
import com.efs.sdk.base.a.h.f;
import com.efs.sdk.base.a.h.g;
import com.efs.sdk.base.a.h.h;
import com.efs.sdk.base.a.i.f;
import com.efs.sdk.base.http.HttpResponse;
import com.efs.sdk.base.protocol.ILogProtocol;
import com.kwad.components.offline.api.tk.model.report.TKDownloadReason;
import com.kwad.sdk.core.imageloader.utils.MemoryCacheUtils;
import com.qq.e.comm.pi.ACTD;
import java.io.File;
import java.util.HashMap;
import java.util.Locale;
import java.util.TimeZone;
public final class a implements Handler.Callback {
public static com.efs.sdk.base.a.c.a f8806a;
public int f8807b = 0;
public final int f8808c = 0;
public final int f8809d = 1;
public final int f8810e = 2;
public final int f8811f = 3;
public volatile boolean f8812g = false;
public com.efs.sdk.base.a.d.a.a f8813h;
public Handler f8814i;
public a(EfsReporter.Builder builder) {
f8806a = builder.getGlobalEnvStruct();
Handler handler = new Handler(com.efs.sdk.base.a.h.a.a.f8863a.getLooper(), this);
this.f8814i = handler;
handler.sendEmptyMessage(0);
}
@NonNull
public static com.efs.sdk.base.a.c.a a() {
return f8806a;
}
private void b() {
if (this.f8813h == null) {
this.f8813h = new com.efs.sdk.base.a.d.a.a();
}
try {
IntentFilter intentFilter = new IntentFilter();
intentFilter.addAction("android.net.conn.CONNECTIVITY_CHANGE");
f8806a.f8776c.registerReceiver(this.f8813h, intentFilter);
} catch (Throwable th) {
d.a("efs.base", "register network change receiver error", th);
int i2 = this.f8807b + 1;
this.f8807b = i2;
if (i2 < 3) {
this.f8814i.sendEmptyMessageDelayed(3, 6000L);
}
}
}
private void c(final ILogProtocol iLogProtocol) {
if (iLogProtocol == null) {
return;
}
com.efs.sdk.base.a.h.a.d.a(new Runnable() {
@Override
public final void run() {
try {
iLogProtocol.insertGlobal(c.a.a().f8803a);
if (!"wa".equalsIgnoreCase(iLogProtocol.getLogType())) {
a.b(iLogProtocol);
}
if (a.a().f8778e) {
final b a2 = b.a(iLogProtocol);
final com.efs.sdk.base.a.g.d a3 = d.a.a();
com.efs.sdk.base.a.h.a.d.a(new Runnable() {
@Override
public final void run() {
a3.f8857a.a(a2);
}
});
}
} catch (Throwable th) {
com.efs.sdk.base.a.h.d.b("efs.base", "log send error", th);
}
}
});
}
@Override
public final boolean handleMessage(@NonNull Message message) {
int i2 = message.what;
if (i2 == 0) {
c a2 = c.a.a();
com.efs.sdk.base.a.c.b bVar = new com.efs.sdk.base.a.c.b();
a2.f8803a = bVar;
bVar.a(ACTD.APPID_KEY, f8806a.f8774a);
int a3 = g.a();
a2.f8803a.a(com.anythink.expressad.d.a.b.aB, Integer.valueOf(a3));
a2.f8803a.a("ps", g.a(a3));
String a4 = h.a(a2.f8804b);
a2.f8803a.a("wid", a4);
if (TextUtils.isEmpty(f8806a.f8781h)) {
a2.f8803a.a("uid", a4);
} else {
a2.f8803a.a("uid", f8806a.f8781h);
}
com.efs.sdk.base.a.c.b bVar2 = a2.f8803a;
com.efs.sdk.base.a.a.a.a();
bVar2.a("stime", Long.valueOf(com.efs.sdk.base.a.a.a.b() - Process.getElapsedCpuTime()));
a2.f8803a.a(a.C0109a.A, a2.f8804b.getPackageName());
a2.f8803a.a("ver", f.a(a2.f8804b));
a2.f8803a.a("vcode", f.b(a2.f8804b));
a2.f8803a.a("sdk_ver", BuildConfig.VERSION_NAME);
a2.f8803a.a("brand", Build.BRAND.toLowerCase());
com.efs.sdk.base.a.c.b bVar3 = a2.f8803a;
String str = Build.MODEL;
bVar3.a("model", str == null ? EnvironmentCompat.MEDIA_UNKNOWN : str.replace(" ", "-").replace(MemoryCacheUtils.URI_AND_SIZE_SEPARATOR, "-").toLowerCase());
DisplayMetrics displayMetrics = a2.f8804b.getResources().getDisplayMetrics();
a2.f8803a.a("dsp_w", Integer.valueOf(displayMetrics.widthPixels));
a2.f8803a.a("dsp_h", Integer.valueOf(displayMetrics.heightPixels));
a2.f8803a.a(com.anythink.expressad.video.dynview.a.a.Z, "android");
a2.f8803a.a("rom", Build.VERSION.RELEASE);
a2.f8803a.a("sdk", Integer.valueOf(Build.VERSION.SDK_INT));
a2.f8803a.a("lang", Locale.getDefault().getLanguage());
a2.f8803a.a("tzone", TimeZone.getDefault().getID());
a2.f8803a.a(TKDownloadReason.KSAD_TK_NET, e.b(a2.f8804b));
f.a.a();
com.efs.sdk.base.a.c.a.c.a().b();
b();
com.efs.sdk.base.a.i.f a5 = f.a.a();
boolean z = f8806a.f8782i;
com.efs.sdk.base.a.i.c cVar = a5.f8897a;
if (z) {
cVar.f8889a = "https://errlogos.umeng.com/api/crashsdk/logcollect";
cVar.f8890b = "4ea4e41a3993";
} else {
cVar.f8889a = "https://errlog.umeng.com/api/crashsdk/logcollect";
cVar.f8890b = "28ef1713347d";
}
a5.f8898b = this;
a5.f8899c.f8884a = this;
a5.f8900d.f8884a = this;
this.f8812g = true;
com.efs.sdk.base.a.e.d.a().sendEmptyMessageDelayed(0, f8806a.k);
com.efs.sdk.base.a.i.f a6 = f.a.a();
if (a6.f8898b != null && f8806a.f8777d) {
a6.f8898b.a(new com.efs.sdk.base.a.i.b("efs_core", "pvuv", a6.f8897a.f8891c));
}
} else if (i2 == 1) {
Object obj = message.obj;
if (obj != null && (obj instanceof ILogProtocol)) {
c((ILogProtocol) obj);
}
} else if (i2 == 3) {
b();
}
return true;
}
public final void a(ILogProtocol iLogProtocol) {
if (!this.f8812g) {
Message obtain = Message.obtain();
obtain.what = 1;
obtain.obj = iLogProtocol;
this.f8814i.sendMessage(obtain);
return;
}
c(iLogProtocol);
}
@Nullable
public static HttpResponse a(String str, int i2, String str2, boolean z, File file) {
b bVar = new b(str, (byte) 2);
bVar.b(1);
bVar.f8850d = file;
bVar.a(str2);
bVar.a(i2);
bVar.f8848b.f8852b = z;
bVar.d();
d.a.a().f8857a.a(bVar);
return bVar.f8848b.f8853c;
}
public static void b(ILogProtocol iLogProtocol) {
for (ValueCallback<Pair<Message, Message>> valueCallback : f8806a.a(9)) {
HashMap hashMap = new HashMap(4);
hashMap.put("log_type", iLogProtocol.getLogType());
hashMap.put("log_data", iLogProtocol.generateString());
hashMap.put("link_key", iLogProtocol.getLinkKey());
hashMap.put("link_id", iLogProtocol.getLinkId());
Message obtain = Message.obtain(null, 9, hashMap);
Message obtain2 = Message.obtain();
valueCallback.onReceiveValue(new Pair<>(obtain, obtain2));
obtain.recycle();
obtain2.recycle();
}
}
}