Cyber Surfer v5.2.5版本的 MD5 值为:db13c5fce988de393e52d2679f934b22
以下内容为反编译后的 p.java 源代码,内容仅作参考
package com.applovin.impl.sdk.e;
import android.app.Activity;
import androidx.exifinterface.media.ExifInterface;
import com.amazon.aps.shared.util.APSSharedUtil;
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 com.appsflyer.ServerParameters;
import com.facebook.internal.AnalyticsEvents;
import com.ironsource.mediationsdk.utils.IronSourceConstants;
import com.mbridge.msdk.foundation.entity.CampaignEx;
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 Runnable() {
@Override
public final void run() {
p.this.KF();
}
}), q.b.MAIN, TimeUnit.SECONDS.toMillis(1L));
}
}
private void KE() {
Map<String, Object> CS;
Map<String, Object> CR;
if (this.sdk.Bo()) {
return;
}
boolean isVerboseLoggingEnabled = this.sdk.BN().isVerboseLoggingEnabled();
String str = "<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) {
str = this.sdk.BS().DJ().KP() + " (use this for test devices)";
}
CS = this.sdk.BT().CS();
CR = this.sdk.BT().CR();
} else {
if (isVerboseLoggingEnabled) {
str = 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(IronSourceConstants.TYPE_GAID, str).e(ExifInterface.TAG_MODEL, CS.get(ServerParameters.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(CampaignEx.JSON_KEY_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()) {
nVar.e("Flow Type", Cj.zV() == d.a.TERMS ? "MAX Terms Flow" : "MAX Terms and Privacy Policy Flow");
}
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 = AnalyticsEvents.PARAMETER_SHARE_OUTCOME_SUCCEEDED;
long currentTimeMillis = System.currentTimeMillis();
com.applovin.impl.sdk.x xVar2 = this.logger;
if (com.applovin.impl.sdk.x.Fk()) {
com.applovin.impl.sdk.x xVar3 = this.logger;
String str3 = this.tag;
xVar3.f(str3, "Initializing AppLovin SDK v" + AppLovinSdk.VERSION + APSSharedUtil.TRUNCATE_SEPARATOR);
}
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 Runnable() {
@Override
public final void run() {
p.this.zH();
}
});
}
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());
}
com.applovin.impl.sdk.x xVar4 = this.logger;
if (!com.applovin.impl.sdk.x.Fk()) {
return;
}
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());
}
com.applovin.impl.sdk.x xVar5 = this.logger;
if (!com.applovin.impl.sdk.x.Fk()) {
return;
}
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());
}
com.applovin.impl.sdk.x xVar6 = this.logger;
if (com.applovin.impl.sdk.x.Fk()) {
com.applovin.impl.sdk.x xVar7 = this.logger;
String str4 = 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");
xVar7.f(str4, sb2.toString());
}
throw th2;
}
}
}
}