Driving Zone: Germany v1.22.4版本的 MD5 值为:2b6e2d8e8733a3104dcc306c5770286c
以下内容为反编译后的 q.java 源代码,内容仅作参考
package com.applovin.impl.sdk;
import android.content.pm.PackageInfo;
import android.os.Build;
import androidx.browser.trusted.sharing.ShareTarget;
import com.adjust.sdk.purchase.ADJPConstants;
import com.applovin.sdk.AppLovinSdk;
import io.sentry.protocol.App;
import io.sentry.protocol.Device;
import io.sentry.protocol.OperatingSystem;
import java.util.HashMap;
import java.util.Map;
public abstract class q {
protected final n f1851a;
protected final w b;
private final String c;
public q(String str, n nVar) {
this.c = str;
this.f1851a = nVar;
this.b = nVar.B();
}
private Map<String, String> b(Map<String, String> map) {
HashMap hashMap = new HashMap();
hashMap.put("type", this.c);
hashMap.put("platform", this.f1851a.W().f());
hashMap.put("applovin_random_token", this.f1851a.o());
hashMap.put("compass_random_token", this.f1851a.n());
hashMap.put(Device.JsonKeys.MODEL, Build.MODEL);
hashMap.put(Device.JsonKeys.BRAND, Build.MANUFACTURER);
hashMap.put("brand_name", Build.BRAND);
hashMap.put("hardware", Build.HARDWARE);
hashMap.put("revision", Build.DEVICE);
hashMap.put(OperatingSystem.TYPE, Build.VERSION.RELEASE);
hashMap.put("api_level", String.valueOf(Build.VERSION.SDK_INT));
hashMap.put(ADJPConstants.KEY_SDK_VERSION, String.valueOf(AppLovinSdk.VERSION));
c(hashMap);
d(hashMap);
if (map != null) {
hashMap.putAll(map);
}
return hashMap;
}
private void c(Map<String, String> map) {
PackageInfo packageInfo;
try {
packageInfo = this.f1851a.N().getPackageManager().getPackageInfo(this.f1851a.N().getPackageName(), 0);
} catch (Throwable unused) {
packageInfo = null;
}
map.put(App.JsonKeys.APP_VERSION, packageInfo != null ? packageInfo.versionName : "");
map.put("app_version_code", String.valueOf(packageInfo != null ? packageInfo.versionCode : 0));
}
private void d(Map<String, String> map) {
String str;
Object c = this.f1851a.af().c();
if (c instanceof com.applovin.impl.sdk.ad.e) {
map.put("fs_ad_network", "AppLovin");
str = Long.toString(((com.applovin.impl.sdk.ad.e) c).getAdIdNumber());
} else if (c instanceof com.applovin.impl.mediation.a.a) {
com.applovin.impl.mediation.a.a aVar = (com.applovin.impl.mediation.a.a) c;
map.put("fs_ad_network", aVar.getNetworkName());
str = aVar.getCreativeId();
} else {
str = "None";
map.put("fs_ad_network", "None");
}
map.put("fs_ad_creative_id", str);
}
public void a(Map<String, String> map) {
if (w.a()) {
this.b.b("ErrorReporter", "Reporting " + this.c + " error...");
}
this.f1851a.V().a(com.applovin.impl.sdk.network.h.o().c("https://ms.applovin.com/1.0/sdk/error").a(false).b(ShareTarget.METHOD_POST).a(b(map)).a());
}
}