- 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
624 lines
27 KiB
Java
624 lines
27 KiB
Java
package com.fyber.inneractive.sdk.external;
|
|
|
|
import android.app.Application;
|
|
import android.content.BroadcastReceiver;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.content.IntentFilter;
|
|
import android.content.SharedPreferences;
|
|
import android.content.pm.ResolveInfo;
|
|
import android.os.SystemClock;
|
|
import android.text.TextUtils;
|
|
import android.util.Log;
|
|
import com.fyber.inneractive.sdk.config.IAConfigManager;
|
|
import com.fyber.inneractive.sdk.config.d;
|
|
import com.fyber.inneractive.sdk.config.g;
|
|
import com.fyber.inneractive.sdk.config.i0;
|
|
import com.fyber.inneractive.sdk.config.l;
|
|
import com.fyber.inneractive.sdk.config.m;
|
|
import com.fyber.inneractive.sdk.config.n;
|
|
import com.fyber.inneractive.sdk.config.o;
|
|
import com.fyber.inneractive.sdk.config.t;
|
|
import com.fyber.inneractive.sdk.external.OnFyberMarketplaceInitializedListener;
|
|
import com.fyber.inneractive.sdk.factories.a;
|
|
import com.fyber.inneractive.sdk.factories.b;
|
|
import com.fyber.inneractive.sdk.factories.c;
|
|
import com.fyber.inneractive.sdk.ignite.c;
|
|
import com.fyber.inneractive.sdk.ignite.k;
|
|
import com.fyber.inneractive.sdk.logger.FMPLogger;
|
|
import com.fyber.inneractive.sdk.mraid.IAMraidKit;
|
|
import com.fyber.inneractive.sdk.network.g0;
|
|
import com.fyber.inneractive.sdk.network.q;
|
|
import com.fyber.inneractive.sdk.network.r;
|
|
import com.fyber.inneractive.sdk.network.s;
|
|
import com.fyber.inneractive.sdk.response.e;
|
|
import com.fyber.inneractive.sdk.util.IAlog;
|
|
import com.fyber.inneractive.sdk.util.b0;
|
|
import com.fyber.inneractive.sdk.util.o;
|
|
import com.fyber.inneractive.sdk.util.p;
|
|
import com.fyber.inneractive.sdk.util.x;
|
|
import com.fyber.inneractive.sdk.util.y;
|
|
import com.fyber.inneractive.sdk.util.y0;
|
|
import com.fyber.inneractive.sdk.util.z0;
|
|
import com.fyber.inneractive.sdk.video.IAVideoKit;
|
|
import com.fyber.inneractive.sdk.web.d0;
|
|
import com.ironsource.v8;
|
|
import java.util.Arrays;
|
|
import java.util.Collections;
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.Locale;
|
|
import java.util.concurrent.ThreadPoolExecutor;
|
|
import org.json.JSONArray;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class InneractiveAdManager implements m.a {
|
|
public static final String GLOBAL_CONFIG_PARAM_FIRST_INIT_EVENT = "sdk_first_init";
|
|
public static IAConfigManager.OnConfigurationReadyAndValidListener e;
|
|
public volatile Context a;
|
|
public String b;
|
|
public boolean c = false;
|
|
public boolean d;
|
|
|
|
public enum GdprConsentSource {
|
|
Internal,
|
|
External
|
|
}
|
|
|
|
public class a implements IAConfigManager.OnConfigurationReadyAndValidListener {
|
|
public final /* synthetic */ Context a;
|
|
public final /* synthetic */ OnFyberMarketplaceInitializedListener b;
|
|
|
|
public a(Context context, OnFyberMarketplaceInitializedListener onFyberMarketplaceInitializedListener) {
|
|
this.a = context;
|
|
this.b = onFyberMarketplaceInitializedListener;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.config.IAConfigManager.OnConfigurationReadyAndValidListener
|
|
public final void onConfigurationReadyAndValid(IAConfigManager iAConfigManager, boolean z, Exception exc) {
|
|
if (this.a.getApplicationContext() != null) {
|
|
IAConfigManager.removeListener(this);
|
|
InneractiveAdManager.e = null;
|
|
if (z) {
|
|
InneractiveAdManager.a(this.b, OnFyberMarketplaceInitializedListener.FyberInitStatus.SUCCESSFULLY, null);
|
|
} else {
|
|
InneractiveAdManager.a(this.b, exc instanceof InvalidAppIdException ? OnFyberMarketplaceInitializedListener.FyberInitStatus.INVALID_APP_ID : OnFyberMarketplaceInitializedListener.FyberInitStatus.FAILED, exc.getLocalizedMessage());
|
|
}
|
|
if (b.a.a == null || !IAConfigManager.g() || b.a.d) {
|
|
return;
|
|
}
|
|
b.a.d = true;
|
|
new s.a(r.IA_IAB_GDPR_TCF_PURPOSE_1_DISABLED).a((String) null);
|
|
}
|
|
}
|
|
}
|
|
|
|
public static class b {
|
|
public static volatile InneractiveAdManager a = new InneractiveAdManager();
|
|
}
|
|
|
|
public static void a(OnFyberMarketplaceInitializedListener onFyberMarketplaceInitializedListener, OnFyberMarketplaceInitializedListener.FyberInitStatus fyberInitStatus, String str) {
|
|
if (onFyberMarketplaceInitializedListener != null) {
|
|
onFyberMarketplaceInitializedListener.onFyberMarketplaceInitialized(fyberInitStatus);
|
|
}
|
|
if (b.a.a == null || fyberInitStatus == OnFyberMarketplaceInitializedListener.FyberInitStatus.SUCCESSFULLY) {
|
|
return;
|
|
}
|
|
s.a aVar = new s.a(q.FMP_SDK_INIT_FAILED, (InneractiveAdRequest) null, (e) null, (JSONArray) null);
|
|
if (!TextUtils.isEmpty(str)) {
|
|
aVar.a("message", str);
|
|
}
|
|
aVar.a("init_status", fyberInitStatus.name());
|
|
aVar.a((String) null);
|
|
}
|
|
|
|
@Deprecated
|
|
public static boolean areNativeAdsSupportedForOS() {
|
|
return true;
|
|
}
|
|
|
|
public static void clearGdprConsentData() {
|
|
d dVar = IAConfigManager.L.C;
|
|
if (dVar != null) {
|
|
dVar.a();
|
|
} else {
|
|
IAlog.f("clearGdprConsentData() was invoked, but Fyber SDK was not properly initialized", new Object[0]);
|
|
}
|
|
}
|
|
|
|
public static void clearImpressionDataListener() {
|
|
IAConfigManager.L.z.a = null;
|
|
}
|
|
|
|
public static void clearLgpdConsentData() {
|
|
d dVar = IAConfigManager.L.C;
|
|
if (dVar != null) {
|
|
dVar.b();
|
|
} else {
|
|
IAlog.f("clearLgpdConsentData was invoked, but Fyber SDK was not properly initialized", new Object[0]);
|
|
}
|
|
}
|
|
|
|
public static void clearUSPrivacyString() {
|
|
d dVar = IAConfigManager.L.C;
|
|
if (dVar != null) {
|
|
dVar.c();
|
|
}
|
|
}
|
|
|
|
public static void currentAudienceAppliesToCoppa() {
|
|
d dVar = IAConfigManager.L.C;
|
|
if (dVar == null) {
|
|
IAlog.f("currentAudienceAppliesToCoppa was invoked, but Fyber SDK was not properly initialized", new Object[0]);
|
|
} else if (o.a == null) {
|
|
IAlog.f("setCurrentAudienceAppliesToCoppa was invoked, but the Inneractive SDK was not properly initialized, or destroyed.", new Object[0]);
|
|
} else {
|
|
dVar.j = Boolean.TRUE;
|
|
}
|
|
}
|
|
|
|
public static void currentAudienceIsAChild() {
|
|
b.a.c = true;
|
|
}
|
|
|
|
public static void destroy() {
|
|
k kVar;
|
|
IAlog.a("InneractiveAdManager:destroy called", new Object[0]);
|
|
if (b.a.a == null) {
|
|
IAlog.a("InneractiveAdManager:destroy called, but manager is not initialized", new Object[0]);
|
|
return;
|
|
}
|
|
b.a.a = null;
|
|
IAConfigManager.removeListener(e);
|
|
e = null;
|
|
IAConfigManager iAConfigManager = IAConfigManager.L;
|
|
iAConfigManager.z.a = null;
|
|
iAConfigManager.h = false;
|
|
c cVar = iAConfigManager.D;
|
|
if ((!TextUtils.isEmpty(cVar.l)) && (kVar = cVar.p) != null) {
|
|
kVar.destroy();
|
|
cVar.p = null;
|
|
}
|
|
b0.c.a.a();
|
|
y yVar = y.a.a;
|
|
synchronized (yVar) {
|
|
if (yVar.c != null) {
|
|
IAlog.a("%sremoving screen state receiver and destroying singleton", IAlog.a(yVar));
|
|
try {
|
|
yVar.c.unregisterReceiver(yVar.d);
|
|
} catch (Exception unused) {
|
|
}
|
|
yVar.c = null;
|
|
yVar.d = null;
|
|
yVar.a.clear();
|
|
}
|
|
}
|
|
b.a.a.a.clear();
|
|
a.b.a.a.clear();
|
|
c.b.a.a.clear();
|
|
InneractiveAdSpotManager.destroy();
|
|
o.a.a.clear();
|
|
com.fyber.inneractive.sdk.bidder.a aVar = com.fyber.inneractive.sdk.bidder.a.h;
|
|
com.fyber.inneractive.sdk.bidder.e eVar = aVar.d;
|
|
if (eVar != null) {
|
|
try {
|
|
o.a.unregisterReceiver(eVar);
|
|
} catch (Exception unused2) {
|
|
}
|
|
}
|
|
aVar.d = null;
|
|
}
|
|
|
|
public static String getAppId() {
|
|
return IAConfigManager.L.c;
|
|
}
|
|
|
|
@Deprecated
|
|
public static String getDevPlatform() {
|
|
return b.a.b;
|
|
}
|
|
|
|
public static Boolean getGdprConsent() {
|
|
d dVar = IAConfigManager.L.C;
|
|
if (dVar == null) {
|
|
return null;
|
|
}
|
|
if (dVar.a == null) {
|
|
dVar.b = dVar.f();
|
|
}
|
|
if (o.a == null) {
|
|
return null;
|
|
}
|
|
Boolean bool = dVar.a;
|
|
return bool == null ? dVar.b : bool;
|
|
}
|
|
|
|
public static GdprConsentSource getGdprStatusSource() {
|
|
d dVar = IAConfigManager.L.C;
|
|
if (dVar != null) {
|
|
return dVar.f;
|
|
}
|
|
IAlog.f("getGdprStatusSource() was invoked, but Fyber SDK was not properly initialized", new Object[0]);
|
|
return null;
|
|
}
|
|
|
|
public static boolean getMuteVideo() {
|
|
return IAConfigManager.L.k;
|
|
}
|
|
|
|
public static String getUserId() {
|
|
return IAConfigManager.L.C.g;
|
|
}
|
|
|
|
public static InneractiveUserConfig getUserParams() {
|
|
return IAConfigManager.L.j;
|
|
}
|
|
|
|
public static String getVersion() {
|
|
return "8.3.1";
|
|
}
|
|
|
|
public static void initialize(Context context, String str) {
|
|
initialize(context, str, null);
|
|
}
|
|
|
|
@Deprecated
|
|
public static boolean isCurrentDeviceSupportsVideo() {
|
|
return true;
|
|
}
|
|
|
|
public static boolean isCurrentUserAChild() {
|
|
return b.a.c;
|
|
}
|
|
|
|
@Deprecated
|
|
public static void setDevPlatform(String str) {
|
|
b.a.b = str;
|
|
}
|
|
|
|
public static void setGdprConsent(boolean z) {
|
|
setGdprConsent(z, GdprConsentSource.Internal);
|
|
}
|
|
|
|
public static void setGdprConsentString(String str) {
|
|
d dVar = IAConfigManager.L.C;
|
|
if (dVar == null) {
|
|
IAlog.f("setGdprConsentString() was invoked, but Fyber SDK was not properly initialized", new Object[0]);
|
|
return;
|
|
}
|
|
if (o.a == null) {
|
|
IAlog.f("SetGdprConsentString() was invoked, but the Inneractive SDK was not properly initialized, or destroyed.", new Object[0]);
|
|
return;
|
|
}
|
|
dVar.d = str;
|
|
if (dVar.a("IAGdprConsentData", str)) {
|
|
return;
|
|
}
|
|
IAlog.f("SetGdprConsentString() was invoked, but the Inneractive SDK was not properly initialized, destroyed, or data is empty.", new Object[0]);
|
|
}
|
|
|
|
public static void setImpressionDataListener(OnGlobalImpressionDataListener onGlobalImpressionDataListener) {
|
|
IAConfigManager.L.z.a = onGlobalImpressionDataListener;
|
|
}
|
|
|
|
public static void setLgpdConsent(boolean z) {
|
|
d dVar = IAConfigManager.L.C;
|
|
if (dVar == null) {
|
|
IAlog.f("setLgpdConsent was invoked, but Fyber SDK was not properly initialized", new Object[0]);
|
|
return;
|
|
}
|
|
if (o.a == null) {
|
|
IAlog.f("setLgpdConsentStatus was invoked, but the Inneractive SDK was not properly initialized, or destroyed.", new Object[0]);
|
|
return;
|
|
}
|
|
dVar.i = Boolean.valueOf(z);
|
|
if (dVar.a(z, "IALgpdConsentStatus")) {
|
|
return;
|
|
}
|
|
IAlog.f("setLgpdConsentStatus was invoked, but the Inneractive SDK was not properly initialized, or destroyed.", new Object[0]);
|
|
}
|
|
|
|
public static void setLogLevel(int i) {
|
|
IAlog.a = i;
|
|
}
|
|
|
|
public static void setMediationName(String str) {
|
|
IAConfigManager.L.l = str;
|
|
}
|
|
|
|
public static void setMediationVersion(String str) {
|
|
if (str != null) {
|
|
IAConfigManager.L.n = str;
|
|
}
|
|
}
|
|
|
|
public static void setMuteVideo(boolean z) {
|
|
IAConfigManager.L.k = z;
|
|
}
|
|
|
|
public static void setUSPrivacyString(String str) {
|
|
d dVar = IAConfigManager.L.C;
|
|
if (dVar == null) {
|
|
IAlog.f("setUSPrivacyString() was invoked, but Fyber SDK was not properly initialized", new Object[0]);
|
|
return;
|
|
}
|
|
if (o.a == null) {
|
|
IAlog.f("setUSPrivacyString() was invoked, but the Inneractive SDK was not properly initialized, or destroyed.", new Object[0]);
|
|
return;
|
|
}
|
|
dVar.h = str;
|
|
if (dVar.a("IACCPAConsentData", str)) {
|
|
return;
|
|
}
|
|
IAlog.f("setUSPrivacyString() was invoked, but the Inneractive SDK was not properly initialized, destroyed, or data is empty.", new Object[0]);
|
|
}
|
|
|
|
public static void setUseLocation(boolean z) {
|
|
IAConfigManager.L.getClass();
|
|
}
|
|
|
|
public static void setUserParams(InneractiveUserConfig inneractiveUserConfig) {
|
|
IAConfigManager.L.j = inneractiveUserConfig;
|
|
IAlog.a("config manager: setUserParams called with: age:" + inneractiveUserConfig.getAge() + " gender: " + inneractiveUserConfig.getGender() + " zip: " + inneractiveUserConfig.getZipCode(), new Object[0]);
|
|
}
|
|
|
|
public static void useSecureConnections(boolean z) {
|
|
IAConfigManager.L.q = z;
|
|
IAlog.a("config manager: useSecureConnections called with: isSecured: + %s", Boolean.valueOf(z));
|
|
if (com.fyber.inneractive.sdk.util.s.a() || z) {
|
|
return;
|
|
}
|
|
IAlog.f("************************************************************************************************************************", new Object[0]);
|
|
IAlog.f("*** useSecureConnections was set to false while secure traffic is enabled in the network security config", new Object[0]);
|
|
IAlog.f("*** The traffic will be Secured ", new Object[0]);
|
|
IAlog.f("************************************************************************************************************************", new Object[0]);
|
|
}
|
|
|
|
public static boolean wasInitialized() {
|
|
return b.a.a != null;
|
|
}
|
|
|
|
public Context getAppContext() {
|
|
return this.a;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.config.m.a
|
|
public void onGlobalConfigChanged(m mVar, com.fyber.inneractive.sdk.config.k kVar) {
|
|
if (kVar == null || !kVar.a(false, GLOBAL_CONFIG_PARAM_FIRST_INIT_EVENT)) {
|
|
return;
|
|
}
|
|
p.b.post(new com.fyber.inneractive.sdk.external.b());
|
|
}
|
|
|
|
public static void initialize(Context context, String str, OnFyberMarketplaceInitializedListener onFyberMarketplaceInitializedListener) {
|
|
String str2;
|
|
List<ResolveInfo> queryIntentServices;
|
|
if (context == null || str == null) {
|
|
IAlog.b("InneractiveAdManager:initialize. No context or App Id given", new Object[0]);
|
|
Object[] objArr = new Object[1];
|
|
objArr[0] = str == null ? "appid" : "context";
|
|
a(onFyberMarketplaceInitializedListener, (str == null || TextUtils.isEmpty(str.trim())) ? OnFyberMarketplaceInitializedListener.FyberInitStatus.INVALID_APP_ID : OnFyberMarketplaceInitializedListener.FyberInitStatus.FAILED, String.format("%s is null", objArr));
|
|
return;
|
|
}
|
|
String str3 = IAConfigManager.L.c;
|
|
boolean z = (str3 == null || str3.equalsIgnoreCase(str)) ? false : true;
|
|
String str4 = null;
|
|
if (b.a.a != null && !z) {
|
|
IAlog.a("InneractiveAdManager:initialize called, but manager is already initialized. ignoring", new Object[0]);
|
|
a(onFyberMarketplaceInitializedListener, OnFyberMarketplaceInitializedListener.FyberInitStatus.SUCCESSFULLY, null);
|
|
return;
|
|
}
|
|
IAlog.c.retainAll(Collections.singleton(IAlog.b));
|
|
int i = g.a;
|
|
String property = System.getProperty("ia.testEnvironmentConfiguration.logger");
|
|
if (property != null) {
|
|
for (String str5 : property.split(",")) {
|
|
try {
|
|
FMPLogger fMPLogger = (FMPLogger) Class.forName(str5).newInstance();
|
|
fMPLogger.initialize(context);
|
|
IAlog.c.add(fMPLogger);
|
|
} catch (Throwable unused) {
|
|
}
|
|
}
|
|
}
|
|
o.a = (Application) context.getApplicationContext();
|
|
y yVar = y.a.a;
|
|
Context applicationContext = context.getApplicationContext();
|
|
yVar.getClass();
|
|
IAlog.a("%sinit called", IAlog.a(yVar));
|
|
yVar.c = applicationContext;
|
|
yVar.d = new x(yVar);
|
|
IntentFilter intentFilter = new IntentFilter("android.intent.action.SCREEN_OFF");
|
|
intentFilter.addAction("android.intent.action.SCREEN_ON");
|
|
intentFilter.addAction("android.intent.action.USER_PRESENT");
|
|
yVar.c.registerReceiver(yVar.d, intentFilter);
|
|
Intent intent = new Intent();
|
|
intent.setAction("com.fyber.inneractive.sdk.intent.action.REGISTER_KIT");
|
|
intent.setPackage(o.a.getPackageName());
|
|
Context applicationContext2 = context.getApplicationContext();
|
|
if (applicationContext2 == null) {
|
|
throw new IllegalArgumentException("Context can't be null");
|
|
}
|
|
List<BroadcastReceiver> asList = Arrays.asList(new IAMraidKit(), new IAVideoKit(), new com.fyber.inneractive.sdk.dv.c());
|
|
for (BroadcastReceiver broadcastReceiver : asList) {
|
|
try {
|
|
broadcastReceiver.onReceive(applicationContext2, intent);
|
|
} catch (Throwable unused2) {
|
|
IAlog.f("%sCould not trigger receiver for %s", IAlog.a((Class<?>) com.fyber.inneractive.sdk.b.class), broadcastReceiver);
|
|
}
|
|
}
|
|
if (b.a.a.a.size() == 0) {
|
|
Log.e("Inneractive_error", "Critical error raised while initializing SDK - please make sure you have added all the required fyber libraries (ia-mraid-kit, ia-video-kit) to your project");
|
|
}
|
|
if (asList.size() == 0) {
|
|
IAlog.b("InneractiveAdManager:initialize. please make sure you have added all the required fyber libraries (ia-mraid-kit, ia-video-kit) to your project", new Object[0]);
|
|
a(onFyberMarketplaceInitializedListener, OnFyberMarketplaceInitializedListener.FyberInitStatus.FAILED_NO_KITS_DETECTED, null);
|
|
return;
|
|
}
|
|
a aVar = new a(context, onFyberMarketplaceInitializedListener);
|
|
e = aVar;
|
|
IAConfigManager.addListener(aVar);
|
|
if (z) {
|
|
IAConfigManager iAConfigManager = IAConfigManager.L;
|
|
iAConfigManager.c = str;
|
|
HashMap hashMap = iAConfigManager.a;
|
|
if (hashMap != null) {
|
|
hashMap.clear();
|
|
}
|
|
HashMap hashMap2 = iAConfigManager.b;
|
|
if (hashMap2 != null) {
|
|
hashMap2.clear();
|
|
}
|
|
iAConfigManager.e = null;
|
|
iAConfigManager.d = "";
|
|
IAConfigManager.a();
|
|
} else {
|
|
Context applicationContext3 = context.getApplicationContext();
|
|
IAConfigManager iAConfigManager2 = IAConfigManager.L;
|
|
if (!iAConfigManager2.h) {
|
|
iAConfigManager2.u = new com.fyber.inneractive.sdk.config.e(context, applicationContext3);
|
|
z0 z0Var = new z0();
|
|
iAConfigManager2.x = z0Var;
|
|
z0Var.b = applicationContext3.getApplicationContext();
|
|
p.a.execute(new y0(z0Var));
|
|
com.fyber.inneractive.sdk.network.y yVar2 = iAConfigManager2.r;
|
|
if (!yVar2.b) {
|
|
yVar2.b = true;
|
|
for (int i2 = 0; i2 < 6; i2++) {
|
|
yVar2.d.submit(yVar2.e);
|
|
}
|
|
}
|
|
d0.c.getClass();
|
|
iAConfigManager2.C = new d();
|
|
m mVar = new m(applicationContext3);
|
|
iAConfigManager2.t = mVar;
|
|
iAConfigManager2.v = new n(mVar);
|
|
IAConfigManager.L.r.a(new g0(new l(mVar), mVar.a, mVar.e));
|
|
iAConfigManager2.G.a((Application) applicationContext3.getApplicationContext());
|
|
iAConfigManager2.t.c.add(new com.fyber.inneractive.sdk.config.p(iAConfigManager2));
|
|
iAConfigManager2.y = new com.fyber.inneractive.sdk.config.global.a();
|
|
IAlog.a("Initializing config manager", new Object[0]);
|
|
IAlog.a("Config manager: lib name = %s", v8.d);
|
|
IAlog.a("Config manager: app version = %s", "8.3.1");
|
|
com.fyber.inneractive.sdk.config.o oVar = o.a.a;
|
|
if (oVar.a == null) {
|
|
oVar.a = applicationContext3;
|
|
new Thread(new com.fyber.inneractive.sdk.config.y(applicationContext3, oVar)).start();
|
|
}
|
|
if (!str.matches("[0-9]+")) {
|
|
IAlog.b("************************************************************************************************************************", new Object[0]);
|
|
IAlog.b("*************************************** APP ID Must contain only numbers ***********************************************", new Object[0]);
|
|
IAlog.b("*************************************** Are you sure that you are using the correct APP ID *****************************", new Object[0]);
|
|
IAlog.b("************************************************************************************************************************", new Object[0]);
|
|
}
|
|
iAConfigManager2.f = applicationContext3;
|
|
iAConfigManager2.c = str;
|
|
iAConfigManager2.j = new InneractiveUserConfig();
|
|
iAConfigManager2.h = true;
|
|
i0 i0Var = iAConfigManager2.w;
|
|
i0Var.getClass();
|
|
new com.fyber.inneractive.sdk.config.b(i0Var).a();
|
|
i0Var.c.put("SESSION_STAMP", Long.toString(SystemClock.elapsedRealtime()));
|
|
com.fyber.inneractive.sdk.cache.session.d dVar = new com.fyber.inneractive.sdk.cache.session.d();
|
|
i0Var.a = dVar;
|
|
com.fyber.inneractive.sdk.cache.session.b bVar = new com.fyber.inneractive.sdk.cache.session.b(dVar);
|
|
ThreadPoolExecutor threadPoolExecutor = p.a;
|
|
threadPoolExecutor.execute(bVar);
|
|
iAConfigManager2.A = new g0(new com.fyber.inneractive.sdk.config.s(iAConfigManager2), iAConfigManager2.f, new com.fyber.inneractive.sdk.config.c());
|
|
threadPoolExecutor.execute(new t(iAConfigManager2));
|
|
try {
|
|
str2 = Locale.getDefault().getLanguage();
|
|
try {
|
|
IAlog.a("Available device language: %s", str2);
|
|
} catch (Exception unused3) {
|
|
}
|
|
} catch (Exception unused4) {
|
|
str2 = null;
|
|
}
|
|
iAConfigManager2.o = str2;
|
|
com.fyber.inneractive.sdk.ignite.c cVar = iAConfigManager2.D;
|
|
cVar.a = applicationContext3;
|
|
Intent intent2 = new Intent("com.digitalturbine.ignite.cl.IgniteRemoteService");
|
|
Context context2 = cVar.a;
|
|
if (context2 != null && (queryIntentServices = context2.getPackageManager().queryIntentServices(intent2, 0)) != null && queryIntentServices.size() > 0) {
|
|
str4 = queryIntentServices.get(0).serviceInfo.packageName;
|
|
}
|
|
cVar.l = str4;
|
|
}
|
|
}
|
|
b.a.a = context.getApplicationContext();
|
|
SharedPreferences sharedPreferences = context.getSharedPreferences("Fyber_Shared_File", 0);
|
|
String string = sharedPreferences.getString("FyberExceptionKey", "empty");
|
|
String string2 = sharedPreferences.getString("FyberDescriptionKey", "empty");
|
|
String string3 = sharedPreferences.getString("FyberNameKey", "empty");
|
|
String string4 = sharedPreferences.getString("FyberVersionKey", getVersion());
|
|
IAlog.a(" name- %s description - %s exception - %s", string3, string2, string);
|
|
if (!string.contains("OutOfMemoryError") && !string.equals("empty") && !string2.equals("empty") && !string3.equals("empty")) {
|
|
IAlog.a("Firing Event 999 for %s", string);
|
|
s.a aVar2 = new s.a(r.IA_UNCAUGHT_EXCEPTION);
|
|
JSONObject jSONObject = new JSONObject();
|
|
try {
|
|
jSONObject.put("exception_name", string3);
|
|
} catch (Exception unused5) {
|
|
IAlog.f("Got exception adding param to json object: %s, %s", "exception_name", string3);
|
|
}
|
|
try {
|
|
jSONObject.put("description", string2);
|
|
} catch (Exception unused6) {
|
|
IAlog.f("Got exception adding param to json object: %s, %s", "description", string2);
|
|
}
|
|
try {
|
|
jSONObject.put("stack_trace", string);
|
|
} catch (Exception unused7) {
|
|
IAlog.f("Got exception adding param to json object: %s, %s", "stack_trace", string);
|
|
}
|
|
aVar2.f.put(jSONObject);
|
|
aVar2.a(string4);
|
|
sharedPreferences.edit().remove("FyberExceptionKey").remove("FyberVersionKey").remove("FyberDescriptionKey").remove("FyberNameKey").apply();
|
|
}
|
|
Thread.setDefaultUncaughtExceptionHandler(new com.fyber.inneractive.sdk.external.a(sharedPreferences, Thread.getDefaultUncaughtExceptionHandler()));
|
|
IAConfigManager iAConfigManager3 = IAConfigManager.L;
|
|
iAConfigManager3.t.c.remove(b.a);
|
|
iAConfigManager3.t.c.add(b.a);
|
|
}
|
|
|
|
public static void setGdprConsent(boolean z, GdprConsentSource gdprConsentSource) {
|
|
d dVar = IAConfigManager.L.C;
|
|
if (dVar == null) {
|
|
IAlog.f("setGdprConsent() was invoked, but Fyber SDK was not properly initialized", new Object[0]);
|
|
return;
|
|
}
|
|
if (com.fyber.inneractive.sdk.util.o.a == null) {
|
|
IAlog.f("SetGdprConsent(boolean) was invoked, but the Inneractive SDK was not properly initialized, or destroyed.", new Object[0]);
|
|
return;
|
|
}
|
|
dVar.a = Boolean.valueOf(z);
|
|
if (!dVar.a(z, "IAGDPRBool")) {
|
|
IAlog.f("SetGdprConsent(boolean) was invoked, but the Inneractive SDK was not properly initialized, or destroyed.", new Object[0]);
|
|
}
|
|
dVar.f = gdprConsentSource;
|
|
if (dVar.a("IAGdprSource", gdprConsentSource.name())) {
|
|
return;
|
|
}
|
|
IAlog.f("SetGdprConsent(boolean) was invoked, but the Inneractive SDK was not properly initialized, or destroyed.", new Object[0]);
|
|
}
|
|
|
|
public static void setMediationName(InneractiveMediationName inneractiveMediationName) {
|
|
if (inneractiveMediationName != null) {
|
|
IAConfigManager iAConfigManager = IAConfigManager.L;
|
|
iAConfigManager.m = inneractiveMediationName;
|
|
iAConfigManager.l = inneractiveMediationName.getKey();
|
|
}
|
|
}
|
|
|
|
public static void setUserId(String str) {
|
|
if (com.fyber.inneractive.sdk.util.o.a != null) {
|
|
IAConfigManager.L.C.a(str);
|
|
} else {
|
|
IAConfigManager iAConfigManager = IAConfigManager.L;
|
|
IAlog.f("setUsedId() was invoked, but the Inneractive SDK was not properly initialized, or destroyed.", new Object[0]);
|
|
}
|
|
}
|
|
}
|