Files
rr3-apk/decompiled-community/sources/com/applovin/impl/nh.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- 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
2026-02-18 15:48:36 -08:00

155 lines
6.7 KiB
Java

package com.applovin.impl;
import android.os.Bundle;
import android.os.RemoteException;
import android.os.SystemClock;
import android.text.TextUtils;
import com.applovin.impl.o2;
import com.facebook.ads.AdError;
import com.google.android.gms.auth.api.proxy.AuthApiStatusCodes;
import com.ironsource.mediationsdk.utils.IronSourceConstants;
/* loaded from: classes.dex */
public class nh extends Exception implements o2 {
public static final o2.a c = new o2.a() { // from class: com.applovin.impl.nh$$ExternalSyntheticLambda0
@Override // com.applovin.impl.o2.a
public final o2 a(Bundle bundle) {
return new nh(bundle);
}
};
public final int a;
public final long b;
public static String a(int i) {
if (i == 5001) {
return "ERROR_CODE_AUDIO_TRACK_INIT_FAILED";
}
if (i == 5002) {
return "ERROR_CODE_AUDIO_TRACK_WRITE_FAILED";
}
switch (i) {
case 1000:
return "ERROR_CODE_UNSPECIFIED";
case 1001:
return "ERROR_CODE_REMOTE_ERROR";
case 1002:
return "ERROR_CODE_BEHIND_LIVE_WINDOW";
case 1003:
return "ERROR_CODE_TIMEOUT";
case 1004:
return "ERROR_CODE_FAILED_RUNTIME_CHECK";
default:
switch (i) {
case 2000:
return "ERROR_CODE_IO_UNSPECIFIED";
case 2001:
return "ERROR_CODE_IO_NETWORK_CONNECTION_FAILED";
case 2002:
return "ERROR_CODE_IO_NETWORK_CONNECTION_TIMEOUT";
case 2003:
return "ERROR_CODE_IO_INVALID_HTTP_CONTENT_TYPE";
case 2004:
return "ERROR_CODE_IO_BAD_HTTP_STATUS";
case 2005:
return "ERROR_CODE_IO_FILE_NOT_FOUND";
case 2006:
return "ERROR_CODE_IO_NO_PERMISSION";
case 2007:
return "ERROR_CODE_IO_CLEARTEXT_NOT_PERMITTED";
case 2008:
return "ERROR_CODE_IO_READ_POSITION_OUT_OF_RANGE";
default:
switch (i) {
case 3001:
return "ERROR_CODE_PARSING_CONTAINER_MALFORMED";
case 3002:
return "ERROR_CODE_PARSING_MANIFEST_MALFORMED";
case AuthApiStatusCodes.AUTH_API_SERVER_ERROR /* 3003 */:
return "ERROR_CODE_PARSING_CONTAINER_UNSUPPORTED";
case AuthApiStatusCodes.AUTH_TOKEN_ERROR /* 3004 */:
return "ERROR_CODE_PARSING_MANIFEST_UNSUPPORTED";
default:
switch (i) {
case IronSourceConstants.NT_LOAD /* 4001 */:
return "ERROR_CODE_DECODER_INIT_FAILED";
case IronSourceConstants.NT_INSTANCE_LOAD /* 4002 */:
return "ERROR_CODE_DECODER_QUERY_FAILED";
case 4003:
return "ERROR_CODE_DECODING_FAILED";
case 4004:
return "ERROR_CODE_DECODING_FORMAT_EXCEEDS_CAPABILITIES";
case IronSourceConstants.NT_INSTANCE_LOAD_SUCCESS /* 4005 */:
return "ERROR_CODE_DECODING_FORMAT_UNSUPPORTED";
default:
switch (i) {
case 6000:
return "ERROR_CODE_DRM_UNSPECIFIED";
case AdError.MEDIAVIEW_MISSING_ERROR_CODE /* 6001 */:
return "ERROR_CODE_DRM_SCHEME_UNSUPPORTED";
case AdError.ICONVIEW_MISSING_ERROR_CODE /* 6002 */:
return "ERROR_CODE_DRM_PROVISIONING_FAILED";
case AdError.AD_ASSETS_UNSUPPORTED_TYPE_ERROR_CODE /* 6003 */:
return "ERROR_CODE_DRM_CONTENT_ERROR";
case 6004:
return "ERROR_CODE_DRM_LICENSE_ACQUISITION_FAILED";
case 6005:
return "ERROR_CODE_DRM_DISALLOWED_OPERATION";
case 6006:
return "ERROR_CODE_DRM_SYSTEM_ERROR";
case 6007:
return "ERROR_CODE_DRM_DEVICE_REVOKED";
case 6008:
return "ERROR_CODE_DRM_LICENSE_EXPIRED";
default:
return i >= 1000000 ? "custom error code" : "invalid error code";
}
}
}
}
}
}
public nh(Bundle bundle) {
this(bundle.getString(b(2)), a(bundle), bundle.getInt(b(0), 1000), bundle.getLong(b(1), SystemClock.elapsedRealtime()));
}
public static String b(int i) {
return Integer.toString(i, 36);
}
private static Throwable a(Class cls, String str) {
return (Throwable) cls.getConstructor(String.class).newInstance(str);
}
public nh(String str, Throwable th, int i, long j) {
super(str, th);
this.a = i;
this.b = j;
}
private static Throwable a(Bundle bundle) {
String string = bundle.getString(b(3));
String string2 = bundle.getString(b(4));
if (TextUtils.isEmpty(string)) {
return null;
}
try {
Class<?> cls = Class.forName(string, true, nh.class.getClassLoader());
Throwable a = Throwable.class.isAssignableFrom(cls) ? a(cls, string2) : null;
if (a != null) {
return a;
}
} catch (Throwable unused) {
}
return a(string2);
}
public final String a() {
return a(this.a);
}
private static RemoteException a(String str) {
return new RemoteException(str);
}
}