- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
38 lines
1.5 KiB
Java
38 lines
1.5 KiB
Java
package com.helpshift.exception;
|
|
|
|
import android.util.Log;
|
|
import com.helpshift.Helpshift;
|
|
import com.helpshift.log.HSLogger;
|
|
import java.lang.Thread;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public abstract class HSUncaughtExceptionHandler {
|
|
public static void init() {
|
|
final Thread.UncaughtExceptionHandler defaultUncaughtExceptionHandler = Thread.getDefaultUncaughtExceptionHandler();
|
|
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() { // from class: com.helpshift.exception.HSUncaughtExceptionHandler.1
|
|
@Override // java.lang.Thread.UncaughtExceptionHandler
|
|
public void uncaughtException(Thread thread, Throwable th) {
|
|
if (HSUncaughtExceptionHandler.isCausedByHelpshift(th)) {
|
|
HSLogger.e("UncghtExptnHndlr", "UNCAUGHT EXCEPTION ", th);
|
|
}
|
|
Thread.UncaughtExceptionHandler uncaughtExceptionHandler = defaultUncaughtExceptionHandler;
|
|
if (uncaughtExceptionHandler != null) {
|
|
uncaughtExceptionHandler.uncaughtException(thread, th);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
public static boolean isCausedByHelpshift(Throwable th) {
|
|
if (th == null) {
|
|
return false;
|
|
}
|
|
try {
|
|
return Log.getStackTraceString(th).contains(Helpshift.class.getPackage().getName());
|
|
} catch (Exception e) {
|
|
HSLogger.e("UncghtExptnHndlr", "Error determining crash from Helpshift", e);
|
|
return false;
|
|
}
|
|
}
|
|
}
|