ZStore v1.7版本的 MD5 值为:ca9bb200afd8d690876bd39318f8215c
以下内容为反编译后的 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 java.util.Map;
import java.util.concurrent.TimeUnit;
public class q extends d {
private final com.applovin.impl.sdk.o a;
public q(com.applovin.impl.sdk.o oVar) {
super("TaskInitializeSdk", oVar, true);
this.a = oVar;
}
@Override
public void run() {
long currentTimeMillis = System.currentTimeMillis();
com.applovin.impl.sdk.x xVar = this.h;
if (com.applovin.impl.sdk.x.a()) {
this.h.b(this.g, "Initializing AppLovin SDK v" + AppLovinSdk.VERSION + "...");
}
try {
try {
this.a.Q().d();
this.a.Q().c(com.applovin.impl.sdk.d.f.e);
this.a.Q().c(com.applovin.impl.sdk.d.f.f);
this.a.X().a(f());
this.a.X().b(f());
this.a.N().a(new e(this.a), r.b.MAIN);
if (this.a.T() != null) {
this.a.T().c();
} else {
this.a.S().e();
}
this.a.ad().a();
this.a.ag().a();
this.a.N().f();
if (Utils.isPubInDebugMode(f(), this.a)) {
this.a.j();
}
this.a.aj().collectAppHubData();
b();
if (((Boolean) this.a.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.a);
}
});
}
a();
this.a.a(true);
this.a.am().c();
this.a.H().maybeTrackAppOpenEvent();
if (!this.a.at().b() || this.a.e()) {
if (((Boolean) this.a.a(com.applovin.impl.sdk.c.a.h)).booleanValue()) {
com.applovin.impl.sdk.o oVar = this.a;
if (Utils.isPubInDebugMode(com.applovin.impl.sdk.o.z(), this.a)) {
}
}
this.a.ah().a();
if (((Boolean) this.a.a(com.applovin.impl.sdk.c.b.aK)).booleanValue()) {
this.a.a(((Long) this.a.a(com.applovin.impl.sdk.c.b.aL)).longValue());
}
com.applovin.impl.sdk.x xVar2 = this.h;
if (com.applovin.impl.sdk.x.a()) {
return;
}
this.h.b(this.g, "AppLovin SDK " + AppLovinSdk.VERSION + " initialization " + (this.a.d() ? "succeeded" : "failed") + " in " + (System.currentTimeMillis() - currentTimeMillis) + "ms");
return;
}
this.a.at().a();
this.a.ah().a();
if (((Boolean) this.a.a(com.applovin.impl.sdk.c.b.aK)).booleanValue()) {
}
com.applovin.impl.sdk.x xVar22 = this.h;
if (com.applovin.impl.sdk.x.a()) {
}
} catch (Throwable th) {
com.applovin.impl.sdk.x.c("AppLovinSdk", "Failed to initialize SDK!", th);
this.a.a(false);
a(th);
if (((Boolean) this.a.a(com.applovin.impl.sdk.c.b.ae)).booleanValue()) {
this.a.m();
}
this.a.ah().a();
if (((Boolean) this.a.a(com.applovin.impl.sdk.c.b.aK)).booleanValue()) {
this.a.a(((Long) this.a.a(com.applovin.impl.sdk.c.b.aL)).longValue());
}
com.applovin.impl.sdk.x xVar3 = this.h;
if (com.applovin.impl.sdk.x.a()) {
this.h.b(this.g, "AppLovin SDK " + AppLovinSdk.VERSION + " initialization " + (this.a.d() ? "succeeded" : "failed") + " in " + (System.currentTimeMillis() - currentTimeMillis) + "ms");
}
}
} finally {
}
}
private void a() {
if (!this.a.ap().a()) {
Activity y = this.a.y();
if (y != null) {
this.a.ap().a(y);
} else {
this.a.N().a(new ac(this.a, true, new Runnable() {
@Override
public void run() {
q.this.a.ap().a(q.this.a.x().a());
}
}), r.b.MAIN, TimeUnit.SECONDS.toMillis(1L));
}
}
}
private void b() {
String str;
Map<String, Object> d;
Map<String, Object> c;
if (!this.a.e()) {
boolean d2 = this.a.O().d();
if (this.a.T() != null) {
str = d2 ? this.a.R().d().b() + " (use this for test devices)" : "<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>";
d = this.a.T().b();
c = this.a.T().h();
} else {
str = d2 ? this.a.S().l().b() + " (use this for test devices)" : "<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>";
d = this.a.S().d();
c = this.a.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.a.a(com.applovin.impl.sdk.c.b.eb)).a("Ad Review Version", com.applovin.impl.sdk.f.a()).a("OM SDK Version", this.a.ah().c());
oVar.a("===Device Info===").a("OS", Utils.getAndroidOSInfo()).a("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("package_name")).a("Target SDK", c.get("target_sdk")).a("ExoPlayer Version", Integer.valueOf(Utils.getExoPlayerVersionCode()));
oVar.a("===SDK Settings===").a("SDK Key", this.a.C()).a("Mediation Provider", this.a.t()).a("TG", com.applovin.impl.sdk.utils.u.a(this.a)).a("AEI", this.a.a(com.applovin.impl.sdk.c.b.av)).a("MEI", this.a.a(com.applovin.impl.sdk.c.b.aw)).a("Test Mode On", Boolean.valueOf(this.a.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.a.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());
}
}
}