Roblox v2.616.655版本的 MD5 值为:0bc7d8a921fe7f043454ac7c31685936

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


package com.appsflyer.internal;

import android.content.Context;
import android.content.pm.PackageManager;
import android.graphics.Color;
import android.os.Build;
import android.text.AndroidCharacter;
import android.text.TextUtils;
import android.view.View;
import android.view.ViewConfiguration;
import com.appsflyer.AFLogger;
import com.appsflyer.AppsFlyerProperties;
import com.appsflyer.oaid.BuildConfig;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import javax.net.ssl.HttpsURLConnection;
import org.json.JSONException;
public abstract class ak implements Runnable {
    protected static String AFInAppEventParameterName = null;
    private static int AFLogger$LogLevel = 0;
    private static int AFVersionDeclaration = 0;
    private static int onAppOpenAttributionNative = 1;
    private static short[] onAttributionFailureNative;
    private static int onDeepLinkingNative;
    private static int onInstallConversionDataLoadedNative;
    private static byte[] onInstallConversionFailureNative;
    private static String valueOf;
    public final String AFInAppEventType;
    public String AFKeystoreWrapper;
    public final String AppsFlyer2dXConversionCallback = UUID.randomUUID().toString();
    public final Map<String, Object> getLevel = valueOf();
    private final Context init;
    private final ae values;

    static {
        values();
        valueOf = "v2";
        StringBuilder sb2 = new StringBuilder("https://%sonelink.%s/shortlink-sdk/");
        sb2.append(valueOf);
        AFInAppEventParameterName = sb2.toString();
        int i10 = onInstallConversionDataLoadedNative + 43;
        onAppOpenAttributionNative = i10 % 128;
        if (i10 % 2 != 0) {
            return;
        }
        int i11 = 74 / 0;
    }

    public ak(ae aeVar, Context context, String str) {
        this.values = aeVar;
        this.init = context;
        this.AFInAppEventType = str;
    }

    private Map<String, Object> valueOf() {
        HashMap hashMap = new HashMap();
        hashMap.put("build_number", "6.3.2");
        hashMap.put("counter", Integer.valueOf(ae.valueOf(ae.values(this.init), "appsFlyerCount", false)));
        hashMap.put("model", Build.MODEL);
        hashMap.put("brand", Build.BRAND);
        hashMap.put("sdk", Integer.toString(Build.VERSION.SDK_INT));
        try {
            hashMap.put("app_version_name", this.init.getPackageManager().getPackageInfo(this.init.getPackageName(), 0).versionName);
            int i10 = onAppOpenAttributionNative + 101;
            onInstallConversionDataLoadedNative = i10 % 128;
            int i11 = i10 % 2;
        } catch (PackageManager.NameNotFoundException unused) {
        }
        hashMap.put("app_id", this.init.getPackageName());
        hashMap.put("platformextension", new al().AFInAppEventParameterName());
        return hashMap;
    }

    static void values() {
        AFLogger$LogLevel = 91;
        AFVersionDeclaration = -784549513;
        onDeepLinkingNative = -1400650653;
        onInstallConversionFailureNative = new byte[]{-79, -13, -3, 1, 19, -13, 7, -2, 22, 38, -57, 37};
    }

    protected abstract String AFInAppEventParameterName();

    protected abstract void AFInAppEventParameterName(HttpsURLConnection httpsURLConnection) throws JSONException, IOException;

    protected abstract void AFInAppEventType();

    protected abstract void AFKeystoreWrapper(String str);

