Swiggy v4.51.1版本的 MD5 值为:5af7ec91512a0a8c1510e3f8bac20b8b

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


package com.appsflyer.internal;

import android.content.Context;
import android.media.AudioTrack;
import android.os.Build;
import android.os.Process;
import android.text.TextUtils;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import androidx.annotation.NonNull;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.AppsFlyerProperties;
import com.appsflyer.CreateOneLinkHttpTask;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.gms.search.SearchAuth;
import com.newrelic.agent.android.analytics.AnalyticsAttribute;
import com.newrelic.agent.android.instrumentation.Instrumented;
import com.newrelic.agent.android.instrumentation.JSONObjectInstrumentation;
import com.xiaomi.mipush.sdk.Constants;
import in.juspay.hypersdk.core.PaymentConstants;
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 kotlin.jvm.internal.o;
import kotlin.jvm.internal.v;
import org.json.JSONObject;
@Instrumented
public final class AFc1pSDK {
    private static String AFInAppEventType = null;
    private static char AFLogger = 0;
    private static int AFVersionDeclaration = 1;
    private static int afDebugLog;
    private static char[] afErrorLog;
    private static String valueOf;
    public static String values;
    private final AFb1bSDK AFInAppEventParameterName;
    private final CreateOneLinkHttpTask AFKeystoreWrapper;
    private final AppsFlyerProperties afInfoLog;
    private final AFd1ySDK afRDLog;

    static {
        values();
        valueOf = "https://%smonitorsdk.%s/remote-debug?app_id=";
        values = "https://%sgcdsdk.%s/install_data/v5.0/";
        AFInAppEventType = "https://%sonelink.%s/shortlink-sdk/v2";
        int i = afDebugLog + 29;
        AFVersionDeclaration = i % 128;
        int i2 = i % 2;
    }

    public AFc1pSDK(CreateOneLinkHttpTask createOneLinkHttpTask, AFb1bSDK aFb1bSDK, AppsFlyerProperties appsFlyerProperties, AFd1ySDK aFd1ySDK) {
        this.AFKeystoreWrapper = createOneLinkHttpTask;
        this.AFInAppEventParameterName = aFb1bSDK;
        this.afInfoLog = appsFlyerProperties;
        this.afRDLog = aFd1ySDK;
    }

    private boolean AFInAppEventParameterName() {
        int i = AFVersionDeclaration + 121;
        afDebugLog = i % 128;
        if (i % 2 != 0) {
            if (this.afInfoLog.getBoolean(AppsFlyerProperties.HTTP_CACHE, true)) {
                return false;
            }
        } else if (this.afInfoLog.getBoolean(AppsFlyerProperties.HTTP_CACHE, true)) {
            return false;
        }
        int i2 = afDebugLog + 31;
        AFVersionDeclaration = i2 % 128;
        int i3 = i2 % 2;
        return true;
    }

    static void values() {
        AFLogger = (char) 4;
        afErrorLog = new char[]{13816, 13820, 13800, 13769, 13812, 13806, 13819, 13811, 13821, 13823, 13807, 13751, 13817, 13818, 13787, 13822};
    }

