Driving Zone: Germany v1.22.4版本的 MD5 值为:2b6e2d8e8733a3104dcc306c5770286c
以下内容为反编译后的 n.java 源代码,内容仅作参考
package com.applovin.impl.sdk.f;
import android.app.Activity;
import androidx.exifinterface.media.ExifInterface;
import com.amazon.aps.shared.util.APSSharedUtil;
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.internal.AnalyticsEvents;
import com.ironsource.mediationsdk.utils.IronSourceConstants;
import io.sentry.protocol.Device;
import java.util.Map;
import java.util.concurrent.TimeUnit;
public class n extends a {
private final com.applovin.impl.sdk.n f1748a;
public n(com.applovin.impl.sdk.n nVar) {
super("TaskInitializeSdk", nVar);
this.f1748a = nVar;
}
private void a() {
if (this.f1748a.E().a()) {
return;
}
Activity ap = this.f1748a.ap();
if (ap != null) {
this.f1748a.E().a(ap);
} else {
this.f1748a.T().a(new z(this.f1748a, true, new Runnable() {
@Override
public void run() {
n.this.f1748a.E().a(n.this.f1748a.ag().a());
}
}), o.a.MAIN, TimeUnit.SECONDS.toMillis(1L));
}
}
private void b() {
String str;
if (this.f1748a.e()) {
return;
}
boolean d = this.f1748a.M().d();
if (d) {
str = this.f1748a.W().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.f1748a.W().d();
Map<String, Object> c = this.f1748a.W().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.f1748a.a(com.applovin.impl.sdk.d.b.dF)).a("Ad Review Version", com.applovin.impl.sdk.e.a()).a("OM SDK Version", this.f1748a.am().c());
lVar.a("===Device Info===").a("OS", Utils.getAndroidOSInfo()).a(IronSourceConstants.TYPE_GAID, str).a(ExifInterface.TAG_MODEL, d2.get(Device.JsonKeys.MODEL)).a("Locale", d2.get(Device.JsonKeys.LOCALE)).a("Emulator", d2.get("sim")).a("Tablet", d2.get("is_tablet"));
lVar.a("===App Info===").a("Application ID", c.get("package_name")).a("Target SDK", c.get("target_sdk")).a("ExoPlayer Version", Integer.valueOf(Utils.getExoPlayerVersionCode()));
lVar.a("===SDK Settings===").a("SDK Key", this.f1748a.A()).a("Mediation Provider", this.f1748a.t()).a("TG", com.applovin.impl.sdk.utils.q.a(this.f1748a)).a("Test Mode On", Boolean.valueOf(this.f1748a.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() {
com.applovin.impl.sdk.w wVar;
String str;
StringBuilder sb;
String str2 = AnalyticsEvents.PARAMETER_SHARE_OUTCOME_SUCCEEDED;
long currentTimeMillis = System.currentTimeMillis();
com.applovin.impl.sdk.w wVar2 = this.d;
if (com.applovin.impl.sdk.w.a()) {
this.d.b(this.c, "Initializing AppLovin SDK v" + AppLovinSdk.VERSION + APSSharedUtil.TRUNCATE_SEPARATOR);
}
try {
this.f1748a.U().d();
this.f1748a.U().c(com.applovin.impl.sdk.e.f.e);
this.f1748a.U().c(com.applovin.impl.sdk.e.f.f);
this.f1748a.ac().a(f());
this.f1748a.ac().b(f());
this.f1748a.T().a(new b(this.f1748a), o.a.MAIN);
this.f1748a.W().e();
this.f1748a.ai().a();
if (Utils.isPubInDebugMode(f(), this.f1748a)) {
this.f1748a.h();
}
this.f1748a.ao().a();
b();
if (((Boolean) this.f1748a.a(com.applovin.impl.sdk.d.b.dZ)).booleanValue()) {
AppLovinSdkUtils.runOnUiThread(new Runnable() {
@Override
public void run() {
com.applovin.impl.sdk.ab.a(n.this.f1748a);
}
});
}
a();
this.f1748a.a(true);
this.f1748a.V().c();
((EventServiceImpl) this.f1748a.w()).maybeTrackAppOpenEvent();
if ((this.f1748a.I().b() && !this.f1748a.e()) || (((Boolean) this.f1748a.a(com.applovin.impl.sdk.d.a.h)).booleanValue() && Utils.isPubInDebugMode(this.f1748a.N(), this.f1748a) && this.f1748a.f())) {
this.f1748a.I().a();
}
this.f1748a.am().a();
if (((Boolean) this.f1748a.a(com.applovin.impl.sdk.d.b.aF)).booleanValue()) {
this.f1748a.a(((Long) this.f1748a.a(com.applovin.impl.sdk.d.b.aG)).longValue());
}
com.applovin.impl.sdk.w wVar3 = this.d;
if (!com.applovin.impl.sdk.w.a()) {
return;
}
wVar = this.d;
str = this.c;
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.f1748a.a(false);
this.f1748a.am().a();
if (((Boolean) this.f1748a.a(com.applovin.impl.sdk.d.b.aF)).booleanValue()) {
this.f1748a.a(((Long) this.f1748a.a(com.applovin.impl.sdk.d.b.aG)).longValue());
}
com.applovin.impl.sdk.w wVar4 = this.d;
if (!com.applovin.impl.sdk.w.a()) {
return;
}
wVar = this.d;
str = this.c;
sb = new StringBuilder();
sb.append("AppLovin SDK ");
sb.append(AppLovinSdk.VERSION);
sb.append(" initialization ");
} catch (Throwable th2) {
this.f1748a.am().a();
if (((Boolean) this.f1748a.a(com.applovin.impl.sdk.d.b.aF)).booleanValue()) {
this.f1748a.a(((Long) this.f1748a.a(com.applovin.impl.sdk.d.b.aG)).longValue());
}
com.applovin.impl.sdk.w wVar5 = this.d;
if (com.applovin.impl.sdk.w.a()) {
com.applovin.impl.sdk.w wVar6 = this.d;
String str3 = this.c;
StringBuilder sb2 = new StringBuilder();
sb2.append("AppLovin SDK ");
sb2.append(AppLovinSdk.VERSION);
sb2.append(" initialization ");
if (!this.f1748a.d()) {
str2 = "failed";
}
sb2.append(str2);
sb2.append(" in ");
sb2.append(System.currentTimeMillis() - currentTimeMillis);
sb2.append("ms");
wVar6.b(str3, sb2.toString());
}
throw th2;
}
}
}
}