Perfume Of Love v2.14.9版本的 MD5 值为:16011aefc5a55805771706ce3b259b4e

以下内容为反编译后的 AFc1kSDK.java 源代码,内容仅作参考


package com.appsflyer.internal;

import android.media.AudioTrack;
import android.os.Build;
import android.os.Process;
import android.text.TextUtils;
import android.view.Gravity;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import androidx.browser.trusted.sharing.ShareTarget;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.AppsFlyerProperties;
import com.appsflyer.CreateOneLinkHttpTask;
import com.facebook.devicerequests.internal.DeviceRequestsHelper;
import com.mbridge.msdk.playercommon.exoplayer2.C;
import java.lang.ref.WeakReference;
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 kotlin.text.Typography;
import org.json.JSONObject;
public final class AFc1kSDK {
    public static String AFInAppEventParameterName = null;
    private static String AFKeystoreWrapper = null;
    private static char[] afDebugLog = null;
    private static int afErrorLog = 1;
    private static int afRDLog;
    private static String values;
    private final CreateOneLinkHttpTask AFInAppEventType;
    private final AFd1xSDK AFLogger;
    private final AppsFlyerProperties afInfoLog;
    private final AFb1bSDK valueOf;

    static void AFInAppEventParameterName() {
        afDebugLog = new char[]{':', 't', 'j', 'g', 'j', 'h', '^', '@', 'I', 'S', 'S', 'k', '1', 'j', 'i', 'g', 'i'};
    }

    static {
        AFInAppEventParameterName();
        AFKeystoreWrapper = "https://%smonitorsdk.%s/remote-debug?app_id=";
        AFInAppEventParameterName = "https://%sgcdsdk.%s/install_data/v5.0/";
        values = "https://%sonelink.%s/shortlink-sdk/v2";
        int i = afRDLog + 61;
        afErrorLog = i % 128;
        int i2 = i % 2;
    }

    public AFc1kSDK(CreateOneLinkHttpTask createOneLinkHttpTask, AFb1bSDK aFb1bSDK, AppsFlyerProperties appsFlyerProperties, AFd1xSDK aFd1xSDK) {
        this.AFInAppEventType = createOneLinkHttpTask;
        this.valueOf = aFb1bSDK;
        this.afInfoLog = appsFlyerProperties;
        this.AFLogger = aFd1xSDK;
    }

    public final AFc1mSDK<String> valueOf(Map<String, Object> map, String str) {
        StringBuilder sb = new StringBuilder();
        sb.append(String.format("https://%sars.%s/api/v2/android/validate_subscription?app_id=", AppsFlyerLib.getInstance().getHostPrefix(), AFb1xSDK.AFInAppEventType().getHostName()));
        sb.append(this.valueOf.values.AFKeystoreWrapper.getPackageName());
        try {
            Object obj = null;
            AFc1mSDK<String> AFInAppEventParameterName2 = AFInAppEventParameterName(new AFc1rSDK(sb.toString(), (byte[]) ((Class) AFa1vSDK.AFInAppEventParameterName((char) (48063 - (ViewConfiguration.getMaximumFlingVelocity() >> 16)), 37 - (ViewConfiguration.getScrollBarSize() >> 8), 73 - ExpandableListView.getPackedPositionGroup(0L))).getMethod("AFInAppEventParameterName", Map.class, String.class).invoke(null, map, str), ShareTarget.METHOD_POST, Collections.emptyMap(), true), new AFc1hSDK());
            int i = afRDLog + 119;
            afErrorLog = i % 128;
            if (!(i % 2 != 0)) {
                super.hashCode();
                return AFInAppEventParameterName2;
            }
            return AFInAppEventParameterName2;
        } catch (Throwable th) {
            Throwable cause = th.getCause();
            if (cause != null) {
                throw cause;
            }
            throw th;
        }
    }

