57 lines
2.2 KiB
Java
57 lines
2.2 KiB
Java
package com.tencent.wxop.stat;
|
|
|
|
import android.content.Context;
|
|
import com.tencent.wxop.stat.common.StatLogger;
|
|
import java.lang.Thread;
|
|
|
|
/* loaded from: classes.dex */
|
|
class ao implements Thread.UncaughtExceptionHandler {
|
|
ao() {
|
|
}
|
|
|
|
@Override // java.lang.Thread.UncaughtExceptionHandler
|
|
public void uncaughtException(Thread thread, Throwable th) {
|
|
Context context;
|
|
Context context2;
|
|
Thread.UncaughtExceptionHandler uncaughtExceptionHandler;
|
|
StatLogger statLogger;
|
|
Thread.UncaughtExceptionHandler uncaughtExceptionHandler2;
|
|
Thread.UncaughtExceptionHandler uncaughtExceptionHandler3;
|
|
Context context3;
|
|
Context context4;
|
|
Context context5;
|
|
StatLogger statLogger2;
|
|
StatLogger statLogger3;
|
|
if (StatConfig.isEnableStatService()) {
|
|
context = StatServiceImpl.t;
|
|
if (context == null) {
|
|
return;
|
|
}
|
|
if (StatConfig.isAutoExceptionCaught()) {
|
|
context3 = StatServiceImpl.t;
|
|
au a = au.a(context3);
|
|
context4 = StatServiceImpl.t;
|
|
context5 = StatServiceImpl.t;
|
|
a.a((com.tencent.wxop.stat.event.e) new com.tencent.wxop.stat.event.d(context4, StatServiceImpl.a(context5, false, (StatSpecifyReportedInfo) null), 2, th, thread, null), (h) null, false, true);
|
|
statLogger2 = StatServiceImpl.q;
|
|
statLogger2.debug("MTA has caught the following uncaught exception:");
|
|
statLogger3 = StatServiceImpl.q;
|
|
statLogger3.error(th);
|
|
}
|
|
context2 = StatServiceImpl.t;
|
|
StatServiceImpl.flushDataToDB(context2);
|
|
uncaughtExceptionHandler = StatServiceImpl.r;
|
|
if (uncaughtExceptionHandler != null) {
|
|
statLogger = StatServiceImpl.q;
|
|
statLogger.d("Call the original uncaught exception handler.");
|
|
uncaughtExceptionHandler2 = StatServiceImpl.r;
|
|
if (uncaughtExceptionHandler2 instanceof ao) {
|
|
return;
|
|
}
|
|
uncaughtExceptionHandler3 = StatServiceImpl.r;
|
|
uncaughtExceptionHandler3.uncaughtException(thread, th);
|
|
}
|
|
}
|
|
}
|
|
}
|