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,27 @@
package com.fyber.inneractive.sdk.response;
/* loaded from: classes2.dex */
public enum a {
RETURNED_ADTYPE_HTML("RETURNED_ADTYPE_HTML"),
RETURNED_ADTYPE_MRAID("RETURNED_ADTYPE_MRAID"),
RETURNED_ADTYPE_VAST("RETURNED_ADTYPE_VAST"),
RETURNED_ADTYPE_HTML5_VIDEO("RETURNED_ADTYPE_HTML5_VIDEO"),
RETURNED_ADTYPE_NATIVE("RETURNED_ADTYPE_NATIVE"),
RETURNED_ADTYPE_PMN("RETURNED_ADTYPE_PMN"),
RETURNED_ADTYPE_MOBILE_ADS("RETURNED_ADTYPE_MOBILE_ADS");
private int value;
a(String str) {
this.value = r2;
}
public static a a(int i) {
for (a aVar : values()) {
if (aVar.value == i) {
return aVar;
}
}
return null;
}
}

View File

@@ -0,0 +1,51 @@
package com.fyber.inneractive.sdk.response;
import android.text.TextUtils;
import com.fyber.inneractive.sdk.config.e0;
import com.fyber.inneractive.sdk.util.IAlog;
/* loaded from: classes2.dex */
public abstract class b {
public e a;
public String b;
public j c;
public boolean d = true;
public abstract e a();
public abstract void a(String str, e0 e0Var) throws Exception;
public boolean b() {
return !(this instanceof com.fyber.inneractive.sdk.dv.e);
}
public abstract void c();
public final e a(String str) throws Exception {
this.d = str != null;
e eVar = this.a;
eVar.getClass();
eVar.c = System.currentTimeMillis();
this.c.a(this);
String a = this.c.a();
this.a.h = a;
e0 a2 = com.fyber.inneractive.sdk.config.a.a(this.b);
IAlog.a("%sGot unit config for unitId: %s from config manager", IAlog.a(this), this.b);
IAlog.a("%s%s", IAlog.a(this), a2);
if (this.d) {
a(str, a2);
} else if (b()) {
h hVar = new h(a);
if (hVar.a) {
String str2 = hVar.b;
if (str2 == null || TextUtils.isEmpty(str2.trim())) {
throw new Exception("empty ad content detected. failing fast.");
}
a(str2, a2);
}
} else {
a(a, a2);
}
return this.a;
}
}

View File

@@ -0,0 +1,51 @@
package com.fyber.inneractive.sdk.response;
import android.text.TextUtils;
import com.fyber.inneractive.sdk.config.e0;
import com.fyber.inneractive.sdk.util.f0;
import com.fyber.inneractive.sdk.util.o;
import java.io.IOException;
import java.io.StringWriter;
/* loaded from: classes2.dex */
public final class c extends b {
@Override // com.fyber.inneractive.sdk.response.b
public final void a(String str, e0 e0Var) throws IOException {
f fVar = (f) this.a;
if (str == null) {
str = null;
} else {
f0 f0Var = f0.g;
f0Var.getClass();
int indexOf = str.indexOf(38);
if (indexOf >= 0) {
StringWriter stringWriter = new StringWriter((int) ((str.length() * 0.1d) + str.length()));
try {
f0Var.a(stringWriter, str, indexOf);
} catch (IOException unused) {
}
str = stringWriter.toString();
}
}
int i = com.fyber.inneractive.sdk.config.g.a;
String property = System.getProperty("ia.testEnvironmentConfiguration.assetResponse");
if (!TextUtils.isEmpty(property)) {
String c = o.c(property);
if (!TextUtils.isEmpty(c)) {
str = c;
}
}
fVar.K = str;
}
@Override // com.fyber.inneractive.sdk.response.b
public final void c() {
}
@Override // com.fyber.inneractive.sdk.response.b
public final e a() {
f fVar = new f();
this.a = fVar;
return fVar;
}
}

View File

