正在查看: Chaupal v3.2 应用的 AFb1mSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Chaupal v3.2 应用的 AFb1mSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.appsflyer.internal;
import android.net.Uri;
import android.os.Build;
import com.appsflyer.AFLogger;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.internal.AFc1uSDK;
import com.appsflyer.internal.AFf1pSDK;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Observable;
import java.util.Observer;
import java.util.TimeZone;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.TimeUnit;
public final class AFb1mSDK extends AFe1jSDK {
private static String AFLogger$LogLevel = "https://%sdlsdk.%s/v1.0/android/";
private final AFe1mSDK AFVersionDeclaration;
private final ExecutorService AppsFlyer2dXConversionCallback;
private final CountDownLatch afWarnLog;
private final List<AFf1pSDK> getLevel;
private final AFe1wSDK init;
private final AFb1tSDK onAppOpenAttributionNative;
private int onAttributionFailureNative;
private boolean onConversionDataSuccess;
private final AFb1sSDK onDeepLinkingNative;
private final AFb1gSDK onInstallConversionDataLoadedNative;
private final AFf1oSDK onInstallConversionFailureNative;
private int onResponseErrorNative;
private int onResponseNative;
static class AnonymousClass1 {
static final int[] values;
static {
int[] iArr = new int[AFf1pSDK.AFa1zSDK.values().length];
values = iArr;
try {
iArr[AFf1pSDK.AFa1zSDK.FINISHED.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
values[AFf1pSDK.AFa1zSDK.STARTED.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
}
}
public AFb1mSDK(AFc1xSDK aFc1xSDK) {
super(null, AFLogger$LogLevel, Boolean.FALSE, Boolean.TRUE, null);
this.getLevel = new ArrayList();
this.afWarnLog = new CountDownLatch(1);
this.AFVersionDeclaration = aFc1xSDK.afDebugLog();
this.onInstallConversionDataLoadedNative = aFc1xSDK.AFInAppEventParameterName();
this.init = aFc1xSDK.afWarnLog();
this.onInstallConversionFailureNative = aFc1xSDK.AFLogger$LogLevel();
this.AppsFlyer2dXConversionCallback = aFc1xSDK.AFInAppEventType();
this.onAppOpenAttributionNative = aFc1xSDK.afErrorLogForExcManagerOnly();
this.onDeepLinkingNative = aFc1xSDK.AppsFlyer2dXConversionCallback();
}
private static boolean AFInAppEventParameterName(AFf1pSDK aFf1pSDK) {
Long l7 = (Long) aFf1pSDK.AFInAppEventParameterName.get("click_ts");
return l7 != null && System.currentTimeMillis() - TimeUnit.SECONDS.toMillis(l7.longValue()) < TimeUnit.DAYS.toMillis(1L);
}
public void AFLogger$LogLevel() {
String[] strArr;
this.onResponseNative++;
StringBuilder sb = new StringBuilder("[DDL] Preparing request ");
sb.append(this.onResponseNative);
AFLogger.afDebugLog(sb.toString());
if (this.onResponseNative == 1) {
AFa1eSDK valueOf = AFa1eSDK.valueOf();
this.AFKeystoreWrapper.put("is_first", Boolean.valueOf(this.onInstallConversionDataLoadedNative.AFInAppEventType.values("appsFlyerCount", 0) == 0));
Map<String, Object> map = this.AFKeystoreWrapper;
StringBuilder sb2 = new StringBuilder();
sb2.append(Locale.getDefault().getLanguage());
sb2.append("-");
sb2.append(Locale.getDefault().getCountry());
map.put("lang", sb2.toString());
this.AFKeystoreWrapper.put("os", Build.VERSION.RELEASE);
this.AFKeystoreWrapper.put("type", Build.MODEL);
Map<String, Object> map2 = this.AFKeystoreWrapper;
AFb1gSDK aFb1gSDK = this.onInstallConversionDataLoadedNative;
map2.put("request_id", AFb1zSDK.valueOf(aFb1gSDK.valueOf, aFb1gSDK.AFInAppEventType));
AFa1cSDK aFa1cSDK = valueOf.afInfoLog;
if (aFa1cSDK != null && (strArr = aFa1cSDK.AFInAppEventType) != null) {
this.AFKeystoreWrapper.put("sharing_filter", strArr);
}
Map<String, Object> values = values(AFa1cSDK.values(this.onInstallConversionDataLoadedNative.valueOf.AFInAppEventType, new HashMap()));
Map<String, Object> values2 = values(AFa1cSDK.values(this.onInstallConversionDataLoadedNative.valueOf.AFInAppEventType));
if (values != null) {
this.AFKeystoreWrapper.put("gaid", values);
}
if (values2 != null) {
this.AFKeystoreWrapper.put("oaid", values2);
}
}
Map<String, Object> map3 = this.AFKeystoreWrapper;
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS", Locale.US);
long currentTimeMillis = System.currentTimeMillis();
simpleDateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
map3.put("timestamp", simpleDateFormat.format(new Date(currentTimeMillis)));
this.AFKeystoreWrapper.put("request_count", Integer.valueOf(this.onResponseNative));
ArrayList arrayList = new ArrayList();
Iterator<AFf1pSDK> it = this.getLevel.iterator();
while (it.hasNext()) {
Map<String, String> valueOf2 = valueOf(it.next());
if (valueOf2 != null) {
arrayList.add(valueOf2);
}
}
if (!arrayList.isEmpty()) {
this.AFKeystoreWrapper.put("referrers", arrayList);
}
AFKeystoreWrapper(AppsFlyer2dXConversionCallback());
}
private String AppsFlyer2dXConversionCallback() {
String str = this.init.AFInAppEventParameterName;
String packageName = this.onInstallConversionDataLoadedNative.valueOf.AFInAppEventType.getPackageName();
String values = this.onInstallConversionDataLoadedNative.values();
String concat = (values == null || values.trim().isEmpty()) ? "" : "-".concat(values);
Uri.Builder buildUpon = Uri.parse(String.format(AFLogger$LogLevel, AppsFlyerLib.getInstance().getHostPrefix(), AFa1eSDK.valueOf().getHostName())).buildUpon();
StringBuilder sb = new StringBuilder();
sb.append(packageName);
sb.append(concat);
Uri.Builder appendPath = buildUpon.appendPath(sb.toString());
StringBuilder sb2 = new StringBuilder();
sb2.append(this.AFKeystoreWrapper.get("timestamp"));
sb2.append(str);
return appendPath.appendQueryParameter("af_sig", AFc1nSDK.valueOf(sb2.toString(), str)).appendQueryParameter("sdk_version", AFa1eSDK.AFKeystoreWrapper).build().toString();
}
private boolean afWarnLog() {
List list = (List) this.AFKeystoreWrapper.get("referrers");
return (list != null ? list.size() : 0) < this.onAttributionFailureNative && !this.AFKeystoreWrapper.containsKey("referrers");
}
private static Map<String, String> valueOf(AFf1pSDK aFf1pSDK) {
if (aFf1pSDK.afDebugLog != AFf1pSDK.AFa1zSDK.FINISHED) {
return null;
}
HashMap hashMap = new HashMap();
String str = (String) aFf1pSDK.AFInAppEventParameterName.get("referrer");
if (str == null) {
return null;
}
hashMap.put("source", (String) aFf1pSDK.AFInAppEventParameterName.get("source"));
hashMap.put("value", str);
return hashMap;
}
private Map<String, Object> values(final AFc1uSDK.AFa1wSDK aFa1wSDK) {
Boolean bool;
boolean z6 = false;
if (aFa1wSDK != null && aFa1wSDK.valueOf != null && ((bool = aFa1wSDK.AFInAppEventType) == null || !bool.booleanValue())) {
z6 = true;
}
if (z6) {
return new HashMap<String, Object>() {
{
put("type", "unhashed");
put("value", aFa1wSDK.valueOf);
}
};
}
return null;
}
public final com.appsflyer.deeplink.DeepLinkResult AFLogger() {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFb1mSDK.AFLogger():com.appsflyer.deeplink.DeepLinkResult");
}
public void AFKeystoreWrapper(AFf1pSDK aFf1pSDK) {
if (AFInAppEventParameterName(aFf1pSDK)) {
this.getLevel.add(aFf1pSDK);
this.afWarnLog.countDown();
StringBuilder sb = new StringBuilder("[DDL] Added non-organic ");
sb.append(aFf1pSDK.getClass().getSimpleName());
AFLogger.afDebugLog(sb.toString());
return;
}
int i7 = this.onResponseErrorNative + 1;
this.onResponseErrorNative = i7;
if (i7 == this.onAttributionFailureNative) {
this.afWarnLog.countDown();
}
}
@Override
public final AFd1vSDK AFInAppEventType() {
return AFd1vSDK.DLSDK;
}
static com.appsflyer.deeplink.DeepLinkResult AFInAppEventType(com.appsflyer.internal.AFb1mSDK r13) throws java.io.IOException, org.json.JSONException, java.lang.InterruptedException {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFb1mSDK.AFInAppEventType(com.appsflyer.internal.AFb1mSDK):com.appsflyer.deeplink.DeepLinkResult");
}
static void valueOf(AFb1mSDK aFb1mSDK) {
ArrayList<AFf1pSDK> arrayList = new ArrayList();
for (AFf1pSDK aFf1pSDK : aFb1mSDK.onInstallConversionFailureNative.valueOf()) {
if (aFf1pSDK != null && aFf1pSDK.afDebugLog != AFf1pSDK.AFa1zSDK.NOT_STARTED) {
arrayList.add(aFf1pSDK);
}
}
aFb1mSDK.onAttributionFailureNative = arrayList.size();
for (final AFf1pSDK aFf1pSDK2 : arrayList) {
int i7 = AnonymousClass1.values[aFf1pSDK2.afDebugLog.ordinal()];
if (i7 == 1) {
StringBuilder sb = new StringBuilder("[DDL] ");
sb.append(aFf1pSDK2.AFInAppEventParameterName.get("source"));
sb.append(" referrer collected earlier");
AFLogger.afDebugLog(sb.toString());
aFb1mSDK.AFKeystoreWrapper(aFf1pSDK2);
} else if (i7 == 2) {
aFf1pSDK2.addObserver(new Observer() {
@Override
public final void update(Observable observable, Object obj) {
StringBuilder sb2 = new StringBuilder("[DDL] ");
sb2.append(aFf1pSDK2.AFInAppEventParameterName.get("source"));
sb2.append(" referrer collected via observer");
AFLogger.afDebugLog(sb2.toString());
AFb1mSDK.this.AFKeystoreWrapper((AFf1pSDK) observable);
}
});
}
}
}
}