360 Wi-Fi v1.0.1版本的 MD5 值为:53dc85b63eb655b13344ce30ddaccae2

以下内容为反编译后的 CrashConfig.java 源代码,内容仅作参考


package com.inmobi.commons.core.configs;

import androidx.annotation.Keep;
import com.inmobi.media.h4;
import com.inmobi.media.s9;
import com.inmobi.media.w4;
import com.inmobi.media.z3;
import iIiilLLliIiIiL.iiIlllLIi;
import kotlin.Metadata;
import org.json.JSONObject;
@Keep
@Metadata(d1 = {"\u0000F\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\t\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u001a\b\u0007\u0018\u0000 +2\u00020\u0001:\u0004,-./B\u0011\u0012\b\u0010(\u001a\u0004\u0018\u00010\u0004¢\u0006\u0004\b)\u0010*J\b\u0010\u0003\u001a\u00020\u0002H\u0002J\b\u0010\u0005\u001a\u00020\u0004H\u0016J\b\u0010\u0007\u001a\u00020\u0006H\u0016J\b\u0010\t\u001a\u00020\bH\u0016J\u0006\u0010\n\u001a\u00020\u0006J\u0006\u0010\u000b\u001a\u00020\u0006J\u0006\u0010\r\u001a\u00020\fJ\u0006\u0010\u000e\u001a\u00020\fJ\u0006\u0010\u0010\u001a\u00020\u000fJ\u0006\u0010\u0011\u001a\u00020\u0004J\u0006\u0010\u0013\u001a\u00020\u0012J\u0006\u0010\u0015\u001a\u00020\u0014J\u0006\u0010\u0017\u001a\u00020\u0016R\u001c\u0010\u0019\u001a\n \u0018*\u0004\u0018\u00010\u00040\u00048\u0002X\u0083\u0004¢\u0006\u0006\n\u0004\b\u0019\u0010\u001aR\u0016\u0010\u001b\u001a\u00020\u00048\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u001b\u0010\u001aR\u0016\u0010\u001c\u001a\u00020\u000f8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u001c\u0010\u001dR\u0016\u0010\u001e\u001a\u00020\u00128\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u001e\u0010\u001fR\u0016\u0010 \u001a\u00020\u00128\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b \u0010\u001fR\u0016\u0010!\u001a\u00020\u000f8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b!\u0010\u001dR\u0016\u0010\"\u001a\u00020\u000f8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\"\u0010\u001dR\u0016\u0010#\u001a\u00020\u00068\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b#\u0010$R\u0016\u0010%\u001a\u00020\u00068\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b%\u0010$R\u0016\u0010&\u001a\u00020\u00148\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b&\u0010'¨\u00060"}, d2 = {"Lcom/inmobi/commons/core/configs/CrashConfig;", "Lcom/inmobi/commons/core/configs/Config;", "LLL/Lii;", "setDefaultNetworkConfig", "", "getType", "", "isValid", "Lorg/json/JSONObject;", "toJson", "getCrashEnabled", "getCatchEnabled", "Lcom/inmobi/media/s9$a;", "getMobileConfig", "getWifiConfig", "", "getEventTTL", "getUrl", "", "getMaxEventsToPersist", "Lcom/inmobi/commons/core/configs/CrashConfig$ANRConfig;", "getANRConfig", "Lcom/inmobi/media/z3;", "getEventConfig", "kotlin.jvm.PlatformType", "TAG", "Ljava/lang/String;", "url", "processingInterval", "J", "maxRetryCount", "I", "maxEventsToPersist", "eventTTL", "txLatency", "crashEnabled", "Z", "catchEnabled", "anr", "Lcom/inmobi/commons/core/configs/CrashConfig$ANRConfig;", "accountId", "<init>", "(Ljava/lang/String;)V", "Companion", "ANRConfig", "AppExitReasonConfig", "a", "WatchDogConfig", "media_release"}, k = 1, mv = {1, 5, 1})
public final class CrashConfig extends Config {
    public static final a Companion = new a();
    public static final long DEFAULT_ANR_WATCHDOG_INTERVAL = 4500;
    public static final long DEFAULT_APP_EXIT_REASON_WAIT_INTERVAL = 1000;
    public static final boolean DEFAULT_CATCH_ENABLED = false;
    public static final boolean DEFAULT_CRASH_ENABLED = true;
    public static final long DEFAULT_EVENT_TTL_SEC = 259200;
    public static final long DEFAULT_INCOMPLETE_LOG_THRESHOLD_INTERVAL = 30000;
    public static final long DEFAULT_INGESTION_LATENCY_SEC = 86400;
    public static final int DEFAULT_MAX_BATCH_SIZE = 2;
    public static final int DEFAULT_MAX_EVENTS_TO_PERSIST = 50;
    public static final int DEFAULT_MAX_RETRIES = 3;
    public static final int DEFAULT_MIN_BATCH_SIZE = 1;
    public static final long DEFAULT_PROCESSING_INTERVAL_SEC = 60;
    public static final long DEFAULT_RETRY_INTERVAL_SEC = 10;
    public static final String DEFAULT_URL = "https://crash-metrics.sdk.inmobi.com/trace";
    @w4
    private final String TAG;
    private ANRConfig anr;
    private boolean catchEnabled;
    private boolean crashEnabled;
    private long eventTTL;
    private int maxEventsToPersist;
    private int maxRetryCount;
    private s9 networkType;
    private long processingInterval;
    private long txLatency;
    private String url;

