导航菜单

页面标题

页面副标题

Mint v5.7.3 - ak.java 源代码

正在查看: Mint v5.7.3 应用的 ak.java JAVA 源代码文件

本页面展示 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.AppsFlyerProperties;
import java.io.IOException;
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 sb = new StringBuilder("https://%sonelink.%s/shortlink-sdk/");
        sb.append(valueOf);
        AFInAppEventParameterName = sb.toString();
        int i2 = onInstallConversionDataLoadedNative + 43;
        onAppOpenAttributionNative = i2 % 128;
        if (i2 % 2 != 0) {
            return;
        }
        int i3 = 74 / 0;
    }

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

    private static String valueOf(byte b2, int i2, short s2, int i3, int i4) {
        int i5;
        int i6;
        StringBuilder sb = new StringBuilder();
        int i7 = AFLogger$LogLevel;
        int i8 = i4 + i7;
        boolean z2 = (i8 == -1 ? (char) 17 : ';') == 17;
        if (z2) {
            byte[] bArr = onInstallConversionFailureNative;
            i8 = bArr != null ? (byte) (bArr[AFVersionDeclaration + i3] + i7) : (short) (onAttributionFailureNative[AFVersionDeclaration + i3] + i7);
        }
        if (i8 > 0) {
            int i9 = ((i3 + i8) - 2) + AFVersionDeclaration + (z2 ? 1 : 0);
            char c2 = (char) (i2 + onDeepLinkingNative);
            sb.append(c2);
            for (int i10 = 1; i10 < i8; i10++) {
                int i11 = onAppOpenAttributionNative;
                int i12 = i11 + 45;
                onInstallConversionDataLoadedNative = i12 % 128;
                int i13 = i12 % 2;
                byte[] bArr2 = onInstallConversionFailureNative;
                if ((bArr2 != null ? (char) 19 : '.') != 19) {
                    c2 = (char) (c2 + (((short) (onAttributionFailureNative[i9] + s2)) ^ b2));
                    int i14 = i11 + 11;
                    onInstallConversionDataLoadedNative = i14 % 128;
                    int i15 = i14 % 2;
                    i9--;
                } else {
                    int i16 = i11 + 17;
                    onInstallConversionDataLoadedNative = i16 % 128;
                    if (i16 % 2 != 0) {
                        i5 = i9 + 119;
                        i6 = c2 >> (((byte) (bArr2[i9] >>> s2)) | b2);
                    } else {
                        i5 = i9 - 1;
                        i6 = c2 + (((byte) (bArr2[i9] + s2)) ^ b2);
                    }
                    c2 = (char) i6;
                    i9 = i5;
                }
                sb.append(c2);
            }
        }
        String obj = sb.toString();
        int i17 = onAppOpenAttributionNative + 25;
        onInstallConversionDataLoadedNative = i17 % 128;
        int i18 = i17 % 2;
        return obj;
    }

    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 i2 = onAppOpenAttributionNative + 101;
            onInstallConversionDataLoadedNative = i2 % 128;
            int i3 = i2 % 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() {
        throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.ak.run():void");
    }

    protected 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 sb = new StringBuilder();
        sb.append(AppsFlyerProperties.getInstance().getString(AppsFlyerProperties.AF_KEY));
        sb.append(this.AppsFlyer2dXConversionCallback);
        sb.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, sb.toString()));
        int i2 = onAppOpenAttributionNative + 33;
        onInstallConversionDataLoadedNative = i2 % 128;
        int i3 = i2 % 2;
    }
}