- 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
190 lines
8.7 KiB
Java
190 lines
8.7 KiB
Java
package com.applovin.impl;
|
|
|
|
import android.content.Context;
|
|
import android.os.Handler;
|
|
import android.os.Looper;
|
|
import com.applovin.impl.s5;
|
|
import java.util.ArrayList;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class k6 implements ti {
|
|
private final Context a;
|
|
private boolean d;
|
|
private boolean f;
|
|
private boolean g;
|
|
private boolean h;
|
|
private boolean i;
|
|
private boolean j;
|
|
private boolean k;
|
|
private int b = 0;
|
|
private long c = 5000;
|
|
private md e = md.a;
|
|
|
|
public void a(Context context, Handler handler, int i, ArrayList arrayList) {
|
|
}
|
|
|
|
public k6(Context context) {
|
|
this.a = context;
|
|
}
|
|
|
|
public void a(Context context, int i, md mdVar, boolean z, r1 r1Var, Handler handler, q1 q1Var, ArrayList arrayList) {
|
|
String str;
|
|
int i2;
|
|
int i3;
|
|
id idVar = new id(context, mdVar, z, handler, q1Var, r1Var);
|
|
idVar.a(this.f);
|
|
idVar.b(this.g);
|
|
idVar.c(this.h);
|
|
arrayList.add(idVar);
|
|
if (i == 0) {
|
|
return;
|
|
}
|
|
int size = arrayList.size();
|
|
if (i == 2) {
|
|
size--;
|
|
}
|
|
try {
|
|
try {
|
|
i2 = size + 1;
|
|
try {
|
|
arrayList.add(size, (qi) Class.forName("com.applovin.exoplayer2.ext.opus.LibopusAudioRenderer").getConstructor(Handler.class, q1.class, r1.class).newInstance(handler, q1Var, r1Var));
|
|
str = "DefaultRenderersFactory";
|
|
try {
|
|
pc.c(str, "Loaded LibopusAudioRenderer.");
|
|
} catch (ClassNotFoundException unused) {
|
|
size = i2;
|
|
i2 = size;
|
|
try {
|
|
i3 = i2 + 1;
|
|
arrayList.add(i2, (qi) Class.forName("com.applovin.exoplayer2.ext.flac.LibflacAudioRenderer").getConstructor(Handler.class, q1.class, r1.class).newInstance(handler, q1Var, r1Var));
|
|
pc.c(str, "Loaded LibflacAudioRenderer.");
|
|
} catch (ClassNotFoundException unused2) {
|
|
}
|
|
arrayList.add(i3, (qi) Class.forName("com.applovin.exoplayer2.ext.ffmpeg.FfmpegAudioRenderer").getConstructor(Handler.class, q1.class, r1.class).newInstance(handler, q1Var, r1Var));
|
|
pc.c(str, "Loaded FfmpegAudioRenderer.");
|
|
}
|
|
} catch (ClassNotFoundException unused3) {
|
|
str = "DefaultRenderersFactory";
|
|
}
|
|
} catch (ClassNotFoundException unused4) {
|
|
str = "DefaultRenderersFactory";
|
|
}
|
|
try {
|
|
i3 = i2 + 1;
|
|
try {
|
|
arrayList.add(i2, (qi) Class.forName("com.applovin.exoplayer2.ext.flac.LibflacAudioRenderer").getConstructor(Handler.class, q1.class, r1.class).newInstance(handler, q1Var, r1Var));
|
|
pc.c(str, "Loaded LibflacAudioRenderer.");
|
|
} catch (ClassNotFoundException unused5) {
|
|
i2 = i3;
|
|
i3 = i2;
|
|
arrayList.add(i3, (qi) Class.forName("com.applovin.exoplayer2.ext.ffmpeg.FfmpegAudioRenderer").getConstructor(Handler.class, q1.class, r1.class).newInstance(handler, q1Var, r1Var));
|
|
pc.c(str, "Loaded FfmpegAudioRenderer.");
|
|
}
|
|
try {
|
|
arrayList.add(i3, (qi) Class.forName("com.applovin.exoplayer2.ext.ffmpeg.FfmpegAudioRenderer").getConstructor(Handler.class, q1.class, r1.class).newInstance(handler, q1Var, r1Var));
|
|
pc.c(str, "Loaded FfmpegAudioRenderer.");
|
|
} catch (ClassNotFoundException unused6) {
|
|
} catch (Exception e) {
|
|
throw new RuntimeException("Error instantiating FFmpeg extension", e);
|
|
}
|
|
} catch (Exception e2) {
|
|
throw new RuntimeException("Error instantiating FLAC extension", e2);
|
|
}
|
|
} catch (Exception e3) {
|
|
throw new RuntimeException("Error instantiating Opus extension", e3);
|
|
}
|
|
}
|
|
|
|
public void a(Context context, int i, ArrayList arrayList) {
|
|
arrayList.add(new w2());
|
|
}
|
|
|
|
public void a(Context context, ff ffVar, Looper looper, int i, ArrayList arrayList) {
|
|
arrayList.add(new gf(ffVar, looper));
|
|
}
|
|
|
|
public void a(Context context, ao aoVar, Looper looper, int i, ArrayList arrayList) {
|
|
arrayList.add(new bo(aoVar, looper));
|
|
}
|
|
|
|
public void a(Context context, int i, md mdVar, boolean z, Handler handler, wq wqVar, long j, ArrayList arrayList) {
|
|
int i2;
|
|
int i3;
|
|
pd pdVar = new pd(context, mdVar, j, z, handler, wqVar, 50);
|
|
pdVar.a(this.f);
|
|
pdVar.b(this.g);
|
|
pdVar.c(this.h);
|
|
arrayList.add(pdVar);
|
|
if (i == 0) {
|
|
return;
|
|
}
|
|
int size = arrayList.size();
|
|
if (i == 2) {
|
|
size--;
|
|
}
|
|
try {
|
|
try {
|
|
i2 = size + 1;
|
|
try {
|
|
arrayList.add(size, (qi) Class.forName("com.applovin.exoplayer2.ext.vp9.LibvpxVideoRenderer").getConstructor(Long.TYPE, Handler.class, wq.class, Integer.TYPE).newInstance(Long.valueOf(j), handler, wqVar, 50));
|
|
pc.c("DefaultRenderersFactory", "Loaded LibvpxVideoRenderer.");
|
|
} catch (ClassNotFoundException unused) {
|
|
size = i2;
|
|
i2 = size;
|
|
try {
|
|
i3 = i2 + 1;
|
|
try {
|
|
arrayList.add(i2, (qi) Class.forName("com.applovin.exoplayer2.ext.av1.Libgav1VideoRenderer").getConstructor(Long.TYPE, Handler.class, wq.class, Integer.TYPE).newInstance(Long.valueOf(j), handler, wqVar, 50));
|
|
pc.c("DefaultRenderersFactory", "Loaded Libgav1VideoRenderer.");
|
|
} catch (ClassNotFoundException unused2) {
|
|
i2 = i3;
|
|
i3 = i2;
|
|
arrayList.add(i3, (qi) Class.forName("com.applovin.exoplayer2.ext.ffmpeg.FfmpegVideoRenderer").getConstructor(Long.TYPE, Handler.class, wq.class, Integer.TYPE).newInstance(Long.valueOf(j), handler, wqVar, 50));
|
|
pc.c("DefaultRenderersFactory", "Loaded FfmpegVideoRenderer.");
|
|
}
|
|
} catch (ClassNotFoundException unused3) {
|
|
}
|
|
arrayList.add(i3, (qi) Class.forName("com.applovin.exoplayer2.ext.ffmpeg.FfmpegVideoRenderer").getConstructor(Long.TYPE, Handler.class, wq.class, Integer.TYPE).newInstance(Long.valueOf(j), handler, wqVar, 50));
|
|
pc.c("DefaultRenderersFactory", "Loaded FfmpegVideoRenderer.");
|
|
}
|
|
} catch (Exception e) {
|
|
throw new RuntimeException("Error instantiating VP9 extension", e);
|
|
}
|
|
} catch (ClassNotFoundException unused4) {
|
|
}
|
|
try {
|
|
i3 = i2 + 1;
|
|
arrayList.add(i2, (qi) Class.forName("com.applovin.exoplayer2.ext.av1.Libgav1VideoRenderer").getConstructor(Long.TYPE, Handler.class, wq.class, Integer.TYPE).newInstance(Long.valueOf(j), handler, wqVar, 50));
|
|
pc.c("DefaultRenderersFactory", "Loaded Libgav1VideoRenderer.");
|
|
try {
|
|
arrayList.add(i3, (qi) Class.forName("com.applovin.exoplayer2.ext.ffmpeg.FfmpegVideoRenderer").getConstructor(Long.TYPE, Handler.class, wq.class, Integer.TYPE).newInstance(Long.valueOf(j), handler, wqVar, 50));
|
|
pc.c("DefaultRenderersFactory", "Loaded FfmpegVideoRenderer.");
|
|
} catch (ClassNotFoundException unused5) {
|
|
} catch (Exception e2) {
|
|
throw new RuntimeException("Error instantiating FFmpeg extension", e2);
|
|
}
|
|
} catch (Exception e3) {
|
|
throw new RuntimeException("Error instantiating AV1 extension", e3);
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.impl.ti
|
|
public qi[] a(Handler handler, wq wqVar, q1 q1Var, ao aoVar, ff ffVar) {
|
|
ArrayList arrayList = new ArrayList();
|
|
a(this.a, this.b, this.e, this.d, handler, wqVar, this.c, arrayList);
|
|
r1 a = a(this.a, this.i, this.j, this.k);
|
|
if (a != null) {
|
|
a(this.a, this.b, this.e, this.d, a, handler, q1Var, arrayList);
|
|
}
|
|
a(this.a, aoVar, handler.getLooper(), this.b, arrayList);
|
|
a(this.a, ffVar, handler.getLooper(), this.b, arrayList);
|
|
a(this.a, this.b, arrayList);
|
|
a(this.a, handler, this.b, arrayList);
|
|
return (qi[]) arrayList.toArray(new qi[0]);
|
|
}
|
|
|
|
public r1 a(Context context, boolean z, boolean z2, boolean z3) {
|
|
return new s5(n1.a(context), new s5.d(new p1[0]), z, z2, z3 ? 1 : 0);
|
|
}
|
|
}
|