正在查看: All File Recovery v1.0.2 应用的 C0672k.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: All File Recovery v1.0.2 应用的 C0672k.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.applovin.impl.sdk;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.net.Uri;
import android.preference.PreferenceManager;
import android.text.TextUtils;
import android.util.Log;
import com.applovin.impl.AbstractC0492b3;
import com.applovin.impl.AbstractC0518e2;
import com.applovin.impl.AbstractC0520e4;
import com.applovin.impl.AbstractC0536g3;
import com.applovin.impl.AbstractC0575l2;
import com.applovin.impl.AbstractC0576l3;
import com.applovin.impl.AbstractC0614n0;
import com.applovin.impl.AbstractC0742z6;
import com.applovin.impl.AbstractRunnableC0716w4;
import com.applovin.impl.C0472a1;
import com.applovin.impl.C0474a3;
import com.applovin.impl.C0497c;
import com.applovin.impl.C0517e1;
import com.applovin.impl.C0524f;
import com.applovin.impl.C0528f3;
import com.applovin.impl.C0531f6;
import com.applovin.impl.C0546h5;
import com.applovin.impl.C0548i;
import com.applovin.impl.C0560j3;
import com.applovin.impl.C0568k3;
import com.applovin.impl.C0569k4;
import com.applovin.impl.C0577l4;
import com.applovin.impl.C0581m0;
import com.applovin.impl.C0582m1;
import com.applovin.impl.C0585m4;
import com.applovin.impl.C0617n3;
import com.applovin.impl.C0618n4;
import com.applovin.impl.C0626o4;
import com.applovin.impl.C0630p0;
import com.applovin.impl.C0643q5;
import com.applovin.impl.C0647r2;
import com.applovin.impl.C0650r5;
import com.applovin.impl.C0659s6;
import com.applovin.impl.C0715w3;
import com.applovin.impl.C0726x6;
import com.applovin.impl.C0729y1;
import com.applovin.impl.C0734y6;
import com.applovin.impl.C0736z0;
import com.applovin.impl.SharedPreferencesOnSharedPreferenceChangeListenerC0587m6;
import com.applovin.impl.mediation.C0591d;
import com.applovin.impl.mediation.C0592e;
import com.applovin.impl.mediation.C0593f;
import com.applovin.impl.mediation.C0594g;
import com.applovin.impl.mediation.MaxSegmentCollectionImpl;
import com.applovin.impl.mediation.MediationServiceImpl;
import com.applovin.impl.privacy.cmp.CmpServiceImpl;
import com.applovin.impl.sdk.array.ArrayService;
import com.applovin.impl.sdk.nativeAd.AppLovinNativeAdService;
import com.applovin.impl.sdk.network.PostbackServiceImpl;
import com.applovin.impl.sdk.utils.CollectionUtils;
import com.applovin.impl.sdk.utils.JsonUtils;
import com.applovin.impl.sdk.utils.StringUtils;
import com.applovin.impl.t7;
import com.applovin.impl.x7;
import com.applovin.mediation.MaxAdFormat;
import com.applovin.mediation.MaxSegmentCollection;
import com.applovin.mediation.adapter.MaxAdapter;
import com.applovin.sdk.AppLovinMediationProvider;
import com.applovin.sdk.AppLovinSdk;
import com.applovin.sdk.AppLovinSdkInitializationConfiguration;
import com.applovin.sdk.AppLovinSdkSettings;
import com.applovin.sdk.AppLovinSdkUtils;
import com.facebook.internal.C0752a;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicReference;
import org.json.JSONException;
import org.json.JSONObject;
import r3.C1008b6;
public class C0672k {
public static C0672k C0;
protected static Context D0;
private static boolean E0;
private static final boolean G0;
private static volatile C0497c H0;
private String a;
private String b;
private WeakReference c;
private final long d;
private long e;
private long f;
private Long g;
private long h;
private C0592e i0;
private final AppLovinSdkSettings j;
private MaxSegmentCollection k;
private List k0;
private String l;
private boolean p0;
private volatile AppLovinSdk q;
private String u0;
private AppLovinSdkInitializationConfiguration v0;
private AppLovinSdk.SdkInitializationListener y0;
private AppLovinSdk.SdkInitializationListener z0;
private static final Object I0 = new Object();
private static final long F0 = System.currentTimeMillis();
private final AtomicBoolean i = new AtomicBoolean();
private final AtomicReference m = new AtomicReference();
private final AtomicReference n = new AtomicReference();
private final AtomicReference o = new AtomicReference();
private final AtomicReference p = new AtomicReference();
private final C0676o r = new C0676o(this);
private final C0524f s = new C0524f(this);
private final C0647r2 t = new C0647r2(this);
private final C0582m1 u = new C0582m1(this);
private final C0726x6 v = new C0726x6(this);
private final AtomicReference w = new AtomicReference();
private final AtomicReference x = new AtomicReference();
private final AtomicReference y = new AtomicReference();
private final AtomicReference z = new AtomicReference();
private final AtomicReference A = new AtomicReference();
private final AtomicReference B = new AtomicReference();
private final AtomicReference C = new AtomicReference();
private final AtomicReference D = new AtomicReference();
private final AtomicReference E = new AtomicReference();
private final AtomicReference F = new AtomicReference();
private final AtomicReference G = new AtomicReference();
private final AtomicReference H = new AtomicReference();
private final AtomicReference I = new AtomicReference();
private final AtomicReference J = new AtomicReference();
private final AtomicReference K = new AtomicReference();
private final AtomicReference L = new AtomicReference();
private final AtomicReference M = new AtomicReference();
private final AtomicReference N = new AtomicReference();
private final AtomicReference O = new AtomicReference();
private final AtomicReference P = new AtomicReference();
private final AtomicReference Q = new AtomicReference();
private final AtomicReference R = new AtomicReference();
private final AtomicReference S = new AtomicReference();
private final AtomicReference T = new AtomicReference();
private final AtomicReference U = new AtomicReference();
private final AtomicReference V = new AtomicReference();
private final AtomicReference W = new AtomicReference();
private final AtomicReference X = new AtomicReference();
private final AtomicReference Y = new AtomicReference();
private final AtomicReference Z = new AtomicReference();
private final AtomicReference a0 = new AtomicReference();
private final AtomicReference b0 = new AtomicReference();
private final AtomicReference c0 = new AtomicReference();
private final AtomicReference d0 = new AtomicReference();
private final AtomicReference e0 = new AtomicReference();
private final AtomicReference f0 = new AtomicReference();
private final AtomicReference g0 = new AtomicReference();
private final AtomicReference h0 = new AtomicReference();
private final AtomicReference j0 = new AtomicReference();
private final Object l0 = new Object();
private final AtomicBoolean m0 = new AtomicBoolean(true);
private final AtomicBoolean n0 = new AtomicBoolean();
private final AtomicBoolean o0 = new AtomicBoolean();
private boolean q0 = false;
private boolean r0 = false;
private boolean s0 = false;
private int t0 = 0;
private final Object w0 = new Object();
private SdkConfigurationImpl x0 = new SdkConfigurationImpl(this);
private final AbstractRunnableC0716w4 A0 = new C0531f6(this, true, "scheduleAdLoadIntegrationError", new Runnable() {
@Override
public final void run() {
C0672k.this.K0();
}
});
private final AbstractRunnableC0716w4 B0 = new C0531f6(this, true, "sdkInit", new Runnable() {
@Override
public final void run() {
C0672k.this.L0();
}
});
public class a implements C0546h5.b {
public a() {
}
@Override
public void a(JSONObject jSONObject) {
boolean isValid = JsonUtils.isValid(jSONObject);
C0672k.this.c(jSONObject);
if (((Boolean) C0672k.this.a(AbstractC0536g3.B7)).booleanValue()) {
C0672k c0672k = C0672k.this;
c0672k.i0 = new C0592e(c0672k);
}
C0672k.this.m().a();
AbstractC0614n0.a(jSONObject, isValid, C0672k.this);
Boolean bool = JsonUtils.getBoolean(jSONObject, "smd", Boolean.FALSE);
C0672k.this.U().a(bool.booleanValue(), JsonUtils.getInt(jSONObject, "smd_delay_sec", 2));
C0672k.this.E().b();
C0672k c0672k2 = C0672k.this;
c0672k2.k0 = c0672k2.a(jSONObject);
if (isValid) {
C0672k.this.x0.setEnabledAmazonAdUnitIds(CollectionUtils.explode(JsonUtils.getString(jSONObject, "eaaui", "")));
}
C0672k.this.s0().a(jSONObject);
C0672k.this.b(jSONObject);
AbstractC0575l2.b(((Boolean) C0672k.this.a(C0577l4.R5)).booleanValue());
AbstractC0575l2.a(((Boolean) C0672k.this.a(C0577l4.S5)).booleanValue());
C0672k.this.Q0();
if (!((Boolean) C0672k.this.a(C0577l4.V2)).booleanValue() || isValid || !AbstractC0614n0.a(C0672k.o())) {
C0672k.this.O0();
return;
}
C0672k.this.O();
if (C0676o.a()) {
C0672k.this.O().d("AppLovinSdk", "SDK initialized with no internet connection - listening for connection");
}
C0672k.this.T0();
}
}
public class b implements C0630p0.c {
public b() {
}
@Override
public void a(C0630p0.b bVar) {
C0672k.this.O();
if (C0676o.a()) {
C0672k.this.O().a("AppLovinSdk", "Terms and Privacy Policy flow completed with status: " + bVar);
}
C0672k.this.o0.set(bVar.b());
if (!bVar.a()) {
C0672k.this.c("Initializing SDK in MAX environment...");
return;
}
C0672k.this.O();
if (C0676o.a()) {
C0672k.this.O().a("AppLovinSdk", "Re-initializing SDK with the updated privacy settings...");
}
C0672k.this.S0();
C0672k.this.R0();
}
}
public class c implements C0546h5.b {
public c() {
}
@Override
public void a(JSONObject jSONObject) {
C0672k.this.c(jSONObject);
C0672k.this.i.set(false);
C0672k.this.O0();
}
}
public class d implements C0617n3.a {
final C0617n3 a;
public d(C0617n3 c0617n3) {
this.a = c0617n3;
}
@Override
public void a() {
C0672k.this.O();
if (C0676o.a()) {
C0672k.this.O().d("AppLovinSdk", "Connected to internet - re-initializing SDK");
}
synchronized (C0672k.this.l0) {
try {
if (!C0672k.this.p0) {
C0672k.this.S0();
}
} catch (Throwable th) {
throw th;
}
}
this.a.b(this);
}
@Override
public void b() {
}
}
static {
try {
AppLovinSdkUtils.runOnUiThread(new N());
G0 = true;
} catch (Throwable unused) {
G0 = false;
}
}
public C0672k(AppLovinSdkSettings appLovinSdkSettings, Context context) {
this.p0 = false;
C0 = this;
this.j = appLovinSdkSettings;
this.d = System.currentTimeMillis();
this.p0 = true;
if (!F0()) {
throw new RuntimeException("As of version 12.0.0, the AppLovin MAX SDK requires Java 8. For more information visit our docs: https://developers.applovin.com/en/android/overview/integration");
}
D0 = context.getApplicationContext();
if (context instanceof Activity) {
this.c = new WeakReference((Activity) context);
}
}
private void A0() {
Context context = D0;
C0676o O = O();
C0626o4 p0 = p0();
C0630p0 y = y();
a(context);
m0();
j();
p();
c0();
S().a(MaxAdapter.InitializationStatus.INITIALIZING);
NativeCrashReporter.a(this);
String str = this.a;
if (str == null || str.length() != 86) {
C0676o.h("AppLovinSdk", "SDK key provided is invalid (" + this.a + "). Expected length: 86 characters.\n\nStack trace:\n" + Log.getStackTraceString(new Throwable()));
}
if (StringUtils.isValidString(this.b) && this.b.length() != 36) {
String a2 = O.c.a(new StringBuilder("Axon event key length "), this.b, " is invalid - expected 36");
if (AbstractC0742z6.c(this)) {
throw new IllegalArgumentException(a2);
}
C0676o.h("AppLovinSdk", a2);
}
if (y.l()) {
String str2 = "Terms Flow has been replaced. " + y.g();
if (AbstractC0742z6.c(this)) {
throw new IllegalStateException(str2);
}
C0676o.h("AppLovinSdk", str2);
}
if (AbstractC0742z6.i()) {
C0676o.h("AppLovinSdk", "Failed to find class for name: com.applovin.sdk.AppLovinSdk. Please ensure proguard rules have not been omitted from the build.");
}
if (!AbstractC0742z6.b(this)) {
C0676o.h("AppLovinSdk", "Detected non-Android core JSON library. Please double-check that none of your third party libraries include custom implementation of org.json.JSONObject.");
}
if (AbstractC0742z6.k(context)) {
this.j.setVerboseLogging(true);
}
o0().a(C0577l4.k, Boolean.valueOf(this.j.isVerboseLoggingEnabled()));
AbstractC0576l3.d(this);
SharedPreferences defaultSharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);
C0618n4 c0618n4 = C0618n4.c;
if (TextUtils.isEmpty((String) p0.a(c0618n4, (Object) null, defaultSharedPreferences))) {
this.r0 = true;
p0.b(c0618n4, Boolean.toString(true), defaultSharedPreferences);
} else {
p0.b(c0618n4, Boolean.toString(false), defaultSharedPreferences);
}
C0618n4 c0618n42 = C0618n4.d;
if (((Boolean) p0.a(c0618n42, Boolean.FALSE)).booleanValue()) {
if (C0676o.a()) {
O.a("AppLovinSdk", "Initializing SDK for non-maiden launch");
}
this.s0 = true;
} else {
if (C0676o.a()) {
O.a("AppLovinSdk", "Initializing SDK for maiden launch");
}
p0.b(c0618n42, Boolean.TRUE);
p0.b(C0618n4.r, Boolean.valueOf(y.j()));
}
C0618n4 c0618n43 = C0618n4.e;
this.f = ((Long) p0.a(c0618n43, 0L)).longValue() + 1;
p0().b(c0618n43, Long.valueOf(this.f));
C0618n4 c0618n44 = C0618n4.f;
this.g = (Long) p0.a(c0618n44, null);
p0().b(c0618n44, Long.valueOf(F0));
C0618n4 c0618n45 = C0618n4.g;
String str3 = (String) p0.a(c0618n45, null);
if (StringUtils.isValidString(str3)) {
if (AppLovinSdk.VERSION_CODE > AbstractC0742z6.g(str3)) {
p0.b(c0618n45, AppLovinSdk.VERSION);
}
} else {
p0.b(c0618n45, AppLovinSdk.VERSION);
}
v0().d(C0729y1.e, CollectionUtils.map("details", "isInitProviderContextSet=" + E0));
}
public static boolean F0() {
return G0;
}
public void I0() {
if (q0().d()) {
return;
}
O();
if (C0676o.a()) {
O().a("AppLovinSdk", "Timing out adapters init...");
}
q0().e();
b(true);
}
public void J0() {
C0650r5 q0 = q0();
int i = this.t0 + 1;
this.t0 = i;
q0.a((AbstractRunnableC0716w4) new C0546h5(i, this, new c()), C0650r5.b.CORE);
}
public void K0() {
if (G0()) {
AbstractC0518e2.b(this);
}
}
public void L0() {
synchronized (this.l0) {
try {
boolean a2 = AbstractC0614n0.a(o());
if (!G0()) {
O();
if (C0676o.a()) {
O().a("AppLovinSdk", "non-MAX mediation detected, mediation provider is: " + V());
}
}
if (!((Boolean) a(C0577l4.W2)).booleanValue() || a2) {
S0();
}
if (((Boolean) a(C0577l4.V2)).booleanValue() && !a2) {
O();
if (C0676o.a()) {
O().d("AppLovinSdk", "SDK initialized with no internet connection - listening for connection");
}
T0();
}
} catch (Throwable th) {
throw th;
}
}
}
private r N0() {
if (!AbstractC0520e4.f(D0)) {
return null;
}
try {
return new r(this);
} catch (Throwable th) {
C0676o.b("AppLovinSdk", "Failed to initialize Privacy Sandbox Service", th);
return null;
}
}
public void O0() {
Long l = (Long) a(C0577l4.e3);
if (l.longValue() >= 0 && this.i.compareAndSet(false, true)) {
t7.a(l.longValue(), false, this, new Runnable() {
@Override
public final void run() {
C0672k.this.J0();
}
});
}
}
public void Q0() {
if (!G0()) {
c("Initializing SDK in non-MAX environment...");
return;
}
if (!this.n0.compareAndSet(false, true)) {
c("Consent flow is already shown. Initializing SDK in MAX environment...");
} else if (!y().j()) {
c("Consent flow is not enabled. Initializing SDK in MAX environment...");
} else {
y().a(u0(), new b());
}
}
public void T0() {
C0617n3 c0 = c0();
c0.a(new d(c0));
}
private Map W() {
try {
return JsonUtils.toStringMap(new JSONObject((String) a(C0577l4.f408Y3)));
} catch (JSONException unused) {
return Collections.EMPTY_MAP;
}
}
public static Context o() {
return D0;
}
public C0472a1 A() {
Object obj = this.V.get();
if (obj == null) {
synchronized (this.V) {
try {
obj = this.V.get();
if (obj == null) {
obj = new C0472a1(this);
this.V.set(obj);
}
} finally {
}
}
}
if (obj == this.V) {
obj = null;
}
return (C0472a1) obj;
}
public C0673l B() {
Object obj = this.A.get();
if (obj == null) {
synchronized (this.A) {
try {
obj = this.A.get();
if (obj == null) {
obj = new C0673l(this);
this.A.set(obj);
}
} finally {
}
}
}
if (obj == this.A) {
obj = null;
}
return (C0673l) obj;
}
public boolean B0() {
boolean z;
synchronized (this.l0) {
z = this.q0;
}
return z;
}
public C0517e1 C() {
Object obj = this.E.get();
if (obj == null) {
synchronized (this.E) {
try {
obj = this.E.get();
if (obj == null) {
obj = new C0517e1(this);
this.E.set(obj);
}
} finally {
}
}
}
if (obj == this.E) {
obj = null;
}
return (C0517e1) obj;
}
public boolean C0() {
return this.r0;
}
public String D() {
return this.u0;
}
public boolean D0() {
boolean z;
synchronized (this.w0) {
z = this.v0 != null;
}
return z;
}
public C0582m1 E() {
return this.u;
}
public boolean E0() {
boolean z;
synchronized (this.l0) {
z = this.p0;
}
return z;
}
public String F() {
return w0().d();
}
public EventServiceImpl G() {
Object obj = this.o.get();
if (obj == null) {
synchronized (this.o) {
try {
obj = this.o.get();
if (obj == null) {
obj = new EventServiceImpl(this);
this.o.set(obj);
}
} finally {
}
}
}
if (obj == this.o) {
obj = null;
}
return (EventServiceImpl) obj;
}
public boolean G0() {
return StringUtils.containsIgnoreCase(V(), AppLovinMediationProvider.MAX);
}
public C0674m H() {
Object obj = this.H.get();
if (obj == null) {
synchronized (this.H) {
try {
obj = this.H.get();
if (obj == null) {
obj = new C0674m(this);
this.H.set(obj);
}
} finally {
}
}
}
if (obj == this.H) {
obj = null;
}
return (C0674m) obj;
}
public boolean H0() {
return AbstractC0742z6.a("com.unity3d.player.UnityPlayerActivity");
}
public C0675n I() {
Object obj = this.J.get();
if (obj == null) {
synchronized (this.J) {
try {
obj = this.J.get();
if (obj == null) {
obj = new C0675n(this);
this.J.set(obj);
}
} finally {
}
}
}
if (obj == this.J) {
obj = null;
}
return (C0675n) obj;
}
public Activity J() {
WeakReference weakReference;
if (!((Boolean) a(C0577l4.f437m4)).booleanValue() || (weakReference = this.c) == null) {
return null;
}
return (Activity) weakReference.get();
}
public AppLovinSdkInitializationConfiguration K() {
return this.v0;
}
public long L() {
return this.d;
}
public Long M() {
return this.g;
}
public void M0() {
b(false);
}
public long N() {
return this.f;
}
public C0676o O() {
return this.r;
}
public C0647r2 P() {
return this.t;
}
public void P0() {
if (StringUtils.isValidString(this.l)) {
return;
}
this.l = AppLovinMediationProvider.MAX;
}
public C0591d Q() {
Object obj = this.h0.get();
if (obj == null) {
synchronized (this.h0) {
try {
obj = this.h0.get();
if (obj == null) {
obj = new C0591d(this);
this.h0.set(obj);
}
} finally {
}
}
}
if (obj == this.h0) {
obj = null;
}
return (C0591d) obj;
}
public C0592e R() {
return this.i0;
}
public void R0() {
u().a();
}
public C0593f S() {
Object obj = this.c0.get();
if (obj == null) {
synchronized (this.c0) {
try {
obj = this.c0.get();
if (obj == null) {
obj = new C0593f(this);
this.c0.set(obj);
}
} finally {
}
}
}
if (obj == this.c0) {
obj = null;
}
return (C0593f) obj;
}
public void S0() {
synchronized (this.l0) {
this.p0 = true;
q0().f();
d();
}
}
public C0594g T() {
Object obj = this.b0.get();
if (obj == null) {
synchronized (this.b0) {
try {
obj = this.b0.get();
if (obj == null) {
obj = new C0594g(this);
this.b0.set(obj);
}
} finally {
}
}
}
if (obj == this.b0) {
obj = null;
}
return (C0594g) obj;
}
public C0528f3 U() {
Object obj = this.f0.get();
if (obj == null) {
synchronized (this.f0) {
try {
obj = this.f0.get();
if (obj == null) {
obj = new C0528f3(this);
this.f0.set(obj);
}
} finally {
}
}
}
if (obj == this.f0) {
obj = null;
}
return (C0528f3) obj;
}
public void U0() {
C0676o.h("AppLovinSdk", "Resetting SDK state...");
o0().a();
o0().e();
if (this.m0.compareAndSet(true, false)) {
S0();
} else {
this.m0.set(true);
}
}
public String V() {
return this.l;
}
public void V0() {
if (StringUtils.isValidString(this.u0)) {
return;
}
this.u0 = AppLovinMediationProvider.MAX;
O();
if (C0676o.a()) {
O().a("AppLovinSdk", "Detected mediation provider: MAX");
}
}
public void W0() {
z().n();
}
public MediationServiceImpl X() {
Object obj = this.d0.get();
if (obj == null) {
synchronized (this.d0) {
try {
obj = this.d0.get();
if (obj == null) {
obj = new MediationServiceImpl(this);
this.d0.set(obj);
}
} finally {
}
}
}
if (obj == this.d0) {
obj = null;
}
return (MediationServiceImpl) obj;
}
public void X0() {
a((Map) null);
}
public C0560j3 Y() {
Object obj = this.z.get();
if (obj == null) {
synchronized (this.z) {
try {
obj = this.z.get();
if (obj == null) {
obj = new C0560j3(this);
this.z.set(obj);
}
} finally {
}
}
}
if (obj == this.z) {
obj = null;
}
return (C0560j3) obj;
}
public void Y0() {
if (AppLovinMediationProvider.ADMOB.equalsIgnoreCase(this.l) && ((Boolean) a(C0577l4.f351C3)).booleanValue()) {
String str = (String) a(C0577l4.f348B3);
if (TextUtils.isEmpty(str)) {
return;
}
StringBuilder sb = new StringBuilder();
String str2 = AppLovinSdk.VERSION;
sb.append(str2);
sb.append(C1008b6.u);
if (str.startsWith(sb.toString())) {
return;
}
final String a2 = b0.s.a("Mismatched AdMob adapter (", str, ") and AppLovin SDK (", str2, ") versions detected, which may cause compatibility issues.");
C0676o.h("AppLovinSdk", a2);
AppLovinSdkUtils.runOnUiThread(true, new Runnable() {
@Override
public final void run() {
C0672k.this.b(a2);
}
});
}
}
public C0568k3 Z() {
Object obj = this.e0.get();
if (obj == null) {
synchronized (this.e0) {
try {
obj = this.e0.get();
if (obj == null) {
obj = new C0568k3();
this.e0.set(obj);
}
} finally {
}
}
}
if (obj == this.e0) {
obj = null;
}
return (C0568k3) obj;
}
public C0677p a0() {
Object obj = this.g0.get();
if (obj == null) {
synchronized (this.g0) {
try {
obj = this.g0.get();
if (obj == null) {
obj = new C0677p(this);
this.g0.set(obj);
}
} finally {
}
}
}
if (obj == this.g0) {
obj = null;
}
return (C0677p) obj;
}
public AppLovinNativeAdService b0() {
Object obj = this.n.get();
if (obj == null) {
synchronized (this.n) {
try {
obj = this.n.get();
if (obj == null) {
obj = new AppLovinNativeAdService(this);
this.n.set(obj);
}
} finally {
}
}
}
if (obj == this.n) {
obj = null;
}
return (AppLovinNativeAdService) obj;
}
public C0617n3 c0() {
Object obj = this.M.get();
if (obj == null) {
synchronized (this.M) {
try {
obj = this.M.get();
if (obj == null) {
obj = new C0617n3(o());
this.M.set(obj);
}
} finally {
}
}
}
if (obj == this.M) {
obj = null;
}
return (C0617n3) obj;
}
public C0715w3 d0() {
Object obj = this.T.get();
if (obj == null) {
synchronized (this.T) {
try {
obj = this.T.get();
if (obj == null) {
obj = new C0715w3(this);
this.T.set(obj);
}
} finally {
}
}
}
if (obj == this.T) {
obj = null;
}
return (C0715w3) obj;
}
public com.applovin.impl.sdk.network.b e0() {
Object obj = this.Z.get();
if (obj == null) {
synchronized (this.Z) {
try {
obj = this.Z.get();
if (obj == null) {
obj = new com.applovin.impl.sdk.network.b(this);
this.Z.set(obj);
}
} finally {
}
}
}
if (obj == this.Z) {
obj = null;
}
return (com.applovin.impl.sdk.network.b) obj;
}
public PostbackServiceImpl f0() {
Object obj = this.Y.get();
if (obj == null) {
synchronized (this.Y) {
try {
obj = this.Y.get();
if (obj == null) {
obj = new PostbackServiceImpl(this);
this.Y.set(obj);
}
} finally {
}
}
}
if (obj == this.Y) {
obj = null;
}
return (PostbackServiceImpl) obj;
}
public r g0() {
Object obj = this.B.get();
if (obj == null) {
synchronized (this.B) {
try {
obj = this.B.get();
if (obj == null) {
obj = N0();
if (obj == null) {
obj = this.B;
}
this.B.set(obj);
}
} finally {
}
}
}
if (obj == this.B) {
obj = null;
}
return (r) obj;
}
public String h0() {
return w0().a();
}
public String i0() {
return this.a;
}
public MaxSegmentCollectionImpl j0() {
return (MaxSegmentCollectionImpl) this.k;
}
public Map k0() {
MaxSegmentCollectionImpl j0 = j0();
if (j0 == null) {
return null;
}
return j0.getJsonData();
}
public C0569k4 l0() {
Object obj = this.O.get();
if (obj == null) {
synchronized (this.O) {
try {
obj = this.O.get();
if (obj == null) {
obj = new C0569k4(this);
this.O.set(obj);
}
} finally {
}
}
}
if (obj == this.O) {
obj = null;
}
return (C0569k4) obj;
}
public SessionTracker m0() {
Object obj = this.I.get();
if (obj == null) {
synchronized (this.I) {
try {
obj = this.I.get();
if (obj == null) {
obj = new SessionTracker(this);
this.I.set(obj);
}
} finally {
}
}
}
if (obj == this.I) {
obj = null;
}
return (SessionTracker) obj;
}
public AppLovinSdkSettings n0() {
return this.j;
}
public C0585m4 o0() {
Object obj = this.x.get();
if (obj == null) {
synchronized (this.x) {
try {
obj = this.x.get();
if (obj == null) {
obj = new C0585m4(this);
this.x.set(obj);
}
} finally {
}
}
}
if (obj == this.x) {
obj = null;
}
return (C0585m4) obj;
}
public ArrayService p() {
Object obj = this.U.get();
if (obj == null) {
synchronized (this.U) {
try {
obj = this.U.get();
if (obj == null) {
obj = new ArrayService(this);
this.U.set(obj);
}
} finally {
}
}
}
if (obj == this.U) {
obj = null;
}
return (ArrayService) obj;
}
public C0626o4 p0() {
Object obj = this.C.get();
if (obj == null) {
synchronized (this.C) {
try {
obj = this.C.get();
if (obj == null) {
obj = new C0626o4(this);
this.C.set(obj);
}
} finally {
}
}
}
if (obj == this.C) {
obj = null;
}
return (C0626o4) obj;
}
public C0670i q() {
Object obj = this.P.get();
if (obj == null) {
synchronized (this.P) {
try {
obj = this.P.get();
if (obj == null) {
obj = new C0670i(this);
this.P.set(obj);
}
} finally {
}
}
}
if (obj == this.P) {
obj = null;
}
return (C0670i) obj;
}
public C0650r5 q0() {
Object obj = this.w.get();
if (obj == null) {
synchronized (this.w) {
try {
obj = this.w.get();
if (obj == null) {
obj = new C0650r5(this);
this.w.set(obj);
}
} finally {
}
}
}
if (obj == this.w) {
obj = null;
}
return (C0650r5) obj;
}
public String r() {
return this.b;
}
public SharedPreferencesOnSharedPreferenceChangeListenerC0587m6 r0() {
Object obj = this.R.get();
if (obj == null) {
synchronized (this.R) {
try {
obj = this.R.get();
if (obj == null) {
obj = new SharedPreferencesOnSharedPreferenceChangeListenerC0587m6(this);
this.R.set(obj);
}
} finally {
}
}
}
if (obj == this.R) {
obj = null;
}
return (SharedPreferencesOnSharedPreferenceChangeListenerC0587m6) obj;
}
public String s() {
return w0().b();
}
public C0659s6 s0() {
Object obj = this.j0.get();
if (obj == null) {
synchronized (this.j0) {
try {
obj = this.j0.get();
if (obj == null) {
obj = new C0659s6(this);
this.j0.set(obj);
}
} finally {
}
}
}
if (obj == this.j0) {
obj = null;
}
return (C0659s6) obj;
}
public CmpServiceImpl t() {
Object obj = this.p.get();
if (obj == null) {
synchronized (this.p) {
try {
obj = this.p.get();
if (obj == null) {
obj = new CmpServiceImpl(this);
this.p.set(obj);
}
} finally {
}
}
}
if (obj == this.p) {
obj = null;
}
return (CmpServiceImpl) obj;
}
public long t0() {
if (this.h == 0) {
return -1L;
}
return System.currentTimeMillis() - this.h;
}
public String toString() {
StringBuilder sb = new StringBuilder("CoreSdk{sdkKey='");
sb.append(this.a);
sb.append("', enabled=");
sb.append(this.q0);
sb.append(", isFirstSession=");
return androidx.recyclerview.widget.s.a(sb, this.r0, '}');
}
public C0671j u() {
Object obj = this.N.get();
if (obj == null) {
synchronized (this.N) {
try {
obj = this.N.get();
if (obj == null) {
obj = new C0671j(this);
this.N.set(obj);
}
} finally {
}
}
}
if (obj == this.N) {
obj = null;
}
return (C0671j) obj;
}
public Activity u0() {
Activity b2 = a(o()).b();
return b2 != null ? b2 : J();
}
public String v() {
return w0().c();
}
public C0726x6 v0() {
return this.v;
}
public SdkConfigurationImpl w() {
return this.x0;
}
public C0734y6 w0() {
Object obj = this.D.get();
if (obj == null) {
synchronized (this.D) {
try {
obj = this.D.get();
if (obj == null) {
obj = new C0734y6(this);
this.D.set(obj);
}
} finally {
}
}
}
if (obj == this.D) {
obj = null;
}
return (C0734y6) obj;
}
public C0581m0 x() {
Object obj = this.y.get();
if (obj == null) {
synchronized (this.y) {
try {
obj = this.y.get();
if (obj == null) {
obj = new C0581m0(this);
this.y.set(obj);
}
} finally {
}
}
}
if (obj == this.y) {
obj = null;
}
return (C0581m0) obj;
}
public x7 x0() {
Object obj = this.L.get();
if (obj == null) {
synchronized (this.L) {
try {
obj = this.L.get();
if (obj == null) {
obj = new x7(this);
this.L.set(obj);
}
} finally {
}
}
}
if (obj == this.L) {
obj = null;
}
return (x7) obj;
}
public C0630p0 y() {
Object obj = this.Q.get();
if (obj == null) {
synchronized (this.Q) {
try {
obj = this.Q.get();
if (obj == null) {
obj = new C0630p0(this);
this.Q.set(obj);
}
} finally {
}
}
}
if (obj == this.Q) {
obj = null;
}
return (C0630p0) obj;
}
public AppLovinSdk y0() {
return this.q;
}
public C0736z0 z() {
Object obj = this.S.get();
if (obj == null) {
synchronized (this.S) {
try {
obj = this.S.get();
if (obj == null) {
obj = new C0736z0(this);
this.S.set(obj);
}
} finally {
}
}
}
if (obj == this.S) {
obj = null;
}
return (C0736z0) obj;
}
public boolean z0() {
return this.s0;
}
private void d() {
C0650r5 q0 = q0();
int i = this.t0 + 1;
this.t0 = i;
q0.a((AbstractRunnableC0716w4) new C0546h5(i, this, new a()), C0650r5.b.CORE);
}
public static long n() {
return F0;
}
public C0497c e() {
return a(D0);
}
public C0660a f() {
Object obj = this.G.get();
if (obj == null) {
synchronized (this.G) {
try {
obj = this.G.get();
if (obj == null) {
obj = new C0660a(this);
this.G.set(obj);
}
} finally {
}
}
}
if (obj == this.G) {
obj = null;
}
return (C0660a) obj;
}
public C0524f g() {
return this.s;
}
public C0665d h() {
Object obj = this.W.get();
if (obj == null) {
synchronized (this.W) {
try {
obj = this.W.get();
if (obj == null) {
obj = new C0665d(this);
this.W.set(obj);
}
} finally {
}
}
}
if (obj == this.W) {
obj = null;
}
return (C0665d) obj;
}
public C0666e i() {
Object obj = this.F.get();
if (obj == null) {
synchronized (this.F) {
try {
obj = this.F.get();
if (obj == null) {
obj = new C0666e(this);
this.F.set(obj);
}
} finally {
}
}
}
if (obj == this.F) {
obj = null;
}
return (C0666e) obj;
}
public C0548i j() {
Object obj = this.a0.get();
if (obj == null) {
synchronized (this.a0) {
try {
obj = this.a0.get();
if (obj == null) {
obj = new C0548i(this);
this.a0.set(obj);
}
} finally {
}
}
}
if (obj == this.a0) {
obj = null;
}
return (C0548i) obj;
}
public AppLovinAdServiceImpl k() {
Object obj = this.m.get();
if (obj == null) {
synchronized (this.m) {
try {
obj = this.m.get();
if (obj == null) {
obj = new AppLovinAdServiceImpl(this);
this.m.set(obj);
}
} finally {
}
}
}
if (obj == this.m) {
obj = null;
}
return (AppLovinAdServiceImpl) obj;
}
public C0668g l() {
Object obj = this.K.get();
if (obj == null) {
synchronized (this.K) {
try {
obj = this.K.get();
if (obj == null) {
obj = new C0668g(this);
this.K.set(obj);
}
} finally {
}
}
}
if (obj == this.K) {
obj = null;
}
return (C0668g) obj;
}
public C0669h m() {
Object obj = this.X.get();
if (obj == null) {
synchronized (this.X) {
try {
obj = this.X.get();
if (obj == null) {
obj = new C0669h(this);
this.X.set(obj);
}
} finally {
}
}
}
if (obj == this.X) {
obj = null;
}
return (C0669h) obj;
}
public void c(JSONObject jSONObject) {
if (JsonUtils.isValid(jSONObject)) {
this.h = System.currentTimeMillis();
AbstractC0614n0.c(jSONObject, this);
AbstractC0614n0.b(jSONObject, this);
AbstractC0614n0.a(jSONObject, this);
AbstractC0492b3.f(jSONObject, this);
AbstractC0492b3.d(jSONObject, this);
AbstractC0492b3.e(jSONObject, this);
AbstractC0492b3.g(jSONObject, this);
}
}
public static void b(Context context) {
if (context == null) {
return;
}
D0 = context.getApplicationContext();
E0 = true;
}
public void a(AppLovinSdkInitializationConfiguration appLovinSdkInitializationConfiguration) {
A0();
this.j.attachAppLovinSdk(this);
String pluginVersion = appLovinSdkInitializationConfiguration.getPluginVersion();
if (pluginVersion != null) {
C0676o.g("AppLovinSdk", "Setting plugin version: ".concat(pluginVersion));
o0().a(C0577l4.f348B3, pluginVersion);
}
if (appLovinSdkInitializationConfiguration.isExceptionHandlerEnabled() && ((Boolean) a(C0577l4.s)).booleanValue()) {
AppLovinExceptionHandler.shared().addSdk(this);
AppLovinExceptionHandler.shared().enable();
}
C0650r5 q0 = q0();
AbstractRunnableC0716w4 abstractRunnableC0716w4 = this.A0;
C0650r5.b bVar = C0650r5.b.CORE;
q0.a(abstractRunnableC0716w4, bVar);
q0().a(this.B0, bVar);
}
public void a(AppLovinSdk appLovinSdk) {
this.q = appLovinSdk;
}
public static String a(String str) {
return a(str, (List) null);
}
public static String a(int i) {
return a(i, (List) null);
}
public static String a(String str, List list) {
if (TextUtils.isEmpty(str)) {
return "";
}
Context o = o();
return a(o.getResources().getIdentifier(str, com.facebook.c0.I, o.getPackageName()), list);
}
public void c(String str) {
O();
if (C0676o.a()) {
O().a("AppLovinSdk", str);
}
q0().a(new C0643q5(this));
}
public static String a(int i, List list) {
String string = o().getResources().getString(i);
return list != null ? String.format(string, list.toArray()) : string;
}
public void c() {
synchronized (this.l0) {
try {
if (!this.p0 && !this.q0) {
S0();
}
} catch (Throwable th) {
throw th;
}
}
}
public void b(JSONObject jSONObject) {
Iterator it = JsonUtils.getList(jSONObject, "error_messages", Collections.EMPTY_LIST).iterator();
while (it.hasNext()) {
C0676o.h("AppLovinSdk", (String) it.next());
}
}
public static C0497c a(Context context) {
if (H0 == null) {
synchronized (I0) {
try {
if (H0 == null) {
H0 = new C0497c(context);
}
} finally {
}
}
}
return H0;
}
public void b(String str) {
if (!AbstractC0742z6.c(this)) {
HashMap hashMap = new HashMap();
hashMap.put("details", AppLovinMediationProvider.ADMOB);
hashMap.put(C0752a.Y, str);
E().a(C0729y1.u0, "adapterVersionMismatch", hashMap);
return;
}
throw new IllegalStateException(str);
}
public List c(C0577l4 c0577l4) {
return o0().c(c0577l4);
}
public void c(C0618n4 c0618n4) {
p0().b(c0618n4);
}
public void a(final AppLovinSdkInitializationConfiguration appLovinSdkInitializationConfiguration, final AppLovinSdk.SdkInitializationListener sdkInitializationListener) {
synchronized (this.w0) {
try {
if (this.v0 != null) {
C0676o.h("AppLovinSdk", "AppLovin SDK already initialized with configuration: " + this.v0 + ". Ignoring the provided initialization configuration.");
if (!B0() || sdkInitializationListener == null) {
return;
}
AppLovinSdkUtils.runOnUiThread(new Runnable() {
@Override
public final void run() {
C0672k.this.a(sdkInitializationListener);
}
});
return;
}
this.e = System.currentTimeMillis();
this.v0 = appLovinSdkInitializationConfiguration;
this.y0 = sdkInitializationListener;
this.a = appLovinSdkInitializationConfiguration.getSdkKey();
this.b = appLovinSdkInitializationConfiguration.getAxonEventKey();
this.l = appLovinSdkInitializationConfiguration.getMediationProvider();
this.k = appLovinSdkInitializationConfiguration.getSegmentCollection();
AbstractC0742z6.a(new Runnable() {
@Override
public final void run() {
C0672k.this.a(appLovinSdkInitializationConfiguration);
}
});
} catch (Throwable th) {
throw th;
}
}
}
public void b(boolean z) {
final AppLovinSdk.SdkInitializationListener sdkInitializationListener;
if (y().i() || (sdkInitializationListener = this.y0) == null) {
return;
}
if (B0()) {
this.y0 = null;
this.z0 = null;
S().a(MaxAdapter.InitializationStatus.INITIALIZED_SUCCESS);
} else {
if (this.z0 == sdkInitializationListener) {
return;
}
S().a(MaxAdapter.InitializationStatus.INITIALIZED_FAILURE);
if (((Boolean) a(C0577l4.p)).booleanValue()) {
this.y0 = null;
} else {
this.z0 = sdkInitializationListener;
}
}
JSONObject jSONObject = new JSONObject();
JsonUtils.putBoolean(jSONObject, "enabled", B0());
JsonUtils.putBoolean(jSONObject, "timeout", z);
JsonUtils.putBoolean(jSONObject, "consent_flow_shown", this.o0.get());
long currentTimeMillis = System.currentTimeMillis() - this.e;
HashMap hashMap = new HashMap();
hashMap.put("duration_ms", String.valueOf(currentTimeMillis));
hashMap.put("details", jSONObject.toString());
this.v.d(C0729y1.i, hashMap);
AppLovinSdkUtils.runOnUiThreadDelayed(new Runnable() {
@Override
public final void run() {
C0672k.this.b(sdkInitializationListener);
}
}, Math.max(0L, ((Long) a(C0577l4.q)).longValue()));
}
public void a(AppLovinSdk.SdkInitializationListener sdkInitializationListener) {
sdkInitializationListener.onSdkInitialized(this.x0);
}
public List a(JSONObject jSONObject) {
List asList = Arrays.asList(JsonUtils.getString(jSONObject, "eaf", "").split(","));
ArrayList arrayList = new ArrayList(asList.size());
Iterator it = asList.iterator();
while (it.hasNext()) {
MaxAdFormat formatFromString = MaxAdFormat.formatFromString((String) it.next());
if (formatFromString != null) {
arrayList.add(formatFromString);
}
}
return arrayList;
}
public void b(AppLovinSdk.SdkInitializationListener sdkInitializationListener) {
O();
if (C0676o.a()) {
O().a("AppLovinSdk", "Calling back publisher's initialization completion handler...");
}
sdkInitializationListener.onSdkInitialized(this.x0);
}
public void a(boolean z) {
synchronized (this.l0) {
this.p0 = false;
this.q0 = z;
}
if (z) {
List a2 = AbstractC0576l3.a(this);
if (a2.isEmpty()) {
q0().e();
M0();
return;
}
Long l = (Long) a(AbstractC0536g3.K6);
C0531f6 c0531f6 = new C0531f6(this, true, "timeoutInitAdapters", new Runnable() {
@Override
public final void run() {
C0672k.this.I0();
}
});
O();
if (C0676o.a()) {
O().a("AppLovinSdk", "Waiting for required adapters to init: " + a2 + " - timing out in " + l + "ms...");
}
q0().a(c0531f6, C0650r5.b.TIMEOUT, l.longValue(), true);
}
}
public List b(C0577l4 c0577l4) {
return o0().b(c0577l4);
}
public void b(C0618n4 c0618n4, Object obj) {
p0().b(c0618n4, obj);
}
public Object b(C0618n4 c0618n4) {
return p0().a(c0618n4);
}
public java.lang.String b() {
throw new UnsupportedOperationException("Method not decompiled: com.applovin.impl.sdk.C0672k.b():java.lang.String");
}
public void a(C0474a3 c0474a3) {
if (q0().d()) {
return;
}
List a2 = AbstractC0576l3.a(this);
if (a2.size() <= 0 || !S().a().containsAll(a2)) {
return;
}
O();
if (C0676o.a()) {
O().a("AppLovinSdk", "All required adapters initialized");
}
q0().e();
M0();
}
public boolean a(MaxAdFormat maxAdFormat) {
List list = this.k0;
return (list == null || list.size() <= 0 || this.k0.contains(maxAdFormat)) ? false : true;
}
public void a() {
String str = (String) p0().a(C0618n4.g, null);
if (StringUtils.isValidString(str)) {
if (AppLovinSdk.VERSION_CODE < AbstractC0742z6.g(str)) {
C0676o.h("AppLovinSdk", "Current version (" + AppLovinSdk.VERSION + ") is older than earlier installed version (" + str + "), which may cause compatibility issues.");
}
}
}
public Object a(C0577l4 c0577l4) {
return o0().a(c0577l4);
}
public boolean a(C0577l4 c0577l4, MaxAdFormat maxAdFormat) {
return b(c0577l4).contains(maxAdFormat);
}
public void a(Map map) {
U().a(map);
}
public void a(Uri uri) {
C().a(uri);
}
public void a(String str, Object obj, SharedPreferences.Editor editor) {
p0().a(str, obj, editor);
}
public Object a(C0618n4 c0618n4) {
return a(c0618n4, (Object) null);
}
public Object a(C0618n4 c0618n4, Object obj) {
return p0().a(c0618n4, obj);
}
public Object a(String str, Object obj, Class cls, SharedPreferences sharedPreferences) {
return C0626o4.a(str, obj, cls, sharedPreferences);
}
public void a(SharedPreferences sharedPreferences) {
p0().a(sharedPreferences);
}
}