    public final AFc1mSDK<String> AFInAppEventParameterName(Map<String, Object> map, String str) {
        StringBuilder sb = new StringBuilder();
        sb.append(String.format("https://%sviap.%s/api/v1/android/validate_purchase?app_id=", AppsFlyerLib.getInstance().getHostPrefix(), AFb1xSDK.AFInAppEventType().getHostName()));
        sb.append(this.valueOf.values.AFKeystoreWrapper.getPackageName());
        try {
            AFc1mSDK<String> AFInAppEventParameterName2 = AFInAppEventParameterName(new AFc1rSDK(sb.toString(), (byte[]) ((Class) AFa1vSDK.AFInAppEventParameterName((char) (48063 - (ViewConfiguration.getWindowTouchSlop() >> 8)), Gravity.getAbsoluteGravity(0, 0) + 37, (Process.myTid() >> 22) + 73)).getMethod("AFInAppEventParameterName", Map.class, String.class).invoke(null, map, str), ShareTarget.METHOD_POST, Collections.emptyMap(), true), new AFc1hSDK());
            int i = afErrorLog + 81;
            afRDLog = i % 128;
            if ((i % 2 != 0 ? '7' : 'c') != '7') {
                return AFInAppEventParameterName2;
            }
            int i2 = 79 / 0;
            return AFInAppEventParameterName2;
        } catch (Throwable th) {
            Throwable cause = th.getCause();
            if (cause != null) {
                throw cause;
            }
            throw th;
        }
    }

    public final AFc1mSDK<String> AFInAppEventParameterName(Map<String, Object> map) {
        StringBuilder sb = new StringBuilder();
        sb.append(String.format(AFKeystoreWrapper, AppsFlyerLib.getInstance().getHostPrefix(), AFb1xSDK.AFInAppEventType().getHostName()));
        sb.append(this.valueOf.values.AFKeystoreWrapper.getPackageName());
        AFc1mSDK<String> AFInAppEventParameterName2 = AFInAppEventParameterName(new AFc1rSDK(sb.toString(), new JSONObject(map).toString().getBytes(), ShareTarget.METHOD_POST, Collections.emptyMap(), false), new AFc1hSDK());
        int i = afRDLog + 5;
        afErrorLog = i % 128;
        if (!(i % 2 != 0)) {
            int i2 = 92 / 0;
            return AFInAppEventParameterName2;
        }
        return AFInAppEventParameterName2;
    }

    public final AFc1mSDK<AFb1lSDK> AFInAppEventType(boolean z, boolean z2, String str, int i) {
        String str2;
        AFd1xSDK aFd1xSDK = this.AFLogger;
        Intrinsics.checkNotNullParameter(str, "");
        if (z) {
            str2 = AFd1xSDK.values;
            int i2 = afRDLog + 93;
            afErrorLog = i2 % 128;
            int i3 = i2 % 2;
        } else {
            str2 = AFd1xSDK.AFInAppEventType;
        }
        String str3 = "stg";
        if (z2) {
            int i4 = afRDLog + 61;
            afErrorLog = i4 % 128;
            if ((i4 % 2 == 0 ? '?' : '7') != '7') {
                int i5 = 67 / 0;
            }
        } else {
            str3 = "";
        }
        StringCompanionObject stringCompanionObject = StringCompanionObject.INSTANCE;
        Object[] objArr = new Object[4];
        objArr[0] = (AFd1xSDK.valueOf() ? 'C' : (char) 20) != 20 ? (String) aFd1xSDK.AFInAppEventParameterName.getValue() : "";
        objArr[1] = str3;
        objArr[2] = aFd1xSDK.AFInAppEventParameterName();
        objArr[3] = str;
        String format = String.format(str2, Arrays.copyOf(objArr, 4));
        Intrinsics.checkNotNullExpressionValue(format, "");
        AFc1rSDK aFc1rSDK = new AFc1rSDK(format, ShareTarget.METHOD_GET);
        aFc1rSDK.AFInAppEventParameterName(1500);
        return AFInAppEventParameterName(aFc1rSDK, new AFc1fSDK());
    }

