Free Fire v1.103.1版本的 MD5 值为:f6c45f9f1485263aa5af0fb400f973fc

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


package com.appsflyer.internal;

import android.content.Context;
import android.graphics.Color;
import android.os.Build;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.FF.voiceengine.FFVoiceConst;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.AppsFlyerProperties;
import com.garena.unity.webview.UnityWebViewActivityProxy;
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 org.json.JSONObject;
public final class AFc1ySDK {
    private static String AFInAppEventParameterName = null;
    private static String AFInAppEventType = null;
    private static String AFKeystoreWrapper = null;
    private static int AFLogger = 0;
    private static int AFVersionDeclaration = 1;
    private static int afInfoLog;
    private static String valueOf;
    private static String values;
    private final AFb1ySDK afDebugLog;
    private final AppsFlyerProperties afErrorLog;
    private final AFb1dSDK afRDLog;

    static {
        AFInAppEventType();
        valueOf = "https://%smonitorsdk.%s/remote-debug?app_id=";
        AFKeystoreWrapper = "https://cdn-settings.appsflyersdk.com/android/v1/%s/settings";
        AFInAppEventType = "https://cdn-testsettings.appsflyersdk.com/android/v1/%s/settings";
        values = "https://%sgcdsdk.%s/install_data/v4.0/";
        AFInAppEventParameterName = "https://%sonelink.%s/shortlink-sdk/v2";
        int i10 = AFLogger + 57;
        AFVersionDeclaration = i10 % 128;
        int i11 = i10 % 2;
    }

    public AFc1ySDK(AFb1ySDK aFb1ySDK, AFb1dSDK aFb1dSDK, AppsFlyerProperties appsFlyerProperties) {
        this.afDebugLog = aFb1ySDK;
        this.afRDLog = aFb1dSDK;
        this.afErrorLog = appsFlyerProperties;
    }

    private <T> AFb1bSDK<T> AFInAppEventParameterName(AFb1wSDK aFb1wSDK, AFc1pSDK<T> aFc1pSDK) {
        int i10 = AFVersionDeclaration + 21;
        AFLogger = i10 % 128;
        if (!(i10 % 2 == 0)) {
            valueOf(aFb1wSDK, aFc1pSDK, AFKeystoreWrapper());
            throw null;
        }
        AFb1bSDK<T> valueOf2 = valueOf(aFb1wSDK, aFc1pSDK, AFKeystoreWrapper());
        int i11 = AFVersionDeclaration + 5;
        AFLogger = i11 % 128;
        if (i11 % 2 != 0) {
            throw null;
        }
        return valueOf2;
    }

    private Map<String, Object> AFInAppEventParameterName() {
        HashMap hashMap = new HashMap();
        hashMap.put("build_number", "6.8.2");
        hashMap.put("counter", Integer.valueOf(this.afRDLog.valueOf.values("appsFlyerCount")));
        hashMap.put("model", Build.MODEL);
        hashMap.put(AFInAppEventType(5 - KeyEvent.normalizeMetaState(0), "\ufffb\u000b\ufffa\u0007�", false, 5 - TextUtils.getTrimmedLength(""), 194 - TextUtils.getTrimmedLength("")).intern(), Build.BRAND);
        hashMap.put("sdk", Integer.toString(Build.VERSION.SDK_INT));
        Context context = this.afRDLog.AFInAppEventType.AFKeystoreWrapper;
        hashMap.put("app_version_name", AFb1wSDK.valueOf(context, context.getPackageName()));
        hashMap.put("app_id", this.afRDLog.AFInAppEventType.AFKeystoreWrapper.getPackageName());
        hashMap.put("platformextension", new AFb1uSDK().valueOf());
        int i10 = AFVersionDeclaration + 17;
        AFLogger = i10 % 128;
        int i11 = i10 % 2;
        return hashMap;
    }