    @Override
    public void run() {
        String str;
        Throwable th;
        int responseCode;
        String str2 = BuildConfig.FLAVOR;
        String AFInAppEventParameterName2 = AFInAppEventParameterName();
        AFLogger.AFInAppEventParameterName("oneLinkUrl: ".concat(String.valueOf(AFInAppEventParameterName2)));
        try {
            HttpsURLConnection httpsURLConnection = (HttpsURLConnection) new URL(AFInAppEventParameterName2).openConnection();
            httpsURLConnection.setRequestProperty("content-type", "application/json");
            httpsURLConnection.setReadTimeout(3000);
            httpsURLConnection.setConnectTimeout(3000);
            httpsURLConnection.setRequestMethod(this.AFInAppEventType);
            AFInAppEventParameterName(httpsURLConnection);
            responseCode = httpsURLConnection.getResponseCode();
            str = ae.AFKeystoreWrapper(httpsURLConnection);
        } catch (Throwable th2) {
            str = BuildConfig.FLAVOR;
            th = th2;
        }
        try {
            if (responseCode == 200) {
                int i10 = onInstallConversionDataLoadedNative + 107;
                onAppOpenAttributionNative = i10 % 128;
                int i11 = i10 % 2;
                AFLogger.AFKeystoreWrapper("Status 200 ok");
            } else {
                StringBuilder sb2 = new StringBuilder("Response code = ");
                sb2.append(responseCode);
                sb2.append(" content = ");
                sb2.append(str);
                str2 = sb2.toString();
            }
        } catch (Throwable th3) {
            th = th3;
            AFLogger.AFInAppEventType("Error while calling ".concat(String.valueOf(AFInAppEventParameterName2)), th);
            StringBuilder sb3 = new StringBuilder("Error while calling ");
            sb3.append(AFInAppEventParameterName2);
            sb3.append(" stacktrace: ");
            sb3.append(th.toString());
            str2 = sb3.toString();
            if (!(TextUtils.isEmpty(str2))) {
            }
        }
        if (!(TextUtils.isEmpty(str2))) {
            AFLogger.AFKeystoreWrapper("Connection call succeeded: ".concat(String.valueOf(str)));
            AFKeystoreWrapper(str);
            return;
        }
        AFLogger.init("Connection error: ".concat(String.valueOf(str2)));
        AFInAppEventType();
        int i12 = onInstallConversionDataLoadedNative + 115;
        onAppOpenAttributionNative = i12 % 128;
        int i13 = i12 % 2;
    }

    public final void values(HttpsURLConnection httpsURLConnection, String... strArr) {
        ArrayList arrayList = new ArrayList(Arrays.asList(strArr));
        arrayList.add(1, valueOf);
        String join = TextUtils.join("\u2063", arrayList.toArray());
        StringBuilder sb2 = new StringBuilder();
        sb2.append(AppsFlyerProperties.getInstance().getString(AppsFlyerProperties.AF_KEY));
        sb2.append(this.AppsFlyer2dXConversionCallback);
        sb2.append(valueOf);
        httpsURLConnection.setRequestProperty(valueOf((byte) (ViewConfiguration.getPressedStateDuration() >> 16), 1400650718 - (ViewConfiguration.getWindowTouchSlop() >> 8), (short) View.getDefaultSize(0, 0), Color.rgb(0, 0, 0) + 801326729, (-88) - AndroidCharacter.getEastAsianWidth('0')).intern(), af.values(join, sb2.toString()));
        int i10 = onAppOpenAttributionNative + 33;
        onInstallConversionDataLoadedNative = i10 % 128;
        int i11 = i10 % 2;
    }

    private static String valueOf(byte b10, int i10, short s10, int i11, int i12) {
        int i13;
        int i14;
        StringBuilder sb2 = new StringBuilder();
        int i15 = AFLogger$LogLevel;
        int i16 = i12 + i15;
        boolean z10 = (i16 == -1 ? (char) 17 : ';') == 17;
        if (z10) {
            byte[] bArr = onInstallConversionFailureNative;
            if (bArr != null) {
                i16 = (byte) (bArr[AFVersionDeclaration + i11] + i15);
            } else {
                i16 = (short) (onAttributionFailureNative[AFVersionDeclaration + i11] + i15);
            }
        }
        if (i16 > 0) {
            int i17 = ((i11 + i16) - 2) + AFVersionDeclaration + (z10 ? 1 : 0);
            char c10 = (char) (i10 + onDeepLinkingNative);
            sb2.append(c10);
            for (int i18 = 1; i18 < i16; i18++) {
                int i19 = onAppOpenAttributionNative;
                int i20 = i19 + 45;
                onInstallConversionDataLoadedNative = i20 % 128;
                int i21 = i20 % 2;
                byte[] bArr2 = onInstallConversionFailureNative;
                if ((bArr2 != null ? (char) 19 : '.') != 19) {
                    c10 = (char) (c10 + (((short) (onAttributionFailureNative[i17] + s10)) ^ b10));
                    int i22 = i19 + 11;
                    onInstallConversionDataLoadedNative = i22 % 128;
                    int i23 = i22 % 2;
                    i17--;
                } else {
                    int i24 = i19 + 17;
                    onInstallConversionDataLoadedNative = i24 % 128;
                    if (i24 % 2 != 0) {
                        i13 = i17 + 119;
                        i14 = c10 >> (((byte) (bArr2[i17] >>> s10)) | b10);
                    } else {
                        i13 = i17 - 1;
                        i14 = c10 + (((byte) (bArr2[i17] + s10)) ^ b10);
                    }
                    c10 = (char) i14;
                    i17 = i13;
                }
                sb2.append(c10);
            }
        }
        String obj = sb2.toString();
        int i25 = onAppOpenAttributionNative + 25;
        onInstallConversionDataLoadedNative = i25 % 128;
        int i26 = i25 % 2;
        return obj;
    }
}