@@ -0,0 +1,223 @@
package com.fyber.inneractive.sdk.response;
import android.text.TextUtils;
import com.fyber.inneractive.sdk.config.IAConfigManager;
import com.fyber.inneractive.sdk.config.e0;
import com.fyber.inneractive.sdk.config.enums.UnitDisplayType;
import com.fyber.inneractive.sdk.external.InneractiveAdRequest;
import com.fyber.inneractive.sdk.model.vast.q;
import com.fyber.inneractive.sdk.model.vast.t;
import com.fyber.inneractive.sdk.model.vast.w;
import com.fyber.inneractive.sdk.model.vast.x;
import com.fyber.inneractive.sdk.network.r;
import com.fyber.inneractive.sdk.network.s;
import com.fyber.inneractive.sdk.util.IAlog;
import com.fyber.inneractive.sdk.util.a0;
import com.fyber.inneractive.sdk.util.s;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import javax.xml.parsers.DocumentBuilderFactory;
import org.json.JSONArray;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.xml.sax.InputSource;
/* loaded from: classes2.dex */
public final class d extends b {
public g e;
public e0 f;
public com.fyber.inneractive.sdk.model.vast.e g;
public final ArrayList h = new ArrayList();
public int i;
public w j;
@Override // com.fyber.inneractive.sdk.response.b
public final e a() {
g gVar = new g();
this.a = gVar;
this.e = gVar;
return gVar;
}
@Override // com.fyber.inneractive.sdk.response.b
public final void c() {
}
@Override // com.fyber.inneractive.sdk.response.b
public final void a(String str, e0 e0Var) throws Exception {
this.f = e0Var;
if (e0Var != null && e0Var.f != null) {
this.e.K = System.currentTimeMillis();
this.e.A = this.f.b;
this.i = IAConfigManager.L.i.b;
try {
a(str, 0);
a(this.g, this.h);
return;
} catch (com.fyber.inneractive.sdk.flow.vast.i e) {
this.e.i = e.getMessage();
this.e.j = e.getCause().getMessage();
return;
} catch (InterruptedException e2) {
throw e2;
} catch (Exception e3) {
this.e.j = String.format("%s", e3.getMessage());
g gVar = this.e;
gVar.i = "VastErrorInvalidFile";
gVar.x = e3;
if (IAlog.a == 2) {
e3.printStackTrace();
return;
}
return;
}
}
this.a.i = "ErrorConfigurationMismatch";
}
public final void a(String str, int i) throws com.fyber.inneractive.sdk.flow.vast.i, Exception {
t tVar;
try {
String replaceFirst = str.replaceFirst("<\\?.*\\?>", "");
DocumentBuilderFactory newInstance = DocumentBuilderFactory.newInstance();
newInstance.setCoalescing(true);
Document parse = newInstance.newDocumentBuilder().parse(new InputSource(new StringReader(replaceFirst)));
if (parse != null) {
Node firstChild = parse.getFirstChild();
if (firstChild.getNodeName().equalsIgnoreCase("VAST")) {
tVar = t.a(firstChild);
} else {
IAlog.a("XML does not contain a VAST tag as its first child!", new Object[0]);
throw new Exception("XML does not contain a VAST tag as its first child!");
}
} else {
tVar = null;
}
try {
if (this.j == null) {
this.j = new w(tVar.a);
} else {
w wVar = new w(tVar.a);
if (wVar.compareTo(this.j) >= 0) {
this.j = wVar;
}
}
} catch (w.a unused) {
}
ArrayList arrayList = tVar.b;
if (arrayList != null && !arrayList.isEmpty()) {
com.fyber.inneractive.sdk.model.vast.e eVar = (com.fyber.inneractive.sdk.model.vast.e) arrayList.get(0);
x xVar = eVar.b;
if (xVar != null) {
IAlog.a("Vast response parser: found VAST wrapper #%d", Integer.valueOf(this.h.size()));
int size = this.h.size();
int i2 = this.i;
if (size < i2) {
this.h.add(eVar);
String str2 = xVar.h;
if (!TextUtils.isEmpty(str2)) {
if (a0.f(str2)) {
String a = s.a(str2, 3000, 5000);
if (TextUtils.isEmpty(a)) {
throw new com.fyber.inneractive.sdk.flow.vast.i("VastErrorInvalidFile", "Failed getting data from ad tag URI");
}
int i3 = this.i - i;
if (i3 > 0) {
xVar.f = i3;
this.e.P.put(str2, a);
a(a, i + 1);
return;
}
throw new com.fyber.inneractive.sdk.flow.vast.i("VastErrorInvalidFile", "Invalid level for wrapper");
}
IAlog.a("Vast response parser: Unsecure Wrapper URL. Aborting! url: %s", str2);
throw new com.fyber.inneractive.sdk.flow.vast.i("VastErrorUnsecure", "Unsecure ad tag URI for wrapper");
}
IAlog.a("Vast response parser: found an empty tag uri in wrapper! aborting!", new Object[0]);
throw new com.fyber.inneractive.sdk.flow.vast.i("VastErrorInvalidFile", "No ad tag URI for wrapper");
}
IAlog.a("Vast response parser: too many vast wrappers! Only %d allowed. stopping", Integer.valueOf(i2));
throw new com.fyber.inneractive.sdk.flow.vast.i("VastErrorTooManyWrappers", "More than " + this.i + " found");
}
if (eVar.c == null) {
throw new com.fyber.inneractive.sdk.flow.vast.i("VastErrorInvalidFile", "A top level ad with no wrapper on inline found!");
}
this.g = eVar;
return;
}
IAlog.a("Vast response parser: no ads found in model. aborting", new Object[0]);
throw new com.fyber.inneractive.sdk.flow.vast.i("ErrorNoMediaFiles", "No ads found in model. Empty Vast?");
} catch (Exception e) {
IAlog.a("Failed parsing Vast file! parsing error = %s", e.getMessage());
throw new com.fyber.inneractive.sdk.flow.vast.i("VastErrorInvalidFile", e.getMessage());
}
}
public final void a(com.fyber.inneractive.sdk.model.vast.e eVar, ArrayList arrayList) throws com.fyber.inneractive.sdk.flow.vast.i {
com.fyber.inneractive.sdk.flow.vast.d dVar = new com.fyber.inneractive.sdk.flow.vast.d();
int intValue = this.f.f.c.intValue();
int intValue2 = this.f.f.b.intValue();
int intValue3 = this.f.f.g.intValue();
dVar.a = intValue;
dVar.b = intValue2;
dVar.c = intValue3;
if (UnitDisplayType.VERTICAL.equals(this.f.f.j)) {
dVar.d = true;
}
if (this.f.f.k.contains(2)) {
dVar.e = true;
}
try {
w wVar = this.j;
this.e.L = dVar.a(eVar, arrayList, wVar != null ? wVar.b : "");
} catch (com.fyber.inneractive.sdk.flow.vast.i e) {
g gVar = this.e;
gVar.getClass();
gVar.i = e.getMessage();
}
com.fyber.inneractive.sdk.model.vast.b bVar = this.e.L;
if (bVar != null) {
String str = bVar.o;
if (!TextUtils.isEmpty(str) && a0.f(str)) {
new s.a(r.VAST_EVENT_DVC_DETECTED, (InneractiveAdRequest) null, this.a, (JSONArray) null).a("templateURL", str).a((String) null);
} else if (!TextUtils.isEmpty(str)) {
this.e.L.o = "";
com.fyber.inneractive.sdk.player.ui.remote.e.a(com.fyber.inneractive.sdk.web.remoteui.a.SSL_ERROR, (InneractiveAdRequest) null, this.a, "Unsecured URL", str);
}
}
g gVar2 = this.e;
LinkedHashMap linkedHashMap = dVar.f;
if (linkedHashMap != null) {
gVar2.M.putAll(linkedHashMap);
} else {
gVar2.getClass();
}
g gVar3 = this.e;
ArrayList arrayList2 = dVar.g;
if (arrayList2 != null) {
gVar3.N.addAll(arrayList2);
} else {
gVar3.getClass();
}
g gVar4 = this.e;
ArrayList arrayList3 = dVar.j;
if (arrayList3 != null) {
gVar4.O.addAll(arrayList3);
} else {
gVar4.getClass();
}
if (IAlog.a == 2) {
LinkedHashMap linkedHashMap2 = dVar.f;
if (linkedHashMap2.size() > 0) {
IAlog.e(" VParser: Unsupported media files:", new Object[0]);
for (q qVar : linkedHashMap2.keySet()) {
IAlog.e("VParser: %s", qVar);
IAlog.e("VParser: reason = %s", linkedHashMap2.get(qVar));
}
return;
}
IAlog.e("VParser: Unsupported media files: none", new Object[0]);
}
}
}

