正在查看: BetterTogether v3.0.0 应用的 AFe1qSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: BetterTogether v3.0.0 应用的 AFe1qSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.appsflyer.internal;
import android.content.Context;
import android.graphics.Color;
import android.os.Build;
import android.os.Process;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.adapty.internal.utils.AnalyticsEventTypeAdapter;
import com.appsflyer.AFLogger;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.AppsFlyerProperties;
import com.google.android.gms.auth.api.credentials.ITUX.kbphlTrNhHx;
import g0.b;
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;
public final class AFe1qSDK {
private static int $10 = 0;
private static int $11 = 1;
public static String AFAdRevenueData = null;
private static int component2 = 0;
private static int component3 = 1;
private static long component4;
private static String getRevenue;
private final AFe1gSDK areAllFieldsValid;
private final AppsFlyerProperties getCurrencyIso4217Code;
private final AFe1vSDK getMediationNetwork;
private final AFd1rSDK getMonetizationNetwork;
static {
getMonetizationNetwork();
AFAdRevenueData = "https://%sgcdsdk.%s/install_data/v5.0/";
getRevenue = "https://%sonelink.%s/shortlink-sdk/v2";
int i = component2 + 89;
component3 = i % 128;
if ((i % 2 == 0 ? ',' : '(') != '(') {
throw null;
}
}
public AFe1qSDK(AFe1vSDK aFe1vSDK, AFd1rSDK aFd1rSDK, AppsFlyerProperties appsFlyerProperties, AFe1gSDK aFe1gSDK) {
this.getMediationNetwork = aFe1vSDK;
this.getMonetizationNetwork = aFd1rSDK;
this.getCurrencyIso4217Code = appsFlyerProperties;
this.areAllFieldsValid = aFe1gSDK;
}
private static Object AFAdRevenueData(Object[] objArr) {
AFe1qSDK aFe1qSDK = (AFe1qSDK) objArr[0];
AFc1jSDK aFc1jSDK = (AFc1jSDK) objArr[1];
AFe1rSDK revenue = aFe1qSDK.getRevenue(new AFe1nSDK(((AFa1mSDK) aFc1jSDK).component1, AFa1oSDK.getMonetizationNetwork(aFc1jSDK.getMonetizationNetwork()).toString().getBytes(Charset.defaultCharset()), "POST", Collections.emptyMap(), aFc1jSDK.getRevenue()), (AFe1kSDK) new AFc1qSDK());
int i = component2 + 99;
component3 = i % 128;
if (i % 2 != 0) {
return revenue;
}
int i2 = 15 / 0;
return revenue;
}
private static void a(java.lang.String r11, int r12, java.lang.Object[] r13) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFe1qSDK.a(java.lang.String, int, java.lang.Object[]):void");
}
private static Object getCurrencyIso4217Code(Object[] objArr) {
AFe1qSDK aFe1qSDK = (AFe1qSDK) objArr[0];
Map map = (Map) objArr[1];
String str = (String) objArr[2];
int i = component3 + 25;
component2 = i % 128;
int i2 = i % 2;
try {
Object[] objArr2 = {map, str};
Map map2 = AFa1vSDK.AFLogger;
Object obj = map2.get(-1592476798);
if (obj == null) {
obj = ((Class) AFa1vSDK.AFAdRevenueData((char) (TextUtils.indexOf("", "") + 59275), 37 - (ViewConfiguration.getFadingEdgeLength() >> 16), 37 - (ViewConfiguration.getKeyRepeatTimeout() >> 16))).getMethod("getCurrencyIso4217Code", Map.class, String.class);
map2.put(-1592476798, obj);
}
byte[] bArr = (byte[]) ((Method) obj).invoke(null, objArr2);
AFj1iSDK aFj1iSDK = new AFj1iSDK(aFe1qSDK.getMonetizationNetwork);
AFe1rSDK revenue = aFe1qSDK.getRevenue(new AFe1nSDK(aFj1iSDK.getCurrencyIso4217Code(aFj1iSDK.getMonetizationNetwork.getMediationNetwork("https://%svalidate-and-log.%s/api/v1.0/android/validateAndLog?app_id=")), bArr, "POST", Collections.emptyMap(), true), (AFe1kSDK) new AFe1oSDK());
int i3 = component2 + 21;
component3 = i3 % 128;
if (i3 % 2 != 0) {
return revenue;
}
throw null;
} catch (Throwable th2) {
try {
Throwable cause = th2.getCause();
if (cause != null) {
throw cause;
}
throw th2;
} catch (Throwable th3) {
AFLogger.INSTANCE.e(AFh1xSDK.PURCHASE_VALIDATION, "AFFinalizer: reflection init failed", th3, false, false);
return null;
}
}
}
public static Object getMediationNetwork(Object[] objArr, int i, int i2, int i3) {
int i4 = ~i;
int i5 = ((~(i4 | i2)) * 2748) + (i2 * 917) + (i * (-1831));
int i6 = i4 | (~i2);
int i7 = (((~(i | i2)) | (~i6)) * 916) + (i6 * (-916)) + i5;
return i7 != 1 ? i7 != 2 ? getCurrencyIso4217Code(objArr) : AFAdRevenueData(objArr) : getMonetizationNetwork(objArr);
}
public final com.appsflyer.internal.AFe1rSDK<java.lang.String> getMonetizationNetwork(java.util.Map<java.lang.String, java.lang.Object> r13, java.lang.String r14, java.lang.String r15) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFe1qSDK.getMonetizationNetwork(java.util.Map, java.lang.String, java.lang.String):com.appsflyer.internal.AFe1rSDK");
}
public final AFe1rSDK<String> getRevenue(AFa1mSDK aFa1mSDK, String str, AFd1lSDK aFd1lSDK) {
int i = component2 + 85;
component3 = i % 128;
int i2 = i % 2;
try {
Object[] objArr = {aFa1mSDK, str, aFd1lSDK};
Map map = AFa1vSDK.AFLogger;
Object obj = map.get(1104110112);
if (obj == null) {
obj = ((Class) AFa1vSDK.AFAdRevenueData((char) ((ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 59276), 37 - View.getDefaultSize(0, 0), Color.red(0) + 37)).getMethod("getMediationNetwork", AFa1mSDK.class, String.class, AFd1lSDK.class);
map.put(1104110112, obj);
}
AFe1rSDK<String> revenue = getRevenue(new AFe1nSDK(aFa1mSDK.component1, (byte[]) ((Method) obj).invoke(null, objArr), "POST", Collections.emptyMap(), aFa1mSDK.getRevenue()), (AFe1kSDK) new AFe1oSDK());
int i3 = component3 + 89;
component2 = i3 % 128;
int i4 = i3 % 2;
return revenue;
} catch (Throwable th2) {
try {
Throwable cause = th2.getCause();
if (cause != null) {
throw cause;
}
throw th2;
} catch (Throwable th3) {
AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: reflection init failed", th3);
return null;
}
}
}
public final com.appsflyer.internal.AFe1rSDK<java.lang.String> getMediationNetwork(java.util.Map<java.lang.String, java.lang.Object> r18, java.lang.String r19, java.lang.String r20) {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFe1qSDK.getMediationNetwork(java.util.Map, java.lang.String, java.lang.String):com.appsflyer.internal.AFe1rSDK");
}
public final AFe1zSDK AFAdRevenueData(Map<String, Object> map, String str) {
int i = component3 + 93;
component2 = i % 128;
int i2 = i % 2;
try {
try {
Object[] objArr = {map, str};
Map map2 = AFa1vSDK.AFLogger;
Object obj = map2.get(-1592476798);
if (obj == null) {
obj = ((Class) AFa1vSDK.AFAdRevenueData((char) ((ViewConfiguration.getFadingEdgeLength() >> 16) + 59275), 38 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)), 37 - TextUtils.indexOf("", ""))).getMethod("getCurrencyIso4217Code", Map.class, String.class);
map2.put(-1592476798, obj);
}
byte[] bArr = (byte[]) ((Method) obj).invoke(null, objArr);
if (bArr != null) {
return new AFe1zSDK(this.getMonetizationNetwork, bArr);
}
AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: failed to create bytes", new IllegalArgumentException("failed to create bytes from proxyData"));
int i3 = component2 + 25;
component3 = i3 % 128;
if (i3 % 2 == 0) {
throw null;
}
return null;
} catch (Throwable th2) {
Throwable cause = th2.getCause();
if (cause != null) {
throw cause;
}
throw th2;
}
} catch (Exception e3) {
AFLogger.afErrorLogForExcManagerOnly("AFFinalizer: reflection init failed", e3);
return null;
}
}
public final AFe1rSDK<Map<String, Object>> getRevenue(String str, String str2) {
String packageName = this.getMonetizationNetwork.getMonetizationNetwork.getCurrencyIso4217Code.getPackageName();
AFd1rSDK aFd1rSDK = this.getMonetizationNetwork;
AFe1rSDK<Map<String, Object>> revenue = getRevenue((AFe1nSDK) AFe1uSDK.getCurrencyIso4217Code(packageName, AFb1mSDK.getMediationNetwork(aFd1rSDK.getMonetizationNetwork, aFd1rSDK.getRevenue), str, str2), (AFe1kSDK) new AFe1tSDK());
int i = component3 + 119;
component2 = i % 128;
int i2 = i % 2;
return revenue;
}
private Map<String, Object> getCurrencyIso4217Code() {
HashMap hashMap = new HashMap();
hashMap.put("build_number", "6.15.1");
hashMap.put(AnalyticsEventTypeAdapter.COUNTER, Integer.valueOf(this.getMonetizationNetwork.getRevenue.AFAdRevenueData("appsFlyerCount", 0)));
hashMap.put("model", Build.MODEL);
Object[] objArr = new Object[1];
a("⹈泼\ufbc8⸪삖䎦ꎙ䞀鹌", ViewConfiguration.getEdgeSlop() >> 16, objArr);
hashMap.put(((String) objArr[0]).intern(), Build.BRAND);
hashMap.put("sdk", Integer.toString(Build.VERSION.SDK_INT));
Context context = this.getMonetizationNetwork.getMonetizationNetwork.getCurrencyIso4217Code;
hashMap.put("app_version_name", AFb1qSDK.getMediationNetwork(context, context.getPackageName()));
hashMap.put("app_id", this.getMonetizationNetwork.getMonetizationNetwork.getCurrencyIso4217Code.getPackageName());
hashMap.put("platformextension", new AFb1cSDK().getRevenue());
int i = component2 + 125;
component3 = i % 128;
if (i % 2 == 0) {
throw null;
}
return hashMap;
}
private boolean AFAdRevenueData() {
int i = component2 + 65;
component3 = i % 128;
int i2 = i % 2;
if (this.getCurrencyIso4217Code.getBoolean("http_cache", true)) {
return false;
}
int i3 = component2 + 79;
component3 = i3 % 128;
return (i3 % 2 == 0 ? 'a' : (char) 18) == 18;
}
public final AFe1rSDK<AFc1oSDK> AFAdRevenueData(AFc1jSDK aFc1jSDK) {
return (AFe1rSDK) getMediationNetwork(new Object[]{this, aFc1jSDK}, -1667700185, 1667700187, System.identityHashCode(this));
}
private static Object getMonetizationNetwork(Object[] objArr) {
String str;
AFe1qSDK aFe1qSDK = (AFe1qSDK) objArr[0];
boolean booleanValue = ((Boolean) objArr[1]).booleanValue();
boolean booleanValue2 = ((Boolean) objArr[2]).booleanValue();
String str2 = (String) objArr[3];
((Number) objArr[4]).intValue();
int i = component2 + 19;
component3 = i % 128;
int i2 = i % 2;
AFe1gSDK aFe1gSDK = aFe1qSDK.areAllFieldsValid;
Intrinsics.checkNotNullParameter(str2, "");
String str3 = !(booleanValue ^ true) ? AFe1gSDK.getRevenue : AFe1gSDK.getMediationNetwork;
String str4 = (booleanValue2 ? (char) 1 : '\'') != '\'' ? "stg" : "";
Object[] objArr2 = new Object[4];
if ((AFe1gSDK.getMediationNetwork() ? ';' : '2') != ';') {
str = "";
} else {
int i3 = component2 + 109;
component3 = i3 % 128;
if (!(i3 % 2 == 0)) {
str = (String) aFe1gSDK.AFAdRevenueData.getValue();
} else {
throw null;
}
}
objArr2[0] = str;
objArr2[1] = str4;
objArr2[2] = aFe1gSDK.getCurrencyIso4217Code();
objArr2[3] = str2;
AFe1nSDK aFe1nSDK = new AFe1nSDK(b.o(objArr2, 4, str3, ""), kbphlTrNhHx.nycJaF);
aFe1nSDK.component4 = 1500;
return aFe1qSDK.getRevenue(aFe1nSDK, (AFe1kSDK) new AFe1pSDK());
}
public final AFe1rSDK<Map<String, String>> getRevenue(String str, String str2, UUID uuid, String str3) {
String obj = uuid.toString();
StringBuilder sb2 = new StringBuilder();
sb2.append(String.format(getRevenue, AppsFlyerLib.getInstance().getHostPrefix(), AFb1rSDK.getRevenue().getHostName()));
sb2.append("/");
sb2.append(str);
sb2.append("?id=");
sb2.append(str2);
String obj2 = sb2.toString();
Map<String, Object> currencyIso4217Code = getCurrencyIso4217Code();
String valueOf = String.valueOf(currencyIso4217Code.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(currencyIso4217Code.get(AnalyticsEventTypeAdapter.COUNTER)));
hashMap.put("Af-Meta-Model", String.valueOf(currencyIso4217Code.get("model")));
hashMap.put("Af-Meta-Platform", String.valueOf(currencyIso4217Code.get("platformextension")));
hashMap.put("Af-Meta-System-Version", String.valueOf(currencyIso4217Code.get("sdk")));
Object[] objArr = new Object[1];
a("廖뻁퀁店\u12bf릴蠜붯\ueedf\ue2de\ud8ffൽ㹢뉬梃\udcd9", ViewConfiguration.getJumpTapTimeout() >> 16, objArr);
hashMap.put(((String) objArr[0]).intern(), getRevenue(str3, obj, "GET", obj, str, str2, valueOf));
AFe1rSDK<Map<String, String>> revenue = getRevenue(new AFe1nSDK(obj2, (byte[]) null, "GET", hashMap, false), (AFe1kSDK) new AFe1hSDK());
int i = component2 + 75;
component3 = i % 128;
if ((i % 2 == 0 ? (char) 17 : '0') == '0') {
return revenue;
}
throw null;
}
private <T> AFe1rSDK<T> getCurrencyIso4217Code(AFe1nSDK aFe1nSDK, AFe1kSDK<T> aFe1kSDK, boolean z) {
aFe1nSDK.getMediationNetwork = z;
AFe1vSDK aFe1vSDK = this.getMediationNetwork;
AFe1rSDK<T> aFe1rSDK = new AFe1rSDK<>(aFe1nSDK, aFe1vSDK.AFAdRevenueData, aFe1vSDK.getMediationNetwork, aFe1kSDK);
int i = component2 + 47;
component3 = i % 128;
int i2 = i % 2;
return aFe1rSDK;
}
public final AFe1rSDK<String> getRevenue(String str) {
AFe1nSDK aFe1nSDK = new AFe1nSDK(str, (byte[]) null, "GET", Collections.emptyMap(), false);
aFe1nSDK.component4 = 10000;
aFe1nSDK.getMonetizationNetwork = false;
AFe1rSDK<String> revenue = getRevenue(aFe1nSDK, (AFe1kSDK) new AFe1oSDK());
int i = component2 + 109;
component3 = i % 128;
if (i % 2 != 0) {
return revenue;
}
throw null;
}
private <T> AFe1rSDK<T> getRevenue(AFe1nSDK aFe1nSDK, AFe1kSDK<T> aFe1kSDK) {
int i = component2 + 49;
component3 = i % 128;
if (!(i % 2 == 0)) {
return getCurrencyIso4217Code(aFe1nSDK, aFe1kSDK, AFAdRevenueData());
}
getCurrencyIso4217Code(aFe1nSDK, aFe1kSDK, AFAdRevenueData());
throw null;
}
private static String getRevenue(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 currencyIso4217Code = AFb1kSDK.getCurrencyIso4217Code(join, sb2.toString());
int i = component2 + 119;
component3 = i % 128;
if (i % 2 != 0) {
return currencyIso4217Code;
}
throw null;
}
public final AFe1rSDK<String> getMonetizationNetwork(AFh1eSDK aFh1eSDK) {
AFe1rSDK<String> revenue = getRevenue(new AFe1nSDK(((AFa1mSDK) aFh1eSDK).component1, aFh1eSDK.getMediationNetwork(), "POST", Collections.emptyMap(), true), (AFe1kSDK) new AFe1oSDK());
int i = component3 + 11;
component2 = i % 128;
int i2 = i % 2;
return revenue;
}
public final AFe1rSDK<String> getMonetizationNetwork(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("meta", getCurrencyIso4217Code());
if (str2 != null) {
hashMap.put("brand_domain", str2);
int i = component2 + 71;
component3 = i % 128;
int i2 = i % 2;
}
String jSONObject = AFa1oSDK.getMonetizationNetwork(hashMap).toString();
HashMap hashMap2 = new HashMap();
Object[] objArr = new Object[1];
a("廖뻁퀁店\u12bf릴蠜붯\ueedf\ue2de\ud8ffൽ㹢뉬梃\udcd9", (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) - 1, objArr);
hashMap2.put(((String) objArr[0]).intern(), getRevenue(str3, obj, "POST", jSONObject));
StringBuilder sb2 = new StringBuilder();
sb2.append(String.format(getRevenue, AppsFlyerLib.getInstance().getHostPrefix(), AFb1rSDK.getRevenue().getHostName()));
sb2.append("/");
sb2.append(str);
AFe1rSDK<String> currencyIso4217Code = getCurrencyIso4217Code(new AFe1nSDK(sb2.toString(), jSONObject.getBytes(Charset.defaultCharset()), "POST", hashMap2, false), new AFe1oSDK(), true);
int i3 = component2 + 87;
component3 = i3 % 128;
if (i3 % 2 != 0) {
return currencyIso4217Code;
}
throw null;
}
public static void getMonetizationNetwork() {
component4 = -1635884646589849241L;
}
public final AFe1rSDK<AFi1ySDK> getMonetizationNetwork(boolean z, boolean z2, String str, int i) {
return (AFe1rSDK) getMediationNetwork(new Object[]{this, Boolean.valueOf(z), Boolean.valueOf(z2), str, Integer.valueOf(i)}, 1386933028, -1386933027, i);
}
public final AFe1rSDK<String> getMonetizationNetwork(Map<String, Object> map, String str) {
return (AFe1rSDK) getMediationNetwork(new Object[]{this, map, str}, -1279437846, 1279437846, System.identityHashCode(this));
}
}