正在查看: Crafto v9.3.3 应用的 AFe1sSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Crafto v9.3.3 应用的 AFe1sSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.appsflyer.internal;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Process;
import android.text.TextUtils;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import androidx.annotation.NonNull;
import androidx.appcompat.widget.C1342c;
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;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.StringCompanionObject;
import kotlin.text.Regex;
public final class AFe1sSDK {
private static int $10 = 0;
private static int $11 = 1;
private static char[] areAllFieldsValid = null;
private static int component2 = 0;
private static char component3 = 0;
private static int component4 = 1;
public static String getCurrencyIso4217Code;
private static String getRevenue;
private final AppsFlyerProperties AFAdRevenueData;
private final AFe1eSDK component1;
private final AFe1tSDK getMediationNetwork;
private final AFd1nSDK getMonetizationNetwork;
static {
getMonetizationNetwork();
getCurrencyIso4217Code = "https://%sgcdsdk.%s/install_data/v5.0/";
getRevenue = "https://%sonelink.%s/shortlink-sdk/v2";
component2 = (component4 + 91) % 128;
}
public AFe1sSDK(AFe1tSDK aFe1tSDK, AFd1nSDK aFd1nSDK, AppsFlyerProperties appsFlyerProperties, AFe1eSDK aFe1eSDK) {
this.getMediationNetwork = aFe1tSDK;
this.getMonetizationNetwork = aFd1nSDK;
this.AFAdRevenueData = appsFlyerProperties;
this.component1 = aFe1eSDK;
}
public static Object AFAdRevenueData(Object[] objArr, int i7, int i8, int i9) {
int i10 = ~i7;
int i11 = ~i8;
int i12 = i10 | i11;
int i13 = ((~i12) * 497) + (i8 * (-496)) + (i7 * (-496));
int i14 = ~(i12 | i9);
int i15 = ~i9;
int i16 = (((~(i7 | i11 | i9)) | (~(i8 | i10)) | (~(i15 | i10))) * 497) + ((i14 | (~(i11 | i15 | i7))) * 497) + i13;
if (i16 == 1) {
return AFAdRevenueData(objArr);
}
if (i16 != 2) {
return getMonetizationNetwork(objArr);
}
if (!((AFe1sSDK) objArr[0]).AFAdRevenueData.getBoolean(AppsFlyerProperties.HTTP_CACHE, true)) {
component2 = (component4 + 35) % 128;
return Boolean.TRUE;
}
component2 = (component4 + 117) % 128;
return Boolean.FALSE;
}
private static void a(byte b8, String str, int i7, Object[] objArr) {
int i8;
int length;
char[] cArr;
char[] charArray = str != null ? str.toCharArray() : str;
AFk1iSDK aFk1iSDK = new AFk1iSDK();
char[] cArr2 = areAllFieldsValid;
if (cArr2 != null) {
int i9 = $11 + 37;
$10 = i9 % 128;
if (i9 % 2 != 0) {
length = cArr2.length;
cArr = new char[length];
} else {
length = cArr2.length;
cArr = new char[length];
}
int i10 = 0;
while (i10 < length) {
int i11 = $11 + 3;
$10 = i11 % 128;
if (i11 % 2 != 0) {
cArr[i10] = (char) (cArr2[i10] % 4738745460995343240L);
i10 <<= 1;
} else {
cArr[i10] = (char) (cArr2[i10] ^ 4738745460995343240L);
i10++;
}
}
cArr2 = cArr;
}
char c8 = (char) (4738745460995343240L ^ component3);
char[] cArr3 = new char[i7];
if (i7 % 2 != 0) {
int i12 = $10 + 13;
$11 = i12 % 128;
if (i12 % 2 == 0) {
i8 = i7 + 23;
cArr3[i8] = (char) (charArray[i8] - b8);
} else {
i8 = i7 - 1;
cArr3[i8] = (char) (charArray[i8] - b8);
}
} else {
i8 = i7;
}
if (i8 > 1) {
$11 = ($10 + 19) % 128;
aFk1iSDK.getMonetizationNetwork = 0;
while (true) {
int i13 = aFk1iSDK.getMonetizationNetwork;
if (i13 >= i8) {
break;
}
char c9 = charArray[i13];
aFk1iSDK.getMediationNetwork = c9;
char c10 = charArray[i13 + 1];
aFk1iSDK.getRevenue = c10;
if (c9 == c10) {
cArr3[i13] = (char) (c9 - b8);
cArr3[i13 + 1] = (char) (c10 - b8);
} else {
int i14 = c9 / c8;
aFk1iSDK.getCurrencyIso4217Code = i14;
int i15 = c9 % c8;
aFk1iSDK.component1 = i15;
int i16 = c10 / c8;
aFk1iSDK.AFAdRevenueData = i16;
int i17 = c10 % c8;
aFk1iSDK.component3 = i17;
if (i15 == i17) {
$10 = ($11 + 65) % 128;
int i18 = ((i14 + c8) - 1) % c8;
aFk1iSDK.getCurrencyIso4217Code = i18;
int i19 = ((i16 + c8) - 1) % c8;
aFk1iSDK.AFAdRevenueData = i19;
cArr3[i13] = cArr2[(i18 * c8) + i15];
cArr3[i13 + 1] = cArr2[(i19 * c8) + i17];
} else if (i14 == i16) {
int i20 = ((i15 + c8) - 1) % c8;
aFk1iSDK.component1 = i20;
int i21 = ((i17 + c8) - 1) % c8;
aFk1iSDK.component3 = i21;
cArr3[i13] = cArr2[(i14 * c8) + i20];
cArr3[i13 + 1] = cArr2[(i16 * c8) + i21];
} else {
cArr3[i13] = cArr2[(i14 * c8) + i17];
cArr3[i13 + 1] = cArr2[(i16 * c8) + i15];
}
}
aFk1iSDK.getMonetizationNetwork = i13 + 2;
}
}
for (int i22 = 0; i22 < i7; i22++) {
cArr3[i22] = (char) (cArr3[i22] ^ 13722);
}
objArr[0] = new String(cArr3);
}
private static Object getMonetizationNetwork(Object[] objArr) {
String monetizationNetwork;
AFe1sSDK aFe1sSDK = (AFe1sSDK) objArr[0];
Map map = (Map) objArr[1];
String str = (String) objArr[2];
String str2 = (String) objArr[3];
component4 = (component2 + 119) % 128;
try {
Object[] objArr2 = {map, str};
Map map2 = AFa1zSDK.unregisterClient;
Object obj = map2.get(-695765603);
if (obj == null) {
obj = ((Class) AFa1zSDK.getMediationNetwork(TextUtils.getOffsetBefore("", 0) + 37, ((Process.getThreadPriority(0) + 20) >> 6) + 37, (char) (53535 - (ViewConfiguration.getDoubleTapTimeout() >> 16)))).getMethod("getRevenue", Map.class, String.class);
map2.put(-695765603, obj);
}
byte[] bArr = (byte[]) ((Method) obj).invoke(null, objArr2);
AFj1bSDK aFj1bSDK = new AFj1bSDK(aFe1sSDK.getMonetizationNetwork);
if (str2 != null && str2.length() != 0) {
component2 = (component4 + 55) % 128;
if (!new Regex("4.?(\\d+)?.?(\\d+)").c(str2) && !new Regex("3.?(\\d+)?.?(\\d+)").c(str2)) {
monetizationNetwork = aFj1bSDK.getCurrencyIso4217Code.getMonetizationNetwork("https://%sars.%s/api/v2/android/validate_subscription_v2?app_id=");
return (AFe1rSDK) AFAdRevenueData(new Object[]{aFe1sSDK, new AFe1kSDK(aFj1bSDK.getCurrencyIso4217Code(aFj1bSDK.getMediationNetwork(monetizationNetwork)), bArr, "POST", Collections.emptyMap(), true), new AFe1iSDK()}, 725080723, -725080722, System.identityHashCode(aFe1sSDK));
}
}
monetizationNetwork = aFj1bSDK.getCurrencyIso4217Code.getMonetizationNetwork("https://%sars.%s/api/v2/android/validate_subscription?app_id=");
return (AFe1rSDK) AFAdRevenueData(new Object[]{aFe1sSDK, new AFe1kSDK(aFj1bSDK.getCurrencyIso4217Code(aFj1bSDK.getMediationNetwork(monetizationNetwork)), bArr, "POST", Collections.emptyMap(), true), new AFe1iSDK()}, 725080723, -725080722, System.identityHashCode(aFe1sSDK));
} catch (Throwable th) {
try {
Throwable cause = th.getCause();
if (cause != null) {
throw cause;
}
throw th;
} catch (Exception e8) {
AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: reflection init failed", e8);
return null;
}
}
}
@NonNull
public final AFe1rSDK<AFi1qSDK> getCurrencyIso4217Code(boolean z7, boolean z8, @NonNull String str, int i7) {
String str2;
String str3;
AFe1eSDK aFe1eSDK = this.component1;
Intrinsics.checkNotNullParameter(str, "");
if (z7) {
component4 = (component2 + 55) % 128;
str2 = AFe1eSDK.getMediationNetwork;
} else {
str2 = AFe1eSDK.AFAdRevenueData;
}
if (z8) {
int i8 = component4 + 91;
component2 = i8 % 128;
if (i8 % 2 != 0) {
throw null;
}
str3 = "stg";
} else {
component4 = (component2 + 107) % 128;
str3 = "";
}
StringCompanionObject stringCompanionObject = StringCompanionObject.INSTANCE;
AFe1kSDK aFe1kSDK = new AFe1kSDK(k.c(new Object[]{AFe1eSDK.AFAdRevenueData() ^ true ? "" : (String) aFe1eSDK.getCurrencyIso4217Code.getValue(), str3, aFe1eSDK.getMonetizationNetwork(), str}, 4, str2, ""), "GET");
aFe1kSDK.component1 = 1500;
return (AFe1rSDK) AFAdRevenueData(new Object[]{this, aFe1kSDK, new AFe1gSDK()}, 725080723, -725080722, System.identityHashCode(this));
}
public final AFe1rSDK<String> getMediationNetwork(Map<String, Object> map, String str) {
byte[] bArr;
int i7 = component4 + 31;
component2 = i7 % 128;
try {
if (i7 % 2 == 0) {
try {
Object[] objArr = {map, str};
Map map2 = AFa1zSDK.unregisterClient;
Object obj = map2.get(-695765603);
if (obj == null) {
obj = ((Class) AFa1zSDK.getMediationNetwork(38 - (ViewConfiguration.getScrollFriction() > 0.0f ? 1 : (ViewConfiguration.getScrollFriction() == 0.0f ? 0 : -1)), (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 37, (char) (TextUtils.indexOf((CharSequence) "", '0', 0) + 53536))).getMethod("getRevenue", Map.class, String.class);
map2.put(-695765603, obj);
}
bArr = (byte[]) ((Method) obj).invoke(null, objArr);
byte[] bArr2 = bArr;
AFj1bSDK aFj1bSDK = new AFj1bSDK(this.getMonetizationNetwork);
AFe1rSDK<String> aFe1rSDK = (AFe1rSDK) AFAdRevenueData(new Object[]{this, new AFe1kSDK(aFj1bSDK.getMediationNetwork(aFj1bSDK.getCurrencyIso4217Code.getMonetizationNetwork("https://%svalidate-and-log.%s/api/v1.0/android/validateAndLog?app_id=")), bArr2, "POST", Collections.emptyMap(), true), new AFe1iSDK()}, 725080723, -725080722, System.identityHashCode(this));
component4 = (component2 + 63) % 128;
return aFe1rSDK;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause != null) {
throw cause;
}
throw th;
}
}
try {
Object[] objArr2 = {map, str};
Map map3 = AFa1zSDK.unregisterClient;
Object obj2 = map3.get(-695765603);
if (obj2 == null) {
obj2 = ((Class) AFa1zSDK.getMediationNetwork((ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 37, 37 - View.combineMeasuredStates(0, 0), (char) ((ViewConfiguration.getScrollBarFadeDuration() >> 16) + 53535))).getMethod("getRevenue", Map.class, String.class);
map3.put(-695765603, obj2);
}
bArr = (byte[]) ((Method) obj2).invoke(null, objArr2);
int i8 = 38 / 0;
byte[] bArr22 = bArr;
AFj1bSDK aFj1bSDK2 = new AFj1bSDK(this.getMonetizationNetwork);
AFe1rSDK<String> aFe1rSDK2 = (AFe1rSDK) AFAdRevenueData(new Object[]{this, new AFe1kSDK(aFj1bSDK2.getMediationNetwork(aFj1bSDK2.getCurrencyIso4217Code.getMonetizationNetwork("https://%svalidate-and-log.%s/api/v1.0/android/validateAndLog?app_id=")), bArr22, "POST", Collections.emptyMap(), true), new AFe1iSDK()}, 725080723, -725080722, System.identityHashCode(this));
component4 = (component2 + 63) % 128;
return aFe1rSDK2;
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 != null) {
throw cause2;
}
throw th2;
}
} catch (Throwable th3) {
AFLogger.INSTANCE.e(AFh1sSDK.PURCHASE_VALIDATION, "AFFinalizer: reflection init failed", th3, false, false);
return null;
}
}
@NonNull
public final AFe1rSDK<AFc1oSDK> getRevenue(AFc1pSDK aFc1pSDK) {
AFe1rSDK<AFc1oSDK> aFe1rSDK = (AFe1rSDK) AFAdRevenueData(new Object[]{this, new AFe1kSDK(aFc1pSDK.component1, AFa1qSDK.getCurrencyIso4217Code((Map<String, ?>) aFc1pSDK.getCurrencyIso4217Code()).toString().getBytes(Charset.defaultCharset()), "POST", Collections.emptyMap(), aFc1pSDK.getMonetizationNetwork()), new AFc1jSDK()}, 725080723, -725080722, System.identityHashCode(this));
int i7 = component4 + 109;
component2 = i7 % 128;
if (i7 % 2 == 0) {
return aFe1rSDK;
}
throw null;
}
public final AFe1rSDK<Map<String, Object>> AFAdRevenueData(String str, String str2) {
String packageName = this.getMonetizationNetwork.getRevenue.getMonetizationNetwork.getPackageName();
AFd1nSDK aFd1nSDK = this.getMonetizationNetwork;
AFe1rSDK<Map<String, Object>> aFe1rSDK = (AFe1rSDK) AFAdRevenueData(new Object[]{this, AFe1pSDK.getMediationNetwork(packageName, AFb1iSDK.getMediationNetwork(aFd1nSDK.getRevenue, aFd1nSDK.getCurrencyIso4217Code), str, str2), new AFe1nSDK()}, 725080723, -725080722, System.identityHashCode(this));
int i7 = component2 + 87;
component4 = i7 % 128;
if (i7 % 2 == 0) {
int i8 = 91 / 0;
}
return aFe1rSDK;
}
public final AFe1rSDK<String> getRevenue(@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", getRevenue());
if (str2 != null) {
int i7 = component4 + 93;
component2 = i7 % 128;
if (i7 % 2 == 0) {
hashMap.put("brand_domain", str2);
} else {
hashMap.put("brand_domain", str2);
throw null;
}
}
String jSONObject = AFa1qSDK.getCurrencyIso4217Code((Map<String, ?>) hashMap).toString();
HashMap hashMap2 = new HashMap();
Object[] objArr = new Object[1];
a((byte) (((Process.getThreadPriority(0) + 20) >> 6) + 115), "\u000f\u0006\b\u0003\u0003\u000e\t\u0000\u0001\u000b\u0001\t", 12 - (Process.myTid() >> 22), objArr);
hashMap2.put(((String) objArr[0]).intern(), getCurrencyIso4217Code(str3, obj, "POST", jSONObject));
StringBuilder sb2 = new StringBuilder();
sb2.append(String.format(getRevenue, AppsFlyerLib.getInstance().getHostPrefix(), AFb1tSDK.getCurrencyIso4217Code().getHostName()));
sb2.append("/");
sb2.append(str);
return getMonetizationNetwork(new AFe1kSDK(sb2.toString(), jSONObject.getBytes(Charset.defaultCharset()), "POST", hashMap2, false), new AFe1iSDK(), true);
}
public final AFe1rSDK<String> AFAdRevenueData(AFh1bSDK aFh1bSDK) {
AFe1rSDK<String> aFe1rSDK = (AFe1rSDK) AFAdRevenueData(new Object[]{this, new AFe1kSDK(aFh1bSDK.component1, aFh1bSDK.AFAdRevenueData(), "POST", Collections.emptyMap(), true), new AFe1iSDK()}, 725080723, -725080722, System.identityHashCode(this));
component4 = (component2 + 5) % 128;
return aFe1rSDK;
}
public final AFe1rSDK<String> getMediationNetwork(@NonNull String str) {
AFe1kSDK aFe1kSDK = new AFe1kSDK(str, null, "GET", Collections.emptyMap(), false);
aFe1kSDK.component1 = 10000;
aFe1kSDK.getCurrencyIso4217Code = false;
AFe1rSDK<String> aFe1rSDK = (AFe1rSDK) AFAdRevenueData(new Object[]{this, aFe1kSDK, new AFe1iSDK()}, 725080723, -725080722, System.identityHashCode(this));
int i7 = component2 + 27;
component4 = i7 % 128;
if (i7 % 2 == 0) {
int i8 = 81 / 0;
}
return aFe1rSDK;
}
private <T> AFe1rSDK<T> getMonetizationNetwork(AFe1kSDK aFe1kSDK, AFe1cSDK<T> aFe1cSDK, boolean z7) {
aFe1kSDK.getMediationNetwork = z7;
AFe1tSDK aFe1tSDK = this.getMediationNetwork;
AFe1rSDK<T> aFe1rSDK = new AFe1rSDK<>(aFe1kSDK, aFe1tSDK.getRevenue, aFe1tSDK.getMonetizationNetwork, aFe1cSDK);
int i7 = component2 + 113;
component4 = i7 % 128;
if (i7 % 2 != 0) {
return aFe1rSDK;
}
throw null;
}
public final AFe1qSDK AFAdRevenueData(Map<String, Object> map, String str) {
try {
try {
Object[] objArr = {map, str};
Map map2 = AFa1zSDK.unregisterClient;
Object obj = map2.get(-695765603);
if (obj == null) {
obj = ((Class) AFa1zSDK.getMediationNetwork(((byte) KeyEvent.getModifierMetaStateMask()) + 38, (KeyEvent.getMaxKeyCode() >> 16) + 37, (char) ((-16723681) - Color.rgb(0, 0, 0)))).getMethod("getRevenue", Map.class, String.class);
map2.put(-695765603, obj);
}
byte[] bArr = (byte[]) ((Method) obj).invoke(null, objArr);
if (bArr == null) {
AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: failed to create bytes", new IllegalArgumentException("failed to create bytes from proxyData"));
return null;
}
component4 = (component2 + 73) % 128;
AFe1qSDK aFe1qSDK = new AFe1qSDK(this.getMonetizationNetwork, bArr);
int i7 = component4 + 105;
component2 = i7 % 128;
if (i7 % 2 == 0) {
return aFe1qSDK;
}
throw null;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause != null) {
throw cause;
}
throw th;
}
} catch (Exception e8) {
AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: reflection init failed", e8);
return null;
}
}
public final AFe1rSDK<String> getCurrencyIso4217Code(AFa1rSDK aFa1rSDK, String str, AFd1oSDK aFd1oSDK) {
byte[] bArr;
int i7 = component4 + 99;
component2 = i7 % 128;
try {
if (i7 % 2 != 0) {
try {
Object[] objArr = {aFa1rSDK, str, aFd1oSDK};
Map map = AFa1zSDK.unregisterClient;
Object obj = map.get(1374633606);
if (obj == null) {
obj = ((Class) AFa1zSDK.getMediationNetwork(37 - Gravity.getAbsoluteGravity(0, 0), 37 - TextUtils.getTrimmedLength(""), (char) ((ViewConfiguration.getScrollDefaultDelay() >> 16) + 53535))).getMethod("AFAdRevenueData", AFa1rSDK.class, String.class, AFd1oSDK.class);
map.put(1374633606, obj);
}
bArr = (byte[]) ((Method) obj).invoke(null, objArr);
int i8 = 5 / 0;
AFe1rSDK<String> aFe1rSDK = (AFe1rSDK) AFAdRevenueData(new Object[]{this, new AFe1kSDK(aFa1rSDK.component1, bArr, "POST", Collections.emptyMap(), aFa1rSDK.getMonetizationNetwork()), new AFe1iSDK()}, 725080723, -725080722, System.identityHashCode(this));
component2 = (component4 + 59) % 128;
return aFe1rSDK;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause != null) {
throw cause;
}
throw th;
}
}
try {
Object[] objArr2 = {aFa1rSDK, str, aFd1oSDK};
Map map2 = AFa1zSDK.unregisterClient;
Object obj2 = map2.get(1374633606);
if (obj2 == null) {
obj2 = ((Class) AFa1zSDK.getMediationNetwork(37 - (ViewConfiguration.getLongPressTimeout() >> 16), View.MeasureSpec.getMode(0) + 37, (char) (53535 - Drawable.resolveOpacity(0, 0)))).getMethod("AFAdRevenueData", AFa1rSDK.class, String.class, AFd1oSDK.class);
map2.put(1374633606, obj2);
}
bArr = (byte[]) ((Method) obj2).invoke(null, objArr2);
AFe1rSDK<String> aFe1rSDK2 = (AFe1rSDK) AFAdRevenueData(new Object[]{this, new AFe1kSDK(aFa1rSDK.component1, bArr, "POST", Collections.emptyMap(), aFa1rSDK.getMonetizationNetwork()), new AFe1iSDK()}, 725080723, -725080722, System.identityHashCode(this));
component2 = (component4 + 59) % 128;
return aFe1rSDK2;
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 != null) {
throw cause2;
}
throw th2;
}
} catch (Throwable th3) {
AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: reflection init failed", th3);
return null;
}
}
private boolean getMediationNetwork() {
return ((Boolean) AFAdRevenueData(new Object[]{this}, 749355586, -749355584, System.identityHashCode(this))).booleanValue();
}
public static void getMonetizationNetwork() {
areAllFieldsValid = new char[]{30273, 30323, 30331, 30310, 30320, 30327, 30275, 30324, 30332, 30311, 30274, 30271, 30326, 30304, 30291, 30325};
component3 = (char) 17292;
}
private static Object AFAdRevenueData(Object[] objArr) {
AFe1sSDK aFe1sSDK = (AFe1sSDK) objArr[0];
AFe1kSDK aFe1kSDK = (AFe1kSDK) objArr[1];
AFe1cSDK aFe1cSDK = (AFe1cSDK) objArr[2];
component2 = (component4 + 65) % 128;
AFe1rSDK monetizationNetwork = aFe1sSDK.getMonetizationNetwork(aFe1kSDK, aFe1cSDK, aFe1sSDK.getMediationNetwork());
int i7 = component4 + 31;
component2 = i7 % 128;
if (i7 % 2 == 0) {
return monetizationNetwork;
}
throw null;
}
public final AFe1rSDK<String> getMediationNetwork(Map<String, Object> map, String str, String str2) {
return (AFe1rSDK) AFAdRevenueData(new Object[]{this, map, str, str2}, -1521127320, 1521127320, System.identityHashCode(this));
}
public final AFe1rSDK<Map<String, String>> getRevenue(@NonNull String str, @NonNull String str2, @NonNull UUID uuid, @NonNull String str3) {
String obj = uuid.toString();
StringBuilder sb2 = new StringBuilder();
sb2.append(String.format(getRevenue, AppsFlyerLib.getInstance().getHostPrefix(), AFb1tSDK.getCurrencyIso4217Code().getHostName()));
sb2.append("/");
sb2.append(str);
sb2.append("?id=");
sb2.append(str2);
String obj2 = sb2.toString();
Map<String, Object> revenue = getRevenue();
String valueOf = String.valueOf(revenue.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(revenue.get("counter")));
hashMap.put("Af-Meta-Model", String.valueOf(revenue.get("model")));
hashMap.put("Af-Meta-Platform", String.valueOf(revenue.get("platformextension")));
hashMap.put("Af-Meta-System-Version", String.valueOf(revenue.get("sdk")));
Object[] objArr = new Object[1];
a((byte) (114 - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1))), "\u000f\u0006\b\u0003\u0003\u000e\t\u0000\u0001\u000b\u0001\t", TextUtils.indexOf((CharSequence) "", '0') + 13, objArr);
hashMap.put(((String) objArr[0]).intern(), getCurrencyIso4217Code(str3, obj, "GET", obj, str, str2, valueOf));
AFe1rSDK<Map<String, String>> aFe1rSDK = (AFe1rSDK) AFAdRevenueData(new Object[]{this, new AFe1kSDK(obj2, null, "GET", hashMap, false), new AFe1hSDK()}, 725080723, -725080722, System.identityHashCode(this));
component2 = (component4 + 21) % 128;
return aFe1rSDK;
}
private static String getCurrencyIso4217Code(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 sb2 = new StringBuilder();
sb2.append(str);
sb2.append(str2);
sb2.append("v2");
String revenue = AFb1mSDK.getRevenue(join, sb2.toString());
component4 = (component2 + 45) % 128;
return revenue;
}
public final AFe1rSDK<String> getCurrencyIso4217Code(Map<String, Object> map, String str, String str2) {
String monetizationNetwork;
component4 = (component2 + 19) % 128;
try {
Object[] objArr = {map, str};
Map map2 = AFa1zSDK.unregisterClient;
Object obj = map2.get(-695765603);
if (obj == null) {
obj = ((Class) AFa1zSDK.getMediationNetwork(37 - (ViewConfiguration.getMaximumFlingVelocity() >> 16), 37 - (ViewConfiguration.getTouchSlop() >> 8), (char) (53535 - (ViewConfiguration.getEdgeSlop() >> 16)))).getMethod("getRevenue", Map.class, String.class);
map2.put(-695765603, obj);
}
byte[] bArr = (byte[]) ((Method) obj).invoke(null, objArr);
AFj1bSDK aFj1bSDK = new AFj1bSDK(this.getMonetizationNetwork);
if (str2 != null && str2.length() != 0) {
component2 = (component4 + 113) % 128;
if (!new Regex("4.?(\\d+)?.?(\\d+)").c(str2) && !new Regex("3.?(\\d+)?.?(\\d+)").c(str2)) {
component4 = (component2 + 93) % 128;
monetizationNetwork = aFj1bSDK.getCurrencyIso4217Code.getMonetizationNetwork("https://%sviap.%s/api/v1/android/validate_purchase_v2?app_id=");
AFe1rSDK<String> aFe1rSDK = (AFe1rSDK) AFAdRevenueData(new Object[]{this, new AFe1kSDK(aFj1bSDK.getCurrencyIso4217Code(aFj1bSDK.getMediationNetwork(monetizationNetwork)), bArr, "POST", Collections.emptyMap(), true), new AFe1iSDK()}, 725080723, -725080722, System.identityHashCode(this));
component4 = (component2 + 121) % 128;
return aFe1rSDK;
}
}
int i7 = component4 + 45;
component2 = i7 % 128;
if (i7 % 2 != 0) {
monetizationNetwork = aFj1bSDK.getCurrencyIso4217Code.getMonetizationNetwork("https://%sviap.%s/api/v1/android/validate_purchase?app_id=");
int i8 = 43 / 0;
} else {
monetizationNetwork = aFj1bSDK.getCurrencyIso4217Code.getMonetizationNetwork("https://%sviap.%s/api/v1/android/validate_purchase?app_id=");
}
AFe1rSDK<String> aFe1rSDK2 = (AFe1rSDK) AFAdRevenueData(new Object[]{this, new AFe1kSDK(aFj1bSDK.getCurrencyIso4217Code(aFj1bSDK.getMediationNetwork(monetizationNetwork)), bArr, "POST", Collections.emptyMap(), true), new AFe1iSDK()}, 725080723, -725080722, System.identityHashCode(this));
component4 = (component2 + 121) % 128;
return aFe1rSDK2;
} catch (Throwable th) {
try {
Throwable cause = th.getCause();
if (cause != null) {
throw cause;
}
throw th;
} catch (Exception e8) {
AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: reflection init failed", e8);
return null;
}
}
}
private Map<String, Object> getRevenue() {
HashMap b8 = C1342c.b("build_number", "6.16.0");
b8.put("counter", Integer.valueOf(this.getMonetizationNetwork.getCurrencyIso4217Code.AFAdRevenueData("appsFlyerCount", 0)));
b8.put("model", Build.MODEL);
Object[] objArr = new Object[1];
a((byte) (13 - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1))), "\u0005\f\u0000\t㘌", (ViewConfiguration.getScrollFriction() > 0.0f ? 1 : (ViewConfiguration.getScrollFriction() == 0.0f ? 0 : -1)) + 4, objArr);
b8.put(((String) objArr[0]).intern(), Build.BRAND);
b8.put("sdk", Integer.toString(Build.VERSION.SDK_INT));
Context context = this.getMonetizationNetwork.getRevenue.getMonetizationNetwork;
b8.put("app_version_name", AFb1qSDK.getRevenue(context, context.getPackageName()));
b8.put("app_id", this.getMonetizationNetwork.getRevenue.getMonetizationNetwork.getPackageName());
b8.put("platformextension", new AFb1cSDK().getMonetizationNetwork());
component4 = (component2 + 95) % 128;
return b8;
}
private <T> AFe1rSDK<T> getRevenue(AFe1kSDK aFe1kSDK, AFe1cSDK<T> aFe1cSDK) {
return (AFe1rSDK) AFAdRevenueData(new Object[]{this, aFe1kSDK, aFe1cSDK}, 725080723, -725080722, System.identityHashCode(this));
}
}