View File

@@ -0,0 +1,69 @@
package com.fyber.inneractive.sdk.response;
import com.fyber.inneractive.sdk.config.enums.UnitDisplayType;
import com.fyber.inneractive.sdk.config.global.s;
import com.fyber.inneractive.sdk.external.ImpressionData;
import com.fyber.inneractive.sdk.external.InneractiveAdRequest;
import com.fyber.inneractive.sdk.external.InneractiveErrorCode;
import com.fyber.inneractive.sdk.ignite.l;
import java.util.Map;
import java.util.concurrent.TimeUnit;
/* loaded from: classes2.dex */
public abstract class e {
public String A;
public String C;
public String D;
public String E;
public String G;
public long a;
public long b;
public long c;
public String d;
public int e;
public int f;
public int g;
public String h;
public String i;
public String j;
public String k;
public String l;
public String m;
public UnitDisplayType n;
public String o;
public Map<String, String> p;
public String q;
public ImpressionData r;
public com.fyber.inneractive.sdk.dv.g s;
public String v;
public Exception x;
public String y;
public String z;
public int t = 0;
public float u = -1.0f;
public int w = -1;
public boolean B = false;
public l F = l.NONE;
public boolean H = false;
public long I = 0;
public boolean J = false;
public final UnitDisplayType a() {
return this.n;
}
public abstract InneractiveErrorCode a(InneractiveAdRequest inneractiveAdRequest, s sVar);
public abstract InneractiveErrorCode b();
public final void a(String str) {
long j;
try {
j = Long.parseLong(str);
} catch (NumberFormatException unused) {
j = 20;
}
this.b = j;
this.a = TimeUnit.MINUTES.toMillis(j) + this.c;
}
}

