正在查看: EfectivoYa v2.3 应用的 AFb1sSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: EfectivoYa v2.3 应用的 AFb1sSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.appsflyer.internal;
import android.net.Uri;
import android.os.Build;
import androidx.annotation.Nullable;
import androidx.annotation.VisibleForTesting;
import com.appsflyer.AFLogger;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.internal.AFc1uSDK;
import com.appsflyer.internal.AFf1jSDK;
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 AFb1sSDK extends AFe1fSDK {
@VisibleForTesting
private static String getLevel = "https://%sdlsdk.%s/v1.0/android/";
private final CountDownLatch AFLogger$LogLevel;
private final List<AFf1jSDK> AFVersionDeclaration;
private final AFf1kSDK AppsFlyer2dXConversionCallback;
private final AFe1lSDK afErrorLogForExcManagerOnly;
private final AFb1wSDK init;
private final AFb1cSDK onAppOpenAttributionNative;
private int onAttributionFailureNative;
private int onConversionDataSuccess;
private int onDeepLinkingNative;
private final ExecutorService onInstallConversionDataLoadedNative;
private final AFe1xSDK onInstallConversionFailureNative;
private final AFb1uSDK onResponseErrorNative;
private boolean onResponseNative;
static class AnonymousClass4 {
static final int[] values;
static {
int[] iArr = new int[AFf1jSDK.AFa1vSDK.values().length];
values = iArr;
try {
iArr[AFf1jSDK.AFa1vSDK.FINISHED.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
values[AFf1jSDK.AFa1vSDK.STARTED.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
}
}
public AFb1sSDK(AFc1zSDK aFc1zSDK) {
super(null, getLevel, Boolean.FALSE, Boolean.TRUE, null);
this.AFVersionDeclaration = new ArrayList();
this.AFLogger$LogLevel = new CountDownLatch(1);
this.afErrorLogForExcManagerOnly = aFc1zSDK.AFLogger();
this.onAppOpenAttributionNative = aFc1zSDK.AFInAppEventParameterName();
this.onInstallConversionFailureNative = aFc1zSDK.AFVersionDeclaration();
this.AppsFlyer2dXConversionCallback = aFc1zSDK.AFLogger$LogLevel();
this.onInstallConversionDataLoadedNative = aFc1zSDK.valueOf();
this.init = aFc1zSDK.afErrorLogForExcManagerOnly();
this.onResponseErrorNative = aFc1zSDK.init();
}
private static boolean AFInAppEventParameterName(AFf1jSDK aFf1jSDK) {
Long l2 = (Long) aFf1jSDK.AFKeystoreWrapper.get("click_ts");
return l2 != null && System.currentTimeMillis() - TimeUnit.SECONDS.toMillis(l2.longValue()) < TimeUnit.DAYS.toMillis(1L);
}
@Nullable
private Map<String, Object> AFInAppEventType(final AFc1uSDK.AFa1wSDK aFa1wSDK) {
Boolean bool;
boolean z2 = false;
if (aFa1wSDK != null && aFa1wSDK.AFInAppEventParameterName != null && ((bool = aFa1wSDK.AFInAppEventType) == null || !bool.booleanValue())) {
z2 = true;
}
if (z2) {
return new HashMap<String, Object>() {
{
put("type", "unhashed");
put("value", aFa1wSDK.AFInAppEventParameterName);
}
};
}
return null;
}
private boolean AFLogger$LogLevel() {
List list = (List) this.AFInAppEventParameterName.get("referrers");
return (list != null ? list.size() : 0) < this.onDeepLinkingNative && !this.AFInAppEventParameterName.containsKey("referrers");
}
public void afErrorLogForExcManagerOnly() {
String[] strArr;
this.onConversionDataSuccess++;
StringBuilder sb = new StringBuilder("[DDL] Preparing request ");
sb.append(this.onConversionDataSuccess);
AFLogger.afDebugLog(sb.toString());
if (this.onConversionDataSuccess == 1) {
AFa1dSDK valueOf = AFa1dSDK.valueOf();
this.AFInAppEventParameterName.put("is_first", Boolean.valueOf(this.onAppOpenAttributionNative.AFInAppEventType.AFInAppEventType("appsFlyerCount", 0) == 0));
Map<String, Object> map = this.AFInAppEventParameterName;
StringBuilder sb2 = new StringBuilder();
sb2.append(Locale.getDefault().getLanguage());
sb2.append("-");
sb2.append(Locale.getDefault().getCountry());
map.put("lang", sb2.toString());
this.AFInAppEventParameterName.put("os", Build.VERSION.RELEASE);
this.AFInAppEventParameterName.put("type", Build.MODEL);
Map<String, Object> map2 = this.AFInAppEventParameterName;
AFb1cSDK aFb1cSDK = this.onAppOpenAttributionNative;
map2.put("request_id", AFa1aSDK.AFInAppEventParameterName(aFb1cSDK.values, aFb1cSDK.AFInAppEventType));
AFa1bSDK aFa1bSDK = valueOf.afDebugLog;
if (aFa1bSDK != null && (strArr = aFa1bSDK.AFInAppEventType) != null) {
this.AFInAppEventParameterName.put("sharing_filter", strArr);
}
Map<String, Object> AFInAppEventType = AFInAppEventType(AFa1bSDK.valueOf(this.onAppOpenAttributionNative.values.AFInAppEventParameterName, new HashMap()));
Map<String, Object> AFInAppEventType2 = AFInAppEventType(AFa1bSDK.AFKeystoreWrapper(this.onAppOpenAttributionNative.values.AFInAppEventParameterName));
if (AFInAppEventType != null) {
this.AFInAppEventParameterName.put("gaid", AFInAppEventType);
}
if (AFInAppEventType2 != null) {
this.AFInAppEventParameterName.put("oaid", AFInAppEventType2);
}
}
Map<String, Object> map3 = this.AFInAppEventParameterName;
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.AFInAppEventParameterName.put("request_count", Integer.valueOf(this.onConversionDataSuccess));
ArrayList arrayList = new ArrayList();
Iterator<AFf1jSDK> it = this.AFVersionDeclaration.iterator();
while (it.hasNext()) {
Map<String, String> AFInAppEventType3 = AFInAppEventType(it.next());
if (AFInAppEventType3 != null) {
arrayList.add(AFInAppEventType3);
}
}
if (!arrayList.isEmpty()) {
this.AFInAppEventParameterName.put("referrers", arrayList);
}
valueOf(onAppOpenAttributionNative());
}
@VisibleForTesting
private String onAppOpenAttributionNative() {
String str = this.onInstallConversionFailureNative.AFInAppEventType;
String packageName = this.onAppOpenAttributionNative.values.AFInAppEventParameterName.getPackageName();
String AFKeystoreWrapper = this.onAppOpenAttributionNative.AFKeystoreWrapper();
String concat = (AFKeystoreWrapper == null || AFKeystoreWrapper.trim().isEmpty()) ? "" : "-".concat(AFKeystoreWrapper);
Uri.Builder buildUpon = Uri.parse(String.format(getLevel, AppsFlyerLib.getInstance().getHostPrefix(), AFa1dSDK.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.AFInAppEventParameterName.get("timestamp"));
sb2.append(str);
return appendPath.appendQueryParameter("af_sig", AFb1zSDK.AFKeystoreWrapper(sb2.toString(), str)).appendQueryParameter("sdk_version", AFa1dSDK.AFKeystoreWrapper).build().toString();
}
static void values(AFb1sSDK aFb1sSDK) {
ArrayList<AFf1jSDK> arrayList = new ArrayList();
for (AFf1jSDK aFf1jSDK : aFb1sSDK.AppsFlyer2dXConversionCallback.AFInAppEventType()) {
if (aFf1jSDK != null && aFf1jSDK.afRDLog != AFf1jSDK.AFa1vSDK.NOT_STARTED) {
arrayList.add(aFf1jSDK);
}
}
aFb1sSDK.onDeepLinkingNative = arrayList.size();
for (final AFf1jSDK aFf1jSDK2 : arrayList) {
int i2 = AnonymousClass4.values[aFf1jSDK2.afRDLog.ordinal()];
if (i2 == 1) {
StringBuilder sb = new StringBuilder("[DDL] ");
sb.append(aFf1jSDK2.AFKeystoreWrapper.get("source"));
sb.append(" referrer collected earlier");
AFLogger.afDebugLog(sb.toString());
aFb1sSDK.AFKeystoreWrapper(aFf1jSDK2);
} else if (i2 == 2) {
aFf1jSDK2.addObserver(new Observer() {
@Override
public final void update(Observable observable, Object obj) {
StringBuilder sb2 = new StringBuilder("[DDL] ");
sb2.append(aFf1jSDK2.AFKeystoreWrapper.get("source"));
sb2.append(" referrer collected via observer");
AFLogger.afDebugLog(sb2.toString());
AFb1sSDK.this.AFKeystoreWrapper((AFf1jSDK) observable);
}
});
}
}
}
public final com.appsflyer.deeplink.DeepLinkResult AFLogger() {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFb1sSDK.AFLogger():com.appsflyer.deeplink.DeepLinkResult");
}
public void AFKeystoreWrapper(AFf1jSDK aFf1jSDK) {
if (AFInAppEventParameterName(aFf1jSDK)) {
this.AFVersionDeclaration.add(aFf1jSDK);
this.AFLogger$LogLevel.countDown();
StringBuilder sb = new StringBuilder("[DDL] Added non-organic ");
sb.append(aFf1jSDK.getClass().getSimpleName());
AFLogger.afDebugLog(sb.toString());
return;
}
int i2 = this.onAttributionFailureNative + 1;
this.onAttributionFailureNative = i2;
if (i2 == this.onDeepLinkingNative) {
this.AFLogger$LogLevel.countDown();
}
}
@Override
public final AFd1vSDK AFInAppEventParameterName() {
return AFd1vSDK.DLSDK;
}
static com.appsflyer.deeplink.DeepLinkResult AFInAppEventParameterName(com.appsflyer.internal.AFb1sSDK r13) throws java.io.IOException, org.json.JSONException, java.lang.InterruptedException {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFb1sSDK.AFInAppEventParameterName(com.appsflyer.internal.AFb1sSDK):com.appsflyer.deeplink.DeepLinkResult");
}
private static Map<String, String> AFInAppEventType(AFf1jSDK aFf1jSDK) {
if (aFf1jSDK.afRDLog != AFf1jSDK.AFa1vSDK.FINISHED) {
return null;
}
HashMap hashMap = new HashMap();
String str = (String) aFf1jSDK.AFKeystoreWrapper.get("referrer");
if (str == null) {
return null;
}
hashMap.put("source", (String) aFf1jSDK.AFKeystoreWrapper.get("source"));
hashMap.put("value", str);
return hashMap;
}
}