MD5 校验值:d53ec1a251294bef920c76a08ee856d9
p.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package com.applovin.impl.sdk.e; import android.app.Activity; import com.applovin.impl.privacy.a.d; import com.applovin.impl.sdk.af; import com.applovin.impl.sdk.e.q; import com.applovin.sdk.AppLovinSdk; import com.applovin.sdk.AppLovinSdkUtils; import java.util.Map; import java.util.concurrent.TimeUnit; public class p extends d { private final com.applovin.impl.sdk.n sdk; public p(com.applovin.impl.sdk.n nVar) { super("TaskInitializeSdk", nVar, true); this.sdk = nVar; } private void KD() { if (this.sdk.Cv().isInitialized()) { return; } Activity CD = this.sdk.CD(); if (CD != null) { this.sdk.Cv().b(CD); } else { this.sdk.BM().a(new ab(this.sdk, true, "initializeAdapters", new MhXFz4O2fao0frTdgvSgsROV(this, 1)), q.b.MAIN, TimeUnit.SECONDS.toMillis(1L)); } } private void KE() { Map<String, Object> CS; Map<String, Object> CR; String str; if (!this.sdk.Bo()) { boolean isVerboseLoggingEnabled = this.sdk.BN().isVerboseLoggingEnabled(); String str2 = "<Enable verbose logging to see the GAID to use for test devices - https://monetization-support.applovin.com/hc/en-us/articles/236114328-How-can-I-expose-verbose-logging-for-the-SDK>"; if (this.sdk.BT() != null) { if (isVerboseLoggingEnabled) { str2 = this.sdk.BS().DJ().KP() + " (use this for test devices)"; } CS = this.sdk.BT().CS(); CR = this.sdk.BT().CR(); } else { if (isVerboseLoggingEnabled) { str2 = this.sdk.BQ().Df().KP() + " (use this for test devices)"; } CS = this.sdk.BQ().CS(); CR = this.sdk.BQ().CR(); } com.applovin.impl.sdk.utils.n nVar = new com.applovin.impl.sdk.utils.n(); nVar.Lm().dD("=====AppLovin SDK====="); nVar.dD("===SDK Versions===").e("Version", AppLovinSdk.VERSION).e("Plugin Version", this.sdk.a(com.applovin.impl.sdk.c.b.aOy)).e("Ad Review Version", com.applovin.impl.sdk.f.getVersion()).e("OM SDK Version", this.sdk.Cn().getSdkVersion()); nVar.dD("===Device Info===").e("OS", com.applovin.impl.sdk.utils.u.Lz()).e("GAID", str2).e("Model", CS.get("model")).e("Locale", CS.get("locale")).e("Emulator", CS.get("sim")).e("Tablet", CS.get("is_tablet")); nVar.dD("===App Info===").e("Application ID", CR.get("package_name")).e("Target SDK", CR.get("target_sdk")).e("ExoPlayer Version", Integer.valueOf(com.applovin.impl.sdk.utils.u.LA())); nVar.dD("===SDK Settings===").e("SDK Key", this.sdk.getSdkKey()).e("Mediation Provider", this.sdk.getMediationProvider()).e("TG", com.applovin.impl.sdk.utils.t.M(this.sdk)).e("AEI", this.sdk.a(com.applovin.impl.sdk.c.b.aKy)).e("MEI", this.sdk.a(com.applovin.impl.sdk.c.b.aKz)).e("Test Mode On", Boolean.valueOf(this.sdk.CC().isEnabled())).e("Verbose Logging On", Boolean.valueOf(isVerboseLoggingEnabled)); nVar.dD("===Privacy States===\nPlease review AppLovin MAX documentation to be compliant with regional privacy policies.").dD(com.applovin.impl.privacy.a.A(rQ())); com.applovin.impl.privacy.a.c Cj = this.sdk.Cj(); nVar.dD("===MAX Terms Flow===").e("Enabled", Boolean.valueOf(Cj.isEnabled())); if (Cj.isEnabled()) { if (Cj.zV() == d.a.TERMS) { str = "MAX Terms Flow"; } else { str = "MAX Terms and Privacy Policy Flow"; } nVar.e("Flow Type", str); } nVar.e("Privacy Policy URI", Cj.getPrivacyPolicyUri()).e("Terms of Service URI", Cj.getTermsOfServiceUri()); this.sdk.Ck(); nVar.dD("===CMP (CONSENT MANAGEMENT PLATFORM)===").dD(this.sdk.Ck().uI()); nVar.Lm(); com.applovin.impl.sdk.x.D("AppLovinSdk", nVar.toString()); } } public void KF() { this.sdk.Cv().b(this.sdk.BK().Ax()); } public void zH() { af.z(this.sdk); } @Override public void run() { com.applovin.impl.sdk.x xVar; String str; StringBuilder sb; String str2 = "succeeded"; long currentTimeMillis = System.currentTimeMillis(); if (com.applovin.impl.sdk.x.Fk()) { this.logger.f(this.tag, "Initializing AppLovin SDK v" + AppLovinSdk.VERSION + "..."); } try { this.sdk.BP().JX(); this.sdk.BP().c(com.applovin.impl.sdk.d.f.aSR); this.sdk.BP().c(com.applovin.impl.sdk.d.f.aSS); this.sdk.Ca().H(rQ()); this.sdk.Ca().L(rQ()); this.sdk.BM().a(new e(this.sdk), q.b.MAIN); if (this.sdk.BT() != null) { this.sdk.BT().DD(); } else { this.sdk.BQ().CT(); } this.sdk.Cg().Lo(); this.sdk.Cm().tv(); if (com.applovin.impl.sdk.utils.u.b(rQ(), this.sdk)) { this.sdk.Br(); } this.sdk.Cp().collectAppHubData(); KE(); if (((Boolean) this.sdk.a(com.applovin.impl.sdk.c.b.aOT)).booleanValue()) { AppLovinSdkUtils.runOnUiThread(new MhXFz4O2fao0frTdgvSgsROV(this, 0)); } KD(); this.sdk.aK(true); this.sdk.Cs().Io(); this.sdk.BD().maybeTrackAppOpenEvent(); if ((this.sdk.Cz().uC() && !this.sdk.Bo()) || (((Boolean) this.sdk.a(com.applovin.impl.sdk.c.a.aJh)).booleanValue() && com.applovin.impl.sdk.utils.u.b(com.applovin.impl.sdk.n.getApplicationContext(), this.sdk) && this.sdk.Bp())) { this.sdk.Cz().uB(); } if (this.sdk.BU() != null) { this.sdk.BU().cP((String) this.sdk.a(com.applovin.impl.sdk.c.b.aKH)); } this.sdk.Cn().uB(); if (((Boolean) this.sdk.a(com.applovin.impl.sdk.c.b.aKU)).booleanValue()) { this.sdk.bN(((Long) this.sdk.a(com.applovin.impl.sdk.c.b.aKV)).longValue()); } if (com.applovin.impl.sdk.x.Fk()) { xVar = this.logger; str = this.tag; sb = new StringBuilder("AppLovin SDK "); sb.append(AppLovinSdk.VERSION); sb.append(" initialization "); } } catch (Throwable th) { try { com.applovin.impl.sdk.x.e("AppLovinSdk", "Failed to initialize SDK!", th); this.sdk.aK(false); q(th); if (((Boolean) this.sdk.a(com.applovin.impl.sdk.c.b.aKj)).booleanValue()) { this.sdk.Bv(); } if (this.sdk.BU() != null) { this.sdk.BU().cP((String) this.sdk.a(com.applovin.impl.sdk.c.b.aKH)); } this.sdk.Cn().uB(); if (((Boolean) this.sdk.a(com.applovin.impl.sdk.c.b.aKU)).booleanValue()) { this.sdk.bN(((Long) this.sdk.a(com.applovin.impl.sdk.c.b.aKV)).longValue()); } if (com.applovin.impl.sdk.x.Fk()) { xVar = this.logger; str = this.tag; sb = new StringBuilder("AppLovin SDK "); sb.append(AppLovinSdk.VERSION); sb.append(" initialization "); } } catch (Throwable th2) { if (this.sdk.BU() != null) { this.sdk.BU().cP((String) this.sdk.a(com.applovin.impl.sdk.c.b.aKH)); } this.sdk.Cn().uB(); if (((Boolean) this.sdk.a(com.applovin.impl.sdk.c.b.aKU)).booleanValue()) { this.sdk.bN(((Long) this.sdk.a(com.applovin.impl.sdk.c.b.aKV)).longValue()); } if (com.applovin.impl.sdk.x.Fk()) { com.applovin.impl.sdk.x xVar2 = this.logger; String str3 = this.tag; StringBuilder sb2 = new StringBuilder("AppLovin SDK "); sb2.append(AppLovinSdk.VERSION); sb2.append(" initialization "); if (!this.sdk.isEnabled()) { str2 = "failed"; } sb2.append(str2); sb2.append(" in "); sb2.append(System.currentTimeMillis() - currentTimeMillis); sb2.append("ms"); xVar2.f(str3, sb2.toString()); } throw th2; } } } }