View File

@@ -0,0 +1,20 @@
package com.fyber.inneractive.sdk.response;
import com.fyber.inneractive.sdk.config.global.s;
import com.fyber.inneractive.sdk.external.InneractiveAdRequest;
import com.fyber.inneractive.sdk.external.InneractiveErrorCode;
/* loaded from: classes2.dex */
public final class f extends e {
public String K;
@Override // com.fyber.inneractive.sdk.response.e
public final InneractiveErrorCode a(InneractiveAdRequest inneractiveAdRequest, s sVar) {
return null;
}
@Override // com.fyber.inneractive.sdk.response.e
public final InneractiveErrorCode b() {
return null;
}
}

View File

@@ -0,0 +1,35 @@
package com.fyber.inneractive.sdk.response;
import com.fyber.inneractive.sdk.config.global.s;
import com.fyber.inneractive.sdk.external.InneractiveAdRequest;
import com.fyber.inneractive.sdk.external.InneractiveErrorCode;
import java.util.ArrayList;
import java.util.LinkedHashMap;
/* loaded from: classes2.dex */
public final class g extends e {
public long K;
public com.fyber.inneractive.sdk.model.vast.b L;
public final ArrayList O = new ArrayList();
public final LinkedHashMap M = new LinkedHashMap();
public final ArrayList N = new ArrayList();
public final LinkedHashMap<String, String> P = new LinkedHashMap<>();
@Override // com.fyber.inneractive.sdk.response.e
public final InneractiveErrorCode a(InneractiveAdRequest inneractiveAdRequest, s sVar) {
return com.fyber.inneractive.sdk.flow.vast.k.a(inneractiveAdRequest, this, sVar);
}
@Override // com.fyber.inneractive.sdk.response.e
public final InneractiveErrorCode b() {
return com.fyber.inneractive.sdk.flow.vast.k.a(null, this, null);
}
public final ArrayList c() {
return this.O;
}
public final com.fyber.inneractive.sdk.model.vast.b d() {
return this.L;
}
}

View File

