Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
package com.fyber.inneractive.sdk.cache.session;
import java.util.HashMap;
/* loaded from: classes2.dex */
public final class a extends HashMap<com.fyber.inneractive.sdk.cache.session.enums.b, h> {
public final /* synthetic */ int a = 25;
public a() {
for (com.fyber.inneractive.sdk.cache.session.enums.b bVar : com.fyber.inneractive.sdk.cache.session.enums.b.values()) {
if (bVar != com.fyber.inneractive.sdk.cache.session.enums.b.NONE) {
put(bVar, new h(this.a));
}
}
}
}

View File

@@ -0,0 +1,107 @@
package com.fyber.inneractive.sdk.cache.session;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public final class b implements Runnable {
public final /* synthetic */ d a;
public class a implements Runnable {
public final /* synthetic */ JSONObject a;
public a(JSONObject jSONObject) {
this.a = jSONObject;
}
/* JADX WARN: Removed duplicated region for block: B:64:0x0115 */
/* JADX WARN: Removed duplicated region for block: B:67:0x0118 A[SYNTHETIC] */
@Override // java.lang.Runnable
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void run() {
/*
Method dump skipped, instructions count: 343
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.fyber.inneractive.sdk.cache.session.b.a.run():void");
}
}
public b(d dVar) {
this.a = dVar;
}
/* JADX WARN: Removed duplicated region for block: B:12:0x005b */
/* JADX WARN: Removed duplicated region for block: B:15:0x0036 A[EXC_TOP_SPLITTER, SYNTHETIC] */
@Override // java.lang.Runnable
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void run() {
/*
r7 = this;
android.app.Application r0 = com.fyber.inneractive.sdk.util.o.a
java.lang.String r1 = "session_details.json"
r2 = 0
java.io.FileInputStream r3 = r0.openFileInput(r1) // Catch: java.lang.Throwable -> L22
int r4 = r3.available() // Catch: java.lang.Throwable -> L23
byte[] r5 = new byte[r4] // Catch: java.lang.Throwable -> L23
int r6 = r3.read(r5) // Catch: java.lang.Throwable -> L23
if (r6 != r4) goto L1d
java.lang.String r4 = new java.lang.String // Catch: java.lang.Throwable -> L23
java.lang.String r6 = "UTF-8"
r4.<init>(r5, r6) // Catch: java.lang.Throwable -> L23
goto L1e
L1d:
r4 = r2
L1e:
com.fyber.inneractive.sdk.util.t.a(r3)
goto L30
L22:
r3 = r2
L23:
java.lang.String r4 = "readFileFromContext failed reading %s"
java.lang.Object[] r5 = new java.lang.Object[]{r1} // Catch: java.lang.Throwable -> L61
com.fyber.inneractive.sdk.util.IAlog.a(r4, r5) // Catch: java.lang.Throwable -> L61
com.fyber.inneractive.sdk.util.t.a(r3)
r4 = r2
L30:
boolean r3 = android.text.TextUtils.isEmpty(r4)
if (r3 != 0) goto L5b
org.json.JSONObject r3 = new org.json.JSONObject // Catch: java.lang.Throwable -> L3d
r3.<init>(r4) // Catch: java.lang.Throwable -> L3d
r2 = r3
goto L45
L3d:
r3 = 0
java.lang.Object[] r3 = new java.lang.Object[r3]
java.lang.String r4 = "Failed parsing SessionCache"
com.fyber.inneractive.sdk.util.IAlog.f(r4, r3)
L45:
if (r2 == 0) goto L52
android.os.Handler r0 = com.fyber.inneractive.sdk.util.p.b
com.fyber.inneractive.sdk.cache.session.b$a r1 = new com.fyber.inneractive.sdk.cache.session.b$a
r1.<init>(r2)
r0.post(r1)
goto L60
L52:
r0.deleteFile(r1)
com.fyber.inneractive.sdk.cache.session.d r0 = r7.a
r0.getClass()
goto L60
L5b:
com.fyber.inneractive.sdk.cache.session.d r0 = r7.a
r0.getClass()
L60:
return
L61:
r0 = move-exception
com.fyber.inneractive.sdk.util.t.a(r3)
throw r0
*/
throw new UnsupportedOperationException("Method not decompiled: com.fyber.inneractive.sdk.cache.session.b.run():void");
}
}

View File

@@ -0,0 +1,49 @@
package com.fyber.inneractive.sdk.cache.session;
import com.fyber.inneractive.sdk.cache.session.e;
import com.fyber.inneractive.sdk.util.o;
import java.io.UnsupportedEncodingException;
/* loaded from: classes2.dex */
public final class c implements Runnable {
public final /* synthetic */ com.fyber.inneractive.sdk.cache.session.enums.a a;
public final /* synthetic */ com.fyber.inneractive.sdk.cache.session.enums.b b;
public final /* synthetic */ d c;
public c(d dVar, com.fyber.inneractive.sdk.cache.session.enums.a aVar, com.fyber.inneractive.sdk.cache.session.enums.b bVar) {
this.c = dVar;
this.a = aVar;
this.b = bVar;
}
@Override // java.lang.Runnable
public final void run() {
synchronized (this.c.c) {
try {
com.fyber.inneractive.sdk.cache.session.enums.a aVar = this.a;
if (aVar != com.fyber.inneractive.sdk.cache.session.enums.a.NEW_SESSION) {
e eVar = this.c.a.a.get(this.b);
if (eVar != null) {
int i = e.a.a[aVar.ordinal()];
if (i == 1) {
eVar.b++;
} else if (i == 2) {
eVar.c++;
} else if (i == 3) {
eVar.a++;
}
}
} else {
this.c.a = new f();
}
try {
o.a(o.a, d.a(this.c).toString().getBytes("UTF-8"));
} catch (UnsupportedEncodingException unused) {
}
this.c.getClass();
} catch (Throwable th) {
throw th;
}
}
}
}

View File

@@ -0,0 +1,46 @@
package com.fyber.inneractive.sdk.cache.session;
import java.util.Iterator;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public final class d {
public f a = new f();
public final Object c = new Object();
public final Object d = new Object();
public final a b = new a();
public static JSONObject a(d dVar) {
dVar.getClass();
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put("currentSession", dVar.a.a());
for (Map.Entry<com.fyber.inneractive.sdk.cache.session.enums.b, h> entry : dVar.b.entrySet()) {
JSONArray jSONArray = new JSONArray();
com.fyber.inneractive.sdk.cache.session.enums.b key = entry.getKey();
Iterator<e> it = entry.getValue().iterator();
while (it.hasNext()) {
jSONArray.put(it.next().a(true, true));
}
jSONObject.put(key.name(), jSONArray);
}
} catch (Exception unused) {
}
return jSONObject;
}
public final void a(com.fyber.inneractive.sdk.cache.session.enums.b bVar, e eVar) {
synchronized (this.d) {
try {
h hVar = this.b.get(bVar);
if (hVar != null) {
hVar.add(eVar);
}
} catch (Throwable th) {
throw th;
}
}
}
}

View File

@@ -0,0 +1,60 @@
package com.fyber.inneractive.sdk.cache.session;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public final class e {
public int a;
public int b;
public int c;
public final long d;
public static /* synthetic */ class a {
public static final /* synthetic */ int[] a;
static {
int[] iArr = new int[com.fyber.inneractive.sdk.cache.session.enums.a.values().length];
a = iArr;
try {
iArr[com.fyber.inneractive.sdk.cache.session.enums.a.CLICK.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
a[com.fyber.inneractive.sdk.cache.session.enums.a.COMPLETION.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
a[com.fyber.inneractive.sdk.cache.session.enums.a.IMPRESSION.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
}
}
public e() {
this(0, 0, 0, System.currentTimeMillis());
}
public final JSONObject a(boolean z, boolean z2) {
JSONObject jSONObject = new JSONObject();
if (z) {
try {
jSONObject.put("time", this.d);
} catch (JSONException unused) {
}
}
jSONObject.put("imp", this.a);
if (z2) {
jSONObject.put("com", this.c);
}
jSONObject.put("cli", this.b);
return jSONObject;
}
public e(int i, int i2, int i3, long j) {
this.d = j;
this.a = i;
this.b = i2;
this.c = i3;
}
}

View File

@@ -0,0 +1,9 @@
package com.fyber.inneractive.sdk.cache.session.enums;
/* loaded from: classes2.dex */
public enum a {
IMPRESSION,
CLICK,
COMPLETION,
NEW_SESSION
}

View File

@@ -0,0 +1,93 @@
package com.fyber.inneractive.sdk.cache.session.enums;
import com.fyber.inneractive.sdk.config.enums.UnitDisplayType;
/* JADX WARN: Enum visitor error
jadx.core.utils.exceptions.JadxRuntimeException: Init of enum field 'REWARDED_VIDEO' uses external variables
at jadx.core.dex.visitors.EnumVisitor.createEnumFieldByConstructor(EnumVisitor.java:451)
at jadx.core.dex.visitors.EnumVisitor.processEnumFieldByRegister(EnumVisitor.java:395)
at jadx.core.dex.visitors.EnumVisitor.extractEnumFieldsFromFilledArray(EnumVisitor.java:324)
at jadx.core.dex.visitors.EnumVisitor.extractEnumFieldsFromInsn(EnumVisitor.java:262)
at jadx.core.dex.visitors.EnumVisitor.convertToEnum(EnumVisitor.java:151)
at jadx.core.dex.visitors.EnumVisitor.visit(EnumVisitor.java:100)
*/
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
/* loaded from: classes2.dex */
public final class b {
private static final /* synthetic */ b[] $VALUES;
public static final b BANNER_DISPLAY;
public static final b INTERSTITIAL_DISPLAY;
public static final b INTERSTITIAL_VIDEO;
public static final b NONE;
public static final b RECTANGLE_DISPLAY;
public static final b REWARDED_DISPLAY;
public static final b REWARDED_VIDEO;
private boolean mShouldCountCompletion;
private UnitDisplayType mType;
public static /* synthetic */ class a {
public static final /* synthetic */ int[] a;
static {
int[] iArr = new int[UnitDisplayType.values().length];
a = iArr;
try {
iArr[UnitDisplayType.REWARDED.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
a[UnitDisplayType.MRECT.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
a[UnitDisplayType.BANNER.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
a[UnitDisplayType.INTERSTITIAL.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
}
}
static {
UnitDisplayType unitDisplayType = UnitDisplayType.REWARDED;
b bVar = new b("REWARDED_VIDEO", 0, unitDisplayType, true);
REWARDED_VIDEO = bVar;
UnitDisplayType unitDisplayType2 = UnitDisplayType.INTERSTITIAL;
b bVar2 = new b("INTERSTITIAL_VIDEO", 1, unitDisplayType2, true);
INTERSTITIAL_VIDEO = bVar2;
b bVar3 = new b("RECTANGLE_DISPLAY", 2, UnitDisplayType.MRECT, false);
RECTANGLE_DISPLAY = bVar3;
b bVar4 = new b("REWARDED_DISPLAY", 3, unitDisplayType, true);
REWARDED_DISPLAY = bVar4;
b bVar5 = new b("BANNER_DISPLAY", 4, UnitDisplayType.BANNER, false);
BANNER_DISPLAY = bVar5;
b bVar6 = new b("INTERSTITIAL_DISPLAY", 5, unitDisplayType2, false);
INTERSTITIAL_DISPLAY = bVar6;
b bVar7 = new b("NONE", 6, UnitDisplayType.DEFAULT, false);
NONE = bVar7;
$VALUES = new b[]{bVar, bVar2, bVar3, bVar4, bVar5, bVar6, bVar7};
}
public b(String str, int i, UnitDisplayType unitDisplayType, boolean z) {
this.mType = unitDisplayType;
this.mShouldCountCompletion = z;
}
public static b valueOf(String str) {
return (b) Enum.valueOf(b.class, str);
}
public static b[] values() {
return (b[]) $VALUES.clone();
}
public final UnitDisplayType e() {
return this.mType;
}
public final boolean f() {
return this.mShouldCountCompletion;
}
}

View File

@@ -0,0 +1,42 @@
package com.fyber.inneractive.sdk.cache.session;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public final class f {
public final a a = new a();
public class a extends HashMap<com.fyber.inneractive.sdk.cache.session.enums.b, e> {
public a() {
for (com.fyber.inneractive.sdk.cache.session.enums.b bVar : com.fyber.inneractive.sdk.cache.session.enums.b.values()) {
if (bVar != com.fyber.inneractive.sdk.cache.session.enums.b.NONE) {
put(bVar, new e());
}
}
}
}
public final JSONObject a() {
JSONObject jSONObject = new JSONObject();
try {
JSONArray jSONArray = new JSONArray();
for (Map.Entry<com.fyber.inneractive.sdk.cache.session.enums.b, e> entry : this.a.entrySet()) {
com.fyber.inneractive.sdk.cache.session.enums.b key = entry.getKey();
try {
JSONObject jSONObject2 = new JSONObject();
jSONObject2.put("type", key.e().value());
jSONObject2.put("subType", key.name().toLowerCase().contains("video") ? "video" : "display");
jSONObject2.put("session_data", entry.getValue().a(true, true));
jSONArray.put(jSONObject2);
} catch (Exception unused) {
}
}
jSONObject.put("content", jSONArray);
} catch (Exception unused2) {
}
return jSONObject;
}
}

View File

@@ -0,0 +1,16 @@
package com.fyber.inneractive.sdk.cache.session;
import java.util.Comparator;
/* loaded from: classes2.dex */
public final class g implements Comparator<e> {
@Override // java.util.Comparator
public final int compare(e eVar, e eVar2) {
e eVar3 = eVar;
e eVar4 = eVar2;
if (eVar3 == null || eVar4 == null) {
return 0;
}
return eVar4.d - eVar3.d > 0 ? 1 : -1;
}
}

View File

@@ -0,0 +1,28 @@
package com.fyber.inneractive.sdk.cache.session;
import java.util.PriorityQueue;
/* loaded from: classes2.dex */
public final class h extends PriorityQueue<e> {
public final int a;
public h(int i) {
super(1, new i());
this.a = i;
}
@Override // java.util.PriorityQueue, java.util.AbstractQueue, java.util.AbstractCollection, java.util.Collection, java.util.Queue
/* renamed from: a, reason: merged with bridge method [inline-methods] */
public final boolean add(e eVar) {
boolean add = super.add(eVar);
if (super.size() > this.a) {
poll();
}
return add;
}
@Override // java.util.PriorityQueue, java.util.AbstractCollection, java.util.Collection
public final int size() {
return super.size();
}
}

View File

@@ -0,0 +1,16 @@
package com.fyber.inneractive.sdk.cache.session;
import java.util.Comparator;
/* loaded from: classes2.dex */
public final class i implements Comparator<e> {
@Override // java.util.Comparator
public final int compare(e eVar, e eVar2) {
e eVar3 = eVar;
e eVar4 = eVar2;
if (eVar3 == null || eVar4 == null) {
return 0;
}
return eVar3.d < eVar4.d ? -1 : 1;
}
}