Puzzle King v2.3.8版本的 MD5 值为:1734eb975c9d2843afa462aec387292e
以下内容为反编译后的 n.java 源代码,内容仅作参考
package com.applovin.impl.sdk.f;
import android.app.Activity;
import com.applovin.impl.sdk.EventServiceImpl;
import com.applovin.impl.sdk.f.o;
import com.applovin.impl.sdk.utils.Utils;
import com.applovin.sdk.AppLovinSdk;
import com.applovin.sdk.AppLovinSdkUtils;
import com.facebook.devicerequests.internal.DeviceRequestsHelper;
import com.facebook.internal.AnalyticsEvents;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import java.util.Map;
import java.util.concurrent.TimeUnit;
public class n extends a {
private final com.applovin.impl.sdk.n a;
public n(com.applovin.impl.sdk.n nVar) {
super("TaskInitializeSdk", nVar);
this.a = nVar;
}
private void a() {
if (this.a.E().a()) {
return;
}
Activity aq = this.a.aq();
if (aq != null) {
this.a.E().a(aq);
} else {
this.a.U().a(new z(this.a, true, new Runnable() {
@Override
public void run() {
n.this.a.E().a(n.this.a.ah().a());
}
}), o.a.MAIN, TimeUnit.SECONDS.toMillis(1L));
}
}
private void b() {
String str;
if (this.a.e()) {
return;
}
boolean d = this.a.M().d();
if (d) {
str = this.a.X().k().b + " (use this for test devices)";
} else {
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>";
}
Map<String, Object> d2 = this.a.X().d();
Map<String, Object> c = this.a.X().c();
com.applovin.impl.sdk.utils.l lVar = new com.applovin.impl.sdk.utils.l();
lVar.a().a("=====AppLovin SDK=====");
lVar.a("===SDK Versions===").a("Version", AppLovinSdk.VERSION).a("Plugin Version", this.a.a(com.applovin.impl.sdk.d.b.dE)).a("Ad Review Version", com.applovin.impl.sdk.e.a()).a("OM SDK Version", this.a.an().c());
lVar.a("===Device Info===").a("OS", Utils.getAndroidOSInfo()).a("GAID", str).a("Model", d2.get(DeviceRequestsHelper.DEVICE_INFO_MODEL)).a("Locale", d2.get("locale")).a("Emulator", d2.get("sim")).a("Tablet", d2.get("is_tablet"));
lVar.a("===App Info===").a("Application ID", c.get(CampaignEx.JSON_KEY_PACKAGE_NAME)).a("Target SDK", c.get("target_sdk")).a("ExoPlayer Version", Integer.valueOf(Utils.getExoPlayerVersionCode()));
lVar.a("===SDK Settings===").a("SDK Key", this.a.A()).a("Mediation Provider", this.a.t()).a("TG", com.applovin.impl.sdk.utils.q.a(this.a)).a("Test Mode On", Boolean.valueOf(this.a.L().a())).a("Verbose Logging On", Boolean.valueOf(d));
lVar.a("===Privacy States===\nPlease review AppLovin MAX documentation to be compliant with regional privacy policies.").a(com.applovin.impl.sdk.k.a(f()));
lVar.a();
com.applovin.impl.sdk.w.f("AppLovinSdk", lVar.toString());
}
@Override
public void run() {
StringBuilder sb;
String str = AnalyticsEvents.PARAMETER_SHARE_OUTCOME_SUCCEEDED;
long currentTimeMillis = System.currentTimeMillis();
if (com.applovin.impl.sdk.w.a()) {
a("Initializing AppLovin SDK v" + AppLovinSdk.VERSION + "...");
}
try {
this.a.V().d();
this.a.V().c(com.applovin.impl.sdk.e.f.e);
this.a.V().c(com.applovin.impl.sdk.e.f.f);
this.a.ad().a(f());
this.a.ad().b(f());
this.a.U().a(new b(this.a), o.a.MAIN);
this.a.X().e();
this.a.aj().a();
if (Utils.isPubInDebugMode(f(), this.a)) {
this.a.h();
}
this.a.ap().a();
b();
if (((Boolean) this.a.a(com.applovin.impl.sdk.d.b.dY)).booleanValue()) {
AppLovinSdkUtils.runOnUiThread(new Runnable() {
@Override
public void run() {
com.applovin.impl.sdk.ab.a(n.this.a);
}
});
}
a();
this.a.a(true);
this.a.W().c();
((EventServiceImpl) this.a.w()).maybeTrackAppOpenEvent();
if ((this.a.I().b() && !this.a.e()) || (((Boolean) this.a.a(com.applovin.impl.sdk.d.a.h)).booleanValue() && Utils.isPubInDebugMode(this.a.N(), this.a) && this.a.f())) {
this.a.I().a();
}
this.a.an().a();
if (((Boolean) this.a.a(com.applovin.impl.sdk.d.b.aE)).booleanValue()) {
this.a.a(((Long) this.a.a(com.applovin.impl.sdk.d.b.aF)).longValue());
}
if (!com.applovin.impl.sdk.w.a()) {
return;
}
sb = new StringBuilder();
sb.append("AppLovin SDK ");
sb.append(AppLovinSdk.VERSION);
sb.append(" initialization ");
} catch (Throwable th) {
try {
if (com.applovin.impl.sdk.w.a()) {
com.applovin.impl.sdk.w.c("AppLovinSdk", "Failed to initialize SDK!", th);
}
this.a.a(false);
this.a.an().a();
if (((Boolean) this.a.a(com.applovin.impl.sdk.d.b.aE)).booleanValue()) {
this.a.a(((Long) this.a.a(com.applovin.impl.sdk.d.b.aF)).longValue());
}
if (!com.applovin.impl.sdk.w.a()) {
return;
}
sb = new StringBuilder();
sb.append("AppLovin SDK ");
sb.append(AppLovinSdk.VERSION);
sb.append(" initialization ");
} catch (Throwable th2) {
this.a.an().a();
if (((Boolean) this.a.a(com.applovin.impl.sdk.d.b.aE)).booleanValue()) {
this.a.a(((Long) this.a.a(com.applovin.impl.sdk.d.b.aF)).longValue());
}
if (com.applovin.impl.sdk.w.a()) {
StringBuilder sb2 = new StringBuilder();
sb2.append("AppLovin SDK ");
sb2.append(AppLovinSdk.VERSION);
sb2.append(" initialization ");
if (!this.a.d()) {
str = "failed";
}
sb2.append(str);
sb2.append(" in ");
sb2.append(System.currentTimeMillis() - currentTimeMillis);
sb2.append("ms");
a(sb2.toString());
}
throw th2;
}
}
}
}