    private static String AFInAppEventType(int i10, String str, boolean z10, int i11, int i12) {
        char[] cArr;
        String str2;
        if (str != null) {
            cArr = str.toCharArray();
        }
        char[] cArr2 = cArr;
        synchronized (AFf1xSDK.AFInAppEventType) {
            char[] cArr3 = new char[i10];
            AFf1xSDK.AFInAppEventParameterName = 0;
            while (true) {
                int i13 = AFf1xSDK.AFInAppEventParameterName;
                if (i13 >= i10) {
                    break;
                }
                AFf1xSDK.valueOf = cArr2[i13];
                cArr3[AFf1xSDK.AFInAppEventParameterName] = (char) (AFf1xSDK.valueOf + i12);
                int i14 = AFf1xSDK.AFInAppEventParameterName;
                cArr3[i14] = (char) (cArr3[i14] - afInfoLog);
                AFf1xSDK.AFInAppEventParameterName = i14 + 1;
            }
            if (i11 > 0) {
                AFf1xSDK.values = i11;
                char[] cArr4 = new char[i10];
                System.arraycopy(cArr3, 0, cArr4, 0, i10);
                int i15 = AFf1xSDK.values;
                System.arraycopy(cArr4, 0, cArr3, i10 - i15, i15);
                int i16 = AFf1xSDK.values;
                System.arraycopy(cArr4, i16, cArr3, 0, i10 - i16);
            }
            if (z10) {
                char[] cArr5 = new char[i10];
                AFf1xSDK.AFInAppEventParameterName = 0;
                while (true) {
                    int i17 = AFf1xSDK.AFInAppEventParameterName;
                    if (i17 >= i10) {
                        break;
                    }
                    cArr5[i17] = cArr3[(i10 - i17) - 1];
                    AFf1xSDK.AFInAppEventParameterName = i17 + 1;
                }
                cArr3 = cArr5;
            }
            str2 = new String(cArr3);
        }
        return str2;
    }

    static void AFInAppEventType() {
        afInfoLog = 91;
    }

    private static String AFKeystoreWrapper(String str, String str2, String... strArr) {
        ArrayList arrayList = new ArrayList(Arrays.asList(strArr));
        arrayList.add(1, "v2");
        String AFInAppEventParameterName2 = AFb1sSDK.AFInAppEventParameterName((String[]) arrayList.toArray(new String[0]));
        StringBuilder sb = new StringBuilder();
        sb.append(str);
        sb.append(str2);
        sb.append("v2");
        String AFInAppEventType2 = AFb1sSDK.AFInAppEventType(AFInAppEventParameterName2, sb.toString());
        int i10 = AFLogger + 57;
        AFVersionDeclaration = i10 % 128;
        if ((i10 % 2 == 0 ? (char) 4 : 'C') == 'C') {
            return AFInAppEventType2;
        }
        throw null;
    }

    private boolean AFKeystoreWrapper() {
        int i10 = AFLogger + 87;
        AFVersionDeclaration = i10 % 128;
        if (i10 % 2 == 0) {
        }
    }

    private <T> AFb1bSDK<T> valueOf(AFb1wSDK aFb1wSDK, AFc1pSDK<T> aFc1pSDK, boolean z10) {
        aFb1wSDK.valueOf = z10;
        AFb1bSDK<T> aFb1bSDK = new AFb1bSDK<>(aFb1wSDK, this.afDebugLog.values, aFc1pSDK);
        int i10 = AFVersionDeclaration + 101;
        AFLogger = i10 % 128;
        int i11 = i10 % 2;
        return aFb1bSDK;
    }

    public final AFb1bSDK<String> AFInAppEventParameterName(AFe1wSDK aFe1wSDK) {
        AFb1bSDK<String> AFInAppEventParameterName2 = AFInAppEventParameterName(new AFb1wSDK(aFe1wSDK.afErrorLog, aFe1wSDK.values(), "POST", Collections.emptyMap(), true), new AFc1vSDK());
        int i10 = AFLogger + 55;
        AFVersionDeclaration = i10 % 128;
        int i11 = i10 % 2;
        return AFInAppEventParameterName2;
    }

    public final AFb1bSDK<Map<String, Object>> AFInAppEventParameterName(String str, String str2) {
        StringBuilder sb = new StringBuilder();
        sb.append(String.format(values, AppsFlyerLib.getInstance().getHostPrefix(), AFa1aSDK.values().getHostName()));
        sb.append(this.afRDLog.AFInAppEventType.AFKeystoreWrapper.getPackageName());
        sb.append(str);
        sb.append("?devkey=");
        sb.append(str2);
        sb.append("&device_id=");
        sb.append(AFb1rSDK.AFInAppEventParameterName(new WeakReference(this.afRDLog.AFInAppEventType.AFKeystoreWrapper)));
        String obj = sb.toString();
        HashMap hashMap = new HashMap();
        hashMap.put("Connection", UnityWebViewActivityProxy.IntentActions.CLOSE);
        AFb1wSDK aFb1wSDK = new AFb1wSDK(obj, null, "GET", hashMap, false);
        aFb1wSDK.afDebugLog = FFVoiceConst.FFVoice_RTC_SERVER_REGION.RTC_EXT_SERVER;
        AFb1bSDK<Map<String, Object>> AFInAppEventParameterName2 = AFInAppEventParameterName(aFb1wSDK, new AFc1zSDK());
        int i10 = AFVersionDeclaration + 89;
        AFLogger = i10 % 128;
        int i11 = i10 % 2;
        return AFInAppEventParameterName2;
    }