    public final AFc1mSDK<String> AFInAppEventType(AFa1sSDK aFa1sSDK, String str) {
        try {
            AFc1mSDK<String> AFInAppEventParameterName2 = AFInAppEventParameterName(new AFc1rSDK(aFa1sSDK.AFLogger, (byte[]) ((Class) AFa1vSDK.AFInAppEventParameterName((char) (TextUtils.indexOf("", "") + 48063), 37 - TextUtils.indexOf("", "", 0), 74 - (AudioTrack.getMaxVolume() > 0.0f ? 1 : (AudioTrack.getMaxVolume() == 0.0f ? 0 : -1)))).getMethod("AFKeystoreWrapper", AFa1sSDK.class, String.class).invoke(null, aFa1sSDK, str), ShareTarget.METHOD_POST, Collections.emptyMap(), aFa1sSDK.valueOf()), new AFc1hSDK());
            int i = afRDLog + 25;
            afErrorLog = i % 128;
            if (!(i % 2 != 0)) {
                int i2 = 91 / 0;
                return AFInAppEventParameterName2;
            }
            return AFInAppEventParameterName2;
        } catch (Throwable th) {
            Throwable cause = th.getCause();
            if (cause != null) {
                throw cause;
            }
            throw th;
        }
    }

    public final AFc1mSDK<Map<String, Object>> values(String str, String str2) {
        AFc1mSDK<Map<String, Object>> AFInAppEventParameterName2 = AFInAppEventParameterName(AFc1iSDK.AFKeystoreWrapper(this.valueOf.values.AFKeystoreWrapper.getPackageName(), AFb1wSDK.AFInAppEventParameterName(new WeakReference(this.valueOf.values.AFKeystoreWrapper)), str, str2), new AFc1dSDK());
        int i = afRDLog + 69;
        afErrorLog = i % 128;
        if (!(i % 2 != 0)) {
            Object[] objArr = null;
            int length = objArr.length;
            return AFInAppEventParameterName2;
        }
        return AFInAppEventParameterName2;
    }

    public final AFc1mSDK<String> values(AFe1eSDK aFe1eSDK) {
        AFc1mSDK<String> AFInAppEventParameterName2 = AFInAppEventParameterName(new AFc1rSDK(aFe1eSDK.AFLogger, aFe1eSDK.values(), ShareTarget.METHOD_POST, Collections.emptyMap(), true), new AFc1hSDK());
        int i = afErrorLog + 17;
        afRDLog = i % 128;
        if ((i % 2 != 0 ? '*' : Typography.dollar) != '$') {
            Object obj = null;
            super.hashCode();
            return AFInAppEventParameterName2;
        }
        return AFInAppEventParameterName2;
    }

    public final AFc1mSDK<String> values(String str, Map<String, String> map, String str2, UUID uuid, String str3) {
        String obj = uuid.toString();
        HashMap hashMap = new HashMap();
        hashMap.put("ttl", "-1");
        hashMap.put("uuid", obj);
        hashMap.put("data", map);
        hashMap.put("meta", AFKeystoreWrapper());
        if (str2 != null) {
            int i = afErrorLog + 89;
            afRDLog = i % 128;
            int i2 = i % 2;
            hashMap.put("brand_domain", str2);
        }
        String jSONObject = AFa1oSDK.values(hashMap).toString();
        HashMap hashMap2 = new HashMap();
        Object[] objArr = new Object[1];
        valueOf(true, "\u0001\u0001\u0001\u0001\u0001\u0000\u0000\u0000\u0001\u0001\u0000\u0001", new int[]{0, 12, 0, 10}, objArr);
        hashMap2.put(((String) objArr[0]).intern(), AFInAppEventParameterName(str3, obj, ShareTarget.METHOD_POST, jSONObject));
        StringBuilder sb = new StringBuilder();
        sb.append(String.format(values, AppsFlyerLib.getInstance().getHostPrefix(), AFb1xSDK.AFInAppEventType().getHostName()));
        sb.append("/");
        sb.append(str);
        AFc1mSDK<String> valueOf = valueOf(new AFc1rSDK(sb.toString(), jSONObject.getBytes(Charset.forName(C.UTF8_NAME)), ShareTarget.METHOD_POST, hashMap2, false), new AFc1hSDK(), true);
        int i3 = afRDLog + 69;
        afErrorLog = i3 % 128;
        int i4 = i3 % 2;
        return valueOf;
    }

