Warkop v5.73.0版本的 MD5 值为:a4330ec2d6f5e146f59fc7622f3cdb45
以下内容为反编译后的 AFc1oSDK.java 源代码,内容仅作参考
package com.appsflyer.internal;
import android.content.Context;
import android.graphics.Color;
import android.media.AudioTrack;
import android.os.Build;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import androidx.annotation.NonNull;
import com.appsflyer.AFLogger;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.AppsFlyerProperties;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.inappstory.sdk.network.NetworkHandler;
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.u0;
import kotlin.text.Regex;
import org.jmrtd.cbeff.ISO781611;
import org.json.JSONObject;
public final class AFc1oSDK {
public static String AFInAppEventParameterName = null;
private static int afDebugLog = 0;
private static long afErrorLog = 0;
private static int afRDLog = 1;
private static String valueOf;
private static String values;
private final AFc1nSDK AFInAppEventType;
private final AFb1gSDK AFKeystoreWrapper;
private final AppsFlyerProperties AFLogger;
private final AFc1dSDK afInfoLog;
static {
AFKeystoreWrapper();
values = "https://%smonitorsdk.%s/remote-debug?app_id=";
AFInAppEventParameterName = "https://%sgcdsdk.%s/install_data/v5.0/";
valueOf = "https://%sonelink.%s/shortlink-sdk/v2";
int i15 = afDebugLog + ISO781611.SMT_TAG;
afRDLog = i15 % 128;
int i16 = i15 % 2;
}
public AFc1oSDK(AFc1nSDK aFc1nSDK, AFb1gSDK aFb1gSDK, AppsFlyerProperties appsFlyerProperties, AFc1dSDK aFc1dSDK) {
this.AFInAppEventType = aFc1nSDK;
this.AFKeystoreWrapper = aFb1gSDK;
this.AFLogger = appsFlyerProperties;
this.afInfoLog = aFc1dSDK;
}
static void AFKeystoreWrapper() {
afErrorLog = -7639686596028283975L;
}
public final AFc1qSDK<String> AFInAppEventParameterName(@NonNull String str) {
AFa1aSDK aFa1aSDK = new AFa1aSDK(str, null, NetworkHandler.GET, Collections.emptyMap(), false);
aFa1aSDK.afDebugLog = 10000;
aFa1aSDK.AFInAppEventType = false;
AFc1qSDK<String> valueOf2 = valueOf(aFa1aSDK, new AFc1iSDK());
int i15 = afDebugLog + 53;
afRDLog = i15 % 128;
int i16 = i15 % 2;
return valueOf2;
}
public final AFc1qSDK<String> AFInAppEventType(@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("uuid", obj);
hashMap.put("data", map);
hashMap.put("meta", AFInAppEventType());
if (str2 != null) {
int i15 = afRDLog + 89;
afDebugLog = i15 % 128;
int i16 = i15 % 2;
hashMap.put("brand_domain", str2);
}
String jSONObject = AFa1rSDK.AFInAppEventType((Map<String, ?>) hashMap).toString();
HashMap hashMap2 = new HashMap();
Object[] objArr = new Object[1];
values("싊슋语䠲떙廷㋆ᖏ챇髈⎡ҙ\udf76꧆ბ㙡", (ViewConfiguration.getMaximumFlingVelocity() >> 16) + 1, objArr);
hashMap2.put(((String) objArr[0]).intern(), AFKeystoreWrapper(str3, obj, NetworkHandler.POST, jSONObject));
StringBuilder sb5 = new StringBuilder();
sb5.append(String.format(valueOf, AppsFlyerLib.getInstance().getHostPrefix(), AFa1eSDK.valueOf().getHostName()));
sb5.append("/");
sb5.append(str);
AFc1qSDK<String> valueOf2 = valueOf(new AFa1aSDK(sb5.toString(), jSONObject.getBytes(Charset.defaultCharset()), NetworkHandler.POST, hashMap2, false), new AFc1iSDK(), true);
int i17 = afDebugLog + 7;
afRDLog = i17 % 128;
int i18 = i17 % 2;
return valueOf2;
}
@NonNull
public final AFc1qSDK<String> valueOf(Map<String, Object> map) {
StringBuilder sb5 = new StringBuilder();
sb5.append(String.format(values, AppsFlyerLib.getInstance().getHostPrefix(), AFa1eSDK.valueOf().getHostName()));
sb5.append(this.AFKeystoreWrapper.valueOf.AFInAppEventType.getPackageName());
AFc1qSDK<String> valueOf2 = valueOf(new AFa1aSDK(sb5.toString(), new JSONObject(map).toString().getBytes(Charset.defaultCharset()), NetworkHandler.POST, Collections.emptyMap(), false, false), new AFc1iSDK());
int i15 = afDebugLog + 49;
afRDLog = i15 % 128;
int i16 = i15 % 2;
return valueOf2;
}
public final AFc1qSDK<String> values(Map<String, Object> map, String str, String str2) {
String str3;
int i15 = afRDLog + 83;
afDebugLog = i15 % 128;
try {
if (i15 % 2 == 0) {
try {
byte[] bArr = (byte[]) ((Class) AFa1vSDK.AFInAppEventParameterName((char) (12254 - TextUtils.getOffsetBefore("", 0)), 37 - Color.blue(0), 74 - (ViewConfiguration.getKeyRepeatTimeout() >> 16))).getMethod("values", Map.class, String.class).invoke(null, map, str);
AFf1fSDK aFf1fSDK = new AFf1fSDK(this.AFKeystoreWrapper);
if (str2 != null && str2.length() != 0 && !new Regex("4.?(\\d+)?.?(\\d+)").g(str2) && !new Regex("3.?(\\d+)?.?(\\d+)").g(str2)) {
int i16 = afDebugLog + 85;
afRDLog = i16 % 128;
int i17 = i16 % 2;
str3 = AFf1fSDK.onResponseNative;
if (str3 == null) {
int i18 = afRDLog + 27;
afDebugLog = i18 % 128;
if (i18 % 2 == 0) {
str3 = aFf1fSDK.AFInAppEventType.valueOf(AFf1fSDK.AFLogger$LogLevel);
} else {
aFf1fSDK.AFInAppEventType.valueOf(AFf1fSDK.AFLogger$LogLevel);
throw null;
}
}
} else {
str3 = AFf1fSDK.onInstallConversionFailureNative;
if (str3 == null) {
str3 = aFf1fSDK.AFInAppEventType.valueOf(AFf1fSDK.afDebugLog);
}
}
StringBuilder sb5 = new StringBuilder();
sb5.append(str3);
sb5.append(aFf1fSDK.values.valueOf.AFInAppEventType.getPackageName());
return valueOf(new AFa1aSDK(aFf1fSDK.AFInAppEventParameterName(sb5.toString()), bArr, NetworkHandler.POST, Collections.emptyMap(), true), new AFc1iSDK());
} catch (Throwable th4) {
Throwable cause = th4.getCause();
if (cause != null) {
throw cause;
}
throw th4;
}
}
try {
throw null;
} catch (Throwable th5) {
Throwable cause2 = th5.getCause();
if (cause2 != null) {
throw cause2;
}
throw th5;
}
} catch (Exception e15) {
AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: reflection init failed", e15);
return null;
}
AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: reflection init failed", e15);
return null;
}
public final AFc1qSDK<String> AFKeystoreWrapper(AFa1qSDK aFa1qSDK, String str, AFb1bSDK aFb1bSDK) {
int i15 = afDebugLog + 67;
afRDLog = i15 % 128;
int i16 = i15 % 2;
try {
AFc1qSDK<String> valueOf2 = valueOf(new AFa1aSDK(aFa1qSDK.afRDLog, (byte[]) ((Class) AFa1vSDK.AFInAppEventParameterName((char) (12254 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))), 37 - (KeyEvent.getMaxKeyCode() >> 16), 74 - (ViewConfiguration.getLongPressTimeout() >> 16))).getMethod("AFKeystoreWrapper", AFa1qSDK.class, String.class, AFb1bSDK.class).invoke(null, aFa1qSDK, str, aFb1bSDK), NetworkHandler.POST, Collections.emptyMap(), aFa1qSDK.values()), new AFc1iSDK());
int i17 = afDebugLog + ISO781611.SMT_TAG;
afRDLog = i17 % 128;
int i18 = i17 % 2;
return valueOf2;
} catch (Throwable th4) {
try {
Throwable cause = th4.getCause();
if (cause != null) {
throw cause;
}
throw th4;
} catch (Exception e15) {
AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: reflection init failed", e15);
return null;
}
}
}
public final AFc1qSDK<String> AFInAppEventParameterName(Map<String, Object> map, String str, String str2) {
String str3;
int i15 = afRDLog + 109;
afDebugLog = i15 % 128;
try {
if (i15 % 2 == 0) {
try {
byte[] bArr = (byte[]) ((Class) AFa1vSDK.AFInAppEventParameterName((char) (12254 - View.resolveSizeAndState(0, 0, 0)), (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 38, (ViewConfiguration.getPressedStateDuration() >> 16) + 74)).getMethod("values", Map.class, String.class).invoke(null, map, str);
AFf1fSDK aFf1fSDK = new AFf1fSDK(this.AFKeystoreWrapper);
if (str2 != null && str2.length() != 0 && !new Regex("4.?(\\d+)?.?(\\d+)").g(str2) && !new Regex("3.?(\\d+)?.?(\\d+)").g(str2)) {
str3 = AFf1fSDK.onAttributionFailureNative;
if (str3 == null) {
int i16 = afRDLog + 31;
afDebugLog = i16 % 128;
if (i16 % 2 == 0) {
str3 = aFf1fSDK.AFInAppEventType.valueOf(AFf1fSDK.AFVersionDeclaration);
} else {
aFf1fSDK.AFInAppEventType.valueOf(AFf1fSDK.AFVersionDeclaration);
throw null;
}
}
} else {
int i17 = afRDLog + 7;
afDebugLog = i17 % 128;
if (i17 % 2 == 0) {
str3 = AFf1fSDK.init;
if (str3 == null) {
str3 = aFf1fSDK.AFInAppEventType.valueOf(AFf1fSDK.afInfoLog);
}
} else {
String str4 = AFf1fSDK.AFKeystoreWrapper;
throw null;
}
}
StringBuilder sb5 = new StringBuilder();
sb5.append(str3);
sb5.append(aFf1fSDK.values.valueOf.AFInAppEventType.getPackageName());
return valueOf(new AFa1aSDK(aFf1fSDK.AFInAppEventParameterName(sb5.toString()), bArr, NetworkHandler.POST, Collections.emptyMap(), true), new AFc1iSDK());
} catch (Throwable th4) {
Throwable cause = th4.getCause();
if (cause != null) {
throw cause;
}
throw th4;
}
}
try {
throw null;
} catch (Throwable th5) {
Throwable cause2 = th5.getCause();
if (cause2 != null) {
throw cause2;
}
throw th5;
}
} catch (Exception e15) {
AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: reflection init failed", e15);
return null;
}
AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: reflection init failed", e15);
return null;
}
private static String AFKeystoreWrapper(String str, String str2, String... strArr) {
ArrayList arrayList = new ArrayList(Arrays.asList(strArr));
arrayList.add(1, "v2");
String join = TextUtils.join("\u2063", (String[]) arrayList.toArray(new String[0]));
StringBuilder sb5 = new StringBuilder();
sb5.append(str);
sb5.append(str2);
sb5.append("v2");
String valueOf2 = AFc1nSDK.valueOf(join, sb5.toString());
int i15 = afRDLog + 67;
afDebugLog = i15 % 128;
int i16 = i15 % 2;
return valueOf2;
}
private <T> AFc1qSDK<T> valueOf(AFa1aSDK aFa1aSDK, AFc1hSDK<T> aFc1hSDK) {
AFc1qSDK<T> valueOf2;
int i15 = afDebugLog + 49;
afRDLog = i15 % 128;
if (i15 % 2 == 0) {
valueOf2 = valueOf(aFa1aSDK, aFc1hSDK, valueOf());
int i16 = 1 / 0;
} else {
valueOf2 = valueOf(aFa1aSDK, aFc1hSDK, valueOf());
}
int i17 = afDebugLog + 111;
afRDLog = i17 % 128;
int i18 = i17 % 2;
return valueOf2;
}
private boolean valueOf() {
int i15 = afRDLog + 7;
afDebugLog = i15 % 128;
int i16 = i15 % 2;
if (!(!this.AFLogger.getBoolean(AppsFlyerProperties.HTTP_CACHE, true))) {
return false;
}
int i17 = afDebugLog + 37;
afRDLog = i17 % 128;
int i18 = i17 % 2;
return true;
}
public final AFc1qSDK<Map<String, String>> AFInAppEventType(@NonNull String str, @NonNull String str2, @NonNull UUID uuid, @NonNull String str3) {
String obj = uuid.toString();
StringBuilder sb5 = new StringBuilder();
sb5.append(String.format(valueOf, AppsFlyerLib.getInstance().getHostPrefix(), AFa1eSDK.valueOf().getHostName()));
sb5.append("/");
sb5.append(str);
sb5.append("?id=");
sb5.append(str2);
String obj2 = sb5.toString();
Map<String, Object> AFInAppEventType = AFInAppEventType();
String valueOf2 = String.valueOf(AFInAppEventType.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(AFInAppEventType.get("counter")));
hashMap.put("Af-Meta-Model", String.valueOf(AFInAppEventType.get("model")));
hashMap.put("Af-Meta-Platform", String.valueOf(AFInAppEventType.get("platformextension")));
hashMap.put("Af-Meta-System-Version", String.valueOf(AFInAppEventType.get("sdk")));
Object[] objArr = new Object[1];
values("싊슋语䠲떙廷㋆ᖏ챇髈⎡ҙ\udf76꧆ბ㙡", (ViewConfiguration.getTouchSlop() >> 8) + 1, objArr);
hashMap.put(((String) objArr[0]).intern(), AFKeystoreWrapper(str3, obj, NetworkHandler.GET, obj, str, str2, valueOf2));
AFc1qSDK<Map<String, String>> valueOf3 = valueOf(new AFa1aSDK(obj2, null, NetworkHandler.GET, hashMap, false), new AFc1mSDK());
int i15 = afRDLog + 75;
afDebugLog = i15 % 128;
if (i15 % 2 == 0) {
return valueOf3;
}
throw null;
}
private <T> AFc1qSDK<T> valueOf(AFa1aSDK aFa1aSDK, AFc1hSDK<T> aFc1hSDK, boolean z15) {
aFa1aSDK.values = z15;
AFc1nSDK aFc1nSDK = this.AFInAppEventType;
AFc1qSDK<T> aFc1qSDK = new AFc1qSDK<>(aFa1aSDK, aFc1nSDK.valueOf, aFc1nSDK.AFKeystoreWrapper, aFc1hSDK);
int i15 = afDebugLog + 111;
afRDLog = i15 % 128;
int i16 = i15 % 2;
return aFc1qSDK;
}
public final AFc1qSDK<String> values(AFe1fSDK aFe1fSDK) {
AFc1qSDK<String> valueOf2 = valueOf(new AFa1aSDK(aFe1fSDK.afRDLog, aFe1fSDK.AFKeystoreWrapper(), NetworkHandler.POST, Collections.emptyMap(), true), new AFc1iSDK());
int i15 = afDebugLog + 83;
afRDLog = i15 % 128;
int i16 = i15 % 2;
return valueOf2;
}
@NonNull
public final AFc1qSDK<AFe1qSDK> values(boolean z15, boolean z16, @NonNull String str, int i15) {
String str2;
AFc1dSDK aFc1dSDK = this.afInfoLog;
if (z15) {
str2 = AFc1dSDK.AFKeystoreWrapper;
int i16 = afRDLog + 81;
afDebugLog = i16 % 128;
int i17 = i16 % 2;
} else {
str2 = AFc1dSDK.AFInAppEventParameterName;
}
String str3 = "";
String str4 = z16 ^ true ? "" : "stg";
u0 u0Var = u0.f85785a;
Object[] objArr = new Object[4];
if (AFc1dSDK.AFInAppEventType()) {
str3 = (String) aFc1dSDK.AFInAppEventType.getValue();
int i18 = afRDLog + 29;
afDebugLog = i18 % 128;
int i19 = i18 % 2;
}
objArr[0] = str3;
objArr[1] = str4;
objArr[2] = aFc1dSDK.AFInAppEventParameterName();
objArr[3] = str;
AFa1aSDK aFa1aSDK = new AFa1aSDK(String.format(str2, Arrays.copyOf(objArr, 4)), NetworkHandler.GET);
aFa1aSDK.afDebugLog = ConnectionResult.DRIVE_EXTERNAL_STORAGE_REQUIRED;
return valueOf(aFa1aSDK, new AFc1jSDK());
}
private Map<String, Object> AFInAppEventType() {
HashMap hashMap = new HashMap();
hashMap.put("build_number", "6.12.2");
hashMap.put("counter", Integer.valueOf(this.AFKeystoreWrapper.AFInAppEventType.values("appsFlyerCount", 0)));
hashMap.put("model", Build.MODEL);
Object[] objArr = new Object[1];
values("슌싮㖽\uf676黩䓋᧺ྎ찌", Color.red(0) + 1, objArr);
hashMap.put(((String) objArr[0]).intern(), Build.BRAND);
hashMap.put("sdk", Integer.toString(Build.VERSION.SDK_INT));
Context context = this.AFKeystoreWrapper.valueOf.AFInAppEventType;
hashMap.put("app_version_name", AFa1fSDK.AFKeystoreWrapper(context, context.getPackageName()));
hashMap.put("app_id", this.AFKeystoreWrapper.valueOf.AFInAppEventType.getPackageName());
hashMap.put("platformextension", new AFb1xSDK().AFInAppEventParameterName());
int i15 = afRDLog + 17;
afDebugLog = i15 % 128;
int i16 = i15 % 2;
return hashMap;
}
public final AFc1qSDK<Map<String, Object>> values(String str, String str2) {
String packageName = this.AFKeystoreWrapper.valueOf.AFInAppEventType.getPackageName();
AFb1gSDK aFb1gSDK = this.AFKeystoreWrapper;
AFc1qSDK<Map<String, Object>> valueOf2 = valueOf(AFc1pSDK.AFInAppEventParameterName(packageName, AFb1zSDK.valueOf(aFb1gSDK.valueOf, aFb1gSDK.AFInAppEventType), str, str2), new AFc1rSDK());
int i15 = afDebugLog + 55;
afRDLog = i15 % 128;
if (i15 % 2 == 0) {
int i16 = 86 / 0;
}
return valueOf2;
}
private static void values(String str, int i15, Object[] objArr) {
char[] cArr;
String str2;
if (str != null) {
cArr = str.toCharArray();
}
char[] cArr2 = cArr;
synchronized (AFg1rSDK.AFInAppEventParameterName) {
try {
char[] AFInAppEventType = AFg1rSDK.AFInAppEventType(afErrorLog, cArr2, i15);
AFg1rSDK.AFInAppEventType = 4;
while (true) {
int i16 = AFg1rSDK.AFInAppEventType;
if (i16 < AFInAppEventType.length) {
AFg1rSDK.AFKeystoreWrapper = i16 - 4;
AFInAppEventType[AFg1rSDK.AFInAppEventType] = (char) ((AFInAppEventType[r1] ^ AFInAppEventType[r1 % 4]) ^ (AFg1rSDK.AFKeystoreWrapper * afErrorLog));
AFg1rSDK.AFInAppEventType++;
} else {
str2 = new String(AFInAppEventType, 4, AFInAppEventType.length - 4);
}
}
} catch (Throwable th4) {
throw th4;
}
}
objArr[0] = str2;
}
}