    public final AFb1bSDK<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(), AFa1aSDK.values().getHostName()));
        sb.append(this.afRDLog.AFInAppEventType.AFKeystoreWrapper.getPackageName());
        try {
            AFb1bSDK<String> AFInAppEventParameterName2 = AFInAppEventParameterName(new AFb1wSDK(sb.toString(), (byte[]) ((Class) AFa1zSDK.AFInAppEventParameterName((char) (49431 - (ViewConfiguration.getScrollBarFadeDuration() >> 16)), (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 62, 31 - (TypedValue.complexToFraction(0, 0.0f, 0.0f) > 0.0f ? 1 : (TypedValue.complexToFraction(0, 0.0f, 0.0f) == 0.0f ? 0 : -1)))).getMethod("AFKeystoreWrapper", Map.class, String.class).invoke(null, map, str), "POST", Collections.emptyMap(), true), new AFc1vSDK());
            int i10 = AFLogger + 25;
            AFVersionDeclaration = i10 % 128;
            if (!(i10 % 2 != 0)) {
                int i11 = 14 / 0;
                return AFInAppEventParameterName2;
            }
            return AFInAppEventParameterName2;
        } catch (Throwable th) {
            Throwable cause = th.getCause();
            if (cause != null) {
                throw cause;
            }
            throw th;
        }
    }

    public final AFb1bSDK<String> AFInAppEventType(String str) {
        AFb1wSDK aFb1wSDK = new AFb1wSDK(str, null, "GET", Collections.emptyMap(), false);
        aFb1wSDK.afDebugLog = FFVoiceConst.FFVoice_RTC_SERVER_REGION.RTC_EXT_SERVER;
        aFb1wSDK.AFInAppEventType = false;
        AFb1bSDK<String> AFInAppEventParameterName2 = AFInAppEventParameterName(aFb1wSDK, new AFc1vSDK());
        int i10 = AFVersionDeclaration + 107;
        AFLogger = i10 % 128;
        int i11 = i10 % 2;
        return AFInAppEventParameterName2;
    }

    public final AFb1bSDK<String> AFInAppEventType(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(), AFa1aSDK.values().getHostName()));
        sb.append(this.afRDLog.AFInAppEventType.AFKeystoreWrapper.getPackageName());
        try {
            AFb1bSDK<String> AFInAppEventParameterName2 = AFInAppEventParameterName(new AFb1wSDK(sb.toString(), (byte[]) ((Class) AFa1zSDK.AFInAppEventParameterName((char) ((ViewConfiguration.getDoubleTapTimeout() >> 16) + 49431), (ViewConfiguration.getKeyRepeatTimeout() >> 16) + 62, 31 - (ViewConfiguration.getLongPressTimeout() >> 16))).getMethod("AFKeystoreWrapper", Map.class, String.class).invoke(null, map, str), "POST", Collections.emptyMap(), true), new AFc1vSDK());
            int i10 = AFVersionDeclaration + 115;
            AFLogger = i10 % 128;
            if ((i10 % 2 != 0 ? (char) 28 : '*') != '*') {
                int i11 = 85 / 0;
                return AFInAppEventParameterName2;
            }
            return AFInAppEventParameterName2;
        } catch (Throwable th) {
            Throwable cause = th.getCause();
            if (cause != null) {
                throw cause;
            }
            throw th;
        }
    }

    public final AFb1bSDK<String> AFKeystoreWrapper(AFa1qSDK aFa1qSDK, String str) {
        try {
            AFb1bSDK<String> AFInAppEventParameterName2 = AFInAppEventParameterName(new AFb1wSDK(aFa1qSDK.afErrorLog, (byte[]) ((Class) AFa1zSDK.AFInAppEventParameterName((char) (49431 - (ViewConfiguration.getFadingEdgeLength() >> 16)), 62 - Color.alpha(0), 30 - TextUtils.indexOf((CharSequence) "", '0', 0, 0))).getMethod("AFKeystoreWrapper", AFa1qSDK.class, String.class).invoke(null, aFa1qSDK, str), "POST", Collections.emptyMap(), aFa1qSDK.AFKeystoreWrapper()), new AFc1vSDK());
            int i10 = AFVersionDeclaration + 9;
            AFLogger = i10 % 128;
            if ((i10 % 2 != 0 ? (char) 2 : ',') != 2) {
                return AFInAppEventParameterName2;
            }
            throw null;
        } catch (Throwable th) {
            Throwable cause = th.getCause();
            if (cause != null) {
                throw cause;
            }
            throw th;
        }
    }

    public final AFb1bSDK<AFb1vSDK> AFKeystoreWrapper(boolean z10, String str, int i10) {
        String str2;
        int i11 = AFVersionDeclaration + 81;
        int i12 = i11 % 128;
        AFLogger = i12;
        int i13 = i11 % 2;
        if (!(z10)) {
            str2 = AFKeystoreWrapper;
        } else {
            str2 = AFInAppEventType;
            int i14 = i12 + 55;
            AFVersionDeclaration = i14 % 128;
            int i15 = i14 % 2;
        }
        AFb1wSDK aFb1wSDK = new AFb1wSDK(String.format(str2, str), "GET");
        aFb1wSDK.afDebugLog = 1500;
        return AFInAppEventParameterName(aFb1wSDK, new AFc1wSDK());
    }

    public final AFb1bSDK<Map<String, String>> valueOf(String str, String str2, UUID uuid, String str3) {
        String obj = uuid.toString();
        StringBuilder sb = new StringBuilder();
        sb.append(String.format(AFInAppEventParameterName, AppsFlyerLib.getInstance().getHostPrefix(), AFa1aSDK.values().getHostName()));
        sb.append("/");
        sb.append(str);
        sb.append("?id=");
        sb.append(str2);
        String obj2 = sb.toString();
        Map<String, Object> AFInAppEventParameterName2 = AFInAppEventParameterName();
        String valueOf2 = String.valueOf(AFInAppEventParameterName2.get("build_number"));
        HashMap hashMap = new HashMap();
        hashMap.put("Af-UUID", uuid.toString());
        hashMap.put("Af-Meta-Sdk-Ver", valueOf2);
        hashMap.put("Af-Meta-Counter", String.valueOf(AFInAppEventParameterName2.get("counter")));
        hashMap.put("Af-Meta-Model", String.valueOf(AFInAppEventParameterName2.get("model")));
        hashMap.put("Af-Meta-Platform", String.valueOf(AFInAppEventParameterName2.get("platformextension")));
        hashMap.put("Af-Meta-System-Version", String.valueOf(AFInAppEventParameterName2.get("sdk")));
        hashMap.put(AFInAppEventType(13 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)), "£\u0005\u0012\u0015\u0014\u0001\u000e\u0007\t\ufff3ᅪ\u0006", true, 1 - View.getDefaultSize(0, 0), TextUtils.lastIndexOf("", '0', 0) + 188).intern(), AFKeystoreWrapper(str3, obj, "GET", obj, str, str2, valueOf2));
        AFb1bSDK<Map<String, String>> AFInAppEventParameterName3 = AFInAppEventParameterName(new AFb1wSDK(obj2, null, "GET", hashMap, false), new AFc1uSDK());
        int i10 = AFVersionDeclaration + 31;
        AFLogger = i10 % 128;
        if ((i10 % 2 != 0 ? 'Z' : '\f') == '\f') {
            return AFInAppEventParameterName3;
        }
        throw null;
    }

    public final AFb1bSDK<String> valueOf(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", AFInAppEventParameterName());
        if (!(str2 == null)) {
            int i10 = AFVersionDeclaration + 81;
            AFLogger = i10 % 128;
            int i11 = i10 % 2;
            hashMap.put("brand_domain", str2);
            int i12 = AFVersionDeclaration + 97;
            AFLogger = i12 % 128;
            int i13 = i12 % 2;
        }
        String jSONObject = AFa1pSDK.valueOf(hashMap).toString();
        HashMap hashMap2 = new HashMap();
        hashMap2.put(AFInAppEventType(12 - TextUtils.indexOf("", "", 0), "£\u0005\u0012\u0015\u0014\u0001\u000e\u0007\t\ufff3ᅪ\u0006", true, TextUtils.getTrimmedLength("") + 1, ((byte) KeyEvent.getModifierMetaStateMask()) + 188).intern(), AFKeystoreWrapper(str3, obj, "POST", jSONObject));
        StringBuilder sb = new StringBuilder();
        sb.append(String.format(AFInAppEventParameterName, AppsFlyerLib.getInstance().getHostPrefix(), AFa1aSDK.values().getHostName()));
        sb.append("/");
        sb.append(str);
        return valueOf(new AFb1wSDK(sb.toString(), jSONObject.getBytes(Charset.forName("UTF-8")), "POST", hashMap2, false), new AFc1vSDK(), true);
    }

    public final AFb1bSDK<String> valueOf(Map<String, Object> map) {
        StringBuilder sb = new StringBuilder();
        sb.append(String.format(valueOf, AppsFlyerLib.getInstance().getHostPrefix(), AFa1aSDK.values().getHostName()));
        sb.append(this.afRDLog.AFInAppEventType.AFKeystoreWrapper.getPackageName());
        AFb1bSDK<String> AFInAppEventParameterName2 = AFInAppEventParameterName(new AFb1wSDK(sb.toString(), new JSONObject(map).toString().getBytes(), "POST", Collections.emptyMap(), false), new AFc1vSDK());
        int i10 = AFVersionDeclaration + 87;
        AFLogger = i10 % 128;
        int i11 = i10 % 2;
        return AFInAppEventParameterName2;
    }
}