@@ -0,0 +1,84 @@
package com.fyber.inneractive.sdk.response;
import android.util.Xml;
import com.fyber.inneractive.sdk.util.IAlog;
import com.fyber.inneractive.sdk.util.f0;
import java.io.IOException;
import java.io.StringReader;
import java.io.StringWriter;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
/* loaded from: classes2.dex */
public final class h {
public final boolean a;
public String b;
public h(String str) throws Exception {
this.a = false;
try {
a(str);
this.a = true;
IAlog.a("parser: Parsing finished. parser is ready", new Object[0]);
} catch (Exception e) {
IAlog.b("Error parsing Ad XML: %s", e.getMessage());
throw e;
}
}
public final void a(String str) throws XmlPullParserException, IOException {
String str2;
IAlog.a("Start reading Response", new Object[0]);
XmlPullParser newPullParser = Xml.newPullParser();
newPullParser.setFeature("http://xmlpull.org/v1/doc/features.html#process-namespaces", false);
newPullParser.setInput(new StringReader(str));
newPullParser.nextTag();
newPullParser.require(2, null, "tns:Response");
while (newPullParser.next() != 3) {
if (newPullParser.getEventType() == 2) {
if (newPullParser.getName().equals("tns:Ad")) {
newPullParser.require(2, null, "tns:Ad");
IAlog.a("Start reading Ad", new Object[0]);
if (newPullParser.next() == 4) {
str2 = newPullParser.getText();
newPullParser.nextTag();
} else {
IAlog.f("No text: %s", newPullParser.getName());
str2 = "";
}
String trim = str2.trim();
IAlog.e("Ad content: %s", trim);
if (trim == null) {
trim = null;
} else {
f0 f0Var = f0.f;
f0Var.getClass();
int indexOf = trim.indexOf(38);
if (indexOf >= 0) {
StringWriter stringWriter = new StringWriter((int) ((trim.length() * 0.1d) + trim.length()));
try {
f0Var.a(stringWriter, trim, indexOf);
} catch (IOException unused) {
}
trim = stringWriter.toString();
}
}
this.b = trim;
} else {
if (newPullParser.getEventType() != 2) {
throw new IllegalStateException();
}
int i = 1;
while (i != 0) {
int next = newPullParser.next();
if (next == 2) {
i++;
} else if (next == 3) {
i--;
}
}
}
}
}
}
}

View File

@@ -0,0 +1,9 @@
package com.fyber.inneractive.sdk.response;
import com.fyber.inneractive.sdk.model.vast.v;
import java.util.List;
/* loaded from: classes2.dex */
public interface i {
List<String> a(v vVar);
}

View File

@@ -0,0 +1,8 @@
package com.fyber.inneractive.sdk.response;
/* loaded from: classes2.dex */
public interface j {
String a();
void a(b bVar);
}

View File

@@ -0,0 +1,45 @@
package com.fyber.inneractive.sdk.response;
import com.fyber.inneractive.sdk.network.m;
import com.fyber.inneractive.sdk.network.n;
import com.fyber.inneractive.sdk.util.IAlog;
import java.util.Map;
/* loaded from: classes2.dex */
public final class k implements j {
public final n a;
public k(n nVar) {
this.a = nVar;
}
/* JADX WARN: Removed duplicated region for block: B:37:0x01d3 */
/* JADX WARN: Removed duplicated region for block: B:40:0x01df */
/* JADX WARN: Removed duplicated region for block: B:46:0x01f5 */
/* JADX WARN: Removed duplicated region for block: B:49:0x0201 */
/* JADX WARN: Removed duplicated region for block: B:52:0x020d */
@Override // com.fyber.inneractive.sdk.response.j
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void a(com.fyber.inneractive.sdk.response.b r31) {
/*
Method dump skipped, instructions count: 554
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.fyber.inneractive.sdk.response.k.a(com.fyber.inneractive.sdk.response.b):void");
}
@Override // com.fyber.inneractive.sdk.response.j
public final String a() {
return this.a.l().toString();
}
public final String a(Map<String, String> map, m mVar) {
String lowerCase = mVar.e().toLowerCase();
String str = map.get(lowerCase);
IAlog.e("%s%s extracted from response header: %s", IAlog.a(this), lowerCase, str);
return str;
}
}