    @NonNull
    public final AFc1iSDK<String> AFInAppEventType(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(), AFb1wSDK.AFKeystoreWrapper().getHostName()));
        sb.append(this.AFInAppEventParameterName.values.AFKeystoreWrapper.getPackageName());
        try {
            AFc1iSDK<String> AFInAppEventType2 = AFInAppEventType(new AFc1vSDK(sb.toString(), (byte[]) ((Class) AFa1vSDK.values(74 - TextUtils.getOffsetBefore("", 0), (char) (17156 - Process.getGidForName("")), View.MeasureSpec.getMode(0) + 36)).getMethod("values", Map.class, String.class).invoke(null, map, str), "POST", Collections.emptyMap(), true), new AFc1gSDK());
            int i = afDebugLog + 123;
            AFVersionDeclaration = i % 128;
            if (i % 2 == 0) {
                int i2 = 66 / 0;
            }
            return AFInAppEventType2;
        } catch (Throwable th) {
            Throwable cause = th.getCause();
            if (cause != null) {
                throw cause;
            }
            throw th;
        }
    }

    @NonNull
    public final AFc1iSDK<String> AFKeystoreWrapper(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(), AFb1wSDK.AFKeystoreWrapper().getHostName()));
        sb.append(this.AFInAppEventParameterName.values.AFKeystoreWrapper.getPackageName());
        try {
            AFc1iSDK<String> AFInAppEventType2 = AFInAppEventType(new AFc1vSDK(sb.toString(), (byte[]) ((Class) AFa1vSDK.values(73 - TextUtils.indexOf((CharSequence) "", '0'), (char) ((ViewConfiguration.getPressedStateDuration() >> 16) + 17157), TextUtils.indexOf("", "", 0) + 36)).getMethod("values", Map.class, String.class).invoke(null, map, str), "POST", Collections.emptyMap(), true), new AFc1gSDK());
            int i = AFVersionDeclaration + 49;
            afDebugLog = i % 128;
            int i2 = i % 2;
            return AFInAppEventType2;
        } catch (Throwable th) {
            Throwable cause = th.getCause();
            if (cause != null) {
                throw cause;
            }
            throw th;
        }
    }

    public final AFc1iSDK<String> valueOf(@NonNull String str, @NonNull Map<String, String> map, String str2, @NonNull UUID uuid, @NonNull String str3) {
        String obj = uuid.toString();
        HashMap hashMap = new HashMap();
        hashMap.put("ttl", "-1");
        hashMap.put(AnalyticsAttribute.UUID_ATTRIBUTE, obj);
        hashMap.put("data", map);
        hashMap.put("meta", AFInAppEventType());
        if (str2 != null) {
            int i = afDebugLog + 75;
            AFVersionDeclaration = i % 128;
            int i2 = i % 2;
            hashMap.put("brand_domain", str2);
            int i3 = AFVersionDeclaration + 123;
            afDebugLog = i3 % 128;
            int i4 = i3 % 2;
        }
        JSONObject valueOf2 = AFa1mSDK.valueOf(hashMap);
        String jSONObject = !(valueOf2 instanceof JSONObject) ? valueOf2.toString() : JSONObjectInstrumentation.toString(valueOf2);
        HashMap hashMap2 = new HashMap();
        Object[] objArr = new Object[1];
        AFKeystoreWrapper(12 - TextUtils.indexOf("", ""), "\r\u0002\u000f\u0007\u0004\u000b\u0005\u0007\u0006\t\u0001\n", (byte) (View.resolveSizeAndState(0, 0, 0) + 43), objArr);
        hashMap2.put(((String) objArr[0]).intern(), values(str3, obj, "POST", jSONObject));
        StringBuilder sb = new StringBuilder();
        sb.append(String.format(AFInAppEventType, AppsFlyerLib.getInstance().getHostPrefix(), AFb1wSDK.AFKeystoreWrapper().getHostName()));
        sb.append("/");
        sb.append(str);
        return valueOf(new AFc1vSDK(sb.toString(), jSONObject.getBytes(Charset.forName("UTF-8")), "POST", hashMap2, false), new AFc1gSDK(), true);
    }

    @NonNull
    public final AFc1iSDK<String> values(Map<String, Object> map) {
        StringBuilder sb = new StringBuilder();
        sb.append(String.format(valueOf, AppsFlyerLib.getInstance().getHostPrefix(), AFb1wSDK.AFKeystoreWrapper().getHostName()));
        sb.append(this.AFInAppEventParameterName.values.AFKeystoreWrapper.getPackageName());
        AFc1iSDK<String> AFInAppEventType2 = AFInAppEventType(new AFc1vSDK(sb.toString(), JSONObjectInstrumentation.toString(new JSONObject(map)).getBytes(), "POST", Collections.emptyMap(), false), new AFc1gSDK());
        int i = AFVersionDeclaration + 39;
        afDebugLog = i % 128;
        int i2 = i % 2;
        return AFInAppEventType2;
    }

    private <T> AFc1iSDK<T> AFInAppEventType(AFc1vSDK aFc1vSDK, AFc1cSDK<T> aFc1cSDK) {
        int i = AFVersionDeclaration + 97;
        afDebugLog = i % 128;
        if (i % 2 == 0) {
            return valueOf(aFc1vSDK, aFc1cSDK, AFInAppEventParameterName());
        }
        valueOf(aFc1vSDK, aFc1cSDK, AFInAppEventParameterName());
        throw null;
    }

    public final AFc1iSDK<String> AFKeystoreWrapper(AFe1aSDK aFe1aSDK) {
        AFc1iSDK<String> AFInAppEventType2 = AFInAppEventType(new AFc1vSDK(aFe1aSDK.afInfoLog, aFe1aSDK.AFInAppEventType(), "POST", Collections.emptyMap(), true), new AFc1gSDK());
        int i = AFVersionDeclaration + 111;
        afDebugLog = i % 128;
        if (i % 2 == 0) {
            return AFInAppEventType2;
        }
        throw null;
    }

    public final AFc1iSDK<String> values(AFa1tSDK aFa1tSDK, String str) {
        try {
            AFc1iSDK<String> AFInAppEventType2 = AFInAppEventType(new AFc1vSDK(aFa1tSDK.afInfoLog, (byte[]) ((Class) AFa1vSDK.values(73 - TextUtils.lastIndexOf("", '0'), (char) ((ViewConfiguration.getMinimumFlingVelocity() >> 16) + 17157), 36 - (ViewConfiguration.getTapTimeout() >> 16))).getMethod("AFInAppEventParameterName", AFa1tSDK.class, String.class).invoke(null, aFa1tSDK, str), "POST", Collections.emptyMap(), aFa1tSDK.valueOf()), new AFc1gSDK());
            int i = afDebugLog + 77;
            AFVersionDeclaration = i % 128;
            if (i % 2 == 0) {
                int i2 = 93 / 0;
            }
            return AFInAppEventType2;
        } catch (Throwable th) {
            Throwable cause = th.getCause();
            if (cause != null) {
                throw cause;
            }
            throw th;
        }
    }

    private Map<String, Object> AFInAppEventType() {
        HashMap hashMap = new HashMap();
        hashMap.put("build_number", "6.10.1");
        hashMap.put("counter", Integer.valueOf(this.AFInAppEventParameterName.AFInAppEventType.AFKeystoreWrapper("appsFlyerCount", 0)));
        hashMap.put("model", Build.MODEL);
        Object[] objArr = new Object[1];
        AFKeystoreWrapper(5 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), "\u0001\u0003\u0007\u0005㙥", (byte) (103 - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24)), objArr);
        hashMap.put(((String) objArr[0]).intern(), Build.BRAND);
        hashMap.put(PaymentConstants.Category.SDK, Integer.toString(Build.VERSION.SDK_INT));
        Context context = this.AFInAppEventParameterName.values.AFKeystoreWrapper;
        hashMap.put("app_version_name", AFa1cSDK.AFInAppEventType(context, context.getPackageName()));
        hashMap.put(Constants.APP_ID, this.AFInAppEventParameterName.values.AFKeystoreWrapper.getPackageName());
        hashMap.put("platformextension", new AFb1vSDK().values());
        int i = afDebugLog + 57;
        AFVersionDeclaration = i % 128;
        if (i % 2 == 0) {
            int i2 = 87 / 0;
        }
        return hashMap;
    }

    private static void AFKeystoreWrapper(int i, String str, byte b, Object[] objArr) {
        char[] cArr;
        int i2;
        String str2;
        if (str != null) {
            cArr = str.toCharArray();
        }
        char[] cArr2 = cArr;
        synchronized (AFg1zSDK.AFLogger) {
            try {
                char[] cArr3 = afErrorLog;
                char c = AFLogger;
                char[] cArr4 = new char[i];
                if (i % 2 != 0) {
                    i2 = i - 1;
                    cArr4[i2] = (char) (cArr2[i2] - b);
                } else {
                    i2 = i;
                }
                if (i2 > 1) {
                    AFg1zSDK.valueOf = 0;
                    while (true) {
                        int i3 = AFg1zSDK.valueOf;
                        if (i3 >= i2) {
                            break;
                        }
                        AFg1zSDK.values = cArr2[i3];
                        AFg1zSDK.AFInAppEventType = cArr2[AFg1zSDK.valueOf + 1];
                        if (AFg1zSDK.values == AFg1zSDK.AFInAppEventType) {
                            cArr4[AFg1zSDK.valueOf] = (char) (AFg1zSDK.values - b);
                            cArr4[AFg1zSDK.valueOf + 1] = (char) (AFg1zSDK.AFInAppEventType - b);
                        } else {
                            AFg1zSDK.AFInAppEventParameterName = AFg1zSDK.values / c;
                            AFg1zSDK.afRDLog = AFg1zSDK.values % c;
                            AFg1zSDK.AFKeystoreWrapper = AFg1zSDK.AFInAppEventType / c;
                            AFg1zSDK.afErrorLog = AFg1zSDK.AFInAppEventType % c;
                            if (AFg1zSDK.afRDLog == AFg1zSDK.afErrorLog) {
                                AFg1zSDK.AFInAppEventParameterName = ((AFg1zSDK.AFInAppEventParameterName + c) - 1) % c;
                                AFg1zSDK.AFKeystoreWrapper = ((AFg1zSDK.AFKeystoreWrapper + c) - 1) % c;
                                int i4 = (AFg1zSDK.AFInAppEventParameterName * c) + AFg1zSDK.afRDLog;
                                int i5 = (AFg1zSDK.AFKeystoreWrapper * c) + AFg1zSDK.afErrorLog;
                                int i6 = AFg1zSDK.valueOf;
                                cArr4[i6] = cArr3[i4];
                                cArr4[i6 + 1] = cArr3[i5];
                            } else if (AFg1zSDK.AFInAppEventParameterName == AFg1zSDK.AFKeystoreWrapper) {
                                AFg1zSDK.afRDLog = ((AFg1zSDK.afRDLog + c) - 1) % c;
                                AFg1zSDK.afErrorLog = ((AFg1zSDK.afErrorLog + c) - 1) % c;
                                int i7 = (AFg1zSDK.AFInAppEventParameterName * c) + AFg1zSDK.afRDLog;
                                int i8 = (AFg1zSDK.AFKeystoreWrapper * c) + AFg1zSDK.afErrorLog;
                                int i9 = AFg1zSDK.valueOf;
                                cArr4[i9] = cArr3[i7];
                                cArr4[i9 + 1] = cArr3[i8];
                            } else {
                                int i10 = (AFg1zSDK.AFInAppEventParameterName * c) + AFg1zSDK.afErrorLog;
                                int i11 = (AFg1zSDK.AFKeystoreWrapper * c) + AFg1zSDK.afRDLog;
                                int i12 = AFg1zSDK.valueOf;
                                cArr4[i12] = cArr3[i10];
                                cArr4[i12 + 1] = cArr3[i11];
                            }
                        }
                        AFg1zSDK.valueOf += 2;
                    }
                }
                for (int i13 = 0; i13 < i; i13++) {
                    cArr4[i13] = (char) (cArr4[i13] ^ 13722);
                }
                str2 = new String(cArr4);
            } catch (Throwable th) {
                throw th;
            }
        }
        objArr[0] = str2;
    }

    public final AFc1iSDK<Map<String, String>> valueOf(@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(), AFb1wSDK.AFKeystoreWrapper().getHostName()));
        sb.append("/");
        sb.append(str);
        sb.append("?id=");
        sb.append(str2);
        String obj2 = sb.toString();
        Map<String, Object> AFInAppEventType2 = AFInAppEventType();
        String valueOf2 = String.valueOf(AFInAppEventType2.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(AFInAppEventType2.get("counter")));
        hashMap.put("Af-Meta-Model", String.valueOf(AFInAppEventType2.get("model")));
        hashMap.put("Af-Meta-Platform", String.valueOf(AFInAppEventType2.get("platformextension")));
        hashMap.put("Af-Meta-System-Version", String.valueOf(AFInAppEventType2.get(PaymentConstants.Category.SDK)));
        Object[] objArr = new Object[1];
        AFKeystoreWrapper(((Process.getThreadPriority(0) + 20) >> 6) + 12, "\r\u0002\u000f\u0007\u0004\u000b\u0005\u0007\u0006\t\u0001\n", (byte) (ExpandableListView.getPackedPositionType(0L) + 43), objArr);
        hashMap.put(((String) objArr[0]).intern(), values(str3, obj, "GET", obj, str, str2, valueOf2));
        AFc1iSDK<Map<String, String>> AFInAppEventType3 = AFInAppEventType(new AFc1vSDK(obj2, null, "GET", hashMap, false), new AFc1hSDK());
        int i = afDebugLog + 17;
        AFVersionDeclaration = i % 128;
        if (i % 2 != 0) {
            return AFInAppEventType3;
        }
        throw null;
    }

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

    public final AFc1iSDK<String> valueOf(@NonNull String str) {
        AFc1iSDK<String> AFInAppEventType2 = AFInAppEventType(new AFc1vSDK(str, null, "GET", Collections.emptyMap(), false).AFKeystoreWrapper(SearchAuth.StatusCodes.AUTH_DISABLED).getLevel(), new AFc1gSDK());
        int i = afDebugLog + 47;
        AFVersionDeclaration = i % 128;
        int i2 = i % 2;
        return AFInAppEventType2;
    }

    @NonNull
    public final AFc1iSDK<AFb1iSDK> AFInAppEventType(boolean z, boolean z2, @NonNull String str, int i) {
        String str2;
        String str3;
        int i2 = AFVersionDeclaration + 83;
        afDebugLog = i2 % 128;
        if (i2 % 2 == 0) {
            AFd1ySDK aFd1ySDK = this.afRDLog;
            o.k(str, "");
            String str4 = z ? AFd1ySDK.valueOf : AFd1ySDK.AFInAppEventParameterName;
            if (z2) {
                int i3 = afDebugLog + 13;
                int i4 = i3 % 128;
                AFVersionDeclaration = i4;
                int i5 = i3 % 2;
                int i6 = i4 + 17;
                afDebugLog = i6 % 128;
                int i7 = i6 % 2;
                str2 = "stg";
            } else {
                str2 = "";
            }
            v vVar = v.a;
            Object[] objArr = new Object[4];
            if (AFd1ySDK.valueOf()) {
                int i8 = AFVersionDeclaration + 9;
                afDebugLog = i8 % 128;
                if (i8 % 2 != 0) {
                    str3 = (String) aFd1ySDK.AFKeystoreWrapper.getValue();
                    int i9 = 5 / 0;
                } else {
                    str3 = (String) aFd1ySDK.AFKeystoreWrapper.getValue();
                }
            } else {
                str3 = "";
            }
            objArr[0] = str3;
            objArr[1] = str2;
            objArr[2] = aFd1ySDK.values();
            objArr[3] = str;
            String format = String.format(str4, Arrays.copyOf(objArr, 4));
            o.j(format, "");
            AFc1vSDK aFc1vSDK = new AFc1vSDK(format, "GET");
            aFc1vSDK.AFKeystoreWrapper(ConnectionResult.DRIVE_EXTERNAL_STORAGE_REQUIRED);
            return AFInAppEventType(aFc1vSDK, new AFc1fSDK());
        }
        o.k(str, "");
        throw null;
    }

    private <T> AFc1iSDK<T> valueOf(AFc1vSDK aFc1vSDK, AFc1cSDK<T> aFc1cSDK, boolean z) {
        aFc1vSDK.AFKeystoreWrapper(z);
        CreateOneLinkHttpTask createOneLinkHttpTask = this.AFKeystoreWrapper;
        AFc1iSDK<T> aFc1iSDK = new AFc1iSDK<>(aFc1vSDK, createOneLinkHttpTask.values, createOneLinkHttpTask.valueOf, aFc1cSDK);
        int i = AFVersionDeclaration + 69;
        afDebugLog = i % 128;
        int i2 = i % 2;
        return aFc1iSDK;
    }

    public final AFc1iSDK<Map<String, Object>> valueOf(String str, String str2) {
        AFc1iSDK<Map<String, Object>> AFInAppEventType2 = AFInAppEventType(AFc1jSDK.values(this.AFInAppEventParameterName.values.AFKeystoreWrapper.getPackageName(), AFb1zSDK.AFInAppEventParameterName(new WeakReference(this.AFInAppEventParameterName.values.AFKeystoreWrapper)), str, str2), new AFc1mSDK());
        int i = afDebugLog + 31;
        AFVersionDeclaration = i % 128;
        if (i % 2 != 0) {
            return AFInAppEventType2;
        }
        throw null;
    }
}