导航菜单

页面标题

页面副标题

FanCode v7.24.0 - AFe1qSDK.java 源代码

正在查看: FanCode v7.24.0 应用的 AFe1qSDK.java JAVA 源代码文件

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


package com.appsflyer.internal;

import android.content.Context;
import android.graphics.Color;
import android.os.Build;
import android.os.Process;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import androidx.annotation.NonNull;
import com.appsflyer.AFLogger;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.AppsFlyerProperties;
import com.connectsdk.service.airplay.PListParser;
import com.connectsdk.service.command.ServiceCommand;
import com.connectsdk.service.config.ServiceDescription;
import com.connectsdk.service.webos.lgcast.common.utils.StringUtil;
import com.newrelic.agent.android.instrumentation.Instrumented;
import com.newrelic.agent.android.instrumentation.JSONObjectInstrumentation;
import java.lang.reflect.Method;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.StringCompanionObject;
import org.json.JSONObject;

@Instrumented
public final class AFe1qSDK {
    private static int $10 = 0;
    private static int $11 = 1;
    public static String AFAdRevenueData = null;
    private static int component2 = 0;
    private static int component3 = 1;
    private static long component4;
    private static String getRevenue;
    private final AFe1gSDK areAllFieldsValid;
    private final AppsFlyerProperties getCurrencyIso4217Code;
    private final AFe1vSDK getMediationNetwork;
    private final AFd1rSDK getMonetizationNetwork;

    static {
        getMonetizationNetwork();
        AFAdRevenueData = "https://%sgcdsdk.%s/install_data/v5.0/";
        getRevenue = "https://%sonelink.%s/shortlink-sdk/v2";
        int i9 = component2 + 89;
        component3 = i9 % 128;
        if ((i9 % 2 == 0 ? ',' : '(') == '(') {
        } else {
            throw null;
        }
    }

    public AFe1qSDK(AFe1vSDK aFe1vSDK, AFd1rSDK aFd1rSDK, AppsFlyerProperties appsFlyerProperties, AFe1gSDK aFe1gSDK) {
        this.getMediationNetwork = aFe1vSDK;
        this.getMonetizationNetwork = aFd1rSDK;
        this.getCurrencyIso4217Code = appsFlyerProperties;
        this.areAllFieldsValid = aFe1gSDK;
    }

    private static Object AFAdRevenueData(Object[] objArr) {
        AFe1qSDK aFe1qSDK = (AFe1qSDK) objArr[0];
        AFc1jSDK aFc1jSDK = (AFc1jSDK) objArr[1];
        JSONObject monetizationNetwork = AFa1oSDK.getMonetizationNetwork((Map<String, ?>) aFc1jSDK.getMonetizationNetwork());
        AFe1rSDK revenue = aFe1qSDK.getRevenue(new AFe1nSDK(aFc1jSDK.component1, (!(monetizationNetwork instanceof JSONObject) ? monetizationNetwork.toString() : JSONObjectInstrumentation.toString(monetizationNetwork)).getBytes(Charset.defaultCharset()), ServiceCommand.TYPE_POST, Collections.emptyMap(), aFc1jSDK.getRevenue()), new AFc1qSDK());
        int i9 = component2 + 99;
        component3 = i9 % 128;
        if (i9 % 2 != 0) {
            return revenue;
        }
        int i10 = 15 / 0;
        return revenue;
    }

