正在查看: FileWipe Pro v3.0.0 应用的 k.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: FileWipe Pro v3.0.0 应用的 k.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.a1;
import com.applovin.impl.a3;
import com.applovin.impl.a7;
import com.applovin.impl.b3;
import com.applovin.impl.e1;
import com.applovin.impl.e2;
import com.applovin.impl.e4;
import com.applovin.impl.f3;
import com.applovin.impl.f6;
import com.applovin.impl.g3;
import com.applovin.impl.h5;
import com.applovin.impl.j3;
import com.applovin.impl.k3;
import com.applovin.impl.k4;
import com.applovin.impl.l2;
import com.applovin.impl.l3;
import com.applovin.impl.l4;
import com.applovin.impl.m0;
import com.applovin.impl.m1;
import com.applovin.impl.m4;
import com.applovin.impl.m6;
import com.applovin.impl.mediation.MaxSegmentCollectionImpl;
import com.applovin.impl.mediation.MediationServiceImpl;
import com.applovin.impl.n0;
import com.applovin.impl.n3;
import com.applovin.impl.n4;
import com.applovin.impl.o4;
import com.applovin.impl.p0;
import com.applovin.impl.privacy.cmp.CmpServiceImpl;
import com.applovin.impl.q5;
import com.applovin.impl.r2;
import com.applovin.impl.r5;
import com.applovin.impl.s6;
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.u7;
import com.applovin.impl.w3;
import com.applovin.impl.w4;
import com.applovin.impl.y1;
import com.applovin.impl.y6;
import com.applovin.impl.y7;
import com.applovin.impl.z0;
import com.applovin.impl.z6;
import com.applovin.mediation.MaxAdFormat;
import com.applovin.mediation.MaxSegmentCollection;
import com.applovin.mediation.adapter.MaxAdapter;
import com.applovin.sdk.AppLovinSdk;
import com.applovin.sdk.AppLovinSdkInitializationConfiguration;
import com.applovin.sdk.AppLovinSdkSettings;
import com.applovin.sdk.AppLovinSdkUtils;
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;
public class k {
public static k C0;
protected static Context D0;
private static boolean E0;
private static final boolean G0;
private static volatile com.applovin.impl.c H0;
private String f4115a;
private String f4117b;
private WeakReference f4119c;
private final long f4121d;
private long f4123e;
private long f4125f;
private Long f4127g;
private long f4129h;
private com.applovin.impl.mediation.e f4132i0;
private final AppLovinSdkSettings f4133j;
private MaxSegmentCollection f4135k;
private List k0;
private String l;
private boolean p0;
private volatile AppLovinSdk f4143q;
private String f4152u0;
private AppLovinSdkInitializationConfiguration f4154v0;
private AppLovinSdk.SdkInitializationListener y0;
private AppLovinSdk.SdkInitializationListener f4161z0;
private static final Object I0 = new Object();
private static final long F0 = System.currentTimeMillis();
private final AtomicBoolean f4131i = new AtomicBoolean();
private final AtomicReference m = new AtomicReference();
private final AtomicReference f4138n = new AtomicReference();
private final AtomicReference f4140o = new AtomicReference();
private final AtomicReference f4142p = new AtomicReference();
private final o f4145r = new o(this);
private final com.applovin.impl.f f4147s = new com.applovin.impl.f(this);
private final r2 f4149t = new r2(this);
private final m1 f4151u = new m1(this);
private final y6 f4153v = new y6(this);
private final AtomicReference f4155w = new AtomicReference();
private final AtomicReference f4157x = new AtomicReference();
private final AtomicReference f4159y = new AtomicReference();
private final AtomicReference f4160z = 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 f4116a0 = new AtomicReference();
private final AtomicReference f4118b0 = new AtomicReference();
private final AtomicReference f4120c0 = new AtomicReference();
private final AtomicReference f4122d0 = new AtomicReference();
private final AtomicReference f4124e0 = new AtomicReference();
private final AtomicReference f4126f0 = new AtomicReference();
private final AtomicReference f4128g0 = new AtomicReference();
private final AtomicReference f4130h0 = new AtomicReference();
private final AtomicReference f4134j0 = new AtomicReference();
private final Object f4136l0 = new Object();
private final AtomicBoolean f4137m0 = new AtomicBoolean(true);
private final AtomicBoolean f4139n0 = new AtomicBoolean();
private final AtomicBoolean f4141o0 = new AtomicBoolean();
private boolean f4144q0 = false;
private boolean f4146r0 = false;
private boolean f4148s0 = false;
private int f4150t0 = 0;
private final Object f4156w0 = new Object();
private SdkConfigurationImpl f4158x0 = new SdkConfigurationImpl(this);
private final w4 A0 = new f6(this, true, "scheduleAdLoadIntegrationError", new x(2, this));
private final w4 B0 = new f6(this, true, "sdkInit", new x(3, this));
public class a implements h5.b {
public a() {
}
@Override
public void a(JSONObject jSONObject) {
boolean isValid = JsonUtils.isValid(jSONObject);
k.this.c(jSONObject);
if (((Boolean) k.this.a(g3.C7)).booleanValue()) {
k kVar = k.this;
kVar.f4132i0 = new com.applovin.impl.mediation.e(kVar);
}
k.this.m().a();
n0.a(jSONObject, isValid, k.this);
Boolean bool = JsonUtils.getBoolean(jSONObject, "smd", Boolean.FALSE);
k.this.U().a(bool.booleanValue(), JsonUtils.getInt(jSONObject, "smd_delay_sec", 2));
k.this.E().b();
k kVar2 = k.this;
kVar2.k0 = kVar2.a(jSONObject);
if (isValid) {
k.this.f4158x0.setEnabledAmazonAdUnitIds(CollectionUtils.explode(JsonUtils.getString(jSONObject, "eaaui", "")));
}
k.this.s0().a(jSONObject);
k.this.b(jSONObject);
l2.b(((Boolean) k.this.a(l4.S5)).booleanValue());
l2.a(((Boolean) k.this.a(l4.T5)).booleanValue());
k.this.Q0();
if (!((Boolean) k.this.a(l4.V2)).booleanValue() || isValid || !n0.a(k.o())) {
k.this.O0();
return;
}
k.this.O();
if (o.a()) {
k.this.O().d("AppLovinSdk", "SDK initialized with no internet connection - listening for connection");
}
k.this.T0();
}
}
public class b implements p0.c {
public b() {
}
@Override
public void a(p0.b bVar) {
k.this.O();
if (o.a()) {
k.this.O().a("AppLovinSdk", "Terms and Privacy Policy flow completed with status: " + bVar);
}
k.this.f4141o0.set(bVar.b());
if (!bVar.a()) {
k.this.c("Initializing SDK in MAX environment...");
return;
}
k.this.O();
if (o.a()) {
k.this.O().a("AppLovinSdk", "Re-initializing SDK with the updated privacy settings...");
}
k.this.S0();
k.this.R0();
}
}
public class c implements h5.b {
public c() {
}
@Override
public void a(JSONObject jSONObject) {
k.this.c(jSONObject);
k.this.f4131i.set(false);
k.this.O0();
}
}
public class d implements n3.a {
final n3 f4165a;
public d(n3 n3Var) {
this.f4165a = n3Var;
}
@Override
public void a() {
k.this.O();
if (o.a()) {
k.this.O().d("AppLovinSdk", "Connected to internet - re-initializing SDK");
}
synchronized (k.this.f4136l0) {
try {
if (!k.this.p0) {
k.this.S0();
}
} catch (Throwable th) {
throw th;
}
}
this.f4165a.b(this);
}
@Override
public void b() {
}
}
static {
try {
AppLovinSdkUtils.runOnUiThread(new c5.a(1));
G0 = true;
} catch (Throwable unused) {
G0 = false;
}
}
public k(AppLovinSdkSettings appLovinSdkSettings, Context context) {
this.p0 = false;
C0 = this;
this.f4133j = appLovinSdkSettings;
this.f4121d = 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.f4119c = new WeakReference((Activity) context);
}
}
private void A0() {
Context context = D0;
o O = O();
o4 p0 = p0();
p0 y10 = y();
a(context);
m0();
j();
p();
c0();
S().a(MaxAdapter.InitializationStatus.INITIALIZING);
NativeCrashReporter.a(this);
String str = this.f4115a;
if (str == null || str.length() != 86) {
o.h("AppLovinSdk", "SDK key provided is invalid (" + this.f4115a + "). Expected length: 86 characters.\n\nStack trace:\n" + Log.getStackTraceString(new Throwable()));
}
if (StringUtils.isValidString(this.f4117b) && this.f4117b.length() != 36) {
String r6 = s1.a.r(new StringBuilder("Axon event key length "), this.f4117b, " is invalid - expected 36");
if (a7.c(this)) {
throw new IllegalArgumentException(r6);
}
o.h("AppLovinSdk", r6);
}
if (y10.l()) {
String str2 = "Terms Flow has been replaced. " + y10.g();
if (a7.c(this)) {
throw new IllegalStateException(str2);
}
o.h("AppLovinSdk", str2);
}
if (a7.i()) {
o.h("AppLovinSdk", "Failed to find class for name: com.applovin.sdk.AppLovinSdk. Please ensure proguard rules have not been omitted from the build.");
}
if (!a7.b(this)) {
o.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 (a7.k(context)) {
this.f4133j.setVerboseLogging(true);
}
o0().a(l4.f2932k, Boolean.valueOf(this.f4133j.isVerboseLoggingEnabled()));
l3.d(this);
SharedPreferences defaultSharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);
n4 n4Var = n4.f3514c;
if (TextUtils.isEmpty((String) p0.a(n4Var, (Object) null, defaultSharedPreferences))) {
this.f4146r0 = true;
p0.b(n4Var, Boolean.toString(true), defaultSharedPreferences);
} else {
p0.b(n4Var, Boolean.toString(false), defaultSharedPreferences);
}
n4 n4Var2 = n4.f3515d;
if (((Boolean) p0.a(n4Var2, Boolean.FALSE)).booleanValue()) {
if (o.a()) {
O.a("AppLovinSdk", "Initializing SDK for non-maiden launch");
}
this.f4148s0 = true;
} else {
if (o.a()) {
O.a("AppLovinSdk", "Initializing SDK for maiden launch");
}
p0.b(n4Var2, Boolean.TRUE);
p0.b(n4.f3527r, Boolean.valueOf(y10.j()));
}
n4 n4Var3 = n4.f3516e;
this.f4125f = ((Long) p0.a(n4Var3, 0L)).longValue() + 1;
p0().b(n4Var3, Long.valueOf(this.f4125f));
n4 n4Var4 = n4.f3517f;
this.f4127g = (Long) p0.a(n4Var4, null);
p0().b(n4Var4, Long.valueOf(F0));
n4 n4Var5 = n4.f3518g;
String str3 = (String) p0.a(n4Var5, null);
if (StringUtils.isValidString(str3)) {
if (AppLovinSdk.VERSION_CODE > a7.g(str3)) {
p0.b(n4Var5, AppLovinSdk.VERSION);
}
} else {
p0.b(n4Var5, AppLovinSdk.VERSION);
}
v0().d(y1.f4687e, CollectionUtils.map("details", "isInitProviderContextSet=" + E0));
}
public static boolean F0() {
return G0;
}
public void I0() {
if (q0().d()) {
return;
}
O();
if (o.a()) {
O().a("AppLovinSdk", "Timing out adapters init...");
}
q0().e();
b(true);
}
public void J0() {
r5 q02 = q0();
int i10 = this.f4150t0 + 1;
this.f4150t0 = i10;
q02.a((w4) new h5(i10, this, new c()), r5.b.CORE);
}
public void K0() {
if (G0()) {
e2.b(this);
}
}
public void L0() {
synchronized (this.f4136l0) {
try {
boolean a10 = n0.a(o());
if (!G0()) {
O();
if (o.a()) {
O().a("AppLovinSdk", "non-MAX mediation detected, mediation provider is: " + V());
}
}
if (!((Boolean) a(l4.W2)).booleanValue() || a10) {
S0();
}
if (((Boolean) a(l4.V2)).booleanValue() && !a10) {
O();
if (o.a()) {
O().d("AppLovinSdk", "SDK initialized with no internet connection - listening for connection");
}
T0();
}
} catch (Throwable th) {
throw th;
}
}
}
private r N0() {
if (!e4.f(D0)) {
return null;
}
try {
return new r(this);
} catch (Throwable th) {
o.b("AppLovinSdk", "Failed to initialize Privacy Sandbox Service", th);
return null;
}
}
public void O0() {
Long l = (Long) a(l4.f2893e3);
if (l.longValue() >= 0 && this.f4131i.compareAndSet(false, true)) {
u7.a(l.longValue(), false, this, new x(1, this));
}
}
public void Q0() {
if (!G0()) {
c("Initializing SDK in non-MAX environment...");
return;
}
if (!this.f4139n0.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() {
n3 c02 = c0();
c02.a(new d(c02));
}
private Map W() {
try {
return JsonUtils.toStringMap(new JSONObject((String) a(l4.Y3)));
} catch (JSONException unused) {
return Collections.EMPTY_MAP;
}
}
public static Context o() {
return D0;
}
public a1 A() {
Object obj = this.V.get();
if (obj == null) {
synchronized (this.V) {
try {
obj = this.V.get();
if (obj == null) {
obj = new a1(this);
this.V.set(obj);
}
} finally {
}
}
}
if (obj == this.V) {
obj = null;
}
return (a1) obj;
}
public l B() {
Object obj = this.A.get();
if (obj == null) {
synchronized (this.A) {
try {
obj = this.A.get();
if (obj == null) {
obj = new l(this);
this.A.set(obj);
}
} finally {
}
}
}
if (obj == this.A) {
obj = null;
}
return (l) obj;
}
public boolean B0() {
boolean z3;
synchronized (this.f4136l0) {
z3 = this.f4144q0;
}
return z3;
}
public e1 C() {
Object obj = this.E.get();
if (obj == null) {
synchronized (this.E) {
try {
obj = this.E.get();
if (obj == null) {
obj = new e1(this);
this.E.set(obj);
}
} finally {
}
}
}
if (obj == this.E) {
obj = null;
}
return (e1) obj;
}
public boolean C0() {
return this.f4146r0;
}
public String D() {
return this.f4152u0;
}
public boolean D0() {
boolean z3;
synchronized (this.f4156w0) {
z3 = this.f4154v0 != null;
}
return z3;
}
public m1 E() {
return this.f4151u;
}
public boolean E0() {
boolean z3;
synchronized (this.f4136l0) {
z3 = this.p0;
}
return z3;
}
public String F() {
return w0().d();
}
public EventServiceImpl G() {
Object obj = this.f4140o.get();
if (obj == null) {
synchronized (this.f4140o) {
try {
obj = this.f4140o.get();
if (obj == null) {
obj = new EventServiceImpl(this);
this.f4140o.set(obj);
}
} finally {
}
}
}
if (obj == this.f4140o) {
obj = null;
}
return (EventServiceImpl) obj;
}
public boolean G0() {
return StringUtils.containsIgnoreCase(V(), "max");
}
public m H() {
Object obj = this.H.get();
if (obj == null) {
synchronized (this.H) {
try {
obj = this.H.get();
if (obj == null) {
obj = new m(this);
this.H.set(obj);
}
} finally {
}
}
}
if (obj == this.H) {
obj = null;
}
return (m) obj;
}
public boolean H0() {
return a7.a("com.unity3d.player.UnityPlayerActivity");
}
public n I() {
Object obj = this.J.get();
if (obj == null) {
synchronized (this.J) {
try {
obj = this.J.get();
if (obj == null) {
obj = new n(this);
this.J.set(obj);
}
} finally {
}
}
}
if (obj == this.J) {
obj = null;
}
return (n) obj;
}
public Activity J() {
WeakReference weakReference;
if (!((Boolean) a(l4.f2947m4)).booleanValue() || (weakReference = this.f4119c) == null) {
return null;
}
return (Activity) weakReference.get();
}
public AppLovinSdkInitializationConfiguration K() {
return this.f4154v0;
}
public long L() {
return this.f4121d;
}
public Long M() {
return this.f4127g;
}
public void M0() {
b(false);
}
public long N() {
return this.f4125f;
}
public o O() {
return this.f4145r;
}
public r2 P() {
return this.f4149t;
}
public void P0() {
if (StringUtils.isValidString(this.l)) {
return;
}
this.l = "max";
}
public com.applovin.impl.mediation.d Q() {
Object obj = this.f4130h0.get();
if (obj == null) {
synchronized (this.f4130h0) {
try {
obj = this.f4130h0.get();
if (obj == null) {
obj = new com.applovin.impl.mediation.d(this);
this.f4130h0.set(obj);
}
} finally {
}
}
}
if (obj == this.f4130h0) {
obj = null;
}
return (com.applovin.impl.mediation.d) obj;
}
public com.applovin.impl.mediation.e R() {
return this.f4132i0;
}
public void R0() {
u().a();
}
public com.applovin.impl.mediation.f S() {
Object obj = this.f4120c0.get();
if (obj == null) {
synchronized (this.f4120c0) {
try {
obj = this.f4120c0.get();
if (obj == null) {
obj = new com.applovin.impl.mediation.f(this);
this.f4120c0.set(obj);
}
} finally {
}
}
}
if (obj == this.f4120c0) {
obj = null;
}
return (com.applovin.impl.mediation.f) obj;
}
public void S0() {
synchronized (this.f4136l0) {
this.p0 = true;
q0().f();
d();
}
}
public com.applovin.impl.mediation.g T() {
Object obj = this.f4118b0.get();
if (obj == null) {
synchronized (this.f4118b0) {
try {
obj = this.f4118b0.get();
if (obj == null) {
obj = new com.applovin.impl.mediation.g(this);
this.f4118b0.set(obj);
}
} finally {
}
}
}
if (obj == this.f4118b0) {
obj = null;
}
return (com.applovin.impl.mediation.g) obj;
}
public f3 U() {
Object obj = this.f4126f0.get();
if (obj == null) {
synchronized (this.f4126f0) {
try {
obj = this.f4126f0.get();
if (obj == null) {
obj = new f3(this);
this.f4126f0.set(obj);
}
} finally {
}
}
}
if (obj == this.f4126f0) {
obj = null;
}
return (f3) obj;
}
public void U0() {
o.h("AppLovinSdk", "Resetting SDK state...");
o0().a();
o0().e();
if (this.f4137m0.compareAndSet(true, false)) {
S0();
} else {
this.f4137m0.set(true);
}
}
public String V() {
return this.l;
}
public void V0() {
if (StringUtils.isValidString(this.f4152u0)) {
return;
}
this.f4152u0 = "max";
O();
if (o.a()) {
O().a("AppLovinSdk", "Detected mediation provider: MAX");
}
}
public void W0() {
z().n();
}
public MediationServiceImpl X() {
Object obj = this.f4122d0.get();
if (obj == null) {
synchronized (this.f4122d0) {
try {
obj = this.f4122d0.get();
if (obj == null) {
obj = new MediationServiceImpl(this);
this.f4122d0.set(obj);
}
} finally {
}
}
}
if (obj == this.f4122d0) {
obj = null;
}
return (MediationServiceImpl) obj;
}
public void X0() {
a((Map) null);
}
public j3 Y() {
Object obj = this.f4160z.get();
if (obj == null) {
synchronized (this.f4160z) {
try {
obj = this.f4160z.get();
if (obj == null) {
obj = new j3(this);
this.f4160z.set(obj);
}
} finally {
}
}
}
if (obj == this.f4160z) {
obj = null;
}
return (j3) obj;
}
public void Y0() {
if ("admob".equalsIgnoreCase(this.l) && ((Boolean) a(l4.C3)).booleanValue()) {
String str = (String) a(l4.B3);
if (TextUtils.isEmpty(str)) {
return;
}
StringBuilder sb2 = new StringBuilder();
String str2 = AppLovinSdk.VERSION;
sb2.append(str2);
sb2.append(".");
if (str.startsWith(sb2.toString())) {
return;
}
String i10 = j0.a.i("Mismatched AdMob adapter (", str, ") and AppLovin SDK (", str2, ") versions detected, which may cause compatibility issues.");
o.h("AppLovinSdk", i10);
AppLovinSdkUtils.runOnUiThread(true, new u(3, this, i10));
}
}
public k3 Z() {
Object obj = this.f4124e0.get();
if (obj == null) {
synchronized (this.f4124e0) {
try {
obj = this.f4124e0.get();
if (obj == null) {
obj = new k3();
this.f4124e0.set(obj);
}
} finally {
}
}
}
if (obj == this.f4124e0) {
obj = null;
}
return (k3) obj;
}
public p a0() {
Object obj = this.f4128g0.get();
if (obj == null) {
synchronized (this.f4128g0) {
try {
obj = this.f4128g0.get();
if (obj == null) {
obj = new p(this);
this.f4128g0.set(obj);
}
} finally {
}
}
}
if (obj == this.f4128g0) {
obj = null;
}
return (p) obj;
}
public AppLovinNativeAdService b0() {
Object obj = this.f4138n.get();
if (obj == null) {
synchronized (this.f4138n) {
try {
obj = this.f4138n.get();
if (obj == null) {
obj = new AppLovinNativeAdService(this);
this.f4138n.set(obj);
}
} finally {
}
}
}
if (obj == this.f4138n) {
obj = null;
}
return (AppLovinNativeAdService) obj;
}
public n3 c0() {
Object obj = this.M.get();
if (obj == null) {
synchronized (this.M) {
try {
obj = this.M.get();
if (obj == null) {
obj = new n3(o());
this.M.set(obj);
}
} finally {
}
}
}
if (obj == this.M) {
obj = null;
}
return (n3) obj;
}
public w3 d0() {
Object obj = this.T.get();
if (obj == null) {
synchronized (this.T) {
try {
obj = this.T.get();
if (obj == null) {
obj = new w3(this);
this.T.set(obj);
}
} finally {
}
}
}
if (obj == this.T) {
obj = null;
}
return (w3) 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.f4115a;
}
public MaxSegmentCollectionImpl j0() {
return (MaxSegmentCollectionImpl) this.f4135k;
}
public Map k0() {
MaxSegmentCollectionImpl j02 = j0();
if (j02 == null) {
return null;
}
return j02.getJsonData();
}
public k4 l0() {
Object obj = this.O.get();
if (obj == null) {
synchronized (this.O) {
try {
obj = this.O.get();
if (obj == null) {
obj = new k4(this);
this.O.set(obj);
}
} finally {
}
}
}
if (obj == this.O) {
obj = null;
}
return (k4) 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.f4133j;
}
public m4 o0() {
Object obj = this.f4157x.get();
if (obj == null) {
synchronized (this.f4157x) {
try {
obj = this.f4157x.get();
if (obj == null) {
obj = new m4(this);
this.f4157x.set(obj);
}
} finally {
}
}
}
if (obj == this.f4157x) {
obj = null;
}
return (m4) 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 o4 p0() {
Object obj = this.C.get();
if (obj == null) {
synchronized (this.C) {
try {
obj = this.C.get();
if (obj == null) {
obj = new o4(this);
this.C.set(obj);
}
} finally {
}
}
}
if (obj == this.C) {
obj = null;
}
return (o4) obj;
}
public i q() {
Object obj = this.P.get();
if (obj == null) {
synchronized (this.P) {
try {
obj = this.P.get();
if (obj == null) {
obj = new i(this);
this.P.set(obj);
}
} finally {
}
}
}
if (obj == this.P) {
obj = null;
}
return (i) obj;
}
public r5 q0() {
Object obj = this.f4155w.get();
if (obj == null) {
synchronized (this.f4155w) {
try {
obj = this.f4155w.get();
if (obj == null) {
obj = new r5(this);
this.f4155w.set(obj);
}
} finally {
}
}
}
if (obj == this.f4155w) {
obj = null;
}
return (r5) obj;
}
public String r() {
return this.f4117b;
}
public m6 r0() {
Object obj = this.R.get();
if (obj == null) {
synchronized (this.R) {
try {
obj = this.R.get();
if (obj == null) {
obj = new m6(this);
this.R.set(obj);
}
} finally {
}
}
}
if (obj == this.R) {
obj = null;
}
return (m6) obj;
}
public String s() {
return w0().b();
}
public s6 s0() {
Object obj = this.f4134j0.get();
if (obj == null) {
synchronized (this.f4134j0) {
try {
obj = this.f4134j0.get();
if (obj == null) {
obj = new s6(this);
this.f4134j0.set(obj);
}
} finally {
}
}
}
if (obj == this.f4134j0) {
obj = null;
}
return (s6) obj;
}
public CmpServiceImpl t() {
Object obj = this.f4142p.get();
if (obj == null) {
synchronized (this.f4142p) {
try {
obj = this.f4142p.get();
if (obj == null) {
obj = new CmpServiceImpl(this);
this.f4142p.set(obj);
}
} finally {
}
}
}
if (obj == this.f4142p) {
obj = null;
}
return (CmpServiceImpl) obj;
}
public long t0() {
if (this.f4129h == 0) {
return -1L;
}
return System.currentTimeMillis() - this.f4129h;
}
public String toString() {
return "CoreSdk{sdkKey='" + this.f4115a + "', enabled=" + this.f4144q0 + ", isFirstSession=" + this.f4146r0 + '}';
}
public j u() {
Object obj = this.N.get();
if (obj == null) {
synchronized (this.N) {
try {
obj = this.N.get();
if (obj == null) {
obj = new j(this);
this.N.set(obj);
}
} finally {
}
}
}
if (obj == this.N) {
obj = null;
}
return (j) obj;
}
public Activity u0() {
Activity b10 = a(o()).b();
return b10 != null ? b10 : J();
}
public String v() {
return w0().c();
}
public y6 v0() {
return this.f4153v;
}
public SdkConfigurationImpl w() {
return this.f4158x0;
}
public z6 w0() {
Object obj = this.D.get();
if (obj == null) {
synchronized (this.D) {
try {
obj = this.D.get();
if (obj == null) {
obj = new z6(this);
this.D.set(obj);
}
} finally {
}
}
}
if (obj == this.D) {
obj = null;
}
return (z6) obj;
}
public m0 x() {
Object obj = this.f4159y.get();
if (obj == null) {
synchronized (this.f4159y) {
try {
obj = this.f4159y.get();
if (obj == null) {
obj = new m0(this);
this.f4159y.set(obj);
}
} finally {
}
}
}
if (obj == this.f4159y) {
obj = null;
}
return (m0) obj;
}
public y7 x0() {
Object obj = this.L.get();
if (obj == null) {
synchronized (this.L) {
try {
obj = this.L.get();
if (obj == null) {
obj = new y7(this);
this.L.set(obj);
}
} finally {
}
}
}
if (obj == this.L) {
obj = null;
}
return (y7) obj;
}
public p0 y() {
Object obj = this.Q.get();
if (obj == null) {
synchronized (this.Q) {
try {
obj = this.Q.get();
if (obj == null) {
obj = new p0(this);
this.Q.set(obj);
}
} finally {
}
}
}
if (obj == this.Q) {
obj = null;
}
return (p0) obj;
}
public AppLovinSdk y0() {
return this.f4143q;
}
public z0 z() {
Object obj = this.S.get();
if (obj == null) {
synchronized (this.S) {
try {
obj = this.S.get();
if (obj == null) {
obj = new z0(this);
this.S.set(obj);
}
} finally {
}
}
}
if (obj == this.S) {
obj = null;
}
return (z0) obj;
}
public boolean z0() {
return this.f4148s0;
}
private void d() {
r5 q02 = q0();
int i10 = this.f4150t0 + 1;
this.f4150t0 = i10;
q02.a((w4) new h5(i10, this, new a()), r5.b.CORE);
}
public static long n() {
return F0;
}
public com.applovin.impl.c e() {
return a(D0);
}
public com.applovin.impl.sdk.a f() {
Object obj = this.G.get();
if (obj == null) {
synchronized (this.G) {
try {
obj = this.G.get();
if (obj == null) {
obj = new com.applovin.impl.sdk.a(this);
this.G.set(obj);
}
} finally {
}
}
}
if (obj == this.G) {
obj = null;
}
return (com.applovin.impl.sdk.a) obj;
}
public com.applovin.impl.f g() {
return this.f4147s;
}
public com.applovin.impl.sdk.d h() {
Object obj = this.W.get();
if (obj == null) {
synchronized (this.W) {
try {
obj = this.W.get();
if (obj == null) {
obj = new com.applovin.impl.sdk.d(this);
this.W.set(obj);
}
} finally {
}
}
}
if (obj == this.W) {
obj = null;
}
return (com.applovin.impl.sdk.d) obj;
}
public e i() {
Object obj = this.F.get();
if (obj == null) {
synchronized (this.F) {
try {
obj = this.F.get();
if (obj == null) {
obj = new e(this);
this.F.set(obj);
}
} finally {
}
}
}
if (obj == this.F) {
obj = null;
}
return (e) obj;
}
public com.applovin.impl.i j() {
Object obj = this.f4116a0.get();
if (obj == null) {
synchronized (this.f4116a0) {
try {
obj = this.f4116a0.get();
if (obj == null) {
obj = new com.applovin.impl.i(this);
this.f4116a0.set(obj);
}
} finally {
}
}
}
if (obj == this.f4116a0) {
obj = null;
}
return (com.applovin.impl.i) 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 g l() {
Object obj = this.K.get();
if (obj == null) {
synchronized (this.K) {
try {
obj = this.K.get();
if (obj == null) {
obj = new g(this);
this.K.set(obj);
}
} finally {
}
}
}
if (obj == this.K) {
obj = null;
}
return (g) obj;
}
public h m() {
Object obj = this.X.get();
if (obj == null) {
synchronized (this.X) {
try {
obj = this.X.get();
if (obj == null) {
obj = new h(this);
this.X.set(obj);
}
} finally {
}
}
}
if (obj == this.X) {
obj = null;
}
return (h) obj;
}
public void c(JSONObject jSONObject) {
if (JsonUtils.isValid(jSONObject)) {
this.f4129h = System.currentTimeMillis();
n0.c(jSONObject, this);
n0.b(jSONObject, this);
n0.a(jSONObject, this);
b3.f(jSONObject, this);
b3.d(jSONObject, this);
b3.e(jSONObject, this);
b3.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.f4133j.attachAppLovinSdk(this);
String pluginVersion = appLovinSdkInitializationConfiguration.getPluginVersion();
if (pluginVersion != null) {
o.g("AppLovinSdk", "Setting plugin version: ".concat(pluginVersion));
o0().a(l4.B3, pluginVersion);
}
if (appLovinSdkInitializationConfiguration.isExceptionHandlerEnabled() && ((Boolean) a(l4.f2985s)).booleanValue()) {
AppLovinExceptionHandler.shared().addSdk(this);
AppLovinExceptionHandler.shared().enable();
}
r5 q02 = q0();
w4 w4Var = this.A0;
r5.b bVar = r5.b.CORE;
q02.a(w4Var, bVar);
q0().a(this.B0, bVar);
}
public void a(AppLovinSdk appLovinSdk) {
this.f4143q = appLovinSdk;
}
public static String a(String str) {
return a(str, (List) null);
}
public static String a(int i10) {
return a(i10, (List) null);
}
public static String a(String str, List list) {
if (TextUtils.isEmpty(str)) {
return "";
}
Context o6 = o();
return a(o6.getResources().getIdentifier(str, "string", o6.getPackageName()), list);
}
public void c(String str) {
O();
if (o.a()) {
O().a("AppLovinSdk", str);
}
q0().a(new q5(this));
}
public static String a(int i10, List list) {
String string = o().getResources().getString(i10);
return list != null ? String.format(string, list.toArray()) : string;
}
public void c() {
synchronized (this.f4136l0) {
try {
if (!this.p0 && !this.f4144q0) {
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()) {
o.h("AppLovinSdk", (String) it.next());
}
}
public static com.applovin.impl.c a(Context context) {
if (H0 == null) {
synchronized (I0) {
try {
if (H0 == null) {
H0 = new com.applovin.impl.c(context);
}
} finally {
}
}
}
return H0;
}
public void b(String str) {
if (!a7.c(this)) {
HashMap hashMap = new HashMap();
hashMap.put("details", "admob");
hashMap.put("error_message", str);
E().a(y1.f4720w0, "adapterVersionMismatch", hashMap);
return;
}
throw new IllegalStateException(str);
}
public List c(l4 l4Var) {
return o0().c(l4Var);
}
public void c(n4 n4Var) {
p0().b(n4Var);
}
public void a(AppLovinSdkInitializationConfiguration appLovinSdkInitializationConfiguration, AppLovinSdk.SdkInitializationListener sdkInitializationListener) {
synchronized (this.f4156w0) {
try {
if (this.f4154v0 != null) {
o.h("AppLovinSdk", "AppLovin SDK already initialized with configuration: " + this.f4154v0 + ". Ignoring the provided initialization configuration.");
if (!B0() || sdkInitializationListener == null) {
return;
}
AppLovinSdkUtils.runOnUiThread(new w(this, sdkInitializationListener, 0));
return;
}
this.f4123e = System.currentTimeMillis();
this.f4154v0 = appLovinSdkInitializationConfiguration;
this.y0 = sdkInitializationListener;
this.f4115a = appLovinSdkInitializationConfiguration.getSdkKey();
this.f4117b = appLovinSdkInitializationConfiguration.getAxonEventKey();
this.l = appLovinSdkInitializationConfiguration.getMediationProvider();
this.f4135k = appLovinSdkInitializationConfiguration.getSegmentCollection();
a7.a((Runnable) new u(2, this, appLovinSdkInitializationConfiguration));
} catch (Throwable th) {
throw th;
}
}
}
public void b(boolean z3) {
AppLovinSdk.SdkInitializationListener sdkInitializationListener;
if (y().i() || (sdkInitializationListener = this.y0) == null) {
return;
}
if (B0()) {
this.y0 = null;
this.f4161z0 = null;
S().a(MaxAdapter.InitializationStatus.INITIALIZED_SUCCESS);
} else {
if (this.f4161z0 == sdkInitializationListener) {
return;
}
S().a(MaxAdapter.InitializationStatus.INITIALIZED_FAILURE);
if (((Boolean) a(l4.f2963p)).booleanValue()) {
this.y0 = null;
} else {
this.f4161z0 = sdkInitializationListener;
}
}
JSONObject jSONObject = new JSONObject();
JsonUtils.putBoolean(jSONObject, "enabled", B0());
JsonUtils.putBoolean(jSONObject, "timeout", z3);
JsonUtils.putBoolean(jSONObject, "consent_flow_shown", this.f4141o0.get());
long currentTimeMillis = System.currentTimeMillis() - this.f4123e;
HashMap hashMap = new HashMap();
hashMap.put("duration_ms", String.valueOf(currentTimeMillis));
hashMap.put("details", jSONObject.toString());
this.f4153v.d(y1.f4695i, hashMap);
AppLovinSdkUtils.runOnUiThreadDelayed(new w(this, sdkInitializationListener, 1), Math.max(0L, ((Long) a(l4.f2970q)).longValue()));
}
public void a(AppLovinSdk.SdkInitializationListener sdkInitializationListener) {
sdkInitializationListener.onSdkInitialized(this.f4158x0);
}
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 (o.a()) {
O().a("AppLovinSdk", "Calling back publisher's initialization completion handler...");
}
sdkInitializationListener.onSdkInitialized(this.f4158x0);
}
public void a(boolean z3) {
synchronized (this.f4136l0) {
this.p0 = false;
this.f4144q0 = z3;
}
if (z3) {
List a10 = l3.a(this);
if (a10.isEmpty()) {
q0().e();
M0();
return;
}
Long l = (Long) a(g3.L6);
f6 f6Var = new f6(this, true, "timeoutInitAdapters", new x(0, this));
O();
if (o.a()) {
O().a("AppLovinSdk", "Waiting for required adapters to init: " + a10 + " - timing out in " + l + "ms...");
}
q0().a(f6Var, r5.b.TIMEOUT, l.longValue(), true);
}
}
public List b(l4 l4Var) {
return o0().b(l4Var);
}
public void b(n4 n4Var, Object obj) {
p0().b(n4Var, obj);
}
public Object b(n4 n4Var) {
return p0().a(n4Var);
}
public java.lang.String b() {
throw new UnsupportedOperationException("Method not decompiled: com.applovin.impl.sdk.k.b():java.lang.String");
}
public void a(a3 a3Var) {
if (q0().d()) {
return;
}
List a10 = l3.a(this);
if (a10.size() <= 0 || !S().a().containsAll(a10)) {
return;
}
O();
if (o.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(n4.f3518g, null);
if (StringUtils.isValidString(str)) {
if (AppLovinSdk.VERSION_CODE < a7.g(str)) {
o.h("AppLovinSdk", "Current version (" + AppLovinSdk.VERSION + ") is older than earlier installed version (" + str + "), which may cause compatibility issues.");
}
}
}
public Object a(l4 l4Var) {
return o0().a(l4Var);
}
public boolean a(l4 l4Var, MaxAdFormat maxAdFormat) {
return b(l4Var).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(n4 n4Var) {
return a(n4Var, (Object) null);
}
public Object a(n4 n4Var, Object obj) {
return p0().a(n4Var, obj);
}
public Object a(String str, Object obj, Class cls, SharedPreferences sharedPreferences) {
return o4.a(str, obj, cls, sharedPreferences);
}
public void a(SharedPreferences sharedPreferences) {
p0().a(sharedPreferences);
}
}