    public final AFc1mSDK<Map<String, String>> AFKeystoreWrapper(String str, String str2, UUID uuid, String str3) {
        String obj = uuid.toString();
        StringBuilder sb = new StringBuilder();
        sb.append(String.format(values, AppsFlyerLib.getInstance().getHostPrefix(), AFb1xSDK.AFInAppEventType().getHostName()));
        sb.append("/");
        sb.append(str);
        sb.append("?id=");
        sb.append(str2);
        String obj2 = sb.toString();
        Map<String, Object> AFKeystoreWrapper2 = AFKeystoreWrapper();
        String valueOf = String.valueOf(AFKeystoreWrapper2.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(AFKeystoreWrapper2.get("counter")));
        hashMap.put("Af-Meta-Model", String.valueOf(AFKeystoreWrapper2.get(DeviceRequestsHelper.DEVICE_INFO_MODEL)));
        hashMap.put("Af-Meta-Platform", String.valueOf(AFKeystoreWrapper2.get("platformextension")));
        hashMap.put("Af-Meta-System-Version", String.valueOf(AFKeystoreWrapper2.get("sdk")));
        Object[] objArr = new Object[1];
        valueOf(true, "\u0001\u0001\u0001\u0001\u0001\u0000\u0000\u0000\u0001\u0001\u0000\u0001", new int[]{0, 12, 0, 10}, objArr);
        hashMap.put(((String) objArr[0]).intern(), AFInAppEventParameterName(str3, obj, ShareTarget.METHOD_GET, obj, str, str2, valueOf));
        AFc1mSDK<Map<String, String>> AFInAppEventParameterName2 = AFInAppEventParameterName(new AFc1rSDK(obj2, null, ShareTarget.METHOD_GET, hashMap, false), new AFc1cSDK());
        int i = afRDLog + 1;
        afErrorLog = i % 128;
        int i2 = i % 2;
        return AFInAppEventParameterName2;
    }

    public final AFc1mSDK<String> AFKeystoreWrapper(String str) {
        AFc1mSDK<String> AFInAppEventParameterName2 = AFInAppEventParameterName(new AFc1rSDK(str, null, ShareTarget.METHOD_GET, Collections.emptyMap(), false).AFInAppEventParameterName(10000).AFVersionDeclaration(), new AFc1hSDK());
        int i = afErrorLog + 105;
        afRDLog = i % 128;
        if ((i % 2 != 0 ? (char) 21 : ',') != 21) {
            return AFInAppEventParameterName2;
        }
        int i2 = 49 / 0;
        return AFInAppEventParameterName2;
    }

    private <T> AFc1mSDK<T> AFInAppEventParameterName(AFc1rSDK aFc1rSDK, AFd1ySDK<T> aFd1ySDK) {
        int i = afRDLog + 121;
        afErrorLog = i % 128;
        int i2 = i % 2;
        AFc1mSDK<T> valueOf = valueOf(aFc1rSDK, aFd1ySDK, AFInAppEventType());
        int i3 = afRDLog + 57;
        afErrorLog = i3 % 128;
        int i4 = i3 % 2;
        return valueOf;
    }

    private <T> AFc1mSDK<T> valueOf(AFc1rSDK aFc1rSDK, AFd1ySDK<T> aFd1ySDK, boolean z) {
        aFc1rSDK.valueOf(z);
        CreateOneLinkHttpTask createOneLinkHttpTask = this.AFInAppEventType;
        AFc1mSDK<T> aFc1mSDK = new AFc1mSDK<>(aFc1rSDK, createOneLinkHttpTask.valueOf, createOneLinkHttpTask.AFInAppEventParameterName, aFd1ySDK);
        int i = afRDLog + 107;
        afErrorLog = i % 128;
        int i2 = i % 2;
        return aFc1mSDK;
    }