    @Keep
    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0007\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\r\u0010\u000eR$\u0010\u0004\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b\u0004\u0010\u0005\u001a\u0004\b\u0006\u0010\u0007R$\u0010\t\u001a\u00020\b2\u0006\u0010\u0003\u001a\u00020\b8\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b\t\u0010\n\u001a\u0004\b\u000b\u0010\f¨\u0006\u000f"}, d2 = {"Lcom/inmobi/commons/core/configs/CrashConfig$ANRConfig;", "", "Lcom/inmobi/commons/core/configs/CrashConfig$AppExitReasonConfig;", "<set-?>", "appExitReason", "Lcom/inmobi/commons/core/configs/CrashConfig$AppExitReasonConfig;", "getAppExitReason", "()Lcom/inmobi/commons/core/configs/CrashConfig$AppExitReasonConfig;", "Lcom/inmobi/commons/core/configs/CrashConfig$WatchDogConfig;", "watchdog", "Lcom/inmobi/commons/core/configs/CrashConfig$WatchDogConfig;", "getWatchdog", "()Lcom/inmobi/commons/core/configs/CrashConfig$WatchDogConfig;", "<init>", "()V", "media_release"}, k = 1, mv = {1, 5, 1})
    public static final class ANRConfig {
        private AppExitReasonConfig appExitReason = new AppExitReasonConfig();
        private WatchDogConfig watchdog = new WatchDogConfig();

        public final AppExitReasonConfig getAppExitReason() {
            return this.appExitReason;
        }

        public final WatchDogConfig getWatchdog() {
            return this.watchdog;
        }
    }

    @Keep
    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000b\n\u0002\b\t\n\u0002\u0010\t\n\u0002\b\t\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0013\u0010\u0014R$\u0010\u0004\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b\u0004\u0010\u0005\u001a\u0004\b\u0006\u0010\u0007R$\u0010\b\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b\b\u0010\u0005\u001a\u0004\b\t\u0010\u0007R$\u0010\n\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b\n\u0010\u0005\u001a\u0004\b\u000b\u0010\u0007R$\u0010\r\u001a\u00020\f2\u0006\u0010\u0003\u001a\u00020\f8\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b\r\u0010\u000e\u001a\u0004\b\u000f\u0010\u0010R$\u0010\u0011\u001a\u00020\f2\u0006\u0010\u0003\u001a\u00020\f8\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b\u0011\u0010\u000e\u001a\u0004\b\u0012\u0010\u0010¨\u0006\u0015"}, d2 = {"Lcom/inmobi/commons/core/configs/CrashConfig$AppExitReasonConfig;", "", "", "<set-?>", "enabled", "Z", "getEnabled", "()Z", "reportToLogs", "getReportToLogs", "useForReporting", "getUseForReporting", "", "incidentWaitInterval", "J", "getIncidentWaitInterval", "()J", "incompleteLogThresholdTime", "getIncompleteLogThresholdTime", "<init>", "()V", "media_release"}, k = 1, mv = {1, 5, 1})
    public static final class AppExitReasonConfig {
        private boolean enabled;
        private long incidentWaitInterval = 1000;
        private long incompleteLogThresholdTime = CrashConfig.DEFAULT_INCOMPLETE_LOG_THRESHOLD_INTERVAL;
        private boolean reportToLogs;
        private boolean useForReporting;

        public final boolean getEnabled() {
            return this.enabled;
        }

        public final long getIncidentWaitInterval() {
            return this.incidentWaitInterval;
        }

        public final long getIncompleteLogThresholdTime() {
            return this.incompleteLogThresholdTime;
        }

