导航菜单

页面标题

页面副标题

Crédito Express v1.0.3 - AFb1pSDK.java 源代码

正在查看: Crédito Express v1.0.3 应用的 AFb1pSDK.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.appsflyer.internal;

import android.content.Context;
import android.net.Uri;
import android.os.Build;
import com.appsflyer.AFLogger;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.internal.AFc1vSDK;
import com.appsflyer.internal.AFf1uSDK;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import java.lang.ref.WeakReference;
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;
import okhttp3.HttpUrl;

public final class AFb1pSDK extends AFe1jSDK {
    private static String AFLogger$LogLevel = "https://%sdlsdk.%s/v1.0/android/";
    public static long getLevel;
    private final AFe1nSDK AppsFlyer2dXConversionCallback;
    private final List<AFf1uSDK> afErrorLogForExcManagerOnly;
    private final CountDownLatch afWarnLog;
    private final AFf1sSDK init;
    private final AFe1xSDK onAppOpenAttributionNative;
    private boolean onAttributionFailureNative;
    private int onDeepLinkingNative;
    private final AFb1fSDK onInstallConversionDataLoadedNative;
    private final ExecutorService onInstallConversionFailureNative;
    private int onResponseErrorNative;
    private int onResponseNative;

    public static class AnonymousClass1 {
        static final int[] values;

        static {
            int[] iArr = new int[AFf1uSDK.AFa1ySDK.values().length];
            values = iArr;
            try {
                iArr[AFf1uSDK.AFa1ySDK.FINISHED.ordinal()] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                values[AFf1uSDK.AFa1ySDK.STARTED.ordinal()] = 2;
            } catch (NoSuchFieldError unused2) {
            }
        }
    }

    public AFb1pSDK(Context context, AFc1xSDK aFc1xSDK) {
        super(null, AFLogger$LogLevel, Boolean.FALSE, Boolean.TRUE, null, context);
        this.afErrorLogForExcManagerOnly = new ArrayList();
        this.afWarnLog = new CountDownLatch(1);
        this.AppsFlyer2dXConversionCallback = aFc1xSDK.afRDLog();
        this.onInstallConversionDataLoadedNative = aFc1xSDK.values();
        this.onAppOpenAttributionNative = aFc1xSDK.AFVersionDeclaration();
        this.init = aFc1xSDK.getLevel();
        this.onInstallConversionFailureNative = aFc1xSDK.AFInAppEventParameterName();
    }

    private Map<String, Object> AFInAppEventParameterName(final AFc1vSDK.AFa1wSDK aFa1wSDK) {
        if (aFa1wSDK == null || aFa1wSDK.AFInAppEventType == null) {
            return null;
        }
        Boolean bool = aFa1wSDK.valueOf;
        if (bool == null || !bool.booleanValue()) {
            return new HashMap<String, Object>() {
                {
                    put("type", "unhashed");
                    put(AppMeasurementSdk.ConditionalUserProperty.VALUE, aFa1wSDK.AFInAppEventType);
                }
            };
        }
        return null;
    }

    public static com.appsflyer.deeplink.DeepLinkResult AFKeystoreWrapper(com.appsflyer.internal.AFb1pSDK r12, android.content.Context r13) throws java.io.IOException, org.json.JSONException, java.lang.InterruptedException {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFb1pSDK.AFKeystoreWrapper(com.appsflyer.internal.AFb1pSDK, android.content.Context):com.appsflyer.deeplink.DeepLinkResult");
    }

    public void AFLogger$LogLevel() {
        String[] strArr;
        this.onResponseErrorNative++;
        StringBuilder sb = new StringBuilder("[DDL] Preparing request ");
        sb.append(this.onResponseErrorNative);
        AFLogger.afDebugLog(sb.toString());
        if (this.onResponseErrorNative == 1) {
            AFb1zSDK AFInAppEventType = AFb1zSDK.AFInAppEventType();
            this.valueOf.put("is_first", Boolean.valueOf(this.onInstallConversionDataLoadedNative.values.AFInAppEventType("appsFlyerCount", 0) == 0));
            Map<String, Object> map = this.valueOf;
            StringBuilder sb2 = new StringBuilder();
            sb2.append(Locale.getDefault().getLanguage());
            sb2.append("-");
            sb2.append(Locale.getDefault().getCountry());
            map.put("lang", sb2.toString());
            this.valueOf.put("os", Build.VERSION.RELEASE);
            this.valueOf.put("type", Build.MODEL);
            this.valueOf.put("request_id", AFb1xSDK.AFInAppEventParameterName(new WeakReference(this.onInstallConversionDataLoadedNative.valueOf.values)));
            AFa1fSDK aFa1fSDK = AFInAppEventType.afRDLog;
            if (aFa1fSDK != null && (strArr = aFa1fSDK.valueOf) != null) {
                this.valueOf.put("sharing_filter", strArr);
            }
            Map<String, Object> AFInAppEventParameterName = AFInAppEventParameterName(AFa1bSDK.AFKeystoreWrapper(this.onInstallConversionDataLoadedNative.valueOf.values, new HashMap()));
            Map<String, Object> AFInAppEventParameterName2 = AFInAppEventParameterName(AFa1bSDK.values(this.onInstallConversionDataLoadedNative.valueOf.values));
            if (AFInAppEventParameterName != null) {
                this.valueOf.put("gaid", AFInAppEventParameterName);
            }
            if (AFInAppEventParameterName2 != null) {
                this.valueOf.put("oaid", AFInAppEventParameterName2);
            }
        }
        Map<String, Object> map2 = this.valueOf;
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS", Locale.US);
        long currentTimeMillis = System.currentTimeMillis();
        simpleDateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
        map2.put("timestamp", simpleDateFormat.format(new Date(currentTimeMillis)));
        this.valueOf.put("request_count", Integer.valueOf(this.onResponseErrorNative));
        ArrayList arrayList = new ArrayList();
        Iterator<AFf1uSDK> it = this.afErrorLogForExcManagerOnly.iterator();
        while (it.hasNext()) {
            Map<String, String> values = values(it.next());
            if (values != null) {
                arrayList.add(values);
            }
        }
        if (!arrayList.isEmpty()) {
            this.valueOf.put("referrers", arrayList);
        }
        AFInAppEventType(onAppOpenAttributionNative());
    }

