正在查看: AdaModal v1.4.0 应用的 AFe1zSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: AdaModal v1.4.0 应用的 AFe1zSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.appsflyer.internal;
import android.graphics.Color;
import android.media.AudioTrack;
import android.os.Build;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.View;
import android.view.ViewConfiguration;
import com.appsflyer.AFLogger;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.AppsFlyerProperties;
import com.common.fine.utils.okhttp.utils.HttpHelper;
import com.google.android.gms.common.ConnectionResult;
import java.lang.reflect.Method;
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 kotlin.jvm.internal.StringCompanionObject;
public final class AFe1zSDK {
private static int $10 = 0;
private static int $11 = 1;
private static String AFInAppEventType = null;
private static int AFLogger = 0;
private static int e = 1;
private static int registerClient;
public static String values;
private final AFe1vSDK AFInAppEventParameterName;
private final AFd1rSDK AFKeystoreWrapper;
private final AFe1jSDK unregisterClient;
private final AppsFlyerProperties valueOf;
static void AFInAppEventType() {
registerClient = 23381860;
}
static {
AFInAppEventType();
values = "https://%sgcdsdk.%s/install_data/v5.0/";
AFInAppEventType = "https://%sonelink.%s/shortlink-sdk/v2";
int i = AFLogger + 47;
e = i % 128;
if (i % 2 == 0) {
int i2 = 35 / 0;
}
}
public AFe1zSDK(AFe1vSDK aFe1vSDK, AFd1rSDK aFd1rSDK, AppsFlyerProperties appsFlyerProperties, AFe1jSDK aFe1jSDK) {
this.AFInAppEventParameterName = aFe1vSDK;
this.AFKeystoreWrapper = aFd1rSDK;
this.valueOf = appsFlyerProperties;
this.unregisterClient = aFe1jSDK;
}
public final com.appsflyer.internal.AFe1xSDK<java.lang.String> AFInAppEventParameterName(java.util.Map<java.lang.String, java.lang.Object> r12, java.lang.String r13, java.lang.String r14) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFe1zSDK.AFInAppEventParameterName(java.util.Map, java.lang.String, java.lang.String):com.appsflyer.internal.AFe1xSDK");
}
public final com.appsflyer.internal.AFe1xSDK<java.lang.String> values(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.AFe1zSDK.values(java.util.Map, java.lang.String, java.lang.String):com.appsflyer.internal.AFe1xSDK");
}
public final AFe1xSDK<AFh1nSDK> values(boolean z, boolean z2, String str, int i) {
String str2;
String str3;
String str4;
int i2 = 2 % 2;
int i3 = e + 65;
AFLogger = i3 % 128;
int i4 = i3 % 2;
AFe1jSDK aFe1jSDK = this.unregisterClient;
Intrinsics.checkNotNullParameter(str, "");
if (z) {
int i5 = e + 121;
AFLogger = i5 % 128;
int i6 = i5 % 2;
str2 = AFe1jSDK.AFInAppEventParameterName;
} else {
str2 = AFe1jSDK.AFKeystoreWrapper;
}
if (z2) {
int i7 = e + 53;
AFLogger = i7 % 128;
str3 = "stg";
if (i7 % 2 != 0) {
int i8 = 45 / 0;
}
} else {
str3 = "";
}
StringCompanionObject stringCompanionObject = StringCompanionObject.INSTANCE;
if (!AFe1jSDK.values()) {
str4 = "";
} else {
int i9 = AFLogger + 59;
e = i9 % 128;
if (i9 % 2 == 0) {
str4 = (String) aFe1jSDK.AFInAppEventParameterName.getValue();
int i10 = 76 / 0;
} else {
str4 = (String) aFe1jSDK.AFInAppEventParameterName.getValue();
}
}
String format = String.format(str2, Arrays.copyOf(new Object[]{str4, str3, aFe1jSDK.valueOf(), str}, 4));
Intrinsics.checkNotNullExpressionValue(format, "");
AFe1mSDK aFe1mSDK = new AFe1mSDK(format, HttpHelper.GET);
aFe1mSDK.AFLogger = ConnectionResult.DRIVE_EXTERNAL_STORAGE_REQUIRED;
return AFKeystoreWrapper(aFe1mSDK, new AFe1lSDK());
}
public final AFe1xSDK<String> valueOf(AFa1pSDK aFa1pSDK, String str, AFd1lSDK aFd1lSDK) {
int i = 2 % 2;
int i2 = AFLogger + 119;
e = i2 % 128;
int i3 = i2 % 2;
try {
Object[] objArr = {aFa1pSDK, str, aFd1lSDK};
Object obj = AFa1zSDK.afDebugLog.get(384742647);
if (obj == null) {
obj = ((Class) AFa1zSDK.valueOf((AudioTrack.getMaxVolume() > 0.0f ? 1 : (AudioTrack.getMaxVolume() == 0.0f ? 0 : -1)) + 72, (char) ((ViewConfiguration.getJumpTapTimeout() >> 16) + 41260), 35 - TextUtils.indexOf((CharSequence) "", '0', 0, 0))).getMethod("AFInAppEventParameterName", AFa1pSDK.class, String.class, AFd1lSDK.class);
AFa1zSDK.afDebugLog.put(384742647, obj);
}
AFe1xSDK<String> AFKeystoreWrapper = AFKeystoreWrapper(new AFe1mSDK(aFa1pSDK.unregisterClient, (byte[]) ((Method) obj).invoke(null, objArr), HttpHelper.POST, Collections.EMPTY_MAP, aFa1pSDK.AFKeystoreWrapper()), new AFe1nSDK());
int i4 = e + 103;
AFLogger = i4 % 128;
int i5 = i4 % 2;
return AFKeystoreWrapper;
} catch (Throwable th) {
try {
Throwable cause = th.getCause();
if (cause != null) {
throw cause;
}
throw th;
} catch (Throwable th2) {
AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: reflection init failed", th2);
return null;
}
}
}
public final AFe1xSDK<Map<String, Object>> AFInAppEventType(String str, String str2) {
int i = 2 % 2;
String packageName = this.AFKeystoreWrapper.AFKeystoreWrapper.AFInAppEventParameterName.getPackageName();
AFd1rSDK aFd1rSDK = this.AFKeystoreWrapper;
AFe1xSDK<Map<String, Object>> AFKeystoreWrapper = AFKeystoreWrapper(AFe1qSDK.AFInAppEventType(packageName, AFb1lSDK.values(aFd1rSDK.AFKeystoreWrapper, aFd1rSDK.AFInAppEventParameterName), str, str2), new AFe1rSDK());
int i2 = e + 39;
AFLogger = i2 % 128;
if (i2 % 2 == 0) {
return AFKeystoreWrapper;
}
throw null;
}
public final AFe1xSDK<String> AFKeystoreWrapper(AFh1tSDK aFh1tSDK) {
int i = 2 % 2;
AFe1xSDK<String> AFKeystoreWrapper = AFKeystoreWrapper(new AFe1mSDK(aFh1tSDK.unregisterClient, aFh1tSDK.values(), HttpHelper.POST, Collections.EMPTY_MAP, true), new AFe1nSDK());
int i2 = e + 77;
AFLogger = i2 % 128;
int i3 = i2 % 2;
return AFKeystoreWrapper;
}
public final AFe1xSDK<String> AFInAppEventType(String str, Map<String, String> map, String str2, UUID uuid, String str3) {
int i = 2 % 2;
String obj = uuid.toString();
HashMap hashMap = new HashMap();
hashMap.put("ttl", "-1");
hashMap.put("uuid", obj);
hashMap.put("data", map);
hashMap.put("meta", values());
if (str2 != null) {
int i2 = e + 79;
AFLogger = i2 % 128;
if (i2 % 2 != 0) {
hashMap.put("brand_domain", str2);
throw null;
}
hashMap.put("brand_domain", str2);
}
String jSONObject = AFa1oSDK.values((Map<String, ?>) hashMap).toString();
HashMap hashMap2 = new HashMap();
Object[] objArr = new Object[1];
a(12 - Color.blue(0), false, View.MeasureSpec.makeMeasureSpec(0, 0) + 4, 118 - (ViewConfiguration.getScrollBarSize() >> 8), "\u0014\u0015\u0012\u0005£\u0006ᅪ\ufff3\t\u0007\u000e\u0001", objArr);
hashMap2.put(((String) objArr[0]).intern(), AFKeystoreWrapper(str3, obj, HttpHelper.POST, jSONObject));
StringBuilder sb = new StringBuilder();
sb.append(String.format(AFInAppEventType, AppsFlyerLib.getInstance().getHostPrefix(), AFb1vSDK.valueOf().getHostName()));
sb.append("/");
sb.append(str);
AFe1xSDK<String> AFKeystoreWrapper = AFKeystoreWrapper(new AFe1mSDK(sb.toString(), jSONObject.getBytes(Charset.defaultCharset()), HttpHelper.POST, hashMap2, false), (AFe1kSDK) new AFe1nSDK(), true);
int i3 = e + 23;
AFLogger = i3 % 128;
int i4 = i3 % 2;
return AFKeystoreWrapper;
}
public final AFe1xSDK<Map<String, String>> values(String str, String str2, UUID uuid, String str3) {
int i = 2 % 2;
String obj = uuid.toString();
StringBuilder sb = new StringBuilder();
sb.append(String.format(AFInAppEventType, AppsFlyerLib.getInstance().getHostPrefix(), AFb1vSDK.valueOf().getHostName()));
sb.append("/");
sb.append(str);
sb.append("?id=");
sb.append(str2);
String obj2 = sb.toString();
Map<String, Object> values2 = values();
String valueOf = String.valueOf(values2.get("build_number"));
HashMap hashMap = new HashMap();
hashMap.put("Af-UUID", uuid.toString());
hashMap.put("Af-Meta-Sdk-Ver", valueOf);
hashMap.put("Af-Meta-Counter", String.valueOf(values2.get("counter")));
hashMap.put("Af-Meta-Model", String.valueOf(values2.get("model")));
hashMap.put("Af-Meta-Platform", String.valueOf(values2.get("platformextension")));
hashMap.put("Af-Meta-System-Version", String.valueOf(values2.get("sdk")));
Object[] objArr = new Object[1];
a((SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) + 11, false, 4 - (ViewConfiguration.getScrollDefaultDelay() >> 16), 118 - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24), "\u0014\u0015\u0012\u0005£\u0006ᅪ\ufff3\t\u0007\u000e\u0001", objArr);
hashMap.put(((String) objArr[0]).intern(), AFKeystoreWrapper(str3, obj, HttpHelper.GET, obj, str, str2, valueOf));
AFe1xSDK<Map<String, String>> AFKeystoreWrapper = AFKeystoreWrapper(new AFe1mSDK(obj2, null, HttpHelper.GET, hashMap, false), new AFe1oSDK());
int i2 = AFLogger + 9;
e = i2 % 128;
int i3 = i2 % 2;
return AFKeystoreWrapper;
}
public final AFe1xSDK<String> AFInAppEventParameterName(String str) {
int i = 2 % 2;
AFe1mSDK aFe1mSDK = new AFe1mSDK(str, null, HttpHelper.GET, Collections.EMPTY_MAP, false);
aFe1mSDK.AFLogger = 10000;
aFe1mSDK.AFKeystoreWrapper = false;
AFe1xSDK<String> AFKeystoreWrapper = AFKeystoreWrapper(aFe1mSDK, new AFe1nSDK());
int i2 = e + 45;
AFLogger = i2 % 128;
int i3 = i2 % 2;
return AFKeystoreWrapper;
}
public final AFe1ySDK AFKeystoreWrapper(Map<String, Object> map, String str) {
int i = 2 % 2;
int i2 = AFLogger + 21;
e = i2 % 128;
int i3 = i2 % 2;
try {
try {
Object[] objArr = {map, str};
Object obj = AFa1zSDK.afDebugLog.get(982724414);
if (obj == null) {
obj = ((Class) AFa1zSDK.valueOf(73 - TextUtils.getOffsetBefore("", 0), (char) ((AudioTrack.getMaxVolume() > 0.0f ? 1 : (AudioTrack.getMaxVolume() == 0.0f ? 0 : -1)) + 41259), TextUtils.indexOf("", "", 0, 0) + 36)).getMethod("values", Map.class, String.class);
AFa1zSDK.afDebugLog.put(982724414, obj);
}
byte[] bArr = (byte[]) ((Method) obj).invoke(null, objArr);
if (bArr != null) {
return new AFe1ySDK(this.AFKeystoreWrapper, bArr);
}
AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: failed to create bytes", new IllegalArgumentException("failed to create bytes from proxyData"));
int i4 = AFLogger + 29;
e = i4 % 128;
int i5 = i4 % 2;
return null;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause != null) {
throw cause;
}
throw th;
}
} catch (Exception e2) {
AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: reflection init failed", e2);
return null;
}
}
private <T> AFe1xSDK<T> AFKeystoreWrapper(AFe1mSDK aFe1mSDK, AFe1kSDK<T> aFe1kSDK) {
int i = 2 % 2;
int i2 = e + 107;
AFLogger = i2 % 128;
int i3 = i2 % 2;
AFe1xSDK<T> AFKeystoreWrapper = AFKeystoreWrapper(aFe1mSDK, aFe1kSDK, valueOf());
int i4 = e + 77;
AFLogger = i4 % 128;
int i5 = i4 % 2;
return AFKeystoreWrapper;
}
private Map<String, Object> values() {
int i = 2 % 2;
HashMap hashMap = new HashMap();
hashMap.put("build_number", "6.13.0");
hashMap.put("counter", Integer.valueOf(this.AFKeystoreWrapper.AFInAppEventParameterName.valueOf("appsFlyerCount", 0)));
hashMap.put("model", Build.MODEL);
Object[] objArr = new Object[1];
a((AudioTrack.getMaxVolume() > 0.0f ? 1 : (AudioTrack.getMaxVolume() == 0.0f ? 0 : -1)) + 4, true, (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 3, 125 - TextUtils.getOffsetAfter("", 0), "\u0007\ufffa\u000b\ufffb�", objArr);
hashMap.put(((String) objArr[0]).intern(), Build.BRAND);
hashMap.put("sdk", Integer.toString(Build.VERSION.SDK_INT));
AFd1rSDK aFd1rSDK = this.AFKeystoreWrapper;
hashMap.put("app_version_name", AFb1qSDK.AFKeystoreWrapper(aFd1rSDK.AFKeystoreWrapper.AFInAppEventParameterName, aFd1rSDK.AFKeystoreWrapper.AFInAppEventParameterName.getPackageName()));
hashMap.put("app_id", this.AFKeystoreWrapper.AFKeystoreWrapper.AFInAppEventParameterName.getPackageName());
hashMap.put("platformextension", new AFb1gSDK().AFInAppEventType());
int i2 = e + 103;
AFLogger = i2 % 128;
int i3 = i2 % 2;
return hashMap;
}
private static String AFKeystoreWrapper(String str, String str2, String... strArr) {
int i = 2 % 2;
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 = AFb1mSDK.AFInAppEventParameterName(join, sb.toString());
int i2 = e + 77;
AFLogger = i2 % 128;
int i3 = i2 % 2;
return AFInAppEventParameterName;
}
private boolean valueOf() {
int i = 2 % 2;
int i2 = e + 17;
AFLogger = i2 % 128;
int i3 = i2 % 2;
if (this.valueOf.getBoolean(AppsFlyerProperties.HTTP_CACHE, true)) {
return false;
}
int i4 = AFLogger + 17;
e = i4 % 128;
int i5 = i4 % 2;
return true;
}
private <T> AFe1xSDK<T> AFKeystoreWrapper(AFe1mSDK aFe1mSDK, AFe1kSDK<T> aFe1kSDK, boolean z) {
int i = 2 % 2;
aFe1mSDK.AFInAppEventType = z;
AFe1vSDK aFe1vSDK = this.AFInAppEventParameterName;
AFe1xSDK<T> aFe1xSDK = new AFe1xSDK<>(aFe1mSDK, aFe1vSDK.values, aFe1vSDK.AFInAppEventParameterName, aFe1kSDK);
int i2 = e + 21;
AFLogger = i2 % 128;
if (i2 % 2 == 0) {
return aFe1xSDK;
}
Object obj = null;
obj.hashCode();
throw null;
}
private static void a(int i, boolean z, int i2, int i3, String str, Object[] objArr) {
int i4 = 2 % 2;
int i5 = $11 + 65;
$10 = i5 % 128;
int i6 = i5 % 2;
char[] cArr = str;
if (str != null) {
cArr = str.toCharArray();
}
char[] cArr2 = cArr;
AFj1lSDK aFj1lSDK = new AFj1lSDK();
char[] cArr3 = new char[i];
aFj1lSDK.AFKeystoreWrapper = 0;
while (aFj1lSDK.AFKeystoreWrapper < i) {
int i7 = $10 + 35;
$11 = i7 % 128;
int i8 = i7 % 2;
aFj1lSDK.values = cArr2[aFj1lSDK.AFKeystoreWrapper];
cArr3[aFj1lSDK.AFKeystoreWrapper] = (char) (aFj1lSDK.values + i3);
int i9 = aFj1lSDK.AFKeystoreWrapper;
cArr3[i9] = (char) (cArr3[i9] - ((int) (registerClient ^ 7776624685611272050L)));
aFj1lSDK.AFKeystoreWrapper++;
}
if (i2 > 0) {
int i10 = $11 + 25;
$10 = i10 % 128;
int i11 = i10 % 2;
aFj1lSDK.valueOf = i2;
char[] cArr4 = new char[i];
System.arraycopy(cArr3, 0, cArr4, 0, i);
System.arraycopy(cArr4, 0, cArr3, i - aFj1lSDK.valueOf, aFj1lSDK.valueOf);
System.arraycopy(cArr4, aFj1lSDK.valueOf, cArr3, 0, i - aFj1lSDK.valueOf);
}
if (z) {
char[] cArr5 = new char[i];
aFj1lSDK.AFKeystoreWrapper = 0;
while (aFj1lSDK.AFKeystoreWrapper < i) {
int i12 = $10 + 15;
$11 = i12 % 128;
int i13 = i12 % 2;
cArr5[aFj1lSDK.AFKeystoreWrapper] = cArr3[(i - aFj1lSDK.AFKeystoreWrapper) - 1];
aFj1lSDK.AFKeystoreWrapper++;
}
cArr3 = cArr5;
}
objArr[0] = new String(cArr3);
}
}