        public final boolean getReportToLogs() {
            return this.reportToLogs;
        }

        public final boolean getUseForReporting() {
            return this.useForReporting;
        }
    }

    @Keep
    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000b\n\u0002\b\u0007\n\u0002\u0010\t\n\u0002\b\u0007\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u000f\u0010\u0010R$\u0010\u0004\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b\u0004\u0010\u0005\u001a\u0004\b\u0006\u0010\u0007R$\u0010\b\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b\b\u0010\u0005\u001a\u0004\b\t\u0010\u0007R$\u0010\u000b\u001a\u00020\n2\u0006\u0010\u0003\u001a\u00020\n8\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b\u000b\u0010\f\u001a\u0004\b\r\u0010\u000e¨\u0006\u0011"}, d2 = {"Lcom/inmobi/commons/core/configs/CrashConfig$WatchDogConfig;", "", "", "<set-?>", "enabled", "Z", "getEnabled", "()Z", "useForReporting", "getUseForReporting", "", "interval", "J", "getInterval", "()J", "<init>", "()V", "media_release"}, k = 1, mv = {1, 5, 1})
    public static final class WatchDogConfig {
        private boolean enabled;
        private long interval = CrashConfig.DEFAULT_ANR_WATCHDOG_INTERVAL;
        private boolean useForReporting;

        public final boolean getEnabled() {
            return this.enabled;
        }

        public final long getInterval() {
            return this.interval;
        }

        public final boolean getUseForReporting() {
            return this.useForReporting;
        }
    }

    public static final class a {
    }

    public CrashConfig(String str) {
        super(str);
        this.TAG = "CrashConfig";
        this.url = DEFAULT_URL;
        this.processingInterval = 60L;
        this.maxRetryCount = 3;
        this.maxEventsToPersist = 50;
        this.eventTTL = DEFAULT_EVENT_TTL_SEC;
        this.txLatency = 86400L;
        this.crashEnabled = true;
        this.networkType = new s9();
        this.anr = new ANRConfig();
        setDefaultNetworkConfig();
    }

    private final void setDefaultNetworkConfig() {
        s9 s9Var = this.networkType;
        s9.a aVar = new s9.a();
        aVar.a(10L);
        aVar.c(1);
        aVar.b(2);
        s9Var.getClass();
        s9Var.wifi = aVar;
        s9 s9Var2 = this.networkType;
        s9.a aVar2 = new s9.a();
        aVar2.a(10L);
        aVar2.c(1);
        aVar2.b(2);
        s9Var2.getClass();
        s9Var2.others = aVar2;
    }

    public final ANRConfig getANRConfig() {
        return this.anr;
    }

    public final boolean getCatchEnabled() {
        return this.catchEnabled;
    }

    public final boolean getCrashEnabled() {
        return this.crashEnabled;
    }

    public final z3 getEventConfig() {
        return new z3(this.maxRetryCount, this.eventTTL, this.processingInterval, this.txLatency, getWifiConfig().b(), getWifiConfig().a(), getMobileConfig().b(), getMobileConfig().a(), getWifiConfig().c(), getMobileConfig().c());
    }

    public final long getEventTTL() {
        return this.eventTTL;
    }

    public final int getMaxEventsToPersist() {
        return this.maxEventsToPersist;
    }

    public final s9.a getMobileConfig() {
        return this.networkType.a();
    }

    @Override
    public String getType() {
        return "crashReporting";
    }

    public final String getUrl() {
        return this.url;
    }

    public final s9.a getWifiConfig() {
        return this.networkType.b();
    }

    @Override
    public boolean isValid() {
        boolean z;
        if (h4.a(this.url)) {
            return false;
        }
        long j = this.txLatency;
        if (j < this.processingInterval || j > this.eventTTL) {
            return false;
        }
        s9 s9Var = this.networkType;
        int i2 = this.maxEventsToPersist;
        if (s9Var.b().a(i2) && s9Var.a().a(i2)) {
            z = true;
        } else {
            z = false;
        }
        if (!z || this.processingInterval <= 0 || this.maxRetryCount < 0 || this.txLatency <= 0 || this.eventTTL <= 0 || this.maxEventsToPersist <= 0) {
            return false;
        }
        return true;
    }

    @Override
    public JSONObject toJson() {
        Companion.getClass();
        JSONObject a2 = new com.inmobi.commons.utils.json.a().a((com.inmobi.commons.utils.json.a) this);
        if (a2 == null) {
            iiIlllLIi.lllLL(this.TAG, "TAG");
            return new JSONObject();
        }
        return a2;
    }
}