Kufar v3.2.0版本的 MD5 值为:6a4d203db1c561c7e3bcd50d23fed59f
以下内容为反编译后的 AFc1nSDK.java 源代码,内容仅作参考
package com.appsflyer.internal;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.VisibleForTesting;
import androidx.browser.trusted.sharing.ShareTarget;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.AppsFlyerProperties;
import com.appsflyer.internal.AFc1cSDK;
import com.mbridge.msdk.playercommon.exoplayer2.C;
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.t0;
import org.json.JSONObject;
public final class AFc1nSDK {
@VisibleForTesting
private static String AFInAppEventParameterName = null;
public static String AFInAppEventType = null;
private static int AFLogger = 1;
private static int afDebugLog;
private static long afInfoLog;
@VisibleForTesting
private static String valueOf;
private final AFc1qSDK AFKeystoreWrapper;
private final AFc1cSDK afErrorLog;
private final AppsFlyerProperties afRDLog;
private final AFc1ySDK values;
static {
valueOf();
valueOf = "https://%smonitorsdk.%s/remote-debug?app_id=";
AFInAppEventType = "https://%sgcdsdk.%s/install_data/v5.0/";
AFInAppEventParameterName = "https://%sonelink.%s/shortlink-sdk/v2";
int i11 = AFLogger + 15;
afDebugLog = i11 % 128;
int i12 = i11 % 2;
}
public AFc1nSDK(AFc1qSDK aFc1qSDK, AFc1ySDK aFc1ySDK, AppsFlyerProperties appsFlyerProperties, AFc1cSDK aFc1cSDK) {
this.AFKeystoreWrapper = aFc1qSDK;
this.values = aFc1ySDK;
this.afRDLog = appsFlyerProperties;
this.afErrorLog = aFc1cSDK;
}
public static void valueOf() {
afInfoLog = 2099369931031732758L;
}
public final AFc1pSDK<String> AFInAppEventParameterName(@NonNull String str) {
AFb1zSDK aFb1zSDK = new AFb1zSDK(str, null, ShareTarget.METHOD_GET, Collections.emptyMap(), false);
aFb1zSDK.afDebugLog = 10000;
aFb1zSDK.AFInAppEventType = false;
AFc1pSDK<String> AFInAppEventParameterName2 = AFInAppEventParameterName(aFb1zSDK, new AFc1iSDK());
int i11 = afDebugLog + 23;
AFLogger = i11 % 128;
int i12 = i11 % 2;
return AFInAppEventParameterName2;
}
public final AFc1pSDK<String> AFInAppEventType(@NonNull String str, @NonNull Map<String, String> map, @Nullable String str2, @NonNull UUID uuid, @NonNull String str3) {
char c11;
String obj = uuid.toString();
HashMap hashMap = new HashMap();
hashMap.put("ttl", "-1");
hashMap.put("uuid", obj);
hashMap.put("data", map);
hashMap.put("meta", AFInAppEventParameterName());
if (str2 != null) {
c11 = 'L';
} else {
c11 = 21;
}
if (c11 == 'L') {
int i11 = AFLogger + 83;
afDebugLog = i11 % 128;
int i12 = i11 % 2;
hashMap.put("brand_domain", str2);
}
String jSONObject = AFa1tSDK.valueOf(hashMap).toString();
HashMap hashMap2 = new HashMap();
Object[] objArr = new Object[1];
valueOf("扗芃ꏝ삜\ue1b3ێ⟊䓒旺諨\uab1a젂", (TypedValue.complexToFraction(0, 0.0f, 0.0f) > 0.0f ? 1 : (TypedValue.complexToFraction(0, 0.0f, 0.0f) == 0.0f ? 0 : -1)) + 57587, objArr);
hashMap2.put(((String) objArr[0]).intern(), valueOf(str3, obj, ShareTarget.METHOD_POST, jSONObject));
StringBuilder sb2 = new StringBuilder();
sb2.append(String.format(AFInAppEventParameterName, AppsFlyerLib.getInstance().getHostPrefix(), AFa1dSDK.valueOf().getHostName()));
sb2.append("/");
sb2.append(str);
AFc1pSDK<String> valueOf2 = valueOf(new AFb1zSDK(sb2.toString(), jSONObject.getBytes(Charset.forName(C.UTF8_NAME)), ShareTarget.METHOD_POST, hashMap2, false), (AFc1hSDK) new AFc1iSDK(), true);
int i13 = afDebugLog + 17;
AFLogger = i13 % 128;
int i14 = i13 % 2;
return valueOf2;
}
@NonNull
public final AFc1pSDK<String> AFKeystoreWrapper(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(), AFa1dSDK.valueOf().getHostName()));
sb2.append(this.values.AFInAppEventType.AFKeystoreWrapper.getPackageName());
try {
AFc1pSDK<String> AFInAppEventParameterName2 = AFInAppEventParameterName(new AFb1zSDK(sb2.toString(), (byte[]) ((Class) AFa1wSDK.AFInAppEventType(Gravity.getAbsoluteGravity(0, 0) + 74, (char) (Color.argb(0, 0, 0, 0) + 28425), View.resolveSize(0, 0) + 36)).getMethod("AFInAppEventParameterName", Map.class, String.class).invoke(null, map, str), ShareTarget.METHOD_POST, Collections.emptyMap(), true), new AFc1iSDK());
int i11 = AFLogger + 115;
afDebugLog = i11 % 128;
int i12 = i11 % 2;
return AFInAppEventParameterName2;
} catch (Throwable th2) {
Throwable cause = th2.getCause();
if (cause != null) {
throw cause;
}
throw th2;
}
}
@NonNull
public final AFc1pSDK<AFe1oSDK> values(boolean z11, boolean z12, @NonNull String str, int i11) {
String str2;
String str3;
AFc1cSDK aFc1cSDK = this.afErrorLog;
kotlin.jvm.internal.s.j(str, "");
if ((z11 ? '.' : 'a') != 'a') {
int i12 = afDebugLog + 111;
AFLogger = i12 % 128;
if (i12 % 2 != 0) {
str2 = AFc1cSDK.AFKeystoreWrapper;
} else {
AFc1cSDK.Companion companion = AFc1cSDK.INSTANCE;
throw null;
}
} else {
str2 = AFc1cSDK.AFInAppEventParameterName;
}
if (z12) {
int i13 = afDebugLog + 69;
AFLogger = i13 % 128;
int i14 = i13 % 2;
str3 = "stg";
} else {
str3 = "";
}
t0 t0Var = t0.f82529a;
Object[] objArr = new Object[4];
objArr[0] = AFc1cSDK.AFInAppEventParameterName() ? (String) aFc1cSDK.AFKeystoreWrapper.getValue() : "";
objArr[1] = str3;
objArr[2] = aFc1cSDK.AFKeystoreWrapper();
objArr[3] = str;
String format = String.format(str2, Arrays.copyOf(objArr, 4));
kotlin.jvm.internal.s.i(format, "");
AFb1zSDK aFb1zSDK = new AFb1zSDK(format, ShareTarget.METHOD_GET);
aFb1zSDK.afDebugLog = 1500;
AFc1pSDK<AFe1oSDK> AFInAppEventParameterName2 = AFInAppEventParameterName(aFb1zSDK, new AFc1gSDK());
int i15 = afDebugLog + 63;
AFLogger = i15 % 128;
if (i15 % 2 != 0) {
return AFInAppEventParameterName2;
}
throw null;
}
@NonNull
public final AFc1pSDK<String> valueOf(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(), AFa1dSDK.valueOf().getHostName()));
sb2.append(this.values.AFInAppEventType.AFKeystoreWrapper.getPackageName());
try {
AFc1pSDK<String> AFInAppEventParameterName2 = AFInAppEventParameterName(new AFb1zSDK(sb2.toString(), (byte[]) ((Class) AFa1wSDK.AFInAppEventType((TypedValue.complexToFloat(0) > 0.0f ? 1 : (TypedValue.complexToFloat(0) == 0.0f ? 0 : -1)) + 74, (char) (Drawable.resolveOpacity(0, 0) + 28425), 36 - (ViewConfiguration.getMaximumFlingVelocity() >> 16))).getMethod("AFInAppEventParameterName", Map.class, String.class).invoke(null, map, str), ShareTarget.METHOD_POST, Collections.emptyMap(), true), new AFc1iSDK());
int i11 = AFLogger + 123;
afDebugLog = i11 % 128;
if (i11 % 2 == 0) {
return AFInAppEventParameterName2;
}
throw null;
} catch (Throwable th2) {
Throwable cause = th2.getCause();
if (cause != null) {
throw cause;
}
throw th2;
}
}
private <T> AFc1pSDK<T> AFInAppEventParameterName(AFb1zSDK aFb1zSDK, AFc1hSDK<T> aFc1hSDK) {
int i11 = afDebugLog + 35;
AFLogger = i11 % 128;
int i12 = i11 % 2;
AFc1pSDK<T> valueOf2 = valueOf(aFb1zSDK, aFc1hSDK, AFKeystoreWrapper());
int i13 = afDebugLog + 73;
AFLogger = i13 % 128;
int i14 = i13 % 2;
return valueOf2;
}
@VisibleForTesting
private Map<String, Object> AFInAppEventParameterName() {
HashMap hashMap = new HashMap();
hashMap.put("build_number", "6.11.0");
hashMap.put("counter", Integer.valueOf(this.values.values.AFInAppEventType("appsFlyerCount", 0)));
hashMap.put("model", Build.MODEL);
Object[] objArr = new Object[1];
valueOf("扴쵃㰹漍\udeee", 44839 - View.MeasureSpec.getMode(0), objArr);
hashMap.put(((String) objArr[0]).intern(), Build.BRAND);
hashMap.put("sdk", Integer.toString(Build.VERSION.SDK_INT));
Context context = this.values.AFInAppEventType.AFKeystoreWrapper;
hashMap.put("app_version_name", AFa1fSDK.AFInAppEventType(context, context.getPackageName()));
hashMap.put("app_id", this.values.AFInAppEventType.AFKeystoreWrapper.getPackageName());
hashMap.put("platformextension", new AFb1ySDK().valueOf());
int i11 = AFLogger + 25;
afDebugLog = i11 % 128;
if ((i11 % 2 != 0 ? '`' : '=') == '=') {
return hashMap;
}
throw null;
}
public final AFc1pSDK<Map<String, String>> AFKeystoreWrapper(@NonNull String str, @NonNull String str2, @NonNull UUID uuid, @NonNull String str3) {
String obj = uuid.toString();
StringBuilder sb2 = new StringBuilder();
sb2.append(String.format(AFInAppEventParameterName, AppsFlyerLib.getInstance().getHostPrefix(), AFa1dSDK.valueOf().getHostName()));
sb2.append("/");
sb2.append(str);
sb2.append("?id=");
sb2.append(str2);
String obj2 = sb2.toString();
Map<String, Object> AFInAppEventParameterName2 = AFInAppEventParameterName();
String valueOf2 = String.valueOf(AFInAppEventParameterName2.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(AFInAppEventParameterName2.get("counter")));
hashMap.put("Af-Meta-Model", String.valueOf(AFInAppEventParameterName2.get("model")));
hashMap.put("Af-Meta-Platform", String.valueOf(AFInAppEventParameterName2.get("platformextension")));
hashMap.put("Af-Meta-System-Version", String.valueOf(AFInAppEventParameterName2.get("sdk")));
Object[] objArr = new Object[1];
valueOf("扗芃ꏝ삜\ue1b3ێ⟊䓒旺諨\uab1a젂", (ViewConfiguration.getEdgeSlop() >> 16) + 57587, objArr);
hashMap.put(((String) objArr[0]).intern(), valueOf(str3, obj, ShareTarget.METHOD_GET, obj, str, str2, valueOf2));
AFc1pSDK<Map<String, String>> AFInAppEventParameterName3 = AFInAppEventParameterName(new AFb1zSDK(obj2, null, ShareTarget.METHOD_GET, hashMap, false), new AFc1fSDK());
int i11 = afDebugLog + 45;
AFLogger = i11 % 128;
if (i11 % 2 == 0) {
int i12 = 61 / 0;
}
return AFInAppEventParameterName3;
}
@NonNull
public final AFc1pSDK<String> valueOf(Map<String, Object> map) {
StringBuilder sb2 = new StringBuilder();
sb2.append(String.format(valueOf, AppsFlyerLib.getInstance().getHostPrefix(), AFa1dSDK.valueOf().getHostName()));
sb2.append(this.values.AFInAppEventType.AFKeystoreWrapper.getPackageName());
AFc1pSDK<String> AFInAppEventParameterName2 = AFInAppEventParameterName(new AFb1zSDK(sb2.toString(), new JSONObject(map).toString().getBytes(), ShareTarget.METHOD_POST, Collections.emptyMap(), false), new AFc1iSDK());
int i11 = afDebugLog + 25;
AFLogger = i11 % 128;
int i12 = i11 % 2;
return AFInAppEventParameterName2;
}
public final AFc1pSDK<String> values(AFa1sSDK aFa1sSDK, String str, AFc1zSDK aFc1zSDK) {
try {
AFc1pSDK<String> AFInAppEventParameterName2 = AFInAppEventParameterName(new AFb1zSDK(aFa1sSDK.afInfoLog, (byte[]) ((Class) AFa1wSDK.AFInAppEventType(74 - (KeyEvent.getMaxKeyCode() >> 16), (char) (28425 - Color.green(0)), (ViewConfiguration.getDoubleTapTimeout() >> 16) + 36)).getMethod("AFKeystoreWrapper", AFa1sSDK.class, String.class, AFc1zSDK.class).invoke(null, aFa1sSDK, str, aFc1zSDK), ShareTarget.METHOD_POST, Collections.emptyMap(), aFa1sSDK.valueOf()), new AFc1iSDK());
int i11 = afDebugLog + 79;
AFLogger = i11 % 128;
int i12 = i11 % 2;
return AFInAppEventParameterName2;
} catch (Throwable th2) {
Throwable cause = th2.getCause();
if (cause != null) {
throw cause;
}
throw th2;
}
}
public final AFc1pSDK<Map<String, Object>> values(String str, String str2) {
AFc1pSDK<Map<String, Object>> AFInAppEventParameterName2 = AFInAppEventParameterName(AFc1mSDK.AFInAppEventParameterName(this.values.AFInAppEventType.AFKeystoreWrapper.getPackageName(), AFb1xSDK.values(new WeakReference(this.values.AFInAppEventType.AFKeystoreWrapper)), str, str2), new AFc1kSDK());
int i11 = afDebugLog + 37;
AFLogger = i11 % 128;
if (i11 % 2 != 0) {
return AFInAppEventParameterName2;
}
throw null;
}
public final AFc1pSDK<String> valueOf(AFe1aSDK aFe1aSDK) {
AFc1pSDK<String> AFInAppEventParameterName2 = AFInAppEventParameterName(new AFb1zSDK(aFe1aSDK.afInfoLog, aFe1aSDK.AFInAppEventType(), ShareTarget.METHOD_POST, Collections.emptyMap(), true), new AFc1iSDK());
int i11 = afDebugLog + 59;
AFLogger = i11 % 128;
int i12 = i11 % 2;
return AFInAppEventParameterName2;
}
private boolean AFKeystoreWrapper() {
if (!this.afRDLog.getBoolean(AppsFlyerProperties.HTTP_CACHE, true)) {
int i11 = AFLogger + 107;
afDebugLog = i11 % 128;
int i12 = i11 % 2;
return true;
}
int i13 = afDebugLog + 9;
AFLogger = i13 % 128;
if ((i13 % 2 == 0 ? ';' : (char) 30) != ';') {
return false;
}
throw null;
}
private static String valueOf(String str, String str2, String... strArr) {
ArrayList arrayList = new ArrayList(Arrays.asList(strArr));
arrayList.add(1, "v2");
String AFInAppEventType2 = AFa1aSDK.AFInAppEventType((String[]) arrayList.toArray(new String[0]));
StringBuilder sb2 = new StringBuilder();
sb2.append(str);
sb2.append(str2);
sb2.append("v2");
String AFInAppEventType3 = AFa1aSDK.AFInAppEventType(AFInAppEventType2, sb2.toString());
int i11 = AFLogger + 49;
afDebugLog = i11 % 128;
int i12 = i11 % 2;
return AFInAppEventType3;
}
private <T> AFc1pSDK<T> valueOf(AFb1zSDK aFb1zSDK, AFc1hSDK<T> aFc1hSDK, boolean z11) {
aFb1zSDK.valueOf = z11;
AFc1qSDK aFc1qSDK = this.AFKeystoreWrapper;
AFc1pSDK<T> aFc1pSDK = new AFc1pSDK<>(aFb1zSDK, aFc1qSDK.AFKeystoreWrapper, aFc1qSDK.valueOf, aFc1hSDK);
int i11 = afDebugLog + 101;
AFLogger = i11 % 128;
int i12 = i11 % 2;
return aFc1pSDK;
}
private static void valueOf(String str, int i11, Object[] objArr) {
char[] cArr;
String str2;
if (str != null) {
cArr = str.toCharArray();
}
char[] cArr2 = cArr;
synchronized (AFg1mSDK.AFKeystoreWrapper) {
AFg1mSDK.values = i11;
char[] cArr3 = new char[cArr2.length];
AFg1mSDK.AFInAppEventParameterName = 0;
while (true) {
int i12 = AFg1mSDK.AFInAppEventParameterName;
if (i12 < cArr2.length) {
cArr3[i12] = (char) ((cArr2[i12] ^ (AFg1mSDK.values * i12)) ^ afInfoLog);
AFg1mSDK.AFInAppEventParameterName++;
} else {
str2 = new String(cArr3);
}
}
}
objArr[0] = str2;
}
}