Pinjamwinwin v2.0.7版本的 MD5 值为:254981700b50ce03309ecdaac5d16485
以下内容为反编译后的 AFc1pSDK.java 源代码,内容仅作参考
package com.appsflyer.internal;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.media.AudioTrack;
import android.os.Build;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.VisibleForTesting;
import android.text.TextUtils;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.adjust.sdk.Constants;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.AppsFlyerProperties;
import com.appsflyer.CreateOneLinkHttpTask;
import com.google.android.gms.dynamite.descriptors.com.google.mlkit.dynamite.face.ModuleDescriptor;
import com.jakewharton.timber.collection.util.HttpTip;
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;
import sc.h;
public final class AFc1pSDK {
@VisibleForTesting
private static String AFKeystoreWrapper = null;
private static char AFLogger = 0;
private static int AFVersionDeclaration = 1;
private static int afInfoLog;
private static char[] afRDLog;
public static String valueOf;
@VisibleForTesting
private static String values;
private final CreateOneLinkHttpTask AFInAppEventParameterName;
private final AFb1fSDK AFInAppEventType;
private final AppsFlyerProperties afDebugLog;
private final AFc1cSDK afErrorLog;
static {
values();
values = "https://%smonitorsdk.%s/remote-debug?app_id=";
valueOf = "https://%sgcdsdk.%s/install_data/v5.0/";
AFKeystoreWrapper = "https://%sonelink.%s/shortlink-sdk/v2";
int i3 = AFVersionDeclaration + 99;
afInfoLog = i3 % 128;
int i10 = i3 % 2;
}
public AFc1pSDK(CreateOneLinkHttpTask createOneLinkHttpTask, AFb1fSDK aFb1fSDK, AppsFlyerProperties appsFlyerProperties, AFc1cSDK aFc1cSDK) {
this.AFInAppEventParameterName = createOneLinkHttpTask;
this.AFInAppEventType = aFb1fSDK;
this.afDebugLog = appsFlyerProperties;
this.afErrorLog = aFc1cSDK;
}
private <T> AFc1oSDK<T> AFInAppEventType(AFc1sSDK aFc1sSDK, AFc1hSDK<T> aFc1hSDK, boolean z8) {
aFc1sSDK.valueOf(z8);
CreateOneLinkHttpTask createOneLinkHttpTask = this.AFInAppEventParameterName;
AFc1oSDK<T> aFc1oSDK = new AFc1oSDK<>(aFc1sSDK, createOneLinkHttpTask.AFInAppEventParameterName, createOneLinkHttpTask.AFInAppEventType, aFc1hSDK);
int i3 = AFVersionDeclaration + 77;
afInfoLog = i3 % 128;
if ((i3 % 2 != 0 ? (char) 6 : '4') != 6) {
return aFc1oSDK;
}
throw null;
}
private <T> AFc1oSDK<T> AFKeystoreWrapper(AFc1sSDK aFc1sSDK, AFc1hSDK<T> aFc1hSDK) {
int i3 = AFVersionDeclaration + 21;
afInfoLog = i3 % 128;
if (i3 % 2 != 0) {
AFInAppEventType(aFc1sSDK, aFc1hSDK, AFInAppEventParameterName());
throw null;
}
AFc1oSDK<T> AFInAppEventType = AFInAppEventType(aFc1sSDK, aFc1hSDK, AFInAppEventParameterName());
int i10 = afInfoLog + 97;
AFVersionDeclaration = i10 % 128;
int i11 = i10 % 2;
return AFInAppEventType;
}
@NonNull
public final AFc1oSDK<AFb1oSDK> AFInAppEventParameterName(boolean z8, boolean z10, @NonNull String str, int i3) {
String str2;
String str3;
AFc1cSDK aFc1cSDK = this.afErrorLog;
h.f(str, HttpTip.defaultEmpty);
if ((z8 ? '\n' : 'T') != 'T') {
int i10 = afInfoLog + 49;
AFVersionDeclaration = i10 % 128;
int i11 = i10 % 2;
str2 = AFc1cSDK.values;
int i12 = AFVersionDeclaration + 39;
afInfoLog = i12 % 128;
int i13 = i12 % 2;
} else {
str2 = AFc1cSDK.valueOf;
}
String str4 = z10 ? "stg" : HttpTip.defaultEmpty;
Object[] objArr = new Object[4];
if (AFc1cSDK.AFInAppEventType()) {
str3 = (String) aFc1cSDK.AFInAppEventType.getValue();
} else {
int i14 = afInfoLog + 47;
AFVersionDeclaration = i14 % 128;
int i15 = i14 % 2;
str3 = HttpTip.defaultEmpty;
}
objArr[0] = str3;
objArr[1] = str4;
objArr[2] = aFc1cSDK.AFKeystoreWrapper();
objArr[3] = str;
String format = String.format(str2, Arrays.copyOf(objArr, 4));
h.e(format, HttpTip.defaultEmpty);
AFc1sSDK aFc1sSDK = new AFc1sSDK(format, "GET");
aFc1sSDK.AFInAppEventParameterName(1500);
return AFKeystoreWrapper(aFc1sSDK, new AFc1lSDK());
}
public final AFc1oSDK<Map<String, Object>> valueOf(String str, String str2) {
AFc1oSDK<Map<String, Object>> AFKeystoreWrapper2 = AFKeystoreWrapper(AFc1qSDK.AFKeystoreWrapper(this.AFInAppEventType.valueOf.values.getPackageName(), AFb1xSDK.AFInAppEventParameterName(new WeakReference(this.AFInAppEventType.valueOf.values)), str, str2), new AFc1kSDK());
int i3 = AFVersionDeclaration + 83;
afInfoLog = i3 % 128;
if (i3 % 2 != 0) {
throw null;
}
return AFKeystoreWrapper2;
}
public final AFc1oSDK<String> values(AFa1sSDK aFa1sSDK, String str) {
try {
AFc1oSDK<String> AFKeystoreWrapper2 = AFKeystoreWrapper(new AFc1sSDK(aFa1sSDK.AFLogger, (byte[]) ((Class) AFa1vSDK.AFInAppEventType(ExpandableListView.getPackedPositionChild(0L) + 38, View.MeasureSpec.makeMeasureSpec(0, 0) + 74, (char) (17157 - (ViewConfiguration.getJumpTapTimeout() >> 16)))).getMethod("values", AFa1sSDK.class, String.class).invoke(null, aFa1sSDK, str), "POST", Collections.emptyMap(), aFa1sSDK.AFInAppEventParameterName()), new AFc1iSDK());
int i3 = afInfoLog + 45;
AFVersionDeclaration = i3 % 128;
if (i3 % 2 != 0) {
return AFKeystoreWrapper2;
}
throw null;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause != null) {
throw cause;
}
throw th;
}
}
private boolean AFInAppEventParameterName() {
if (!this.afDebugLog.getBoolean(AppsFlyerProperties.HTTP_CACHE, true)) {
int i3 = AFVersionDeclaration + 45;
afInfoLog = i3 % 128;
return (i3 % 2 != 0 ? '\'' : '#') != '\'';
}
int i10 = AFVersionDeclaration + 117;
afInfoLog = i10 % 128;
int i11 = i10 % 2;
return false;
}
public final AFc1oSDK<String> AFInAppEventType(@NonNull String str) {
AFc1oSDK<String> AFKeystoreWrapper2 = AFKeystoreWrapper(new AFc1sSDK(str, null, "GET", Collections.emptyMap(), false).AFInAppEventParameterName(ModuleDescriptor.MODULE_VERSION).afErrorLogForExcManagerOnly(), new AFc1iSDK());
int i3 = afInfoLog + 35;
AFVersionDeclaration = i3 % 128;
int i10 = i3 % 2;
return AFKeystoreWrapper2;
}
@NonNull
public final AFc1oSDK<String> valueOf(Map<String, Object> map) {
StringBuilder sb2 = new StringBuilder();
sb2.append(String.format(values, AppsFlyerLib.getInstance().getHostPrefix(), AFb1zSDK.AFInAppEventType().getHostName()));
sb2.append(this.AFInAppEventType.valueOf.values.getPackageName());
AFc1oSDK<String> AFKeystoreWrapper2 = AFKeystoreWrapper(new AFc1sSDK(sb2.toString(), new JSONObject(map).toString().getBytes(), "POST", Collections.emptyMap(), false), new AFc1iSDK());
int i3 = afInfoLog + 111;
AFVersionDeclaration = i3 % 128;
int i10 = i3 % 2;
return AFKeystoreWrapper2;
}
public final AFc1oSDK<String> values(AFe1fSDK aFe1fSDK) {
AFc1oSDK<String> AFKeystoreWrapper2 = AFKeystoreWrapper(new AFc1sSDK(aFe1fSDK.AFLogger, aFe1fSDK.valueOf(), "POST", Collections.emptyMap(), true), new AFc1iSDK());
int i3 = afInfoLog + 105;
AFVersionDeclaration = i3 % 128;
int i10 = i3 % 2;
return AFKeystoreWrapper2;
}
public final AFc1oSDK<Map<String, String>> AFInAppEventType(@NonNull String str, @NonNull String str2, @NonNull UUID uuid, @NonNull String str3) {
String obj = uuid.toString();
StringBuilder sb2 = new StringBuilder();
sb2.append(String.format(AFKeystoreWrapper, AppsFlyerLib.getInstance().getHostPrefix(), AFb1zSDK.AFInAppEventType().getHostName()));
sb2.append("/");
sb2.append(str);
sb2.append("?id=");
sb2.append(str2);
String obj2 = sb2.toString();
Map<String, Object> valueOf2 = valueOf();
String valueOf3 = String.valueOf(valueOf2.get("build_number"));
HashMap hashMap = new HashMap();
hashMap.put("Af-UUID", uuid.toString());
hashMap.put("Af-Meta-Sdk-Ver", valueOf3);
hashMap.put("Af-Meta-Counter", String.valueOf(valueOf2.get("counter")));
hashMap.put("Af-Meta-Model", String.valueOf(valueOf2.get("model")));
hashMap.put("Af-Meta-Platform", String.valueOf(valueOf2.get("platformextension")));
hashMap.put("Af-Meta-System-Version", String.valueOf(valueOf2.get("sdk")));
Object[] objArr = new Object[1];
valueOf(11 - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)), "\f\u0002\r\u0005\u0002\u0007\r\u0007\u000e\u0001\t\b", (byte) ((ViewConfiguration.getDoubleTapTimeout() >> 16) + 40), objArr);
hashMap.put(((String) objArr[0]).intern(), AFInAppEventType(str3, obj, "GET", obj, str, str2, valueOf3));
AFc1oSDK<Map<String, String>> AFKeystoreWrapper2 = AFKeystoreWrapper(new AFc1sSDK(obj2, null, "GET", hashMap, false), new AFc1fSDK());
int i3 = afInfoLog + 65;
AFVersionDeclaration = i3 % 128;
int i10 = i3 % 2;
return AFKeystoreWrapper2;
}
@NonNull
public final AFc1oSDK<String> valueOf(Map<String, Object> map, String str) {
StringBuilder sb2 = new StringBuilder();
sb2.append(String.format("https://%sviap.%s/api/v1/android/validate_purchase?app_id=", AppsFlyerLib.getInstance().getHostPrefix(), AFb1zSDK.AFInAppEventType().getHostName()));
sb2.append(this.AFInAppEventType.valueOf.values.getPackageName());
try {
AFc1oSDK<String> AFKeystoreWrapper2 = AFKeystoreWrapper(new AFc1sSDK(sb2.toString(), (byte[]) ((Class) AFa1vSDK.AFInAppEventType(TextUtils.getOffsetBefore(HttpTip.defaultEmpty, 0) + 37, 74 - Drawable.resolveOpacity(0, 0), (char) ((ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 17156))).getMethod("AFInAppEventParameterName", Map.class, String.class).invoke(null, map, str), "POST", Collections.emptyMap(), true), new AFc1iSDK());
int i3 = afInfoLog + 89;
AFVersionDeclaration = i3 % 128;
int i10 = i3 % 2;
return AFKeystoreWrapper2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause != null) {
throw cause;
}
throw th;
}
}
public final AFc1oSDK<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", HttpTip.defaultCode);
hashMap.put("uuid", obj);
hashMap.put("data", map);
hashMap.put("meta", valueOf());
if ((str2 != null ? '&' : 'I') != 'I') {
hashMap.put("brand_domain", str2);
int i3 = afInfoLog + 65;
AFVersionDeclaration = i3 % 128;
int i10 = i3 % 2;
}
String jSONObject = AFa1lSDK.AFInAppEventParameterName((Map<String, ?>) hashMap).toString();
HashMap hashMap2 = new HashMap();
Object[] objArr = new Object[1];
valueOf((AudioTrack.getMinVolume() > 0.0f ? 1 : (AudioTrack.getMinVolume() == 0.0f ? 0 : -1)) + 12, "\f\u0002\r\u0005\u0002\u0007\r\u0007\u000e\u0001\t\b", (byte) (40 - Color.argb(0, 0, 0, 0)), objArr);
hashMap2.put(((String) objArr[0]).intern(), AFInAppEventType(str3, obj, "POST", jSONObject));
StringBuilder sb2 = new StringBuilder();
sb2.append(String.format(AFKeystoreWrapper, AppsFlyerLib.getInstance().getHostPrefix(), AFb1zSDK.AFInAppEventType().getHostName()));
sb2.append("/");
sb2.append(str);
AFc1oSDK<String> AFInAppEventType = AFInAppEventType(new AFc1sSDK(sb2.toString(), jSONObject.getBytes(Charset.forName(Constants.ENCODING)), "POST", hashMap2, false), (AFc1hSDK) new AFc1iSDK(), true);
int i11 = afInfoLog + 107;
AFVersionDeclaration = i11 % 128;
int i12 = i11 % 2;
return AFInAppEventType;
}
@VisibleForTesting
private Map<String, Object> valueOf() {
HashMap hashMap = new HashMap();
hashMap.put("build_number", "6.10.0");
hashMap.put("counter", Integer.valueOf(this.AFInAppEventType.values.AFInAppEventType("appsFlyerCount", 0)));
hashMap.put("model", Build.MODEL);
Object[] objArr = new Object[1];
valueOf(TextUtils.lastIndexOf(HttpTip.defaultEmpty, '0', 0, 0) + 6, "\u000b\t\u0007\r㘒", (byte) (20 - Color.red(0)), objArr);
hashMap.put(((String) objArr[0]).intern(), Build.BRAND);
hashMap.put("sdk", Integer.toString(Build.VERSION.SDK_INT));
Context context = this.AFInAppEventType.valueOf.values;
hashMap.put("app_version_name", AFa1dSDK.values(context, context.getPackageName()));
hashMap.put("app_id", this.AFInAppEventType.valueOf.values.getPackageName());
hashMap.put("platformextension", new AFb1rSDK().values());
int i3 = afInfoLog + 59;
AFVersionDeclaration = i3 % 128;
if (!(i3 % 2 != 0)) {
int i10 = 91 / 0;
}
return hashMap;
}
public static void values() {
AFLogger = (char) 4;
afRDLog = new char[]{13820, 13769, 13807, 13811, 13825, 13819, 13821, 13824, 13800, 13751, 13816, 13823, 13822, 13806, 13787, 13812};
}
@NonNull
public final AFc1oSDK<String> AFInAppEventType(Map<String, Object> map, String str) {
StringBuilder sb2 = new StringBuilder();
sb2.append(String.format("https://%sars.%s/api/v2/android/validate_subscription?app_id=", AppsFlyerLib.getInstance().getHostPrefix(), AFb1zSDK.AFInAppEventType().getHostName()));
sb2.append(this.AFInAppEventType.valueOf.values.getPackageName());
try {
AFc1oSDK<String> AFKeystoreWrapper2 = AFKeystoreWrapper(new AFc1sSDK(sb2.toString(), (byte[]) ((Class) AFa1vSDK.AFInAppEventType(37 - Color.alpha(0), (ViewConfiguration.getKeyRepeatTimeout() >> 16) + 74, (char) (17157 - (ViewConfiguration.getEdgeSlop() >> 16)))).getMethod("AFInAppEventParameterName", Map.class, String.class).invoke(null, map, str), "POST", Collections.emptyMap(), true), new AFc1iSDK());
int i3 = afInfoLog + 115;
AFVersionDeclaration = i3 % 128;
if ((i3 % 2 == 0 ? '\n' : ')') == ')') {
return AFKeystoreWrapper2;
}
throw null;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause != null) {
throw cause;
}
throw th;
}
}
private static String AFInAppEventType(String str, String str2, String... strArr) {
ArrayList arrayList = new ArrayList(Arrays.asList(strArr));
arrayList.add(1, "v2");
String values2 = AFa1aSDK.values((String[]) arrayList.toArray(new String[0]));
StringBuilder sb2 = new StringBuilder();
sb2.append(str);
sb2.append(str2);
sb2.append("v2");
String values3 = AFa1aSDK.values(values2, sb2.toString());
int i3 = afInfoLog + 9;
AFVersionDeclaration = i3 % 128;
int i10 = i3 % 2;
return values3;
}
private static void valueOf(int i3, String str, byte b10, Object[] objArr) {
char[] cArr;
int i10;
String str2;
if (str != null) {
cArr = str.toCharArray();
}
char[] cArr2 = cArr;
synchronized (AFf1cSDK.afDebugLog) {
char[] cArr3 = afRDLog;
char c3 = AFLogger;
char[] cArr4 = new char[i3];
if (i3 % 2 != 0) {
i10 = i3 - 1;
cArr4[i10] = (char) (cArr2[i10] - b10);
} else {
i10 = i3;
}
if (i10 > 1) {
AFf1cSDK.AFInAppEventType = 0;
while (true) {
int i11 = AFf1cSDK.AFInAppEventType;
if (i11 >= i10) {
break;
}
AFf1cSDK.values = cArr2[i11];
AFf1cSDK.AFKeystoreWrapper = cArr2[AFf1cSDK.AFInAppEventType + 1];
if (AFf1cSDK.values == AFf1cSDK.AFKeystoreWrapper) {
cArr4[AFf1cSDK.AFInAppEventType] = (char) (AFf1cSDK.values - b10);
cArr4[AFf1cSDK.AFInAppEventType + 1] = (char) (AFf1cSDK.AFKeystoreWrapper - b10);
} else {
AFf1cSDK.valueOf = AFf1cSDK.values / c3;
AFf1cSDK.AFLogger = AFf1cSDK.values % c3;
AFf1cSDK.AFInAppEventParameterName = AFf1cSDK.AFKeystoreWrapper / c3;
AFf1cSDK.afErrorLog = AFf1cSDK.AFKeystoreWrapper % c3;
if (AFf1cSDK.AFLogger == AFf1cSDK.afErrorLog) {
AFf1cSDK.valueOf = ((AFf1cSDK.valueOf + c3) - 1) % c3;
AFf1cSDK.AFInAppEventParameterName = ((AFf1cSDK.AFInAppEventParameterName + c3) - 1) % c3;
int i12 = (AFf1cSDK.valueOf * c3) + AFf1cSDK.AFLogger;
int i13 = (AFf1cSDK.AFInAppEventParameterName * c3) + AFf1cSDK.afErrorLog;
int i14 = AFf1cSDK.AFInAppEventType;
cArr4[i14] = cArr3[i12];
cArr4[i14 + 1] = cArr3[i13];
} else if (AFf1cSDK.valueOf == AFf1cSDK.AFInAppEventParameterName) {
AFf1cSDK.AFLogger = ((AFf1cSDK.AFLogger + c3) - 1) % c3;
AFf1cSDK.afErrorLog = ((AFf1cSDK.afErrorLog + c3) - 1) % c3;
int i15 = (AFf1cSDK.valueOf * c3) + AFf1cSDK.AFLogger;
int i16 = (AFf1cSDK.AFInAppEventParameterName * c3) + AFf1cSDK.afErrorLog;
int i17 = AFf1cSDK.AFInAppEventType;
cArr4[i17] = cArr3[i15];
cArr4[i17 + 1] = cArr3[i16];
} else {
int i18 = (AFf1cSDK.valueOf * c3) + AFf1cSDK.afErrorLog;
int i19 = (AFf1cSDK.AFInAppEventParameterName * c3) + AFf1cSDK.AFLogger;
int i20 = AFf1cSDK.AFInAppEventType;
cArr4[i20] = cArr3[i18];
cArr4[i20 + 1] = cArr3[i19];
}
}
AFf1cSDK.AFInAppEventType += 2;
}
}
for (int i21 = 0; i21 < i3; i21++) {
cArr4[i21] = (char) (cArr4[i21] ^ 13722);
}
str2 = new String(cArr4);
}
objArr[0] = str2;
}
}