正在查看: Easycash v3.75.13 应用的 AFe1wSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Easycash v3.75.13 应用的 AFe1wSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.appsflyer.internal;
import android.content.Context;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.media.AudioTrack;
import android.os.Build;
import android.os.Process;
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 androidx.annotation.Nullable;
import androidx.annotation.VisibleForTesting;
import com.adjust.sdk.Constants;
import com.appsflyer.AFLogger;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.AppsFlyerProperties;
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;
public final class AFe1wSDK {
private static int $10 = 0;
private static int $11 = 1;
@VisibleForTesting
private static String AFInAppEventType = null;
private static char[] AFLogger = null;
private static char f2092e = 0;
private static int registerClient = 1;
private static int unregisterClient;
public static String values;
private final AFe1vSDK AFInAppEventParameterName;
private final AFd1sSDK AFKeystoreWrapper;
private final AFe1gSDK f2093d;
private final AppsFlyerProperties valueOf;
static {
AFKeystoreWrapper();
values = "https://%sgcdsdk.%s/install_data/v5.0/";
AFInAppEventType = "https://%sonelink.%s/shortlink-sdk/v2";
int i2 = unregisterClient + 65;
registerClient = i2 % 128;
int i3 = i2 % 2;
}
public AFe1wSDK(AFe1vSDK aFe1vSDK, AFd1sSDK aFd1sSDK, AppsFlyerProperties appsFlyerProperties, AFe1gSDK aFe1gSDK) {
this.AFInAppEventParameterName = aFe1vSDK;
this.AFKeystoreWrapper = aFd1sSDK;
this.valueOf = appsFlyerProperties;
this.f2093d = aFe1gSDK;
}
static void AFKeystoreWrapper() {
AFLogger = new char[]{29503, 29494, 29489, 29465, 29557, 29484, 29482, 28867, 29500, 29497, 29498, 29485, 28866, 29501, 29502, 29451};
f2092e = (char) 18118;
}
private static void a(byte b2, int i2, String str, Object[] objArr) {
int i3;
int i4 = $10 + 109;
$11 = i4 % 128;
int i5 = i4 % 2;
char[] charArray = str != null ? str.toCharArray() : str;
AFj1gSDK aFj1gSDK = new AFj1gSDK();
char[] cArr = AFLogger;
if (cArr != null) {
int length = cArr.length;
char[] cArr2 = new char[length];
for (int i6 = 0; i6 < length; i6++) {
cArr2[i6] = (char) (cArr[i6] ^ (-5398819829411789118L));
}
cArr = cArr2;
}
char c2 = (char) (f2092e ^ (-5398819829411789118L));
char[] cArr3 = new char[i2];
if (i2 % 2 != 0) {
int i7 = $10 + 59;
$11 = i7 % 128;
if (i7 % 2 == 0) {
i3 = i2 + 97;
cArr3[i3] = (char) (charArray[i3] >>> b2);
} else {
i3 = i2 - 1;
cArr3[i3] = (char) (charArray[i3] - b2);
}
} else {
i3 = i2;
}
if (i3 > 1) {
aFj1gSDK.AFInAppEventType = 0;
while (true) {
int i8 = aFj1gSDK.AFInAppEventType;
if ((i8 < i3 ? ')' : ']') == ']') {
break;
}
char c3 = charArray[i8];
aFj1gSDK.AFInAppEventParameterName = c3;
char c4 = charArray[i8 + 1];
aFj1gSDK.values = c4;
if (!(c3 != c4)) {
cArr3[i8] = (char) (c3 - b2);
cArr3[i8 + 1] = (char) (c4 - b2);
} else {
int i9 = c3 / c2;
aFj1gSDK.valueOf = i9;
int i10 = c3 % c2;
aFj1gSDK.f2151d = i10;
int i11 = c4 / c2;
aFj1gSDK.AFKeystoreWrapper = i11;
int i12 = c4 % c2;
aFj1gSDK.registerClient = i12;
if (i10 == i12) {
int i13 = ((i9 + c2) - 1) % c2;
aFj1gSDK.valueOf = i13;
int i14 = ((i11 + c2) - 1) % c2;
aFj1gSDK.AFKeystoreWrapper = i14;
cArr3[i8] = cArr[(i13 * c2) + i10];
cArr3[i8 + 1] = cArr[(i14 * c2) + i12];
} else if (i9 == i11) {
int i15 = $10;
int i16 = i15 + 45;
$11 = i16 % 128;
int i17 = i16 % 2;
int i18 = ((i10 + c2) - 1) % c2;
aFj1gSDK.f2151d = i18;
int i19 = ((i12 + c2) - 1) % c2;
aFj1gSDK.registerClient = i19;
cArr3[i8] = cArr[(i9 * c2) + i18];
cArr3[i8 + 1] = cArr[(i11 * c2) + i19];
int i20 = i15 + 19;
$11 = i20 % 128;
int i21 = i20 % 2;
} else {
cArr3[i8] = cArr[(i9 * c2) + i12];
cArr3[i8 + 1] = cArr[(i11 * c2) + i10];
}
}
aFj1gSDK.AFInAppEventType = i8 + 2;
}
}
int i22 = 0;
while (true) {
if ((i22 < i2 ? '9' : 'F') == 'F') {
objArr[0] = new String(cArr3);
return;
} else {
cArr3[i22] = (char) (cArr3[i22] ^ 13722);
i22++;
}
}
}
@androidx.annotation.Nullable
public final com.appsflyer.internal.AFe1uSDK<java.lang.String> AFInAppEventParameterName(java.util.Map<java.lang.String, java.lang.Object> r13, java.lang.String r14, @androidx.annotation.Nullable java.lang.String r15) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFe1wSDK.AFInAppEventParameterName(java.util.Map, java.lang.String, java.lang.String):com.appsflyer.internal.AFe1uSDK");
}
@androidx.annotation.Nullable
public final com.appsflyer.internal.AFe1uSDK<java.lang.String> AFInAppEventType(java.util.Map<java.lang.String, java.lang.Object> r20, java.lang.String r21, @androidx.annotation.Nullable java.lang.String r22) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFe1wSDK.AFInAppEventType(java.util.Map, java.lang.String, java.lang.String):com.appsflyer.internal.AFe1uSDK");
}
@androidx.annotation.NonNull
public final com.appsflyer.internal.AFe1uSDK<com.appsflyer.internal.AFh1hSDK> valueOf(boolean r8, boolean r9, @androidx.annotation.NonNull java.lang.String r10, int r11) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFe1wSDK.valueOf(boolean, boolean, java.lang.String, int):com.appsflyer.internal.AFe1uSDK");
}
public final AFe1uSDK<Map<String, String>> values(@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(), AFb1tSDK.valueOf().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];
a((byte) ((KeyEvent.getMaxKeyCode() >> 16) + 11), 13 - (ViewConfiguration.getScrollFriction() > 0.0f ? 1 : (ViewConfiguration.getScrollFriction() == 0.0f ? 0 : -1)), "\u0002\u000f\u0007\f\u0003\u0001\u0005\r\u0007\t\u0005\u000e", objArr);
hashMap.put(((String) objArr[0]).intern(), values(str3, obj, "GET", obj, str, str2, valueOf2));
AFe1uSDK<Map<String, String>> AFInAppEventParameterName = AFInAppEventParameterName(new AFe1oSDK(obj2, null, "GET", hashMap, false), new AFe1pSDK());
int i2 = unregisterClient + 17;
registerClient = i2 % 128;
int i3 = i2 % 2;
return AFInAppEventParameterName;
}
@NonNull
public final AFe1uSDK<AFc1qSDK> AFKeystoreWrapper(AFc1kSDK aFc1kSDK) {
AFe1uSDK<AFc1qSDK> AFInAppEventParameterName = AFInAppEventParameterName(new AFe1oSDK(aFc1kSDK.unregisterClient, AFa1qSDK.valueOf(aFc1kSDK.valueOf()).toString().getBytes(Charset.defaultCharset()), "POST", Collections.emptyMap(), aFc1kSDK.AFInAppEventParameterName()), new AFc1jSDK());
int i2 = registerClient + 35;
unregisterClient = i2 % 128;
if (i2 % 2 == 0) {
return AFInAppEventParameterName;
}
throw null;
}
public final AFe1uSDK<String> AFKeystoreWrapper(@NonNull String str, @NonNull Map<String, String> map, @Nullable 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(Constants.REFERRER_API_META, valueOf());
if (str2 != null) {
int i2 = unregisterClient + 59;
registerClient = i2 % 128;
int i3 = i2 % 2;
hashMap.put("brand_domain", str2);
}
String jSONObject = AFa1qSDK.valueOf(hashMap).toString();
HashMap hashMap2 = new HashMap();
Object[] objArr = new Object[1];
a((byte) (11 - Color.blue(0)), ((Process.getThreadPriority(0) + 20) >> 6) + 12, "\u0002\u000f\u0007\f\u0003\u0001\u0005\r\u0007\t\u0005\u000e", objArr);
hashMap2.put(((String) objArr[0]).intern(), values(str3, obj, "POST", jSONObject));
StringBuilder sb = new StringBuilder();
sb.append(String.format(AFInAppEventType, AppsFlyerLib.getInstance().getHostPrefix(), AFb1tSDK.valueOf().getHostName()));
sb.append("/");
sb.append(str);
AFe1uSDK<String> AFInAppEventType2 = AFInAppEventType(new AFe1oSDK(sb.toString(), jSONObject.getBytes(Charset.defaultCharset()), "POST", hashMap2, false), (AFe1jSDK) new AFe1lSDK(), true);
int i4 = unregisterClient + 3;
registerClient = i4 % 128;
if ((i4 % 2 == 0 ? 'I' : 'K') == 'K') {
return AFInAppEventType2;
}
throw null;
}
public final AFe1uSDK<String> valueOf(AFh1qSDK aFh1qSDK) {
AFe1uSDK<String> AFInAppEventParameterName = AFInAppEventParameterName(new AFe1oSDK(aFh1qSDK.unregisterClient, aFh1qSDK.AFInAppEventType(), "POST", Collections.emptyMap(), true), new AFe1lSDK());
int i2 = registerClient + 75;
unregisterClient = i2 % 128;
int i3 = i2 % 2;
return AFInAppEventParameterName;
}
private static String values(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 AFInAppEventType2 = AFb1mSDK.AFInAppEventType(join, sb.toString());
int i2 = unregisterClient + 103;
registerClient = i2 % 128;
if (i2 % 2 == 0) {
throw null;
}
return AFInAppEventType2;
}
@VisibleForTesting
private Map<String, Object> valueOf() {
HashMap hashMap = new HashMap();
hashMap.put("build_number", "6.13.1");
hashMap.put("counter", Integer.valueOf(this.AFKeystoreWrapper.AFKeystoreWrapper.AFInAppEventParameterName("appsFlyerCount", 0)));
hashMap.put("model", Build.MODEL);
Object[] objArr = new Object[1];
a((byte) (50 - (ViewConfiguration.getKeyRepeatTimeout() >> 16)), 5 - (ViewConfiguration.getScrollDefaultDelay() >> 16), "\u000e\n\r\u0005㘰", objArr);
hashMap.put(((String) objArr[0]).intern(), Build.BRAND);
hashMap.put("sdk", Integer.toString(Build.VERSION.SDK_INT));
Context context = this.AFKeystoreWrapper.AFInAppEventParameterName.valueOf;
hashMap.put("app_version_name", AFb1uSDK.AFKeystoreWrapper(context, context.getPackageName()));
hashMap.put("app_id", this.AFKeystoreWrapper.AFInAppEventParameterName.valueOf.getPackageName());
hashMap.put("platformextension", new AFb1cSDK().valueOf());
int i2 = unregisterClient + 111;
registerClient = i2 % 128;
int i3 = i2 % 2;
return hashMap;
}
private boolean values() {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFe1wSDK.values():boolean");
}
public final AFe1uSDK<Map<String, Object>> AFInAppEventType(String str, String str2) {
String packageName = this.AFKeystoreWrapper.AFInAppEventParameterName.valueOf.getPackageName();
AFd1sSDK aFd1sSDK = this.AFKeystoreWrapper;
AFe1uSDK<Map<String, Object>> AFInAppEventParameterName = AFInAppEventParameterName(AFe1qSDK.valueOf(packageName, AFb1kSDK.AFInAppEventType(aFd1sSDK.AFInAppEventParameterName, aFd1sSDK.AFKeystoreWrapper), str, str2), new AFe1tSDK());
int i2 = unregisterClient + 17;
registerClient = i2 % 128;
if (!(i2 % 2 == 0)) {
return AFInAppEventParameterName;
}
throw null;
}
@Nullable
public final AFe1uSDK<String> AFInAppEventParameterName(AFa1pSDK aFa1pSDK, String str, AFd1kSDK aFd1kSDK) {
int i2 = registerClient + 53;
unregisterClient = i2 % 128;
try {
if (i2 % 2 != 0) {
try {
Object[] objArr = {aFa1pSDK, str, aFd1kSDK};
Map<Integer, Object> map = AFa1ySDK.afErrorLog;
Object obj = map.get(-829551611);
if (obj == null) {
obj = ((Class) AFa1ySDK.AFKeystoreWrapper(72 - View.MeasureSpec.getSize(0), (char) KeyEvent.getDeadChar(0, 0), (AudioTrack.getMinVolume() > 0.0f ? 1 : (AudioTrack.getMinVolume() == 0.0f ? 0 : -1)) + 37)).getMethod("AFInAppEventType", AFa1pSDK.class, String.class, AFd1kSDK.class);
map.put(-829551611, obj);
}
throw null;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause != null) {
throw cause;
}
throw th;
}
}
try {
Object[] objArr2 = {aFa1pSDK, str, aFd1kSDK};
Map<Integer, Object> map2 = AFa1ySDK.afErrorLog;
Object obj2 = map2.get(-829551611);
if (obj2 == null) {
obj2 = ((Class) AFa1ySDK.AFKeystoreWrapper(View.MeasureSpec.getSize(0) + 72, (char) (Process.getGidForName("") + 1), Color.argb(0, 0, 0, 0) + 37)).getMethod("AFInAppEventType", AFa1pSDK.class, String.class, AFd1kSDK.class);
map2.put(-829551611, obj2);
}
AFe1uSDK<String> AFInAppEventParameterName = AFInAppEventParameterName(new AFe1oSDK(aFa1pSDK.unregisterClient, (byte[]) ((Method) obj2).invoke(null, objArr2), "POST", Collections.emptyMap(), aFa1pSDK.AFInAppEventParameterName()), new AFe1lSDK());
int i3 = unregisterClient + 31;
registerClient = i3 % 128;
if (!(i3 % 2 == 0)) {
return AFInAppEventParameterName;
}
int i4 = 23 / 0;
return AFInAppEventParameterName;
} catch (Throwable th2) {
try {
Throwable cause2 = th2.getCause();
if (cause2 != null) {
throw cause2;
}
throw th2;
} catch (Throwable th3) {
th = th3;
AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: reflection init failed", th);
return null;
}
}
} catch (Throwable th4) {
th = th4;
}
}
public final AFe1uSDK<String> AFInAppEventType(@NonNull String str) {
AFe1oSDK aFe1oSDK = new AFe1oSDK(str, null, "GET", Collections.emptyMap(), false);
aFe1oSDK.unregisterClient = 10000;
aFe1oSDK.AFInAppEventType = false;
AFe1uSDK<String> AFInAppEventParameterName = AFInAppEventParameterName(aFe1oSDK, new AFe1lSDK());
int i2 = registerClient + 125;
unregisterClient = i2 % 128;
if (i2 % 2 != 0) {
throw null;
}
return AFInAppEventParameterName;
}
private <T> AFe1uSDK<T> AFInAppEventParameterName(AFe1oSDK aFe1oSDK, AFe1jSDK<T> aFe1jSDK) {
AFe1uSDK<T> AFInAppEventType2;
int i2 = registerClient + 45;
unregisterClient = i2 % 128;
if (!(i2 % 2 != 0)) {
AFInAppEventType2 = AFInAppEventType(aFe1oSDK, aFe1jSDK, values());
} else {
AFInAppEventType2 = AFInAppEventType(aFe1oSDK, aFe1jSDK, values());
int i3 = 41 / 0;
}
int i4 = unregisterClient + 115;
registerClient = i4 % 128;
int i5 = i4 % 2;
return AFInAppEventType2;
}
@Nullable
public final AFe1xSDK AFInAppEventType(Map<String, Object> map, String str) {
int i2 = registerClient + 69;
unregisterClient = i2 % 128;
int i3 = i2 % 2;
try {
try {
Object[] objArr = {map, str};
Map<Integer, Object> map2 = AFa1ySDK.afErrorLog;
Object obj = map2.get(1391384416);
if (obj == null) {
obj = ((Class) AFa1ySDK.AFKeystoreWrapper((ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 73, (char) (ViewConfiguration.getEdgeSlop() >> 16), 36 - ImageFormat.getBitsPerPixel(0))).getMethod("AFInAppEventType", Map.class, String.class);
map2.put(1391384416, obj);
}
byte[] bArr = (byte[]) ((Method) obj).invoke(null, objArr);
if (bArr != null) {
return new AFe1xSDK(this.AFKeystoreWrapper, bArr);
}
AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: failed to create bytes", new IllegalArgumentException("failed to create bytes from proxyData"));
int i4 = registerClient + 9;
unregisterClient = 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> AFe1uSDK<T> AFInAppEventType(AFe1oSDK aFe1oSDK, AFe1jSDK<T> aFe1jSDK, boolean z) {
aFe1oSDK.AFKeystoreWrapper = z;
AFe1vSDK aFe1vSDK = this.AFInAppEventParameterName;
AFe1uSDK<T> aFe1uSDK = new AFe1uSDK<>(aFe1oSDK, aFe1vSDK.values, aFe1vSDK.AFKeystoreWrapper, aFe1jSDK);
int i2 = unregisterClient + 5;
registerClient = i2 % 128;
if ((i2 % 2 == 0 ? '4' : 'O') == 'O') {
return aFe1uSDK;
}
throw null;
}
}