正在查看: MedEd v5.3.6 应用的 AFe1rSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: MedEd v5.3.6 应用的 AFe1rSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.appsflyer.internal;
import android.content.Context;
import android.graphics.Color;
import android.media.AudioTrack;
import android.os.Build;
import android.os.Process;
import android.os.SystemClock;
import android.text.AndroidCharacter;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.appsflyer.AFLogger;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.AppsFlyerProperties;
import com.penpencil.physicswallah.feature.accountdeletion.presentation.ui.composables.XMv.VlnaFYwXGCN;
import defpackage.Th0;
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.text.Regex;
import okhttp3.HttpUrl;
public final class AFe1rSDK {
private static int $10 = 0;
private static int $11 = 1;
private static String AFKeystoreWrapper = null;
private static boolean AFLogger = false;
private static int afInfoLog = 0;
private static int d = 0;
private static boolean e = false;
private static char[] unregisterClient = null;
public static String valueOf = null;
private static int w = 1;
private final AppsFlyerProperties AFInAppEventParameterName;
private final AFe1tSDK AFInAppEventType;
private final AFe1bSDK registerClient;
private final AFd1sSDK values;
static {
AFKeystoreWrapper();
valueOf = "https://%sgcdsdk.%s/install_data/v5.0/";
AFKeystoreWrapper = "https://%sonelink.%s/shortlink-sdk/v2";
int i = w + 97;
afInfoLog = i % 128;
if (i % 2 != 0) {
throw null;
}
}
public AFe1rSDK(AFe1tSDK aFe1tSDK, AFd1sSDK aFd1sSDK, AppsFlyerProperties appsFlyerProperties, AFe1bSDK aFe1bSDK) {
this.AFInAppEventType = aFe1tSDK;
this.values = aFd1sSDK;
this.AFInAppEventParameterName = appsFlyerProperties;
this.registerClient = aFe1bSDK;
}
public static void AFKeystoreWrapper() {
AFLogger = true;
e = true;
d = 1875983374;
unregisterClient = new char[]{15437, 15456, 15417, 15443, 15461, 15463, 15480, 15469, 15474, 15473, 15484, 15457, 15468, 15458};
}
private static void a(java.lang.String r10, int[] r11, java.lang.String r12, int r13, java.lang.Object[] r14) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFe1rSDK.a(java.lang.String, int[], java.lang.String, int, java.lang.Object[]):void");
}
public final AFe1uSDK<AFc1jSDK> AFInAppEventParameterName(AFc1qSDK aFc1qSDK) {
AFe1uSDK<AFc1jSDK> values = values(new AFe1hSDK(aFc1qSDK.unregisterClient, AFa1mSDK.valueOf((Map<String, ?>) aFc1qSDK.AFInAppEventType()).toString().getBytes(Charset.defaultCharset()), "POST", Collections.emptyMap(), aFc1qSDK.valueOf()), new AFc1kSDK());
int i = w + 115;
afInfoLog = i % 128;
if (i % 2 == 0) {
return values;
}
throw null;
}
public final AFe1uSDK<String> AFInAppEventType(Map<String, Object> map, String str, String str2) {
String AFInAppEventParameterName;
try {
Object[] objArr = {map, str};
Map<Integer, Object> map2 = AFa1tSDK.afVerboseLog;
Object obj = map2.get(-606898412);
if (obj == null) {
obj = ((Class) AFa1tSDK.valueOf(ExpandableListView.getPackedPositionType(0L) + 74, 38 - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)), (char) (15874 - (ViewConfiguration.getPressedStateDuration() >> 16)))).getMethod("AFKeystoreWrapper", Map.class, String.class);
map2.put(-606898412, obj);
}
byte[] bArr = (byte[]) ((Method) obj).invoke(null, objArr);
AFj1uSDK aFj1uSDK = new AFj1uSDK(this.values);
if (str2 == null || str2.length() == 0 || new Regex("4.?(\\d+)?.?(\\d+)").f(str2) || new Regex("3.?(\\d+)?.?(\\d+)").f(str2)) {
afInfoLog = (w + 89) % 128;
AFInAppEventParameterName = aFj1uSDK.AFKeystoreWrapper.AFInAppEventParameterName("https://%sviap.%s/api/v1/android/validate_purchase?app_id=");
w = (afInfoLog + 27) % 128;
} else {
AFInAppEventParameterName = aFj1uSDK.AFKeystoreWrapper.AFInAppEventParameterName("https://%sviap.%s/api/v1/android/validate_purchase_v2?app_id=");
}
StringBuilder a = Th0.a(AFInAppEventParameterName);
a.append(aFj1uSDK.values.valueOf.AFKeystoreWrapper.getPackageName());
return values(new AFe1hSDK(aFj1uSDK.values(a.toString()), bArr, "POST", Collections.emptyMap(), true), new AFe1nSDK());
} catch (Throwable th) {
try {
Throwable cause = th.getCause();
if (cause != null) {
throw cause;
}
throw th;
} catch (Exception e2) {
AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: reflection init failed", e2);
return null;
}
}
}
public final com.appsflyer.internal.AFe1vSDK valueOf(java.util.Map<java.lang.String, java.lang.Object> r14, java.lang.String r15) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFe1rSDK.valueOf(java.util.Map, java.lang.String):com.appsflyer.internal.AFe1vSDK");
}
public final AFe1uSDK<String> values(Map<String, Object> map, String str, String str2) {
String AFInAppEventParameterName;
w = (afInfoLog + 73) % 128;
try {
Object[] objArr = {map, str};
Map<Integer, Object> map2 = AFa1tSDK.afVerboseLog;
Object obj = map2.get(-606898412);
if (obj == null) {
obj = ((Class) AFa1tSDK.valueOf(74 - View.resolveSize(0, 0), (ViewConfiguration.getMaximumFlingVelocity() >> 16) + 37, (char) (15874 - (ViewConfiguration.getScrollBarFadeDuration() >> 16)))).getMethod("AFKeystoreWrapper", Map.class, String.class);
map2.put(-606898412, obj);
}
byte[] bArr = (byte[]) ((Method) obj).invoke(null, objArr);
AFj1uSDK aFj1uSDK = new AFj1uSDK(this.values);
if (str2 != null) {
afInfoLog = (w + 79) % 128;
if (str2.length() != 0) {
if (!new Regex("4.?(\\d+)?.?(\\d+)").f(str2) && (!new Regex("3.?(\\d+)?.?(\\d+)").f(str2))) {
AFInAppEventParameterName = aFj1uSDK.AFKeystoreWrapper.AFInAppEventParameterName("https://%sars.%s/api/v2/android/validate_subscription_v2?app_id=");
StringBuilder a = Th0.a(AFInAppEventParameterName);
a.append(aFj1uSDK.values.valueOf.AFKeystoreWrapper.getPackageName());
return values(new AFe1hSDK(aFj1uSDK.values(a.toString()), bArr, "POST", Collections.emptyMap(), true), new AFe1nSDK());
}
AFInAppEventParameterName = aFj1uSDK.AFKeystoreWrapper.AFInAppEventParameterName("https://%sars.%s/api/v2/android/validate_subscription?app_id=");
StringBuilder a2 = Th0.a(AFInAppEventParameterName);
a2.append(aFj1uSDK.values.valueOf.AFKeystoreWrapper.getPackageName());
return values(new AFe1hSDK(aFj1uSDK.values(a2.toString()), bArr, "POST", Collections.emptyMap(), true), new AFe1nSDK());
}
}
w = (afInfoLog + 115) % 128;
AFInAppEventParameterName = aFj1uSDK.AFKeystoreWrapper.AFInAppEventParameterName("https://%sars.%s/api/v2/android/validate_subscription?app_id=");
StringBuilder a22 = Th0.a(AFInAppEventParameterName);
a22.append(aFj1uSDK.values.valueOf.AFKeystoreWrapper.getPackageName());
return values(new AFe1hSDK(aFj1uSDK.values(a22.toString()), bArr, "POST", Collections.emptyMap(), true), new AFe1nSDK());
} catch (Throwable th) {
try {
Throwable cause = th.getCause();
if (cause != null) {
throw cause;
}
throw th;
} catch (Exception e2) {
AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: reflection init failed", e2);
return null;
}
}
}
public final AFe1uSDK<String> AFKeystoreWrapper(AFh1mSDK aFh1mSDK) {
AFe1uSDK<String> values = values(new AFe1hSDK(aFh1mSDK.unregisterClient, aFh1mSDK.AFKeystoreWrapper(), "POST", Collections.emptyMap(), true), new AFe1nSDK());
afInfoLog = (w + 109) % 128;
return values;
}
public final AFe1uSDK<String> AFKeystoreWrapper(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(VlnaFYwXGCN.AyjQbBXjmU, AFInAppEventParameterName());
if (str2 != null) {
afInfoLog = (w + 51) % 128;
hashMap.put("brand_domain", str2);
}
String jSONObject = AFa1mSDK.valueOf((Map<String, ?>) hashMap).toString();
HashMap hashMap2 = new HashMap();
Object[] objArr = new Object[1];
a("\u008c\u008b\u008a\u0089\u0088\u0087\u0086\u0085\u0084\u0083\u0082\u0081", null, null, (ViewConfiguration.getJumpTapTimeout() >> 16) + 127, objArr);
hashMap2.put(((String) objArr[0]).intern(), AFInAppEventType(str3, obj, "POST", jSONObject));
StringBuilder sb = new StringBuilder();
sb.append(String.format(AFKeystoreWrapper, AppsFlyerLib.getInstance().getHostPrefix(), AFb1rSDK.AFInAppEventParameterName().getHostName()));
sb.append("/");
sb.append(str);
AFe1uSDK<String> AFInAppEventParameterName = AFInAppEventParameterName(new AFe1hSDK(sb.toString(), jSONObject.getBytes(Charset.defaultCharset()), "POST", hashMap2, false), new AFe1nSDK(), true);
int i = w + 121;
afInfoLog = i % 128;
if (i % 2 == 0) {
return AFInAppEventParameterName;
}
throw null;
}
public final AFe1uSDK<Map<String, String>> AFInAppEventParameterName(String str, String str2, UUID uuid, String str3) {
String obj = uuid.toString();
StringBuilder sb = new StringBuilder();
sb.append(String.format(AFKeystoreWrapper, AppsFlyerLib.getInstance().getHostPrefix(), AFb1rSDK.AFInAppEventParameterName().getHostName()));
sb.append("/");
sb.append(str);
sb.append("?id=");
sb.append(str2);
String obj2 = sb.toString();
Map<String, Object> AFInAppEventParameterName = AFInAppEventParameterName();
String valueOf2 = String.valueOf(AFInAppEventParameterName.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(AFInAppEventParameterName.get("counter")));
hashMap.put("Af-Meta-Model", String.valueOf(AFInAppEventParameterName.get("model")));
hashMap.put("Af-Meta-Platform", String.valueOf(AFInAppEventParameterName.get("platformextension")));
hashMap.put("Af-Meta-System-Version", String.valueOf(AFInAppEventParameterName.get("sdk")));
Object[] objArr = new Object[1];
a("\u008c\u008b\u008a\u0089\u0088\u0087\u0086\u0085\u0084\u0083\u0082\u0081", null, null, 127 - Color.argb(0, 0, 0, 0), objArr);
hashMap.put(((String) objArr[0]).intern(), AFInAppEventType(str3, obj, "GET", obj, str, str2, valueOf2));
AFe1uSDK<Map<String, String>> values = values(new AFe1hSDK(obj2, null, "GET", hashMap, false), (AFe1iSDK) new AFe1gSDK());
afInfoLog = (w + 107) % 128;
return values;
}
public final AFe1uSDK<String> AFKeystoreWrapper(String str) {
AFe1hSDK aFe1hSDK = new AFe1hSDK(str, null, "GET", Collections.emptyMap(), false);
aFe1hSDK.registerClient = 10000;
aFe1hSDK.values = false;
AFe1uSDK<String> values = values(aFe1hSDK, new AFe1nSDK());
w = (afInfoLog + 47) % 128;
return values;
}
private Map<String, Object> AFInAppEventParameterName() {
HashMap hashMap = new HashMap();
hashMap.put("build_number", "6.14.2");
hashMap.put("counter", Integer.valueOf(this.values.values.valueOf("appsFlyerCount", 0)));
hashMap.put("model", Build.MODEL);
Object[] objArr = new Object[1];
a("\u008e\u0087\u0088\u008b\u008d", null, null, (ViewConfiguration.getDoubleTapTimeout() >> 16) + 127, objArr);
hashMap.put(((String) objArr[0]).intern(), Build.BRAND);
hashMap.put("sdk", Integer.toString(Build.VERSION.SDK_INT));
Context context = this.values.valueOf.AFKeystoreWrapper;
hashMap.put("app_version_name", AFb1vSDK.values(context, context.getPackageName()));
hashMap.put("app_id", this.values.valueOf.AFKeystoreWrapper.getPackageName());
hashMap.put("platformextension", new AFb1cSDK().AFKeystoreWrapper());
int i = afInfoLog + 121;
w = i % 128;
if (i % 2 == 0) {
int i2 = 43 / 0;
}
return hashMap;
}
public final AFe1uSDK<String> values(AFa1pSDK aFa1pSDK, String str, AFd1nSDK aFd1nSDK) {
afInfoLog = (w + 119) % 128;
try {
Object[] objArr = {aFa1pSDK, str, aFd1nSDK};
Map<Integer, Object> map = AFa1tSDK.afVerboseLog;
Object obj = map.get(1431570785);
if (obj == null) {
obj = ((Class) AFa1tSDK.valueOf(74 - Color.blue(0), 37 - (AudioTrack.getMinVolume() > 0.0f ? 1 : (AudioTrack.getMinVolume() == 0.0f ? 0 : -1)), (char) ((ViewConfiguration.getTouchSlop() >> 8) + 15874))).getMethod("AFInAppEventType", AFa1pSDK.class, String.class, AFd1nSDK.class);
map.put(1431570785, obj);
}
AFe1uSDK<String> values = values(new AFe1hSDK(aFa1pSDK.unregisterClient, (byte[]) ((Method) obj).invoke(null, objArr), "POST", Collections.emptyMap(), aFa1pSDK.valueOf()), new AFe1nSDK());
w = (afInfoLog + 29) % 128;
return values;
} 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 AFe1uSDK<String> AFInAppEventType(Map<String, Object> map, String str) {
int i = afInfoLog + 45;
w = i % 128;
try {
if (i % 2 == 0) {
try {
Object[] objArr = {map, str};
Map<Integer, Object> map2 = AFa1tSDK.afVerboseLog;
Object obj = map2.get(-606898412);
if (obj == null) {
obj = ((Class) AFa1tSDK.valueOf(74 - KeyEvent.keyCodeFromString(HttpUrl.FRAGMENT_ENCODE_SET), ExpandableListView.getPackedPositionGroup(0L) + 37, (char) (View.combineMeasuredStates(0, 0) + 15874))).getMethod("AFKeystoreWrapper", Map.class, String.class);
map2.put(-606898412, obj);
}
throw null;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause != null) {
throw cause;
}
throw th;
}
}
try {
Object[] objArr2 = {map, str};
Map<Integer, Object> map3 = AFa1tSDK.afVerboseLog;
Object obj2 = map3.get(-606898412);
if (obj2 == null) {
obj2 = ((Class) AFa1tSDK.valueOf(75 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)), 37 - (Process.myPid() >> 22), (char) (AndroidCharacter.getMirror('0') + 15826))).getMethod("AFKeystoreWrapper", Map.class, String.class);
map3.put(-606898412, obj2);
}
byte[] bArr = (byte[]) ((Method) obj2).invoke(null, objArr2);
AFj1uSDK aFj1uSDK = new AFj1uSDK(this.values);
StringBuilder a = Th0.a(aFj1uSDK.AFKeystoreWrapper.AFInAppEventParameterName("https://%svalidate-and-log.%s/api/v1.0/android/validateAndLog?app_id="));
a.append(aFj1uSDK.values.valueOf.AFKeystoreWrapper.getPackageName());
return values(new AFe1hSDK(a.toString(), bArr, "POST", Collections.emptyMap(), true), new AFe1nSDK());
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 != null) {
throw cause2;
}
throw th2;
}
} catch (Throwable th3) {
AFLogger.INSTANCE.e(AFg1bSDK.PURCHASE_VALIDATION, "AFFinalizer: reflection init failed", th3, false, false);
return null;
}
AFLogger.INSTANCE.e(AFg1bSDK.PURCHASE_VALIDATION, "AFFinalizer: reflection init failed", th3, false, false);
return null;
}
public final AFe1uSDK<Map<String, Object>> values(String str, String str2) {
String packageName = this.values.valueOf.AFKeystoreWrapper.getPackageName();
AFd1sSDK aFd1sSDK = this.values;
AFe1uSDK<Map<String, Object>> values = values((AFe1hSDK) AFe1qSDK.AFInAppEventParameterName(packageName, AFb1jSDK.AFInAppEventType(aFd1sSDK.valueOf, aFd1sSDK.values), str, str2), (AFe1iSDK) new AFe1lSDK());
int i = w + 111;
afInfoLog = i % 128;
if (i % 2 == 0) {
return values;
}
throw null;
}
private <T> AFe1uSDK<T> values(AFe1hSDK aFe1hSDK, AFe1iSDK<T> aFe1iSDK) {
int i = afInfoLog + 51;
w = i % 128;
if (i % 2 == 0) {
AFe1uSDK<T> AFInAppEventParameterName = AFInAppEventParameterName(aFe1hSDK, aFe1iSDK, values());
int i2 = 99 / 0;
return AFInAppEventParameterName;
}
return AFInAppEventParameterName(aFe1hSDK, aFe1iSDK, values());
}
private <T> AFe1uSDK<T> AFInAppEventParameterName(AFe1hSDK aFe1hSDK, AFe1iSDK<T> aFe1iSDK, boolean z) {
aFe1hSDK.AFInAppEventParameterName = z;
AFe1tSDK aFe1tSDK = this.AFInAppEventType;
AFe1uSDK<T> aFe1uSDK = new AFe1uSDK<>(aFe1hSDK, aFe1tSDK.AFKeystoreWrapper, aFe1tSDK.valueOf, aFe1iSDK);
int i = afInfoLog + 59;
w = i % 128;
if (i % 2 == 0) {
int i2 = 69 / 0;
}
return aFe1uSDK;
}
private boolean values() {
w = (afInfoLog + 25) % 128;
if (this.AFInAppEventParameterName.getBoolean(AppsFlyerProperties.HTTP_CACHE, true)) {
afInfoLog = (w + 31) % 128;
return false;
}
int i = w + 79;
afInfoLog = i % 128;
if (i % 2 == 0) {
return true;
}
throw null;
}
public final AFe1uSDK<AFh1aSDK> AFInAppEventType(boolean z, boolean z2, String str, int i) {
String str2;
String str3;
AFe1bSDK aFe1bSDK = this.registerClient;
Intrinsics.checkNotNullParameter(str, "");
String str4 = z ? AFe1bSDK.AFInAppEventType : AFe1bSDK.AFInAppEventParameterName;
if (z2) {
afInfoLog = (w + 99) % 128;
str2 = "stg";
} else {
str2 = HttpUrl.FRAGMENT_ENCODE_SET;
}
Object[] objArr = new Object[4];
if (AFe1bSDK.valueOf()) {
afInfoLog = (w + 27) % 128;
str3 = (String) aFe1bSDK.values.getValue();
} else {
afInfoLog = (w + 57) % 128;
str3 = HttpUrl.FRAGMENT_ENCODE_SET;
}
objArr[0] = str3;
objArr[1] = str2;
objArr[2] = aFe1bSDK.AFInAppEventType();
objArr[3] = str;
String format = String.format(str4, Arrays.copyOf(objArr, 4));
Intrinsics.checkNotNullExpressionValue(format, "");
AFe1hSDK aFe1hSDK = new AFe1hSDK(format, "GET");
aFe1hSDK.registerClient = 1500;
return values(aFe1hSDK, new AFe1pSDK());
}
private static String AFInAppEventType(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 = AFb1mSDK.AFInAppEventParameterName(join, sb.toString());
int i = afInfoLog + 45;
w = i % 128;
if (i % 2 != 0) {
return AFInAppEventParameterName;
}
throw null;
}
}