package com.apm.insight.runtime;

import com.apm.insight.MonitorCrash;

/* JADX INFO: loaded from: classes.dex */
public final class j {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    private static MonitorCrash f5489a = null;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private static int f5490b = -1;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    private static int f5491c;

    public static MonitorCrash a() {
        if (f5489a == null) {
            MonitorCrash monitorCrashInitSDK = MonitorCrash.initSDK(com.apm.insight.e.g(), "239017", 200000890L, "2.0.0.8", "com.apm.insight");
            f5489a = monitorCrashInitSDK;
            monitorCrashInitSDK.config().setChannel("release");
        }
        return f5489a;
    }

    public static void a(Throwable th, String str) {
        if (com.apm.insight.e.g() == null) {
            return;
        }
        if (f5490b == -1) {
            f5490b = 5;
        }
        int i10 = f5491c;
        if (i10 < f5490b) {
            f5491c = i10 + 1;
            a().reportCustomErr(str, "INNER", th);
        }
    }
}
