Perfume Of Love v2.14.9版本的 MD5 值为:16011aefc5a55805771706ce3b259b4e
以下内容为反编译后的 n.java 源代码,内容仅作参考
package com.applovin.impl.sdk.e;
import android.app.Activity;
import androidx.exifinterface.media.ExifInterface;
import com.applovin.impl.sdk.e.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.ironsource.mediationsdk.utils.IronSourceConstants;
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.ai().a()) {
return;
}
Activity w = this.a.w();
if (w != null) {
this.a.ai().a(w);
} else {
this.a.K().a(new z(this.a, true, new Runnable() {
@Override
public void run() {
n.this.a.ai().a(n.this.a.v().a());
}
}), o.a.MAIN, TimeUnit.SECONDS.toMillis(1L));
}
}
private void b() {
String str;
if (this.a.e()) {
return;
}
boolean d = this.a.L().d();
if (d) {
str = this.a.O().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.O().d();
Map<String, Object> c = this.a.O().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.c.b.dR)).a("Ad Review Version", com.applovin.impl.sdk.e.a()).a("OM SDK Version", this.a.ab().c());
lVar.a("===Device Info===").a("OS", Utils.getAndroidOSInfo()).a(IronSourceConstants.TYPE_GAID, str).a(ExifInterface.TAG_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.r()).a("TG", com.applovin.impl.sdk.utils.q.a(this.a)).a("AEI", this.a.a(com.applovin.impl.sdk.c.b.az)).a("MEI", this.a.a(com.applovin.impl.sdk.c.b.aA)).a("Test Mode On", Boolean.valueOf(this.a.ap().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.v.f("AppLovinSdk", lVar.toString());
}
@Override
public void run() {
com.applovin.impl.sdk.v vVar;
String str;
StringBuilder sb;
String str2 = AnalyticsEvents.PARAMETER_SHARE_OUTCOME_SUCCEEDED;
long currentTimeMillis = System.currentTimeMillis();
com.applovin.impl.sdk.v vVar2 = this.h;
if (com.applovin.impl.sdk.v.a()) {
com.applovin.impl.sdk.v vVar3 = this.h;
String str3 = this.g;
vVar3.b(str3, "Initializing AppLovin SDK v" + AppLovinSdk.VERSION + "...");
}
try {
this.a.N().d();
this.a.N().c(com.applovin.impl.sdk.d.f.e);
this.a.N().c(com.applovin.impl.sdk.d.f.f);
this.a.S().a(f());
this.a.S().b(f());
this.a.K().a(new b(this.a), o.a.MAIN);
this.a.O().e();
this.a.Y().a();
this.a.aa().a();
if (Utils.isPubInDebugMode(f(), this.a)) {
this.a.h();
}
this.a.ad().collectAppHubData();
b();
if (((Boolean) this.a.a(com.applovin.impl.sdk.c.b.el)).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.af().c();
this.a.F().maybeTrackAppOpenEvent();
if ((this.a.am().b() && !this.a.e()) || (((Boolean) this.a.a(com.applovin.impl.sdk.c.a.h)).booleanValue() && Utils.isPubInDebugMode(com.applovin.impl.sdk.n.x(), this.a) && this.a.f())) {
this.a.am().a();
}
this.a.ab().a();
if (((Boolean) this.a.a(com.applovin.impl.sdk.c.b.aN)).booleanValue()) {
this.a.a(((Long) this.a.a(com.applovin.impl.sdk.c.b.aO)).longValue());
}
com.applovin.impl.sdk.v vVar4 = this.h;
if (!com.applovin.impl.sdk.v.a()) {
return;
}
vVar = this.h;
str = this.g;
sb = new StringBuilder();
sb.append("AppLovin SDK ");
sb.append(AppLovinSdk.VERSION);
sb.append(" initialization ");
} catch (Throwable th) {
try {
com.applovin.impl.sdk.v.c("AppLovinSdk", "Failed to initialize SDK!", th);
this.a.a(false);
this.a.ab().a();
if (((Boolean) this.a.a(com.applovin.impl.sdk.c.b.aN)).booleanValue()) {
this.a.a(((Long) this.a.a(com.applovin.impl.sdk.c.b.aO)).longValue());
}
com.applovin.impl.sdk.v vVar5 = this.h;
if (!com.applovin.impl.sdk.v.a()) {
return;
}
vVar = this.h;
str = this.g;
sb = new StringBuilder();
sb.append("AppLovin SDK ");
sb.append(AppLovinSdk.VERSION);
sb.append(" initialization ");
} catch (Throwable th2) {
this.a.ab().a();
if (((Boolean) this.a.a(com.applovin.impl.sdk.c.b.aN)).booleanValue()) {
this.a.a(((Long) this.a.a(com.applovin.impl.sdk.c.b.aO)).longValue());
}
com.applovin.impl.sdk.v vVar6 = this.h;
if (com.applovin.impl.sdk.v.a()) {
com.applovin.impl.sdk.v vVar7 = this.h;
String str4 = this.g;
StringBuilder sb2 = new StringBuilder();
sb2.append("AppLovin SDK ");
sb2.append(AppLovinSdk.VERSION);
sb2.append(" initialization ");
if (!this.a.d()) {
str2 = "failed";
}
sb2.append(str2);
sb2.append(" in ");
sb2.append(System.currentTimeMillis() - currentTimeMillis);
sb2.append("ms");
vVar7.b(str4, sb2.toString());
}
throw th2;
}
}
}
}