Play House Simulation v3.0版本的 MD5 值为:4dbd745af43e6bcde3a0dca90b9e5934

以下内容为反编译后的 al.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.TextUtils;
import android.view.ViewConfiguration;
import com.appsflyer.AFLogger;
import com.appsflyer.AppsFlyerProperties;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import com.huawei.openalliance.ad.constant.t;
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;

public abstract class al implements Runnable {
    private static String AFInAppEventType = null;
    private static long AppsFlyer2dXConversionCallback = 0;
    private static char[] init = null;
    private static int onAttributionFailureNative = 0;
    private static int onInstallConversionFailureNative = 1;
    public static String valueOf;
    private final af AFInAppEventParameterName;
    public final String AFKeystoreWrapper;
    public final String AFLogger$LogLevel = UUID.randomUUID().toString();
    public final Map<String, Object> AFVersionDeclaration = AFKeystoreWrapper();
    private final Context getLevel;
    public String values;

    static {
        AFInAppEventParameterName();
        AFInAppEventType = com.huawei.hms.ads.dynamicloader.b.g;
        StringBuilder sb = new StringBuilder("https://%sonelink.%s/shortlink-sdk/");
        sb.append(AFInAppEventType);
        valueOf = sb.toString();
        int i = onInstallConversionFailureNative + 91;
        onAttributionFailureNative = i % 128;
        int i2 = i % 2;
    }

    public al(af afVar, Context context, String str) {
        this.AFInAppEventParameterName = afVar;
        this.getLevel = context;
        this.AFKeystoreWrapper = str;
    }

    private static String AFInAppEventParameterName(int i, char c, int i2) {
        int i3 = onAttributionFailureNative + 85;
        int i4 = i3 % 128;
        onInstallConversionFailureNative = i4;
        int i5 = i3 % 2;
        char[] cArr = new char[i2];
        int i6 = 0;
        int i7 = i4 + 45;
        onAttributionFailureNative = i7 % 128;
        int i8 = i7 % 2;
        while (true) {
            if ((i6 < i2 ? (char) 4 : 'T') != 'T') {
                cArr[i6] = (char) ((init[i + i6] ^ (i6 * AppsFlyer2dXConversionCallback)) ^ c);
                i6++;
            } else {
                return new String(cArr);
            }
        }
    }

    public static void AFInAppEventParameterName() {
        init = new char[]{45555, 34683, 56513, 5612, 27495, 41150, 63942, 53018, 1214, 24032, 37654, 59474};
        AppsFlyer2dXConversionCallback = 5266227840004863663L;
    }

    public abstract String AFInAppEventType();

    public abstract void AFInAppEventType(HttpsURLConnection httpsURLConnection);

    public final void AFKeystoreWrapper(HttpsURLConnection httpsURLConnection, String... strArr) {
        ArrayList arrayList = new ArrayList(Arrays.asList(strArr));
        arrayList.add(1, AFInAppEventType);
        String join = TextUtils.join("\u2063", arrayList.toArray());
        StringBuilder sb = new StringBuilder();
        sb.append(AppsFlyerProperties.getInstance().getString(AppsFlyerProperties.AF_KEY));
        sb.append(this.AFLogger$LogLevel);
        sb.append(AFInAppEventType);
        httpsURLConnection.setRequestProperty(AFInAppEventParameterName(1 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)), (char) (45490 - Color.argb(0, 0, 0, 0)), 12 - Color.argb(0, 0, 0, 0)).intern(), ai.values(join, sb.toString()));
        int i = onAttributionFailureNative + 55;
        onInstallConversionFailureNative = i % 128;
        if (!(i % 2 == 0)) {
            return;
        }
        int i2 = 13 / 0;
    }

    @Override
    public void run() {
        String str;
        Throwable th;
        String str2 = "";
        String AFInAppEventType2 = AFInAppEventType();
        AFLogger.AFKeystoreWrapper("oneLinkUrl: ".concat(String.valueOf(AFInAppEventType2)));
        try {
            HttpsURLConnection httpsURLConnection = (HttpsURLConnection) new URL(AFInAppEventType2).openConnection();
            httpsURLConnection.setRequestProperty("content-type", "application/json");
            httpsURLConnection.setReadTimeout(t.Z);
            httpsURLConnection.setConnectTimeout(t.Z);
            httpsURLConnection.setRequestMethod(this.AFKeystoreWrapper);
            AFInAppEventType(httpsURLConnection);
            int responseCode = httpsURLConnection.getResponseCode();
            str = af.AFInAppEventType(httpsURLConnection);
            try {
                if (responseCode == 200) {
                    int i = onAttributionFailureNative + 33;
                    onInstallConversionFailureNative = i % 128;
                    int i2 = i % 2;
                    AFLogger.AFInAppEventParameterName("Status 200 ok");
                } else {
                    StringBuilder sb = new StringBuilder("Response code = ");
                    sb.append(responseCode);
                    sb.append(" content = ");
                    sb.append(str);
                    str2 = sb.toString();
                }
            } catch (Throwable th2) {
                th = th2;
                AFLogger.values("Error while calling ".concat(String.valueOf(AFInAppEventType2)), th);
                StringBuilder sb2 = new StringBuilder("Error while calling ");
                sb2.append(AFInAppEventType2);
                sb2.append(" stacktrace: ");
                sb2.append(th.toString());
                str2 = sb2.toString();
                if ((!TextUtils.isEmpty(str2) ? 'A' : '=') == 'A') {
                }
            }
        } catch (Throwable th3) {
            str = "";
            th = th3;
        }
        if ((!TextUtils.isEmpty(str2) ? 'A' : '=') == 'A') {
            AFLogger.AFVersionDeclaration("Connection error: ".concat(String.valueOf(str2)));
            valueOf();
            return;
        }
        int i3 = onInstallConversionFailureNative + 75;
        onAttributionFailureNative = i3 % 128;
        if ((i3 % 2 != 0 ? (char) 29 : 'J') != 29) {
            AFLogger.AFInAppEventParameterName("Connection call succeeded: ".concat(String.valueOf(str)));
            values(str);
        } else {
            AFLogger.AFInAppEventParameterName("Connection call succeeded: ".concat(String.valueOf(str)));
            values(str);
            int i4 = 1 / 0;
        }
    }

    public abstract void valueOf();

    public abstract void values(String str);

    private Map<String, Object> AFKeystoreWrapper() {
        HashMap hashMap = new HashMap();
        hashMap.put("build_number", "6.3.0");
        hashMap.put("counter", Integer.valueOf(af.AFInAppEventParameterName(af.AFInAppEventType(this.getLevel), "appsFlyerCount", false)));
        hashMap.put("model", Build.MODEL);
        hashMap.put(com.huawei.openalliance.ad.constant.ao.r, Build.BRAND);
        hashMap.put("sdk", Integer.toString(Build.VERSION.SDK_INT));
        try {
            hashMap.put("app_version_name", this.getLevel.getPackageManager().getPackageInfo(this.getLevel.getPackageName(), 0).versionName);
        } catch (PackageManager.NameNotFoundException unused) {
        }
        hashMap.put(HiAnalyticsConstant.BI_KEY_APP_ID, this.getLevel.getPackageName());
        hashMap.put("platformextension", new aj().values());
        int i = onInstallConversionFailureNative + 69;
        onAttributionFailureNative = i % 128;
        int i2 = i % 2;
        return hashMap;
    }
}