    private static void a(java.lang.String r11, int r12, java.lang.Object[] r13) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFe1qSDK.a(java.lang.String, int, java.lang.Object[]):void");
    }

    private static Object getCurrencyIso4217Code(Object[] objArr) {
        AFe1qSDK aFe1qSDK = (AFe1qSDK) objArr[0];
        Map map = (Map) objArr[1];
        String str = (String) objArr[2];
        int i9 = component3 + 25;
        component2 = i9 % 128;
        int i10 = i9 % 2;
        try {
            Object[] objArr2 = {map, str};
            Map map2 = AFa1vSDK.AFLogger;
            Object obj = map2.get(-1592476798);
            if (obj == null) {
                obj = ((Class) AFa1vSDK.AFAdRevenueData((char) (TextUtils.indexOf(StringUtil.EMPTY, StringUtil.EMPTY) + 59275), 37 - (ViewConfiguration.getFadingEdgeLength() >> 16), 37 - (ViewConfiguration.getKeyRepeatTimeout() >> 16))).getMethod("getCurrencyIso4217Code", Map.class, String.class);
                map2.put(-1592476798, obj);
            }
            byte[] bArr = (byte[]) ((Method) obj).invoke(null, objArr2);
            AFj1iSDK aFj1iSDK = new AFj1iSDK(aFe1qSDK.getMonetizationNetwork);
            AFe1rSDK revenue = aFe1qSDK.getRevenue(new AFe1nSDK(aFj1iSDK.getCurrencyIso4217Code(aFj1iSDK.getMonetizationNetwork.getMediationNetwork("https://%svalidate-and-log.%s/api/v1.0/android/validateAndLog?app_id=")), bArr, ServiceCommand.TYPE_POST, Collections.emptyMap(), true), new AFe1oSDK());
            int i11 = component2 + 21;
            component3 = i11 % 128;
            if (i11 % 2 != 0) {
                return revenue;
            }
            throw null;
        } catch (Throwable th) {
            try {
                Throwable cause = th.getCause();
                if (cause != null) {
                    throw cause;
                }
                throw th;
            } catch (Throwable th2) {
                AFLogger.INSTANCE.e(AFh1xSDK.PURCHASE_VALIDATION, "AFFinalizer: reflection init failed", th2, false, false);
                return null;
            }
        }
    }

    public static Object getMediationNetwork(Object[] objArr, int i9, int i10, int i11) {
        int i12 = ~i9;
        int i13 = (i9 * (-1831)) + (i10 * 917) + ((~(i12 | i10)) * 2748);
        int i14 = i12 | (~i10);
        int i15 = i13 + (i14 * (-916)) + (((~(i9 | i10)) | (~i14)) * 916);
        return i15 != 1 ? i15 != 2 ? getCurrencyIso4217Code(objArr) : AFAdRevenueData(objArr) : getMonetizationNetwork(objArr);
    }

    public final com.appsflyer.internal.AFe1rSDK<java.lang.String> getMonetizationNetwork(java.util.Map<java.lang.String, java.lang.Object> r11, java.lang.String r12, java.lang.String r13) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFe1qSDK.getMonetizationNetwork(java.util.Map, java.lang.String, java.lang.String):com.appsflyer.internal.AFe1rSDK");
    }

    public final AFe1rSDK<String> getRevenue(AFa1mSDK aFa1mSDK, String str, AFd1lSDK aFd1lSDK) {
        int i9 = component2 + 85;
        component3 = i9 % 128;
        int i10 = i9 % 2;
        try {
            Object[] objArr = {aFa1mSDK, str, aFd1lSDK};
            Map map = AFa1vSDK.AFLogger;
            Object obj = map.get(1104110112);
            if (obj == null) {
                obj = ((Class) AFa1vSDK.AFAdRevenueData((char) ((ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 59276), 37 - View.getDefaultSize(0, 0), Color.red(0) + 37)).getMethod("getMediationNetwork", AFa1mSDK.class, String.class, AFd1lSDK.class);
                map.put(1104110112, obj);
            }
            AFe1rSDK<String> revenue = getRevenue(new AFe1nSDK(aFa1mSDK.component1, (byte[]) ((Method) obj).invoke(null, objArr), ServiceCommand.TYPE_POST, Collections.emptyMap(), aFa1mSDK.getRevenue()), new AFe1oSDK());
            int i11 = component3 + 89;
            component2 = i11 % 128;
            int i12 = i11 % 2;
            return revenue;
        } catch (Throwable th) {
            try {
                Throwable cause = th.getCause();
                if (cause != null) {
                    throw cause;
                }
                throw th;
            } catch (Throwable th2) {
                AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: reflection init failed", th2);
                return null;
            }
        }
    }

    public final com.appsflyer.internal.AFe1rSDK<java.lang.String> getMediationNetwork(java.util.Map<java.lang.String, java.lang.Object> r18, java.lang.String r19, java.lang.String r20) {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFe1qSDK.getMediationNetwork(java.util.Map, java.lang.String, java.lang.String):com.appsflyer.internal.AFe1rSDK");
    }

    public final AFe1zSDK AFAdRevenueData(Map<String, Object> map, String str) {
        int i9 = component3 + 93;
        component2 = i9 % 128;
        int i10 = i9 % 2;
        try {
            try {
                Object[] objArr = {map, str};
                Map map2 = AFa1vSDK.AFLogger;
                Object obj = map2.get(-1592476798);
                if (obj == null) {
                    obj = ((Class) AFa1vSDK.AFAdRevenueData((char) ((ViewConfiguration.getFadingEdgeLength() >> 16) + 59275), 38 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)), 37 - TextUtils.indexOf(StringUtil.EMPTY, StringUtil.EMPTY))).getMethod("getCurrencyIso4217Code", Map.class, String.class);
                    map2.put(-1592476798, obj);
                }
                byte[] bArr = (byte[]) ((Method) obj).invoke(null, objArr);
                if (bArr != null) {
                    return new AFe1zSDK(this.getMonetizationNetwork, bArr);
                }
                AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: failed to create bytes", new IllegalArgumentException("failed to create bytes from proxyData"));
                int i11 = component2 + 25;
                component3 = i11 % 128;
                if (i11 % 2 == 0) {
                    throw null;
                }
                return null;
            } catch (Throwable th) {
                Throwable cause = th.getCause();
                if (cause != null) {
                    throw cause;
                }
                throw th;
            }
        } catch (Exception e9) {
            AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: reflection init failed", e9);
            return null;
        }
    }

    public final AFe1rSDK<Map<String, Object>> getRevenue(String str, String str2) {
        String packageName = this.getMonetizationNetwork.getMonetizationNetwork.getCurrencyIso4217Code.getPackageName();
        AFd1rSDK aFd1rSDK = this.getMonetizationNetwork;
        AFe1rSDK<Map<String, Object>> revenue = getRevenue(AFe1uSDK.getCurrencyIso4217Code(packageName, AFb1mSDK.getMediationNetwork(aFd1rSDK.getMonetizationNetwork, aFd1rSDK.getRevenue), str, str2), new AFe1tSDK());
        int i9 = component3 + 119;
        component2 = i9 % 128;
        int i10 = i9 % 2;
        return revenue;
    }

    private Map<String, Object> getCurrencyIso4217Code() {
        HashMap hashMap = new HashMap();
        hashMap.put("build_number", "6.15.1");
        hashMap.put("counter", Integer.valueOf(this.getMonetizationNetwork.getRevenue.AFAdRevenueData("appsFlyerCount", 0)));
        hashMap.put("model", Build.MODEL);
        Object[] objArr = new Object[1];
        a("⹈泼\ufbc8⸪삖䎦ꎙ䞀鹌", ViewConfiguration.getEdgeSlop() >> 16, objArr);
        hashMap.put(((String) objArr[0]).intern(), Build.BRAND);
        hashMap.put("sdk", Integer.toString(Build.VERSION.SDK_INT));
        Context context = this.getMonetizationNetwork.getMonetizationNetwork.getCurrencyIso4217Code;
        hashMap.put("app_version_name", AFb1qSDK.getMediationNetwork(context, context.getPackageName()));
        hashMap.put("app_id", this.getMonetizationNetwork.getMonetizationNetwork.getCurrencyIso4217Code.getPackageName());
        hashMap.put("platformextension", new AFb1cSDK().getRevenue());
        int i9 = component2 + 125;
        component3 = i9 % 128;
        if (i9 % 2 == 0) {
            throw null;
        }
        return hashMap;
    }

    private boolean AFAdRevenueData() {
        int i9 = component2 + 65;
        component3 = i9 % 128;
        int i10 = i9 % 2;
        if (this.getCurrencyIso4217Code.getBoolean(AppsFlyerProperties.HTTP_CACHE, true)) {
            return false;
        }
        int i11 = component2 + 79;
        component3 = i11 % 128;
        return (i11 % 2 == 0 ? 'a' : (char) 18) == 18;
    }

    @NonNull
    public final AFe1rSDK<AFc1oSDK> AFAdRevenueData(AFc1jSDK aFc1jSDK) {
        return (AFe1rSDK) getMediationNetwork(new Object[]{this, aFc1jSDK}, -1667700185, 1667700187, System.identityHashCode(this));
    }

    private static Object getMonetizationNetwork(Object[] objArr) {
        String str;
        AFe1qSDK aFe1qSDK = (AFe1qSDK) objArr[0];
        boolean booleanValue = ((Boolean) objArr[1]).booleanValue();
        boolean booleanValue2 = ((Boolean) objArr[2]).booleanValue();
        String str2 = (String) objArr[3];
        ((Number) objArr[4]).intValue();
        int i9 = component2 + 19;
        component3 = i9 % 128;
        int i10 = i9 % 2;
        AFe1gSDK aFe1gSDK = aFe1qSDK.areAllFieldsValid;
        Intrinsics.checkNotNullParameter(str2, StringUtil.EMPTY);
        String str3 = !(!booleanValue) ? AFe1gSDK.getRevenue : AFe1gSDK.getMediationNetwork;
        String str4 = (booleanValue2 ? (char) 1 : '\'') != '\'' ? "stg" : StringUtil.EMPTY;
        StringCompanionObject stringCompanionObject = StringCompanionObject.INSTANCE;
        Object[] objArr2 = new Object[4];
        if ((AFe1gSDK.getMediationNetwork() ? ';' : '2') != ';') {
            str = StringUtil.EMPTY;
        } else {
            int i11 = component2 + 109;
            component3 = i11 % 128;
            if (!(i11 % 2 == 0)) {
                str = (String) aFe1gSDK.AFAdRevenueData.getValue();
            } else {
                throw null;
            }
        }
        objArr2[0] = str;
        objArr2[1] = str4;
        objArr2[2] = aFe1gSDK.getCurrencyIso4217Code();
        objArr2[3] = str2;
        String format = String.format(str3, Arrays.copyOf(objArr2, 4));
        Intrinsics.checkNotNullExpressionValue(format, StringUtil.EMPTY);
        AFe1nSDK aFe1nSDK = new AFe1nSDK(format, ServiceCommand.TYPE_GET);
        aFe1nSDK.component4 = 1500;
        return aFe1qSDK.getRevenue(aFe1nSDK, new AFe1pSDK());
    }

    public final AFe1rSDK<Map<String, String>> getRevenue(@NonNull String str, @NonNull String str2, @NonNull UUID uuid, @NonNull String str3) {
        String obj = uuid.toString();
        StringBuilder sb = new StringBuilder();
        sb.append(String.format(getRevenue, AppsFlyerLib.getInstance().getHostPrefix(), AFb1rSDK.getRevenue().getHostName()));
        sb.append("/");
        sb.append(str);
        sb.append("?id=");
        sb.append(str2);
        String obj2 = sb.toString();
        Map<String, Object> currencyIso4217Code = getCurrencyIso4217Code();
        String valueOf = String.valueOf(currencyIso4217Code.get("build_number"));
        HashMap hashMap = new HashMap();
        hashMap.put("Af-UUID", uuid.toString());
        hashMap.put("Af-Meta-Sdk-Ver", valueOf);
        hashMap.put("Af-Meta-Counter", String.valueOf(currencyIso4217Code.get("counter")));
        hashMap.put("Af-Meta-Model", String.valueOf(currencyIso4217Code.get("model")));
        hashMap.put("Af-Meta-Platform", String.valueOf(currencyIso4217Code.get("platformextension")));
        hashMap.put("Af-Meta-System-Version", String.valueOf(currencyIso4217Code.get("sdk")));
        Object[] objArr = new Object[1];
        a("廖뻁퀁店\u12bf릴蠜붯\ueedf\ue2de\ud8ffൽ㹢뉬梃\udcd9", ViewConfiguration.getJumpTapTimeout() >> 16, objArr);
        hashMap.put(((String) objArr[0]).intern(), getRevenue(str3, obj, ServiceCommand.TYPE_GET, obj, str, str2, valueOf));
        AFe1rSDK<Map<String, String>> revenue = getRevenue(new AFe1nSDK(obj2, null, ServiceCommand.TYPE_GET, hashMap, false), new AFe1hSDK());
        int i9 = component2 + 75;
        component3 = i9 % 128;
        if ((i9 % 2 == 0 ? (char) 17 : '0') == '0') {
            return revenue;
        }
        throw null;
    }

    private <T> AFe1rSDK<T> getCurrencyIso4217Code(AFe1nSDK aFe1nSDK, AFe1kSDK<T> aFe1kSDK, boolean z9) {
        aFe1nSDK.getMediationNetwork = z9;
        AFe1vSDK aFe1vSDK = this.getMediationNetwork;
        AFe1rSDK<T> aFe1rSDK = new AFe1rSDK<>(aFe1nSDK, aFe1vSDK.AFAdRevenueData, aFe1vSDK.getMediationNetwork, aFe1kSDK);
        int i9 = component2 + 47;
        component3 = i9 % 128;
        int i10 = i9 % 2;
        return aFe1rSDK;
    }

    public final AFe1rSDK<String> getMonetizationNetwork(AFh1eSDK aFh1eSDK) {
        AFe1rSDK<String> revenue = getRevenue(new AFe1nSDK(aFh1eSDK.component1, aFh1eSDK.getMediationNetwork(), ServiceCommand.TYPE_POST, Collections.emptyMap(), true), new AFe1oSDK());
        int i9 = component3 + 11;
        component2 = i9 % 128;
        int i10 = i9 % 2;
        return revenue;
    }

    public final AFe1rSDK<String> getRevenue(@NonNull String str) {
        AFe1nSDK aFe1nSDK = new AFe1nSDK(str, null, ServiceCommand.TYPE_GET, Collections.emptyMap(), false);
        aFe1nSDK.component4 = 10000;
        aFe1nSDK.getMonetizationNetwork = false;
        AFe1rSDK<String> revenue = getRevenue(aFe1nSDK, new AFe1oSDK());
        int i9 = component2 + 109;
        component3 = i9 % 128;
        if (i9 % 2 != 0) {
            return revenue;
        }
        throw null;
    }

    public final AFe1rSDK<String> getMonetizationNetwork(@NonNull String str, @NonNull Map<String, String> map, String str2, @NonNull UUID uuid, @NonNull String str3) {
        String obj = uuid.toString();
        HashMap hashMap = new HashMap();
        hashMap.put("ttl", "-1");
        hashMap.put(ServiceDescription.KEY_UUID, obj);
        hashMap.put(PListParser.TAG_DATA, map);
        hashMap.put("meta", getCurrencyIso4217Code());
        if (str2 != null) {
            hashMap.put("brand_domain", str2);
            int i9 = component2 + 71;
            component3 = i9 % 128;
            int i10 = i9 % 2;
        }
        JSONObject monetizationNetwork = AFa1oSDK.getMonetizationNetwork(hashMap);
        String jSONObject = !(monetizationNetwork instanceof JSONObject) ? monetizationNetwork.toString() : JSONObjectInstrumentation.toString(monetizationNetwork);
        HashMap hashMap2 = new HashMap();
        Object[] objArr = new Object[1];
        a("廖뻁퀁店\u12bf릴蠜붯\ueedf\ue2de\ud8ffൽ㹢뉬梃\udcd9", (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) - 1, objArr);
        hashMap2.put(((String) objArr[0]).intern(), getRevenue(str3, obj, ServiceCommand.TYPE_POST, jSONObject));
        StringBuilder sb = new StringBuilder();
        sb.append(String.format(getRevenue, AppsFlyerLib.getInstance().getHostPrefix(), AFb1rSDK.getRevenue().getHostName()));
        sb.append("/");
        sb.append(str);
        AFe1rSDK<String> currencyIso4217Code = getCurrencyIso4217Code(new AFe1nSDK(sb.toString(), jSONObject.getBytes(Charset.defaultCharset()), ServiceCommand.TYPE_POST, hashMap2, false), new AFe1oSDK(), true);
        int i11 = component2 + 87;
        component3 = i11 % 128;
        if (i11 % 2 != 0) {
            return currencyIso4217Code;
        }
        throw null;
    }

    private <T> AFe1rSDK<T> getRevenue(AFe1nSDK aFe1nSDK, AFe1kSDK<T> aFe1kSDK) {
        int i9 = component2 + 49;
        component3 = i9 % 128;
        if (!(i9 % 2 == 0)) {
            return getCurrencyIso4217Code(aFe1nSDK, aFe1kSDK, AFAdRevenueData());
        }
        getCurrencyIso4217Code(aFe1nSDK, aFe1kSDK, AFAdRevenueData());
        throw null;
    }

    private static String getRevenue(String str, String str2, String... strArr) {
        ArrayList arrayList = new ArrayList(Arrays.asList(strArr));
        arrayList.add(1, "v2");
        String join = TextUtils.join("\u2063", (String[]) arrayList.toArray(new String[0]));
        StringBuilder sb = new StringBuilder();
        sb.append(str);
        sb.append(str2);
        sb.append("v2");
        String currencyIso4217Code = AFb1kSDK.getCurrencyIso4217Code(join, sb.toString());
        int i9 = component2 + 119;
        component3 = i9 % 128;
        if (i9 % 2 != 0) {
            return currencyIso4217Code;
        }
        throw null;
    }

    static void getMonetizationNetwork() {
        component4 = -1635884646589849241L;
    }

    @NonNull
    public final AFe1rSDK<AFi1ySDK> getMonetizationNetwork(boolean z9, boolean z10, @NonNull String str, int i9) {
        return (AFe1rSDK) getMediationNetwork(new Object[]{this, Boolean.valueOf(z9), Boolean.valueOf(z10), str, Integer.valueOf(i9)}, 1386933028, -1386933027, i9);
    }

    public final AFe1rSDK<String> getMonetizationNetwork(Map<String, Object> map, String str) {
        return (AFe1rSDK) getMediationNetwork(new Object[]{this, map, str}, -1279437846, 1279437846, System.identityHashCode(this));
    }
}