导航菜单

页面标题

页面副标题

OVO v3.139.0 - AFc1vSDK.java 源代码

正在查看: OVO v3.139.0 应用的 AFc1vSDK.java JAVA 源代码文件

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


package com.appsflyer.internal;

import android.content.Context;
import android.os.Build;
import android.os.SystemClock;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.VisibleForTesting;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.AppsFlyerProperties;
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 AFc1vSDK {

    @VisibleForTesting
    private static String AFInAppEventParameterName = null;

    @VisibleForTesting
    private static String AFInAppEventType = null;

    @VisibleForTesting
    private static String AFKeystoreWrapper = null;
    private static int AFLogger$LogLevel = 1;
    private static int AFVersionDeclaration;
    private static int afDebugLog;
    private static long afErrorLog;
    private static char afErrorLogForExcManagerOnly;

    @VisibleForTesting
    private static String valueOf;
    public static String values;
    private final AFc1ySDK AFLogger;
    private final AFb1ySDK afInfoLog;
    private final AppsFlyerProperties afRDLog;

    static {
        AFInAppEventParameterName();
        AFKeystoreWrapper = "https://%smonitorsdk.%s/remote-debug?app_id=";
        AFInAppEventParameterName = "https://%scdn-settings.%s/android/v1/%s/settings";
        valueOf = "https://%scdn-testsettings.%s/android/v1/%s/settings";
        values = "https://%sgcdsdk.%s/install_data/v5.0/";
        AFInAppEventType = "https://%sonelink.%s/shortlink-sdk/v2";
        int i = AFVersionDeclaration + 57;
        AFLogger$LogLevel = i % 128;
        if (i % 2 == 0) {
            throw null;
        }
    }

    public AFc1vSDK(AFb1ySDK aFb1ySDK, AFc1ySDK aFc1ySDK, AppsFlyerProperties appsFlyerProperties) {
        this.afInfoLog = aFb1ySDK;
        this.AFLogger = aFc1ySDK;
        this.afRDLog = appsFlyerProperties;
    }

    public static void AFInAppEventParameterName() {
        afErrorLog = 2072986113906768891L;
        afDebugLog = 0;
        afErrorLogForExcManagerOnly = (char) 0;
    }

    public final AFc1uSDK<String> AFKeystoreWrapper(AFa1qSDK aFa1qSDK, String str) {
        try {
            AFc1uSDK<String> AFKeystoreWrapper2 = AFKeystoreWrapper(new AFb1wSDK(aFa1qSDK.AFLogger, (byte[]) ((Class) AFa1wSDK.values(62 - View.MeasureSpec.makeMeasureSpec(0, 0), (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) + 30, (char) (39290 - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24)))).getMethod("AFInAppEventType", AFa1qSDK.class, String.class).invoke(null, aFa1qSDK, str), "POST", Collections.emptyMap(), aFa1qSDK.AFInAppEventType()), new AFc1oSDK());
            int i = AFLogger$LogLevel + 5;
            AFVersionDeclaration = i % 128;
            int i2 = i % 2;
            return AFKeystoreWrapper2;
        } catch (Throwable th) {
            Throwable cause = th.getCause();
            if (cause != null) {
                throw cause;
            }
            throw th;
        }
    }

    @NonNull
    public final AFc1uSDK<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(), AFb1zSDK.AFInAppEventType().getHostName()));
        sb.append(this.AFLogger.AFInAppEventParameterName.valueOf.getPackageName());
        try {
            AFc1uSDK<String> AFKeystoreWrapper2 = AFKeystoreWrapper(new AFb1wSDK(sb.toString(), (byte[]) ((Class) AFa1wSDK.values(View.MeasureSpec.getSize(0) + 62, 32 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), (char) (View.MeasureSpec.getSize(0) + 39290))).getMethod("AFInAppEventParameterName", Map.class, String.class).invoke(null, map, str), "POST", Collections.emptyMap(), true), new AFc1oSDK());
            int i = AFLogger$LogLevel + 95;
            AFVersionDeclaration = i % 128;
            if (i % 2 != 0) {
                int i2 = 87 / 0;
            }
            return AFKeystoreWrapper2;
        } catch (Throwable th) {
            Throwable cause = th.getCause();
            if (cause != null) {
                throw cause;
            }
            throw th;
        }
    }

    public final AFc1uSDK<String> values(AFe1rSDK aFe1rSDK) {
        AFc1uSDK<String> AFKeystoreWrapper2 = AFKeystoreWrapper(new AFb1wSDK(aFe1rSDK.AFLogger, aFe1rSDK.AFInAppEventParameterName(), "POST", Collections.emptyMap(), true), new AFc1oSDK());
        int i = AFLogger$LogLevel + 11;
        AFVersionDeclaration = i % 128;
        if (i % 2 == 0) {
            return AFKeystoreWrapper2;
        }
        throw null;
    }

    @NonNull
    public final AFc1uSDK<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(), AFb1zSDK.AFInAppEventType().getHostName()));
        sb.append(this.AFLogger.AFInAppEventParameterName.valueOf.getPackageName());
        try {
            AFc1uSDK<String> AFKeystoreWrapper2 = AFKeystoreWrapper(new AFb1wSDK(sb.toString(), (byte[]) ((Class) AFa1wSDK.values((ViewConfiguration.getPressedStateDuration() >> 16) + 62, (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 30, (char) ((KeyEvent.getMaxKeyCode() >> 16) + 39290))).getMethod("AFInAppEventParameterName", Map.class, String.class).invoke(null, map, str), "POST", Collections.emptyMap(), true), new AFc1oSDK());
            int i = AFVersionDeclaration + 45;
            AFLogger$LogLevel = i % 128;
            if (!(i % 2 == 0)) {
                return AFKeystoreWrapper2;
            }
            int i2 = 13 / 0;
            return AFKeystoreWrapper2;
        } catch (Throwable th) {
            Throwable cause = th.getCause();
            if (cause != null) {
                throw cause;
            }
            throw th;
        }
    }

    public final AFc1uSDK<String> values(@NonNull String str, @NonNull Map<String, String> map, @Nullable String str2, @NonNull UUID uuid, @NonNull 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 ? '\\' : 'H') != 'H') {
            int i = AFVersionDeclaration + 121;
            AFLogger$LogLevel = i % 128;
            int i2 = i % 2;
            hashMap.put("brand_domain", str2);
            int i3 = AFLogger$LogLevel + 87;
            AFVersionDeclaration = i3 % 128;
            int i4 = i3 % 2;
        }
        String jSONObject = AFa1mSDK.valueOf(hashMap).toString();
        HashMap hashMap2 = new HashMap();
        Object[] objArr = new Object[1];
        AFKeystoreWrapper("䖅䘲腷\ue4db첚퍞㉥抸햧\uf4e4莡莒", 1 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)), "텝퇞쥔\ua4ca", (char) (ViewConfiguration.getLongPressTimeout() >> 16), "ﯻ⾺맣᳄", objArr);
        hashMap2.put(((String) objArr[0]).intern(), values(str3, obj, "POST", jSONObject));
        StringBuilder sb = new StringBuilder();
        sb.append(String.format(AFInAppEventType, AppsFlyerLib.getInstance().getHostPrefix(), AFb1zSDK.AFInAppEventType().getHostName()));
        sb.append("/");
        sb.append(str);
        return AFInAppEventParameterName(new AFb1wSDK(sb.toString(), jSONObject.getBytes(Charset.forName("UTF-8")), "POST", hashMap2, false), new AFc1oSDK(), true);
    }

    private <T> AFc1uSDK<T> AFKeystoreWrapper(AFb1wSDK aFb1wSDK, AFc1mSDK<T> aFc1mSDK) {
        int i = AFVersionDeclaration + 43;
        AFLogger$LogLevel = i % 128;
        int i2 = i % 2;
        AFc1uSDK<T> AFInAppEventParameterName2 = AFInAppEventParameterName(aFb1wSDK, aFc1mSDK, values());
        int i3 = AFLogger$LogLevel + 55;
        AFVersionDeclaration = i3 % 128;
        if (!(i3 % 2 != 0)) {
            return AFInAppEventParameterName2;
        }
        int i4 = 21 / 0;
        return AFInAppEventParameterName2;
    }

    @VisibleForTesting
    private Map<String, Object> AFKeystoreWrapper() {
        HashMap hashMap = new HashMap();
        hashMap.put("build_number", "6.9.4");
        hashMap.put("counter", Integer.valueOf(this.AFLogger.valueOf.AFInAppEventType("appsFlyerCount")));
        hashMap.put("model", Build.MODEL);
        Object[] objArr = new Object[1];
        AFKeystoreWrapper("ਵ㸛겊嵘⚷", (ViewConfiguration.getScrollDefaultDelay() >> 16) + 566478689, "慪쏇∡䆀", (char) (32802 - TextUtils.getCapsMode("", 0, 0)), "ﯻ⾺맣᳄", objArr);
        hashMap.put(((String) objArr[0]).intern(), Build.BRAND);
        hashMap.put("sdk", Integer.toString(Build.VERSION.SDK_INT));
        Context context = this.AFLogger.AFInAppEventParameterName.valueOf;
        hashMap.put("app_version_name", AFb1wSDK.AFInAppEventType(context, context.getPackageName()));
        hashMap.put("app_id", this.AFLogger.AFInAppEventParameterName.valueOf.getPackageName());
        hashMap.put("platformextension", new AFb1uSDK().values());
        int i = AFLogger$LogLevel + 45;
        AFVersionDeclaration = i % 128;
        int i2 = i % 2;
        return hashMap;
    }

    @NonNull
    public final AFc1uSDK<String> valueOf(Map<String, Object> map) {
        StringBuilder sb = new StringBuilder();
        sb.append(String.format(AFKeystoreWrapper, AppsFlyerLib.getInstance().getHostPrefix(), AFb1zSDK.AFInAppEventType().getHostName()));
        sb.append(this.AFLogger.AFInAppEventParameterName.valueOf.getPackageName());
        AFc1uSDK<String> AFKeystoreWrapper2 = AFKeystoreWrapper(new AFb1wSDK(sb.toString(), new JSONObject(map).toString().getBytes(), "POST", Collections.emptyMap(), false), new AFc1oSDK());
        int i = AFVersionDeclaration + 29;
        AFLogger$LogLevel = i % 128;
        if ((i % 2 == 0 ? 'C' : (char) 0) == 0) {
            return AFKeystoreWrapper2;
        }
        throw null;
    }

    @NonNull
    public final AFc1uSDK<AFb1oSDK> AFInAppEventParameterName(boolean z, boolean z2, @NonNull String str, int i) {
        AFb1wSDK aFb1wSDK = new AFb1wSDK(values(z, z2, str), "GET");
        aFb1wSDK.AFLogger = 1500;
        AFc1uSDK<AFb1oSDK> AFKeystoreWrapper2 = AFKeystoreWrapper(aFb1wSDK, new AFc1nSDK());
        int i2 = AFVersionDeclaration + 79;
        AFLogger$LogLevel = i2 % 128;
        int i3 = i2 % 2;
        return AFKeystoreWrapper2;
    }

    public final AFc1uSDK<Map<String, Object>> AFInAppEventParameterName(String str, String str2) {
        AFc1uSDK<Map<String, Object>> AFKeystoreWrapper2 = AFKeystoreWrapper(AFc1wSDK.AFKeystoreWrapper(this.AFLogger.AFInAppEventParameterName.valueOf.getPackageName(), AFb1sSDK.AFInAppEventType((WeakReference<Context>) new WeakReference(this.AFLogger.AFInAppEventParameterName.valueOf)), str, str2), new AFc1qSDK());
        int i = AFLogger$LogLevel + 83;
        AFVersionDeclaration = i % 128;
        if (i % 2 == 0) {
            return AFKeystoreWrapper2;
        }
        throw null;
    }

    public final AFc1uSDK<Map<String, String>> values(@NonNull String str, @NonNull String str2, @NonNull UUID uuid, @NonNull String str3) {
        String obj = uuid.toString();
        StringBuilder sb = new StringBuilder();
        sb.append(String.format(AFInAppEventType, AppsFlyerLib.getInstance().getHostPrefix(), AFb1zSDK.AFInAppEventType().getHostName()));
        sb.append("/");
        sb.append(str);
        sb.append("?id=");
        sb.append(str2);
        String obj2 = sb.toString();
        Map<String, Object> AFKeystoreWrapper2 = AFKeystoreWrapper();
        String valueOf2 = String.valueOf(AFKeystoreWrapper2.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(AFKeystoreWrapper2.get("counter")));
        hashMap.put("Af-Meta-Model", String.valueOf(AFKeystoreWrapper2.get("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];
        AFKeystoreWrapper("䖅䘲腷\ue4db첚퍞㉥抸햧\uf4e4莡莒", ExpandableListView.getPackedPositionType(0L), "텝퇞쥔\ua4ca", (char) ((-1) - TextUtils.indexOf((CharSequence) "", '0')), "ﯻ⾺맣᳄", objArr);
        hashMap.put(((String) objArr[0]).intern(), values(str3, obj, "GET", obj, str, str2, valueOf2));
        AFc1uSDK<Map<String, String>> AFKeystoreWrapper3 = AFKeystoreWrapper(new AFb1wSDK(obj2, null, "GET", hashMap, false), new AFc1kSDK());
        int i = AFLogger$LogLevel + 87;
        AFVersionDeclaration = i % 128;
        if ((i % 2 != 0 ? '/' : ' ') != '/') {
            return AFKeystoreWrapper3;
        }
        throw null;
    }

    public final AFc1uSDK<String> AFInAppEventParameterName(@NonNull String str) {
        AFb1wSDK aFb1wSDK = new AFb1wSDK(str, null, "GET", Collections.emptyMap(), false);
        aFb1wSDK.AFLogger = 10000;
        aFb1wSDK.values = false;
        AFc1uSDK<String> AFKeystoreWrapper2 = AFKeystoreWrapper(aFb1wSDK, new AFc1oSDK());
        int i = AFVersionDeclaration + 65;
        AFLogger$LogLevel = i % 128;
        int i2 = i % 2;
        return AFKeystoreWrapper2;
    }

    private static void AFKeystoreWrapper(String str, int i, String str2, char c, String str3, Object[] objArr) {
        String str4;
        char[] cArr = str3;
        if (str3 != null) {
            cArr = str3.toCharArray();
        }
        char[] cArr2 = cArr;
        char[] cArr3 = str2;
        if (str2 != null) {
            cArr3 = str2.toCharArray();
        }
        char[] cArr4 = cArr3;
        char[] cArr5 = str;
        if (str != null) {
            cArr5 = str.toCharArray();
        }
        char[] cArr6 = cArr5;
        synchronized (AFf1kSDK.AFKeystoreWrapper) {
            char[] cArr7 = (char[]) cArr4.clone();
            char[] cArr8 = (char[]) cArr2.clone();
            cArr7[0] = (char) (c ^ cArr7[0]);
            cArr8[2] = (char) (cArr8[2] + ((char) i));
            int length = cArr6.length;
            char[] cArr9 = new char[length];
            AFf1kSDK.values = 0;
            while (true) {
                int i2 = AFf1kSDK.values;
                if (i2 < length) {
                    int i3 = (i2 + 2) % 4;
                    int i4 = (i2 + 3) % 4;
                    int i5 = cArr7[i2 % 4] * 32718;
                    char c2 = cArr8[i3];
                    char c3 = (char) ((i5 + c2) % 65535);
                    AFf1kSDK.valueOf = c3;
                    cArr8[i4] = (char) (((cArr7[i4] * 32718) + c2) / 65535);
                    cArr7[i4] = c3;
                    int i6 = AFf1kSDK.values;
                    cArr9[i6] = (char) ((((c3 ^ cArr6[i6]) ^ afErrorLog) ^ afDebugLog) ^ afErrorLogForExcManagerOnly);
                    AFf1kSDK.values = i6 + 1;
                } else {
                    str4 = new String(cArr9);
                }
            }
        }
        objArr[0] = str4;
    }

    private <T> AFc1uSDK<T> AFInAppEventParameterName(AFb1wSDK aFb1wSDK, AFc1mSDK<T> aFc1mSDK, boolean z) {
        aFb1wSDK.AFKeystoreWrapper = z;
        AFc1uSDK<T> aFc1uSDK = new AFc1uSDK<>(aFb1wSDK, this.afInfoLog.valueOf, aFc1mSDK);
        int i = AFVersionDeclaration + 115;
        AFLogger$LogLevel = i % 128;
        int i2 = i % 2;
        return aFc1uSDK;
    }

    private static String values(String str, String str2, String... strArr) {
        ArrayList arrayList = new ArrayList(Arrays.asList(strArr));
        arrayList.add(1, "v2");
        String AFInAppEventType2 = AFb1vSDK.AFInAppEventType((String[]) arrayList.toArray(new String[0]));
        StringBuilder sb = new StringBuilder();
        sb.append(str);
        sb.append(str2);
        sb.append("v2");
        String AFInAppEventType3 = AFb1vSDK.AFInAppEventType(AFInAppEventType2, sb.toString());
        int i = AFLogger$LogLevel + 35;
        AFVersionDeclaration = i % 128;
        if (i % 2 == 0) {
            return AFInAppEventType3;
        }
        throw null;
    }

    private boolean values() {
        int i = AFVersionDeclaration + 1;
        AFLogger$LogLevel = i % 128;
        int i2 = i % 2;
        if (!(!this.afRDLog.getBoolean(AppsFlyerProperties.HTTP_CACHE, true))) {
            return false;
        }
        int i3 = AFVersionDeclaration + 23;
        AFLogger$LogLevel = i3 % 128;
        return i3 % 2 != 0;
    }

    @NonNull
    private static String values(boolean z, boolean z2, String str) {
        String str2;
        int i = AFVersionDeclaration + 39;
        AFLogger$LogLevel = i % 128;
        if (i % 2 != 0) {
            String hostName = AppsFlyerLib.getInstance().getHostName();
            boolean z3 = (!"appsflyer.com".equals(hostName) ? 'J' : 'H') != 'H';
            if (z) {
                int i2 = AFVersionDeclaration + 77;
                AFLogger$LogLevel = i2 % 128;
                int i3 = i2 % 2;
                str2 = valueOf;
            } else {
                str2 = AFInAppEventParameterName;
            }
            Object[] objArr = new Object[3];
            objArr[0] = !z2 ? "" : "staging-";
            if ((z3 ? 'D' : 'K') != 'D') {
                hostName = "appsflyersdk.com";
            } else {
                int i4 = AFVersionDeclaration + 51;
                AFLogger$LogLevel = i4 % 128;
                if (!(i4 % 2 != 0)) {
                    throw null;
                }
            }
            objArr[1] = hostName;
            objArr[2] = str;
            return String.format(str2, objArr);
        }
        "appsflyer.com".equals(AppsFlyerLib.getInstance().getHostName());
        throw null;
    }
}