Idle Tower v2.48版本的 MD5 值为:56f20496f6a85726b376356ed2ecee23
以下内容为反编译后的 q.java 源代码,内容仅作参考
package com.applovin.impl.sdk.e;
import android.app.Activity;
import androidx.exifinterface.media.ExifInterface;
import com.applovin.impl.sdk.e.r;
import com.applovin.impl.sdk.utils.Utils;
import com.applovin.sdk.AppLovinSdk;
import com.applovin.sdk.AppLovinSdkUtils;
import com.ironsource.mediationsdk.utils.IronSourceConstants;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import java.util.Map;
import java.util.concurrent.TimeUnit;
public class q extends d {
private final com.applovin.impl.sdk.o f1491a;
public q(com.applovin.impl.sdk.o oVar) {
super("TaskInitializeSdk", oVar, true);
this.f1491a = oVar;
}
@Override
public void run() {
String str;
com.applovin.impl.sdk.x xVar;
String str2;
StringBuilder sb;
str = "succeeded";
long currentTimeMillis = System.currentTimeMillis();
com.applovin.impl.sdk.x xVar2 = this.h;
if (com.applovin.impl.sdk.x.a()) {
this.h.b(this.g, "Initializing AppLovin SDK v" + AppLovinSdk.VERSION + "...");
}
try {
this.f1491a.Q().d();
this.f1491a.Q().c(com.applovin.impl.sdk.d.f.e);
this.f1491a.Q().c(com.applovin.impl.sdk.d.f.f);
this.f1491a.X().a(f());
this.f1491a.X().b(f());
this.f1491a.N().a(new e(this.f1491a), r.b.MAIN);
if (this.f1491a.T() != null) {
this.f1491a.T().c();
} else {
this.f1491a.S().e();
}
this.f1491a.ad().a();
this.f1491a.ag().a();
this.f1491a.N().f();
if (Utils.isPubInDebugMode(f(), this.f1491a)) {
this.f1491a.j();
}
this.f1491a.aj().collectAppHubData();
b();
if (((Boolean) this.f1491a.a(com.applovin.impl.sdk.c.b.ew)).booleanValue()) {
AppLovinSdkUtils.runOnUiThread(new Runnable() {
@Override
public void run() {
com.applovin.impl.sdk.ae.a(q.this.f1491a);
}
});
}
a();
this.f1491a.a(true);
this.f1491a.am().c();
this.f1491a.H().maybeTrackAppOpenEvent();
if ((this.f1491a.at().b() && !this.f1491a.e()) || (((Boolean) this.f1491a.a(com.applovin.impl.sdk.c.a.h)).booleanValue() && Utils.isPubInDebugMode(com.applovin.impl.sdk.o.z(), this.f1491a) && this.f1491a.f())) {
this.f1491a.at().a();
}
this.f1491a.ah().a();
if (((Boolean) this.f1491a.a(com.applovin.impl.sdk.c.b.aK)).booleanValue()) {
this.f1491a.a(((Long) this.f1491a.a(com.applovin.impl.sdk.c.b.aL)).longValue());
}
com.applovin.impl.sdk.x xVar3 = this.h;
if (!com.applovin.impl.sdk.x.a()) {
return;
}
xVar = this.h;
str2 = this.g;
sb = new StringBuilder();
sb.append("AppLovin SDK ");
sb.append(AppLovinSdk.VERSION);
sb.append(" initialization ");
} catch (Throwable th) {
try {
com.applovin.impl.sdk.x.c("AppLovinSdk", "Failed to initialize SDK!", th);
this.f1491a.a(false);
a(th);
if (((Boolean) this.f1491a.a(com.applovin.impl.sdk.c.b.ae)).booleanValue()) {
this.f1491a.m();
}
this.f1491a.ah().a();
if (((Boolean) this.f1491a.a(com.applovin.impl.sdk.c.b.aK)).booleanValue()) {
this.f1491a.a(((Long) this.f1491a.a(com.applovin.impl.sdk.c.b.aL)).longValue());
}
com.applovin.impl.sdk.x xVar4 = this.h;
if (!com.applovin.impl.sdk.x.a()) {
return;
}
xVar = this.h;
str2 = this.g;
sb = new StringBuilder();
sb.append("AppLovin SDK ");
sb.append(AppLovinSdk.VERSION);
sb.append(" initialization ");
} catch (Throwable th2) {
this.f1491a.ah().a();
if (((Boolean) this.f1491a.a(com.applovin.impl.sdk.c.b.aK)).booleanValue()) {
this.f1491a.a(((Long) this.f1491a.a(com.applovin.impl.sdk.c.b.aL)).longValue());
}
com.applovin.impl.sdk.x xVar5 = this.h;
if (com.applovin.impl.sdk.x.a()) {
com.applovin.impl.sdk.x xVar6 = this.h;
String str3 = this.g;
StringBuilder sb2 = new StringBuilder();
sb2.append("AppLovin SDK ");
sb2.append(AppLovinSdk.VERSION);
sb2.append(" initialization ");
sb2.append(this.f1491a.d() ? "succeeded" : "failed");
sb2.append(" in ");
sb2.append(System.currentTimeMillis() - currentTimeMillis);
sb2.append("ms");
xVar6.b(str3, sb2.toString());
}
throw th2;
}
}
}
private void a() {
if (this.f1491a.ap().a()) {
return;
}
Activity y = this.f1491a.y();
if (y != null) {
this.f1491a.ap().a(y);
} else {
this.f1491a.N().a(new ac(this.f1491a, true, new Runnable() {
@Override
public void run() {
q.this.f1491a.ap().a(q.this.f1491a.x().a());
}
}), r.b.MAIN, TimeUnit.SECONDS.toMillis(1L));
}
}
private void b() {
Map<String, Object> d;
Map<String, Object> c;
if (this.f1491a.e()) {
return;
}
boolean d2 = this.f1491a.O().d();
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.f1491a.T() != null) {
if (d2) {
str = this.f1491a.R().d().b() + " (use this for test devices)";
}
d = this.f1491a.T().b();
c = this.f1491a.T().h();
} else {
if (d2) {
str = this.f1491a.S().l().b() + " (use this for test devices)";
}
d = this.f1491a.S().d();
c = this.f1491a.S().c();
}
com.applovin.impl.sdk.utils.o oVar = new com.applovin.impl.sdk.utils.o();
oVar.a().a("=====AppLovin SDK=====");
oVar.a("===SDK Versions===").a("Version", AppLovinSdk.VERSION).a("Plugin Version", this.f1491a.a(com.applovin.impl.sdk.c.b.eb)).a("Ad Review Version", com.applovin.impl.sdk.f.a()).a("OM SDK Version", this.f1491a.ah().c());
oVar.a("===Device Info===").a("OS", Utils.getAndroidOSInfo()).a(IronSourceConstants.TYPE_GAID, str).a(ExifInterface.TAG_MODEL, d.get("model")).a("Locale", d.get("locale")).a("Emulator", d.get("sim")).a("Tablet", d.get("is_tablet"));
oVar.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()));
oVar.a("===SDK Settings===").a("SDK Key", this.f1491a.C()).a("Mediation Provider", this.f1491a.t()).a("TG", com.applovin.impl.sdk.utils.u.a(this.f1491a)).a("AEI", this.f1491a.a(com.applovin.impl.sdk.c.b.av)).a("MEI", this.f1491a.a(com.applovin.impl.sdk.c.b.aw)).a("Test Mode On", Boolean.valueOf(this.f1491a.aw().a())).a("Verbose Logging On", Boolean.valueOf(d2));
oVar.a("===Privacy States===\nPlease review AppLovin MAX documentation to be compliant with regional privacy policies.").a(com.applovin.impl.b.a.a(f()));
com.applovin.impl.b.a.b af = this.f1491a.af();
oVar.a("===MAX Terms Flow===").a("Enabled", Boolean.valueOf(af.b())).a("Privacy Policy URI", af.d()).a("Terms of Service URI", af.e());
oVar.a();
com.applovin.impl.sdk.x.f("AppLovinSdk", oVar.toString());
}
}