正在查看: Crédito Express v1.0.3 应用的 AFc1pSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Crédito Express v1.0.3 应用的 AFc1pSDK.java JAVA 源代码文件
本页面展示 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.text.TextUtils;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.AppsFlyerProperties;
import com.appsflyer.CreateOneLinkHttpTask;
import com.google.android.gms.common.ConnectionResult;
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.l;
import okhttp3.HttpUrl;
import org.json.JSONObject;
public final class AFc1pSDK {
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;
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 i7 = AFVersionDeclaration + 99;
afInfoLog = i7 % 128;
int i8 = i7 % 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 z6) {
aFc1sSDK.valueOf(z6);
CreateOneLinkHttpTask createOneLinkHttpTask = this.AFInAppEventParameterName;
AFc1oSDK<T> aFc1oSDK = new AFc1oSDK<>(aFc1sSDK, createOneLinkHttpTask.AFInAppEventParameterName, createOneLinkHttpTask.AFInAppEventType, aFc1hSDK);
int i7 = AFVersionDeclaration + 77;
afInfoLog = i7 % 128;
if (i7 % 2 == 0) {
return aFc1oSDK;
}
throw null;
}
private <T> AFc1oSDK<T> AFKeystoreWrapper(AFc1sSDK aFc1sSDK, AFc1hSDK<T> aFc1hSDK) {
int i7 = AFVersionDeclaration + 21;
afInfoLog = i7 % 128;
if (i7 % 2 != 0) {
AFInAppEventType(aFc1sSDK, aFc1hSDK, AFInAppEventParameterName());
throw null;
}
AFc1oSDK<T> AFInAppEventType = AFInAppEventType(aFc1sSDK, aFc1hSDK, AFInAppEventParameterName());
int i8 = afInfoLog + 97;
AFVersionDeclaration = i8 % 128;
int i9 = i8 % 2;
return AFInAppEventType;
}
public final AFc1oSDK<AFb1oSDK> AFInAppEventParameterName(boolean z6, boolean z7, String str, int i7) {
String str2;
String str3;
AFc1cSDK aFc1cSDK = this.afErrorLog;
kotlin.jvm.internal.h.f(str, "");
if (z6) {
int i8 = afInfoLog + 49;
AFVersionDeclaration = i8 % 128;
int i9 = i8 % 2;
str2 = AFc1cSDK.values;
int i10 = AFVersionDeclaration + 39;
afInfoLog = i10 % 128;
int i11 = i10 % 2;
} else {
str2 = AFc1cSDK.valueOf;
}
String str4 = z7 ? "stg" : HttpUrl.FRAGMENT_ENCODE_SET;
l lVar = l.f8348a;
Object[] objArr = new Object[4];
if (AFc1cSDK.AFInAppEventType()) {
str3 = (String) aFc1cSDK.AFInAppEventType.getValue();
} else {
int i12 = afInfoLog + 47;
AFVersionDeclaration = i12 % 128;
int i13 = i12 % 2;
str3 = HttpUrl.FRAGMENT_ENCODE_SET;
}
objArr[0] = str3;
objArr[1] = str4;
objArr[2] = aFc1cSDK.AFKeystoreWrapper();
objArr[3] = str;
String format = String.format(str2, Arrays.copyOf(objArr, 4));
kotlin.jvm.internal.h.e(format, "");
AFc1sSDK aFc1sSDK = new AFc1sSDK(format, "GET");
aFc1sSDK.AFInAppEventParameterName(ConnectionResult.DRIVE_EXTERNAL_STORAGE_REQUIRED);
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 i7 = AFVersionDeclaration + 83;
afInfoLog = i7 % 128;
if (i7 % 2 == 0) {
return AFKeystoreWrapper2;
}
throw null;
}
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 i7 = afInfoLog + 45;
AFVersionDeclaration = i7 % 128;
if (i7 % 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 i7 = AFVersionDeclaration + 45;
afInfoLog = i7 % 128;
return i7 % 2 == 0;
}
int i8 = AFVersionDeclaration + 117;
afInfoLog = i8 % 128;
int i9 = i8 % 2;
return false;
}
public final AFc1oSDK<String> AFInAppEventType(String str) {
AFc1oSDK<String> AFKeystoreWrapper2 = AFKeystoreWrapper(new AFc1sSDK(str, null, "GET", Collections.emptyMap(), false).AFInAppEventParameterName(10000).afErrorLogForExcManagerOnly(), new AFc1iSDK());
int i7 = afInfoLog + 35;
AFVersionDeclaration = i7 % 128;
int i8 = i7 % 2;
return AFKeystoreWrapper2;
}
public final AFc1oSDK<String> valueOf(Map<String, Object> map) {
StringBuilder sb = new StringBuilder();
sb.append(String.format(values, AppsFlyerLib.getInstance().getHostPrefix(), AFb1zSDK.AFInAppEventType().getHostName()));
sb.append(this.AFInAppEventType.valueOf.values.getPackageName());
AFc1oSDK<String> AFKeystoreWrapper2 = AFKeystoreWrapper(new AFc1sSDK(sb.toString(), new JSONObject(map).toString().getBytes(), "POST", Collections.emptyMap(), false), new AFc1iSDK());
int i7 = afInfoLog + 111;
AFVersionDeclaration = i7 % 128;
int i8 = i7 % 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 i7 = afInfoLog + 105;
AFVersionDeclaration = i7 % 128;
int i8 = i7 % 2;
return AFKeystoreWrapper2;
}
public final AFc1oSDK<Map<String, String>> AFInAppEventType(String str, String str2, UUID uuid, String str3) {
String obj = uuid.toString();
StringBuilder sb = new StringBuilder();
sb.append(String.format(AFKeystoreWrapper, AppsFlyerLib.getInstance().getHostPrefix(), AFb1zSDK.AFInAppEventType().getHostName()));
sb.append("/");
sb.append(str);
sb.append("?id=");
sb.append(str2);
String obj2 = sb.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 i7 = afInfoLog + 65;
AFVersionDeclaration = i7 % 128;
int i8 = i7 % 2;
return AFKeystoreWrapper2;
}
public final AFc1oSDK<String> valueOf(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(), AFb1zSDK.AFInAppEventType().getHostName()));
sb.append(this.AFInAppEventType.valueOf.values.getPackageName());
try {
AFc1oSDK<String> AFKeystoreWrapper2 = AFKeystoreWrapper(new AFc1sSDK(sb.toString(), (byte[]) ((Class) AFa1vSDK.AFInAppEventType(TextUtils.getOffsetBefore(HttpUrl.FRAGMENT_ENCODE_SET, 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 i7 = afInfoLog + 89;
AFVersionDeclaration = i7 % 128;
int i8 = i7 % 2;
return AFKeystoreWrapper2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause != null) {
throw cause;
}
throw th;
}
}
public final AFc1oSDK<String> values(String str, Map<String, String> map, String str2, UUID uuid, 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", valueOf());
if (str2 != null) {
hashMap.put("brand_domain", str2);
int i7 = afInfoLog + 65;
AFVersionDeclaration = i7 % 128;
int i8 = i7 % 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 sb = new StringBuilder();
sb.append(String.format(AFKeystoreWrapper, AppsFlyerLib.getInstance().getHostPrefix(), AFb1zSDK.AFInAppEventType().getHostName()));
sb.append("/");
sb.append(str);
AFc1oSDK<String> AFInAppEventType = AFInAppEventType(new AFc1sSDK(sb.toString(), jSONObject.getBytes(Charset.forName("UTF-8")), "POST", hashMap2, false), (AFc1hSDK) new AFc1iSDK(), true);
int i9 = afInfoLog + 107;
AFVersionDeclaration = i9 % 128;
int i10 = i9 % 2;
return AFInAppEventType;
}
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(HttpUrl.FRAGMENT_ENCODE_SET, '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 i7 = afInfoLog + 59;
AFVersionDeclaration = i7 % 128;
if (i7 % 2 == 0) {
int i8 = 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};
}
public final AFc1oSDK<String> AFInAppEventType(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(), AFb1zSDK.AFInAppEventType().getHostName()));
sb.append(this.AFInAppEventType.valueOf.values.getPackageName());
try {
AFc1oSDK<String> AFKeystoreWrapper2 = AFKeystoreWrapper(new AFc1sSDK(sb.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 i7 = afInfoLog + 115;
AFVersionDeclaration = i7 % 128;
if (i7 % 2 != 0) {
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 sb = new StringBuilder();
sb.append(str);
sb.append(str2);
sb.append("v2");
String values3 = AFa1aSDK.values(values2, sb.toString());
int i7 = afInfoLog + 9;
AFVersionDeclaration = i7 % 128;
int i8 = i7 % 2;
return values3;
}
private static void valueOf(int i7, String str, byte b7, Object[] objArr) {
int i8;
String str2;
char[] cArr = str;
if (str != null) {
cArr = str.toCharArray();
}
char[] cArr2 = cArr;
synchronized (AFf1cSDK.afDebugLog) {
try {
char[] cArr3 = afRDLog;
char c7 = AFLogger;
char[] cArr4 = new char[i7];
if (i7 % 2 != 0) {
i8 = i7 - 1;
cArr4[i8] = (char) (cArr2[i8] - b7);
} else {
i8 = i7;
}
if (i8 > 1) {
AFf1cSDK.AFInAppEventType = 0;
while (true) {
int i9 = AFf1cSDK.AFInAppEventType;
if (i9 >= i8) {
break;
}
AFf1cSDK.values = cArr2[i9];
AFf1cSDK.AFKeystoreWrapper = cArr2[AFf1cSDK.AFInAppEventType + 1];
if (AFf1cSDK.values == AFf1cSDK.AFKeystoreWrapper) {
cArr4[AFf1cSDK.AFInAppEventType] = (char) (AFf1cSDK.values - b7);
cArr4[AFf1cSDK.AFInAppEventType + 1] = (char) (AFf1cSDK.AFKeystoreWrapper - b7);
} else {
AFf1cSDK.valueOf = AFf1cSDK.values / c7;
AFf1cSDK.AFLogger = AFf1cSDK.values % c7;
AFf1cSDK.AFInAppEventParameterName = AFf1cSDK.AFKeystoreWrapper / c7;
AFf1cSDK.afErrorLog = AFf1cSDK.AFKeystoreWrapper % c7;
if (AFf1cSDK.AFLogger == AFf1cSDK.afErrorLog) {
AFf1cSDK.valueOf = ((AFf1cSDK.valueOf + c7) - 1) % c7;
AFf1cSDK.AFInAppEventParameterName = ((AFf1cSDK.AFInAppEventParameterName + c7) - 1) % c7;
int i10 = (AFf1cSDK.valueOf * c7) + AFf1cSDK.AFLogger;
int i11 = (AFf1cSDK.AFInAppEventParameterName * c7) + AFf1cSDK.afErrorLog;
int i12 = AFf1cSDK.AFInAppEventType;
cArr4[i12] = cArr3[i10];
cArr4[i12 + 1] = cArr3[i11];
} else if (AFf1cSDK.valueOf == AFf1cSDK.AFInAppEventParameterName) {
AFf1cSDK.AFLogger = ((AFf1cSDK.AFLogger + c7) - 1) % c7;
AFf1cSDK.afErrorLog = ((AFf1cSDK.afErrorLog + c7) - 1) % c7;
int i13 = (AFf1cSDK.valueOf * c7) + AFf1cSDK.AFLogger;
int i14 = (AFf1cSDK.AFInAppEventParameterName * c7) + AFf1cSDK.afErrorLog;
int i15 = AFf1cSDK.AFInAppEventType;
cArr4[i15] = cArr3[i13];
cArr4[i15 + 1] = cArr3[i14];
} else {
int i16 = (AFf1cSDK.valueOf * c7) + AFf1cSDK.afErrorLog;
int i17 = (AFf1cSDK.AFInAppEventParameterName * c7) + AFf1cSDK.AFLogger;
int i18 = AFf1cSDK.AFInAppEventType;
cArr4[i18] = cArr3[i16];
cArr4[i18 + 1] = cArr3[i17];
}
}
AFf1cSDK.AFInAppEventType += 2;
}
}
for (int i19 = 0; i19 < i7; i19++) {
cArr4[i19] = (char) (cArr4[i19] ^ 13722);
}
str2 = new String(cArr4);
} catch (Throwable th) {
throw th;
}
}
objArr[0] = str2;
}
}