Kufar v3.2.0版本的 MD5 值为:6a4d203db1c561c7e3bcd50d23fed59f
以下内容为反编译后的 n.java 源代码,内容仅作参考
package com.applovin.impl.sdk.e;
import android.app.Activity;
import androidx.exifinterface.media.ExifInterface;
import com.applovin.impl.sdk.af;
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.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.p f31773a;
public n(com.applovin.impl.sdk.p pVar) {
super("TaskInitializeSdk", pVar);
this.f31773a = pVar;
}
private void b() {
Map<String, Object> d11;
Map<String, Object> c11;
if (!this.f31773a.e()) {
boolean d12 = this.f31773a.N().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.f31773a.S() != null) {
if (d12) {
str = this.f31773a.Q().d().b() + " (use this for test devices)";
}
d11 = this.f31773a.S().b();
c11 = this.f31773a.S().g();
} else {
if (d12) {
str = this.f31773a.R().k().b() + " (use this for test devices)";
}
d11 = this.f31773a.R().d();
c11 = this.f31773a.R().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.f31773a.a(com.applovin.impl.sdk.c.b.dU)).a("Ad Review Version", com.applovin.impl.sdk.g.a()).a("OM SDK Version", this.f31773a.ag().c());
lVar.a("===Device Info===").a("OS", Utils.getAndroidOSInfo()).a(IronSourceConstants.TYPE_GAID, str).a(ExifInterface.TAG_MODEL, d11.get("model")).a("Locale", d11.get("locale")).a("Emulator", d11.get("sim")).a("Tablet", d11.get("is_tablet"));
lVar.a("===App Info===").a("Application ID", c11.get(CampaignEx.JSON_KEY_PACKAGE_NAME)).a("Target SDK", c11.get("target_sdk")).a("ExoPlayer Version", Integer.valueOf(Utils.getExoPlayerVersionCode()));
lVar.a("===SDK Settings===").a("SDK Key", this.f31773a.B()).a("Mediation Provider", this.f31773a.s()).a("TG", com.applovin.impl.sdk.utils.q.a(this.f31773a)).a("AEI", this.f31773a.a(com.applovin.impl.sdk.c.b.f31476ax)).a("MEI", this.f31773a.a(com.applovin.impl.sdk.c.b.f31477ay)).a("Test Mode On", Boolean.valueOf(this.f31773a.av().a())).a("Verbose Logging On", Boolean.valueOf(d12));
lVar.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 ae2 = this.f31773a.ae();
lVar.a("===Max Terms Flow===").a("Enabled", Boolean.valueOf(ae2.b())).a("Privacy Policy URI", ae2.d()).a("Terms of Service URI", ae2.e());
lVar.a();
com.applovin.impl.sdk.y.f("AppLovinSdk", lVar.toString());
}
}
@Override
public void run() {
com.applovin.impl.sdk.y yVar;
String str;
StringBuilder sb2;
String str2 = "succeeded";
long currentTimeMillis = System.currentTimeMillis();
if (com.applovin.impl.sdk.y.a()) {
this.f31734h.b(this.f31733g, "Initializing AppLovin SDK v" + AppLovinSdk.VERSION + "...");
}
try {
this.f31773a.P().d();
this.f31773a.P().c(com.applovin.impl.sdk.d.f.f31703e);
this.f31773a.P().c(com.applovin.impl.sdk.d.f.f31704f);
this.f31773a.W().a(f());
this.f31773a.W().b(f());
this.f31773a.M().a(new b(this.f31773a), o.a.MAIN);
if (this.f31773a.S() != null) {
this.f31773a.S().c();
} else {
this.f31773a.R().e();
}
this.f31773a.ac().a();
this.f31773a.af().a();
if (Utils.isPubInDebugMode(f(), this.f31773a)) {
this.f31773a.i();
}
this.f31773a.ai().collectAppHubData();
b();
if (((Boolean) this.f31773a.a(com.applovin.impl.sdk.c.b.f31572ep)).booleanValue()) {
AppLovinSdkUtils.runOnUiThread(new Runnable() {
@Override
public void run() {
af.a(n.this.f31773a);
}
});
}
a();
this.f31773a.a(true);
this.f31773a.al().c();
this.f31773a.G().maybeTrackAppOpenEvent();
if ((this.f31773a.as().b() && !this.f31773a.e()) || (((Boolean) this.f31773a.a(com.applovin.impl.sdk.c.a.f31435h)).booleanValue() && Utils.isPubInDebugMode(com.applovin.impl.sdk.p.y(), this.f31773a) && this.f31773a.f())) {
this.f31773a.as().a();
}
this.f31773a.ag().a();
if (((Boolean) this.f31773a.a(com.applovin.impl.sdk.c.b.aM)).booleanValue()) {
this.f31773a.a(((Long) this.f31773a.a(com.applovin.impl.sdk.c.b.aN)).longValue());
}
if (com.applovin.impl.sdk.y.a()) {
yVar = this.f31734h;
str = this.f31733g;
sb2 = new StringBuilder();
sb2.append("AppLovin SDK ");
sb2.append(AppLovinSdk.VERSION);
sb2.append(" initialization ");
}
} catch (Throwable th2) {
try {
com.applovin.impl.sdk.y.c("AppLovinSdk", "Failed to initialize SDK!", th2);
this.f31773a.a(false);
this.f31773a.ag().a();
if (((Boolean) this.f31773a.a(com.applovin.impl.sdk.c.b.aM)).booleanValue()) {
this.f31773a.a(((Long) this.f31773a.a(com.applovin.impl.sdk.c.b.aN)).longValue());
}
if (com.applovin.impl.sdk.y.a()) {
yVar = this.f31734h;
str = this.f31733g;
sb2 = new StringBuilder();
sb2.append("AppLovin SDK ");
sb2.append(AppLovinSdk.VERSION);
sb2.append(" initialization ");
}
} catch (Throwable th3) {
this.f31773a.ag().a();
if (((Boolean) this.f31773a.a(com.applovin.impl.sdk.c.b.aM)).booleanValue()) {
this.f31773a.a(((Long) this.f31773a.a(com.applovin.impl.sdk.c.b.aN)).longValue());
}
if (com.applovin.impl.sdk.y.a()) {
com.applovin.impl.sdk.y yVar2 = this.f31734h;
String str3 = this.f31733g;
StringBuilder sb3 = new StringBuilder();
sb3.append("AppLovin SDK ");
sb3.append(AppLovinSdk.VERSION);
sb3.append(" initialization ");
if (!this.f31773a.d()) {
str2 = "failed";
}
sb3.append(str2);
sb3.append(" in ");
sb3.append(System.currentTimeMillis() - currentTimeMillis);
sb3.append("ms");
yVar2.b(str3, sb3.toString());
}
throw th3;
}
}
}
private void a() {
if (this.f31773a.ao().a()) {
return;
}
Activity x11 = this.f31773a.x();
if (x11 != null) {
this.f31773a.ao().a(x11);
} else {
this.f31773a.M().a(new z(this.f31773a, true, new Runnable() {
@Override
public void run() {
n.this.f31773a.ao().a(n.this.f31773a.w().a());
}
}), o.a.MAIN, TimeUnit.SECONDS.toMillis(1L));
}
}
}