正在查看: AdaModal v1.4.0 应用的 AFc1qSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: AdaModal v1.4.0 应用的 AFc1qSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.appsflyer.internal;
import android.os.Build;
import com.appsflyer.AFLogger;
import com.appsflyer.internal.AFi1nSDK;
import com.common.fine.constant.ParamConstant;
import com.common.fine.receiver.InstallReferrerReceiver;
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 AFc1qSDK extends AFh1vSDK {
private int AFLogger$LogLevel;
private final ExecutorService afDebugLog;
private final AFb1cSDK afErrorLog;
private boolean afErrorLogForExcManagerOnly;
private final AFg1zSDK afInfoLog;
private int afLogForce;
private final AFd1sSDK afRDLog;
private final AFc1jSDK afVerboseLog;
private final AFi1kSDK afWarnLog;
private final List<AFi1nSDK> force;
private int getLevel;
private final AFd1rSDK i;
private final AFg1bSDK v;
private final CountDownLatch w;
public AFc1qSDK(AFd1nSDK aFd1nSDK) {
super(null, "https://%sdlsdk.%s/v1.0/android/", Boolean.FALSE, Boolean.TRUE, null);
this.force = new ArrayList();
this.w = new CountDownLatch(1);
this.v = aFd1nSDK.unregisterClient();
this.i = aFd1nSDK.AFInAppEventType();
this.afInfoLog = aFd1nSDK.i();
this.afWarnLog = aFd1nSDK.force();
this.afDebugLog = aFd1nSDK.values();
this.afErrorLog = aFd1nSDK.afInfoLog();
this.afVerboseLog = aFd1nSDK.afErrorLog();
this.afRDLog = aFd1nSDK.getLevel();
}
public final com.appsflyer.deeplink.DeepLinkResult unregisterClient() {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFc1qSDK.unregisterClient():com.appsflyer.deeplink.DeepLinkResult");
}
private boolean afInfoLog() {
List list = (List) this.AFKeystoreWrapper.get("referrers");
return (list != null ? list.size() : 0) < this.AFLogger$LogLevel && !this.AFKeystoreWrapper.containsKey("referrers");
}
public void force() {
String[] strArr;
this.afLogForce++;
AFLogger aFLogger = AFLogger.INSTANCE;
AFg1hSDK aFg1hSDK = AFg1hSDK.DDL;
StringBuilder sb = new StringBuilder("Preparing request ");
sb.append(this.afLogForce);
aFLogger.d(aFg1hSDK, sb.toString());
if (this.afLogForce == 1) {
this.AFKeystoreWrapper.put("is_first", Boolean.valueOf(this.i.AFInAppEventParameterName.valueOf("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(ParamConstant.LANG, sb2.toString());
this.AFKeystoreWrapper.put(ParamConstant.OS, Build.VERSION.RELEASE);
this.AFKeystoreWrapper.put("type", Build.MODEL);
Map<String, Object> map2 = this.AFKeystoreWrapper;
AFd1rSDK aFd1rSDK = this.i;
map2.put("request_id", AFb1lSDK.values(aFd1rSDK.AFKeystoreWrapper, aFd1rSDK.AFInAppEventParameterName));
AFc1aSDK aFc1aSDK = this.afRDLog.AFKeystoreWrapper;
if (aFc1aSDK != null && (strArr = aFc1aSDK.AFKeystoreWrapper) != null) {
this.AFKeystoreWrapper.put("sharing_filter", strArr);
}
Map<String, Object> AFKeystoreWrapper = AFKeystoreWrapper(AFb1tSDK.valueOf(this.i.AFKeystoreWrapper.AFInAppEventParameterName, new HashMap()));
Map<String, Object> AFKeystoreWrapper2 = AFKeystoreWrapper(AFb1tSDK.AFInAppEventParameterName(this.i.AFKeystoreWrapper.AFInAppEventParameterName));
if (AFKeystoreWrapper != null) {
this.AFKeystoreWrapper.put(ParamConstant.GAID, AFKeystoreWrapper);
}
if (AFKeystoreWrapper2 != null) {
this.AFKeystoreWrapper.put("oaid", AFKeystoreWrapper2);
}
}
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.afLogForce));
ArrayList arrayList = new ArrayList();
Iterator<AFi1nSDK> it = this.force.iterator();
while (it.hasNext()) {
Map<String, String> valueOf = valueOf(it.next());
if (valueOf != null) {
arrayList.add(valueOf);
}
}
if (!arrayList.isEmpty()) {
this.AFKeystoreWrapper.put("referrers", arrayList);
}
AFKeystoreWrapper(afWarnLog());
}
private String afWarnLog() {
return new AFi1cSDK(this.i).AFInAppEventParameterName(this.afInfoLog.registerClient, (String) this.AFKeystoreWrapper.get("timestamp"));
}
static class AnonymousClass1 {
static final int[] valueOf;
static {
int[] iArr = new int[AFi1nSDK.AFa1uSDK.values().length];
valueOf = iArr;
try {
iArr[AFi1nSDK.AFa1uSDK.FINISHED.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
valueOf[AFi1nSDK.AFa1uSDK.STARTED.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
}
}
public void AFInAppEventParameterName(AFi1nSDK aFi1nSDK) {
if (values(aFi1nSDK)) {
this.force.add(aFi1nSDK);
this.w.countDown();
AFLogger aFLogger = AFLogger.INSTANCE;
AFg1hSDK aFg1hSDK = AFg1hSDK.DDL;
StringBuilder sb = new StringBuilder("Added non-organic ");
sb.append(aFi1nSDK.getClass().getSimpleName());
aFLogger.d(aFg1hSDK, sb.toString());
return;
}
int i = this.getLevel + 1;
this.getLevel = i;
if (i == this.AFLogger$LogLevel) {
this.w.countDown();
}
}
private static boolean values(AFi1nSDK aFi1nSDK) {
Long l = (Long) aFi1nSDK.values.get("click_ts");
return l != null && System.currentTimeMillis() - TimeUnit.SECONDS.toMillis(l.longValue()) < TimeUnit.DAYS.toMillis(1L);
}
@Override
public final AFe1bSDK AFInAppEventParameterName() {
return AFe1bSDK.DLSDK;
}
private Map<String, Object> AFKeystoreWrapper(final AFa1aSDK aFa1aSDK) {
if (aFa1aSDK == null || aFa1aSDK.valueOf == null) {
return null;
}
Boolean bool = aFa1aSDK.AFInAppEventType;
if (bool == null || !bool.booleanValue()) {
return new HashMap<String, Object>() {
{
put("type", "unhashed");
put("value", aFa1aSDK.valueOf);
}
};
}
return null;
}
private static Map<String, String> valueOf(AFi1nSDK aFi1nSDK) {
if (aFi1nSDK.unregisterClient != AFi1nSDK.AFa1uSDK.FINISHED) {
return null;
}
HashMap hashMap = new HashMap();
String str = (String) aFi1nSDK.values.get(InstallReferrerReceiver.REFERRER_KEY);
if (str == null) {
return null;
}
hashMap.put("source", (String) aFi1nSDK.values.get("source"));
hashMap.put("value", str);
return hashMap;
}
static void AFKeystoreWrapper(AFc1qSDK aFc1qSDK) {
ArrayList<AFi1nSDK> arrayList = new ArrayList();
for (AFi1nSDK aFi1nSDK : aFc1qSDK.afWarnLog.AFInAppEventType()) {
if (aFi1nSDK != null && aFi1nSDK.unregisterClient != AFi1nSDK.AFa1uSDK.NOT_STARTED) {
arrayList.add(aFi1nSDK);
}
}
aFc1qSDK.AFLogger$LogLevel = arrayList.size();
for (final AFi1nSDK aFi1nSDK2 : arrayList) {
int i = AnonymousClass1.valueOf[aFi1nSDK2.unregisterClient.ordinal()];
if (i == 1) {
AFLogger aFLogger = AFLogger.INSTANCE;
AFg1hSDK aFg1hSDK = AFg1hSDK.DDL;
StringBuilder sb = new StringBuilder();
sb.append(aFi1nSDK2.values.get("source"));
sb.append(" referrer collected earlier");
aFLogger.d(aFg1hSDK, sb.toString());
aFc1qSDK.AFInAppEventParameterName(aFi1nSDK2);
} else if (i == 2) {
aFi1nSDK2.addObserver(new Observer() {
@Override
public final void update(Observable observable, Object obj) {
AFLogger aFLogger2 = AFLogger.INSTANCE;
AFg1hSDK aFg1hSDK2 = AFg1hSDK.DDL;
StringBuilder sb2 = new StringBuilder();
sb2.append(aFi1nSDK2.values.get("source"));
sb2.append(" referrer collected via observer");
aFLogger2.d(aFg1hSDK2, sb2.toString());
AFc1qSDK.this.AFInAppEventParameterName((AFi1nSDK) observable);
}
});
}
}
}
static com.appsflyer.deeplink.DeepLinkResult AFInAppEventParameterName(com.appsflyer.internal.AFc1qSDK r13) throws java.io.IOException, org.json.JSONException, java.lang.InterruptedException {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFc1qSDK.AFInAppEventParameterName(com.appsflyer.internal.AFc1qSDK):com.appsflyer.deeplink.DeepLinkResult");
}
}