正在查看: PrestaMax v1.0.9 应用的 AFc1oSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: PrestaMax v1.0.9 应用的 AFc1oSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.appsflyer.internal;
import android.content.Context;
import android.graphics.Color;
import android.os.Build;
import android.text.TextUtils;
import android.view.Gravity;
import android.view.MotionEvent;
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 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.Intrinsics;
import kotlinx.coroutines.scheduling.WorkQueueKt;
import org.json.JSONObject;
public final class AFc1oSDK {
private static String AFInAppEventType = null;
public static String AFKeystoreWrapper = null;
private static int afErrorLog = 1;
private static int afInfoLog;
private static int afRDLog;
private static String values;
private final AFb1gSDK AFInAppEventParameterName;
private final AppsFlyerProperties AFLogger;
private final AFd1ySDK afDebugLog;
private final AFc1sSDK valueOf;
static {
values();
values = "https://%smonitorsdk.%s/remote-debug?app_id=";
AFKeystoreWrapper = "https://%sgcdsdk.%s/install_data/v5.0/";
AFInAppEventType = "https://%sonelink.%s/shortlink-sdk/v2";
int i = afErrorLog + 119;
afInfoLog = i % WorkQueueKt.BUFFER_CAPACITY;
int i2 = i % 2;
}
public AFc1oSDK(AFc1sSDK aFc1sSDK, AFb1gSDK aFb1gSDK, AppsFlyerProperties appsFlyerProperties, AFd1ySDK aFd1ySDK) {
this.valueOf = aFc1sSDK;
this.AFInAppEventParameterName = aFb1gSDK;
this.AFLogger = appsFlyerProperties;
this.afDebugLog = aFd1ySDK;
}
public static void values() {
afRDLog = 44;
}
public final com.appsflyer.internal.AFc1qSDK<java.lang.String> AFInAppEventParameterName(java.util.Map<java.lang.String, java.lang.Object> r16, java.lang.String r17, java.lang.String r18) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFc1oSDK.AFInAppEventParameterName(java.util.Map, java.lang.String, java.lang.String):com.appsflyer.internal.AFc1qSDK");
}
public final com.appsflyer.internal.AFc1qSDK<java.lang.String> AFInAppEventType(java.util.Map<java.lang.String, java.lang.Object> r11, java.lang.String r12, java.lang.String r13) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFc1oSDK.AFInAppEventType(java.util.Map, java.lang.String, java.lang.String):com.appsflyer.internal.AFc1qSDK");
}
public final AFc1qSDK<Map<String, Object>> AFKeystoreWrapper(String str, String str2) {
String packageName = this.AFInAppEventParameterName.values.values.getPackageName();
AFb1gSDK aFb1gSDK = this.AFInAppEventParameterName;
AFc1qSDK<Map<String, Object>> valueOf = valueOf(AFc1iSDK.valueOf(packageName, AFa1aSDK.valueOf(aFb1gSDK.values, aFb1gSDK.valueOf), str, str2), new AFc1mSDK());
int i = afInfoLog + 65;
afErrorLog = i % WorkQueueKt.BUFFER_CAPACITY;
if ((i % 2 == 0 ? 'L' : (char) 4) == 4) {
return valueOf;
}
throw null;
}
@NonNull
public final AFc1qSDK<String> valueOf(Map<String, Object> map) {
StringBuilder sb = new StringBuilder();
sb.append(String.format(values, AppsFlyerLib.getInstance().getHostPrefix(), AFa1bSDK.values().getHostName()));
sb.append(this.AFInAppEventParameterName.values.values.getPackageName());
AFc1qSDK<String> valueOf = valueOf(new AFb1zSDK(sb.toString(), new JSONObject(map).toString().getBytes(Charset.defaultCharset()), "POST", Collections.emptyMap(), false, false), new AFc1jSDK());
int i = afInfoLog + 39;
afErrorLog = i % WorkQueueKt.BUFFER_CAPACITY;
int i2 = i % 2;
return valueOf;
}
public final AFc1qSDK<String> values(AFa1tSDK aFa1tSDK, String str, AFc1zSDK aFc1zSDK) {
int i = afInfoLog + 25;
afErrorLog = i % WorkQueueKt.BUFFER_CAPACITY;
try {
if ((i % 2 == 0 ? (char) 11 : '1') != '1') {
try {
throw null;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause != null) {
throw cause;
}
throw th;
}
}
try {
AFc1qSDK<String> valueOf = valueOf(new AFb1zSDK(aFa1tSDK.AFLogger, (byte[]) ((Class) AFa1zSDK.AFKeystoreWrapper((char) (Color.green(0) + 59051), 36 - ExpandableListView.getPackedPositionChild(0L), Color.alpha(0) + 74)).getMethod("values", AFa1tSDK.class, String.class, AFc1zSDK.class).invoke(null, aFa1tSDK, str, aFc1zSDK), "POST", Collections.emptyMap(), aFa1tSDK.AFInAppEventType()), new AFc1jSDK());
int i2 = afErrorLog + 113;
afInfoLog = i2 % WorkQueueKt.BUFFER_CAPACITY;
if (!(i2 % 2 != 0)) {
return valueOf;
}
int i3 = 26 / 0;
return valueOf;
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 != null) {
throw cause2;
}
throw th2;
}
} catch (Exception e) {
AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: reflection init failed", e);
return null;
}
AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: reflection init failed", e);
return null;
}
public final AFc1qSDK<String> AFKeystoreWrapper(@NonNull String str) {
AFb1zSDK aFb1zSDK = new AFb1zSDK(str, null, "GET", Collections.emptyMap(), false);
aFb1zSDK.afErrorLog = 10000;
aFb1zSDK.values = false;
AFc1qSDK<String> valueOf = valueOf(aFb1zSDK, new AFc1jSDK());
int i = afErrorLog + 123;
afInfoLog = i % WorkQueueKt.BUFFER_CAPACITY;
int i2 = i % 2;
return valueOf;
}
private <T> AFc1qSDK<T> valueOf(AFb1zSDK aFb1zSDK, AFc1gSDK<T> aFc1gSDK) {
int i = afInfoLog + 59;
afErrorLog = i % WorkQueueKt.BUFFER_CAPACITY;
if ((i % 2 == 0 ? (char) 27 : (char) 31) == 31) {
return AFKeystoreWrapper(aFb1zSDK, aFc1gSDK, AFInAppEventType());
}
AFKeystoreWrapper(aFb1zSDK, aFc1gSDK, AFInAppEventType());
throw null;
}
private <T> AFc1qSDK<T> AFKeystoreWrapper(AFb1zSDK aFb1zSDK, AFc1gSDK<T> aFc1gSDK, boolean z) {
int i = afErrorLog + 115;
afInfoLog = i % WorkQueueKt.BUFFER_CAPACITY;
if ((i % 2 != 0 ? (char) 28 : '.') == '.') {
aFb1zSDK.valueOf = z;
return this.valueOf.values(aFb1zSDK, aFc1gSDK);
}
aFb1zSDK.valueOf = z;
this.valueOf.values(aFb1zSDK, aFc1gSDK);
throw null;
}
private Map<String, Object> valueOf() {
HashMap hashMap = new HashMap();
hashMap.put("build_number", "6.12.3");
hashMap.put("counter", Integer.valueOf(this.AFInAppEventParameterName.valueOf.values("appsFlyerCount", 0)));
hashMap.put("model", Build.MODEL);
Object[] objArr = new Object[1];
valueOf((ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 6, Gravity.getAbsoluteGravity(0, 0) + 147, "\ufffa\u000b\ufffb�\u0007", true, TextUtils.lastIndexOf("", '0') + 4, objArr);
hashMap.put(((String) objArr[0]).intern(), Build.BRAND);
hashMap.put("sdk", Integer.toString(Build.VERSION.SDK_INT));
Context context = this.AFInAppEventParameterName.values.values;
hashMap.put("app_version_name", AFa1fSDK.AFKeystoreWrapper(context, context.getPackageName()));
hashMap.put("app_id", this.AFInAppEventParameterName.values.values.getPackageName());
hashMap.put("platformextension", new AFb1xSDK().values());
int i = afErrorLog + 101;
afInfoLog = i % WorkQueueKt.BUFFER_CAPACITY;
if ((i % 2 != 0 ? 'M' : 'O') != 'M') {
return hashMap;
}
throw null;
}
@NonNull
public final AFc1qSDK<AFe1mSDK> AFInAppEventType(boolean z, boolean z2, @NonNull String str, int i) {
String str2;
String str3;
AFd1ySDK aFd1ySDK = this.afDebugLog;
Intrinsics.checkNotNullParameter(str, "");
String str4 = !(!z) ? AFd1ySDK.valueOf : AFd1ySDK.AFInAppEventType;
if (z2) {
int i2 = afErrorLog + 83;
afInfoLog = i2 % WorkQueueKt.BUFFER_CAPACITY;
if (i2 % 2 != 0) {
throw null;
}
str2 = "stg";
} else {
str2 = "";
}
kotlin.jvm.internal.nzpf nzpfVar = kotlin.jvm.internal.nzpf.f15069mwowwskti;
Object[] objArr = new Object[4];
if ((AFd1ySDK.AFKeystoreWrapper() ? '\b' : '`') != '\b') {
str3 = "";
} else {
int i3 = afInfoLog + 77;
afErrorLog = i3 % WorkQueueKt.BUFFER_CAPACITY;
if (i3 % 2 != 0) {
str3 = (String) aFd1ySDK.values.getValue();
} else {
throw null;
}
}
objArr[0] = str3;
objArr[1] = str2;
objArr[2] = aFd1ySDK.valueOf();
objArr[3] = str;
String format = String.format(str4, Arrays.copyOf(objArr, 4));
Intrinsics.checkNotNullExpressionValue(format, "");
AFb1zSDK aFb1zSDK = new AFb1zSDK(format, "GET");
aFb1zSDK.afErrorLog = 1500;
AFc1qSDK<AFe1mSDK> valueOf = valueOf(aFb1zSDK, new AFc1eSDK());
int i4 = afInfoLog + 15;
afErrorLog = i4 % WorkQueueKt.BUFFER_CAPACITY;
if (i4 % 2 != 0) {
return valueOf;
}
throw null;
}
private static String AFInAppEventParameterName(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 sb = new StringBuilder();
sb.append(str);
sb.append(str2);
sb.append("v2");
String AFInAppEventParameterName = AFc1rSDK.AFInAppEventParameterName(join, sb.toString());
int i = afInfoLog + 29;
afErrorLog = i % WorkQueueKt.BUFFER_CAPACITY;
int i2 = i % 2;
return AFInAppEventParameterName;
}
public final AFc1qSDK<String> AFInAppEventType(AFe1aSDK aFe1aSDK) {
AFc1qSDK<String> valueOf = valueOf(new AFb1zSDK(aFe1aSDK.AFLogger, aFe1aSDK.values(), "POST", Collections.emptyMap(), true), new AFc1jSDK());
int i = afErrorLog + 15;
afInfoLog = i % WorkQueueKt.BUFFER_CAPACITY;
if ((i % 2 != 0 ? (char) 22 : '\'') != 22) {
return valueOf;
}
throw null;
}
private static void valueOf(int i, int i2, String str, boolean z, int i3, Object[] objArr) {
String str2;
char[] cArr = str;
if (str != null) {
cArr = str.toCharArray();
}
char[] cArr2 = cArr;
synchronized (AFg1eSDK.valueOf) {
char[] cArr3 = new char[i];
AFg1eSDK.AFInAppEventParameterName = 0;
while (true) {
int i4 = AFg1eSDK.AFInAppEventParameterName;
if (i4 >= i) {
break;
}
AFg1eSDK.values = cArr2[i4];
cArr3[AFg1eSDK.AFInAppEventParameterName] = (char) (AFg1eSDK.values + i2);
int i5 = AFg1eSDK.AFInAppEventParameterName;
cArr3[i5] = (char) (cArr3[i5] - afRDLog);
AFg1eSDK.AFInAppEventParameterName = i5 + 1;
}
if (i3 > 0) {
AFg1eSDK.AFInAppEventType = i3;
char[] cArr4 = new char[i];
System.arraycopy(cArr3, 0, cArr4, 0, i);
int i6 = AFg1eSDK.AFInAppEventType;
System.arraycopy(cArr4, 0, cArr3, i - i6, i6);
int i7 = AFg1eSDK.AFInAppEventType;
System.arraycopy(cArr4, i7, cArr3, 0, i - i7);
}
if (z) {
char[] cArr5 = new char[i];
AFg1eSDK.AFInAppEventParameterName = 0;
while (true) {
int i8 = AFg1eSDK.AFInAppEventParameterName;
if (i8 >= i) {
break;
}
cArr5[i8] = cArr3[(i - i8) - 1];
AFg1eSDK.AFInAppEventParameterName = i8 + 1;
}
cArr3 = cArr5;
}
str2 = new String(cArr3);
}
objArr[0] = str2;
}
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", valueOf());
if ((str2 != null ? (char) 23 : 'O') != 'O') {
int i = afErrorLog + 81;
afInfoLog = i % WorkQueueKt.BUFFER_CAPACITY;
int i2 = i % 2;
hashMap.put("brand_domain", str2);
}
String jSONObject = AFa1uSDK.valueOf((Map<String, ?>) hashMap).toString();
HashMap hashMap2 = new HashMap();
Object[] objArr = new Object[1];
valueOf((ViewConfiguration.getFadingEdgeLength() >> 16) + 12, MotionEvent.axisFromString("") + 141, "\u0014\u0001\u000e\u0007\t\ufff3ᅪ\u0006£\u0005\u0012\u0015", true, 9 - Color.green(0), objArr);
hashMap2.put(((String) objArr[0]).intern(), AFInAppEventParameterName(str3, obj, "POST", jSONObject));
StringBuilder sb = new StringBuilder();
sb.append(String.format(AFInAppEventType, AppsFlyerLib.getInstance().getHostPrefix(), AFa1bSDK.values().getHostName()));
sb.append("/");
sb.append(str);
AFc1qSDK<String> AFKeystoreWrapper2 = AFKeystoreWrapper(new AFb1zSDK(sb.toString(), jSONObject.getBytes(Charset.defaultCharset()), "POST", hashMap2, false), new AFc1jSDK(), true);
int i3 = afInfoLog + 3;
afErrorLog = i3 % WorkQueueKt.BUFFER_CAPACITY;
if (!(i3 % 2 == 0)) {
return AFKeystoreWrapper2;
}
throw null;
}
public final AFc1qSDK<Map<String, String>> AFInAppEventType(@NonNull String str, @NonNull String str2, @NonNull UUID uuid, @NonNull String str3) {
String obj = uuid.toString();
StringBuilder sb = new StringBuilder();
sb.append(String.format(AFInAppEventType, AppsFlyerLib.getInstance().getHostPrefix(), AFa1bSDK.values().getHostName()));
sb.append("/");
sb.append(str);
sb.append("?id=");
sb.append(str2);
String obj2 = sb.toString();
Map<String, Object> valueOf = valueOf();
String valueOf2 = String.valueOf(valueOf.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(valueOf.get("counter")));
hashMap.put("Af-Meta-Model", String.valueOf(valueOf.get("model")));
hashMap.put("Af-Meta-Platform", String.valueOf(valueOf.get("platformextension")));
hashMap.put("Af-Meta-System-Version", String.valueOf(valueOf.get("sdk")));
Object[] objArr = new Object[1];
valueOf(View.resolveSizeAndState(0, 0, 0) + 12, 140 - Gravity.getAbsoluteGravity(0, 0), "\u0014\u0001\u000e\u0007\t\ufff3ᅪ\u0006£\u0005\u0012\u0015", true, View.MeasureSpec.makeMeasureSpec(0, 0) + 9, objArr);
hashMap.put(((String) objArr[0]).intern(), AFInAppEventParameterName(str3, obj, "GET", obj, str, str2, valueOf2));
AFc1qSDK<Map<String, String>> valueOf3 = valueOf(new AFb1zSDK(obj2, null, "GET", hashMap, false), new AFc1fSDK());
int i = afInfoLog + 23;
afErrorLog = i % WorkQueueKt.BUFFER_CAPACITY;
int i2 = i % 2;
return valueOf3;
}
private boolean AFInAppEventType() {
int i = afInfoLog + 87;
afErrorLog = i % WorkQueueKt.BUFFER_CAPACITY;
int i2 = i % 2;
if (this.AFLogger.getBoolean(AppsFlyerProperties.HTTP_CACHE, true)) {
return false;
}
int i3 = afInfoLog + 51;
afErrorLog = i3 % WorkQueueKt.BUFFER_CAPACITY;
int i4 = i3 % 2;
return true;
}
}