    private Map<String, Object> AFKeystoreWrapper() {
        HashMap hashMap = new HashMap();
        hashMap.put("build_number", "6.10.3");
        hashMap.put("counter", Integer.valueOf(this.valueOf.AFInAppEventType.AFKeystoreWrapper("appsFlyerCount", 0)));
        hashMap.put(DeviceRequestsHelper.DEVICE_INFO_MODEL, Build.MODEL);
        Object[] objArr = new Object[1];
        valueOf(false, "\u0000\u0000\u0001\u0001\u0000", new int[]{12, 5, 0, 5}, objArr);
        hashMap.put(((String) objArr[0]).intern(), Build.BRAND);
        hashMap.put("sdk", Integer.toString(Build.VERSION.SDK_INT));
        AFb1bSDK aFb1bSDK = this.valueOf;
        hashMap.put("app_version_name", AFa1cSDK.AFInAppEventParameterName(aFb1bSDK.values.AFKeystoreWrapper, aFb1bSDK.values.AFKeystoreWrapper.getPackageName()));
        hashMap.put("app_id", this.valueOf.values.AFKeystoreWrapper.getPackageName());
        hashMap.put("platformextension", new AFb1uSDK().AFKeystoreWrapper());
        int i = afRDLog + 25;
        afErrorLog = i % 128;
        int i2 = i % 2;
        return hashMap;
    }

    private static String AFInAppEventParameterName(String str, String str2, String... strArr) {
        ArrayList arrayList = new ArrayList(Arrays.asList(strArr));
        arrayList.add(1, "v2");
        String AFKeystoreWrapper2 = AFb1ySDK.AFKeystoreWrapper((String[]) arrayList.toArray(new String[0]));
        StringBuilder sb = new StringBuilder();
        sb.append(str);
        sb.append(str2);
        sb.append("v2");
        String values2 = AFb1ySDK.values(AFKeystoreWrapper2, sb.toString());
        int i = afErrorLog + 69;
        afRDLog = i % 128;
        int i2 = i % 2;
        return values2;
    }

    private boolean AFInAppEventType() {
        int i = afRDLog + 99;
        afErrorLog = i % 128;
        if ((i % 2 == 0 ? (char) 19 : '3') != '3') {
        }
    }

    private static void valueOf(boolean z, String str, int[] iArr, Object[] objArr) {
        byte[] bArr;
        String str2;
        if (str != null) {
            bArr = str.getBytes("ISO-8859-1");
        }
        byte[] bArr2 = bArr;
        synchronized (AFg1vSDK.AFInAppEventParameterName) {
            int i = iArr[0];
            int i2 = iArr[1];
            int i3 = iArr[2];
            int i4 = iArr[3];
            char[] cArr = new char[i2];
            System.arraycopy(afDebugLog, i, cArr, 0, i2);
            if (bArr2 != null) {
                char[] cArr2 = new char[i2];
                AFg1vSDK.AFInAppEventType = 0;
                char c = 0;
                while (AFg1vSDK.AFInAppEventType < i2) {
                    if (bArr2[AFg1vSDK.AFInAppEventType] == 1) {
                        cArr2[AFg1vSDK.AFInAppEventType] = (char) (((cArr[AFg1vSDK.AFInAppEventType] << 1) + 1) - c);
                    } else {
                        cArr2[AFg1vSDK.AFInAppEventType] = (char) ((cArr[AFg1vSDK.AFInAppEventType] << 1) - c);
                    }
                    c = cArr2[AFg1vSDK.AFInAppEventType];
                    AFg1vSDK.AFInAppEventType++;
                }
                cArr = cArr2;
            }
            if (i4 > 0) {
                char[] cArr3 = new char[i2];
                System.arraycopy(cArr, 0, cArr3, 0, i2);
                int i5 = i2 - i4;
                System.arraycopy(cArr3, 0, cArr, i5, i4);
                System.arraycopy(cArr3, i4, cArr, 0, i5);
            }
            if (z) {
                char[] cArr4 = new char[i2];
                AFg1vSDK.AFInAppEventType = 0;
                while (AFg1vSDK.AFInAppEventType < i2) {
                    cArr4[AFg1vSDK.AFInAppEventType] = cArr[(i2 - AFg1vSDK.AFInAppEventType) - 1];
                    AFg1vSDK.AFInAppEventType++;
                }
                cArr = cArr4;
            }
            if (i3 > 0) {
                AFg1vSDK.AFInAppEventType = 0;
                while (AFg1vSDK.AFInAppEventType < i2) {
                    cArr[AFg1vSDK.AFInAppEventType] = (char) (cArr[AFg1vSDK.AFInAppEventType] - iArr[2]);
                    AFg1vSDK.AFInAppEventType++;
                }
            }
            str2 = new String(cArr);
        }
        objArr[0] = str2;
    }
}