    private boolean getLevel() {
        List list = (List) this.valueOf.get("referrers");
        return (list != null ? list.size() : 0) < this.onDeepLinkingNative && !this.valueOf.containsKey("referrers");
    }

    private String onAppOpenAttributionNative() {
        String str = this.onAppOpenAttributionNative.AFInAppEventType;
        String packageName = this.onInstallConversionDataLoadedNative.valueOf.values.getPackageName();
        String values = this.onInstallConversionDataLoadedNative.values();
        String concat = (values == null || values.trim().isEmpty()) ? HttpUrl.FRAGMENT_ENCODE_SET : "-".concat(values);
        Uri.Builder buildUpon = Uri.parse(String.format(AFLogger$LogLevel, AppsFlyerLib.getInstance().getHostPrefix(), AFb1zSDK.AFInAppEventType().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.valueOf.get("timestamp"));
        sb2.append(str);
        return appendPath.appendQueryParameter("af_sig", AFa1aSDK.values(sb2.toString(), str)).appendQueryParameter("sdk_version", AFb1zSDK.AFKeystoreWrapper).build().toString();
    }

    public final com.appsflyer.deeplink.DeepLinkResult AFLogger() {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFb1pSDK.AFLogger():com.appsflyer.deeplink.DeepLinkResult");
    }

    @Override
    public final AFd1wSDK values() {
        return AFd1wSDK.DLSDK;
    }

    public static void AFInAppEventParameterName(AFb1pSDK aFb1pSDK) {
        ArrayList<AFf1uSDK> arrayList = new ArrayList();
        for (AFf1uSDK aFf1uSDK : aFb1pSDK.init.values()) {
            if (aFf1uSDK != null && aFf1uSDK.afDebugLog != AFf1uSDK.AFa1ySDK.NOT_STARTED) {
                arrayList.add(aFf1uSDK);
            }
        }
        aFb1pSDK.onDeepLinkingNative = arrayList.size();
        for (final AFf1uSDK aFf1uSDK2 : arrayList) {
            int i7 = AnonymousClass1.values[aFf1uSDK2.afDebugLog.ordinal()];
            if (i7 == 1) {
                StringBuilder sb = new StringBuilder("[DDL] ");
                sb.append(aFf1uSDK2.values.get("source"));
                sb.append(" referrer collected earlier");
                AFLogger.afDebugLog(sb.toString());
                aFb1pSDK.AFInAppEventParameterName(aFf1uSDK2);
            } else if (i7 == 2) {
                aFf1uSDK2.addObserver(new Observer() {
                    @Override
                    public final void update(Observable observable, Object obj) {
                        StringBuilder sb2 = new StringBuilder("[DDL] ");
                        sb2.append(aFf1uSDK2.values.get("source"));
                        sb2.append(" referrer collected via observer");
                        AFLogger.afDebugLog(sb2.toString());
                        AFb1pSDK.this.AFInAppEventParameterName((AFf1uSDK) observable);
                    }
                });
            }
        }
    }

    private static boolean valueOf(AFf1uSDK aFf1uSDK) {
        Long l7 = (Long) aFf1uSDK.values.get("click_ts");
        return l7 != null && System.currentTimeMillis() - TimeUnit.SECONDS.toMillis(l7.longValue()) < TimeUnit.DAYS.toMillis(1L);
    }

    private static Map<String, String> values(AFf1uSDK aFf1uSDK) {
        if (aFf1uSDK.afDebugLog != AFf1uSDK.AFa1ySDK.FINISHED) {
            return null;
        }
        HashMap hashMap = new HashMap();
        String str = (String) aFf1uSDK.values.get("referrer");
        if (str == null) {
            return null;
        }
        hashMap.put("source", (String) aFf1uSDK.values.get("source"));
        hashMap.put(AppMeasurementSdk.ConditionalUserProperty.VALUE, str);
        return hashMap;
    }

    public void AFInAppEventParameterName(AFf1uSDK aFf1uSDK) {
        if (valueOf(aFf1uSDK)) {
            this.afErrorLogForExcManagerOnly.add(aFf1uSDK);
            this.afWarnLog.countDown();
            StringBuilder sb = new StringBuilder("[DDL] Added non-organic ");
            sb.append(aFf1uSDK.getClass().getSimpleName());
            AFLogger.afDebugLog(sb.toString());
            return;
        }
        int i7 = this.onResponseNative + 1;
        this.onResponseNative = i7;
        if (i7 == this.onDeepLinkingNative) {
            this.afWarnLog.countDown();
        }
    }
}