导航菜单

页面标题

页面副标题

Pesohere v1.0.5 - AFc1vSDK.java 源代码

正在查看: Pesohere v1.0.5 应用的 AFc1vSDK.java JAVA 源代码文件

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


package com.appsflyer.internal;

import android.content.Context;
import android.os.Build;
import android.os.SystemClock;
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 com.google.android.gms.common.ConnectionResult;
import com.wang.avi.BuildConfig;
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 {
    public static String AFInAppEventParameterName = null;
    public static String AFInAppEventType = null;
    public static String AFKeystoreWrapper = null;
    public static int AFLogger$LogLevel = 1;
    public static int AFVersionDeclaration;
    public static int afDebugLog;
    public static long afErrorLog;
    public static char afErrorLogForExcManagerOnly;
    public static String valueOf;
    public static String values;
    public final AFc1ySDK AFLogger;
    public final AFb1ySDK afInfoLog;
    public 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 i2 = AFVersionDeclaration + 57;
        AFLogger$LogLevel = i2 % 128;
        if (!(i2 % 2 == 0)) {
            return;
        }
        Object[] objArr = null;
        int length = objArr.length;
    }

    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> 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 i2 = AFVersionDeclaration + 45;
            AFLogger$LogLevel = i2 % 128;
            if (!(i2 % 2 == 0)) {
                return AFKeystoreWrapper2;
            }
            int i3 = 13 / 0;
            return AFKeystoreWrapper2;
        } catch (Throwable th) {
            Throwable cause = th.getCause();
            if (cause != null) {
                throw cause;
            }
            throw th;
        }
    }

    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 i2 = AFLogger$LogLevel + 5;
            AFVersionDeclaration = i2 % 128;
            int i3 = i2 % 2;
            return AFKeystoreWrapper2;
        } catch (Throwable th) {
            Throwable cause = th.getCause();
            if (cause != null) {
                throw cause;
            }
            throw th;
        }
    }

    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 i2 = AFLogger$LogLevel + 95;
            AFVersionDeclaration = i2 % 128;
            if (!(i2 % 2 != 0)) {
                return AFKeystoreWrapper2;
            }
            int i3 = 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 i2 = AFLogger$LogLevel + 11;
        AFVersionDeclaration = i2 % 128;
        if (i2 % 2 == 0) {
            return AFKeystoreWrapper2;
        }
        Object obj = null;
        super.hashCode();
        return AFKeystoreWrapper2;
    }

    public final AFc1uSDK<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 ? '\\' : 'H') != 'H') {
            int i2 = AFVersionDeclaration + 121;
            AFLogger$LogLevel = i2 % 128;
            int i3 = i2 % 2;
            hashMap.put("brand_domain", str2);
            int i4 = AFLogger$LogLevel + 87;
            AFVersionDeclaration = i4 % 128;
            int i5 = i4 % 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 i2 = AFVersionDeclaration + 43;
        AFLogger$LogLevel = i2 % 128;
        int i3 = i2 % 2;
        AFc1uSDK<T> AFInAppEventParameterName2 = AFInAppEventParameterName(aFb1wSDK, aFc1mSDK, values());
        int i4 = AFLogger$LogLevel + 55;
        AFVersionDeclaration = i4 % 128;
        if (!(i4 % 2 != 0)) {
            return AFInAppEventParameterName2;
        }
        int i5 = 21 / 0;
        return AFInAppEventParameterName2;
    }

    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(BuildConfig.FLAVOR, 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 i2 = AFLogger$LogLevel + 45;
        AFVersionDeclaration = i2 % 128;
        int i3 = i2 % 2;
        return hashMap;
    }

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

    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 i2 = AFVersionDeclaration + 29;
        AFLogger$LogLevel = i2 % 128;
        if ((i2 % 2 == 0 ? 'C' : (char) 0) == 0) {
            return AFKeystoreWrapper2;
        }
        Object[] objArr = null;
        int length = objArr.length;
        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 i2 = AFLogger$LogLevel + 83;
        AFVersionDeclaration = i2 % 128;
        if (i2 % 2 == 0) {
            return AFKeystoreWrapper2;
        }
        Object[] objArr = null;
        int length = objArr.length;
        return AFKeystoreWrapper2;
    }

    public final AFc1uSDK<Map<String, String>> values(String str, String str2, UUID uuid, 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) BuildConfig.FLAVOR, '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 i2 = AFLogger$LogLevel + 87;
        AFVersionDeclaration = i2 % 128;
        if ((i2 % 2 != 0 ? '/' : ' ') != '/') {
            return AFKeystoreWrapper3;
        }
        Object obj3 = null;
        super.hashCode();
        return AFKeystoreWrapper3;
    }

    public final AFc1uSDK<String> AFInAppEventParameterName(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 i2 = AFVersionDeclaration + 65;
        AFLogger$LogLevel = i2 % 128;
        int i3 = i2 % 2;
        return AFKeystoreWrapper2;
    }

    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 i2 = AFVersionDeclaration + 115;
        AFLogger$LogLevel = i2 % 128;
        int i3 = i2 % 2;
        return aFc1uSDK;
    }

    public static void AFKeystoreWrapper(String str, int i2, String str2, char c2, 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) (c2 ^ cArr7[0]);
            cArr8[2] = (char) (cArr8[2] + ((char) i2));
            int length = cArr6.length;
            char[] cArr9 = new char[length];
            AFf1kSDK.values = 0;
            while (AFf1kSDK.values < length) {
                int i3 = (AFf1kSDK.values + 2) % 4;
                int i4 = (AFf1kSDK.values + 3) % 4;
                char c3 = (char) (((cArr7[AFf1kSDK.values % 4] * 32718) + cArr8[i3]) % 65535);
                AFf1kSDK.valueOf = c3;
                cArr8[i4] = (char) (((cArr7[i4] * 32718) + cArr8[i3]) / 65535);
                cArr7[i4] = c3;
                cArr9[AFf1kSDK.values] = (char) ((((cArr7[i4] ^ cArr6[AFf1kSDK.values]) ^ afErrorLog) ^ afDebugLog) ^ afErrorLogForExcManagerOnly);
                AFf1kSDK.values++;
            }
            str4 = new String(cArr9);
        }
        objArr[0] = str4;
    }

    public 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 i2 = AFLogger$LogLevel + 35;
        AFVersionDeclaration = i2 % 128;
        if (i2 % 2 == 0) {
            return AFInAppEventType3;
        }
        Object obj = null;
        super.hashCode();
        return AFInAppEventType3;
    }

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

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