正在查看: EfectivoYa v2.3 应用的 AFc1qSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: EfectivoYa v2.3 应用的 AFc1qSDK.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.appsflyer.internal;
import android.content.Context;
import android.graphics.Color;
import android.graphics.PointF;
import android.os.Build;
import android.os.Process;
import android.os.SystemClock;
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 androidx.appcompat.app.AppCompatDelegate;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.AppsFlyerProperties;
import com.google.android.gms.common.ConnectionResult;
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 org.json.JSONObject;
public final class AFc1qSDK {
@VisibleForTesting
private static String AFInAppEventType = null;
private static int AFLogger$LogLevel = 1;
private static int afDebugLog;
private static char[] afInfoLog;
private static long afRDLog;
public static String valueOf;
@VisibleForTesting
private static String values;
private final AFb1cSDK AFInAppEventParameterName;
private final AFc1pSDK AFKeystoreWrapper;
private final AFc1cSDK AFLogger;
private final AppsFlyerProperties afErrorLog;
static {
AFInAppEventType();
AFInAppEventType = "https://%smonitorsdk.%s/remote-debug?app_id=";
valueOf = "https://%sgcdsdk.%s/install_data/v5.0/";
values = "https://%sonelink.%s/shortlink-sdk/v2";
int i2 = AFLogger$LogLevel + 29;
afDebugLog = i2 % 128;
int i3 = i2 % 2;
}
public AFc1qSDK(AFc1pSDK aFc1pSDK, AFb1cSDK aFb1cSDK, AppsFlyerProperties appsFlyerProperties, AFc1cSDK aFc1cSDK) {
this.AFKeystoreWrapper = aFc1pSDK;
this.AFInAppEventParameterName = aFb1cSDK;
this.afErrorLog = appsFlyerProperties;
this.AFLogger = aFc1cSDK;
}
static void AFInAppEventType() {
afInfoLog = new char[]{'A', 38861, 12155, 51026, 24261, 63024, 36460, 9676, 48428, 21878, 60636, 33852, 55659, 20176, 63038, 7782, 34753};
afRDLog = -3902864565468424277L;
}
@NonNull
public final AFc1nSDK<String> AFInAppEventParameterName(Map<String, Object> map, String str) {
StringBuilder sb = new StringBuilder();
sb.append(String.format("https://%sviap.%s/api/v1/android/validate_purchase?app_id=", AppsFlyerLib.getInstance().getHostPrefix(), AFa1dSDK.valueOf().getHostName()));
sb.append(this.AFInAppEventParameterName.values.AFInAppEventParameterName.getPackageName());
try {
AFc1nSDK<String> values2 = values(new AFb1ySDK(sb.toString(), (byte[]) ((Class) AFa1wSDK.AFKeystoreWrapper(73 - Color.alpha(0), 37 - (PointF.length(0.0f, 0.0f) > 0.0f ? 1 : (PointF.length(0.0f, 0.0f) == 0.0f ? 0 : -1)), (char) (KeyEvent.getMaxKeyCode() >> 16))).getMethod("AFInAppEventParameterName", Map.class, String.class).invoke(null, map, str), "POST", Collections.emptyMap(), true), new AFc1jSDK());
int i2 = afDebugLog + 75;
AFLogger$LogLevel = i2 % 128;
int i3 = i2 % 2;
return values2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause != null) {
throw cause;
}
throw th;
}
}
public final AFc1nSDK<String> AFKeystoreWrapper(AFa1qSDK aFa1qSDK, String str, AFb1bSDK aFb1bSDK) {
try {
AFc1nSDK<String> values2 = values(new AFb1ySDK(aFa1qSDK.afInfoLog, (byte[]) ((Class) AFa1wSDK.AFKeystoreWrapper(74 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), 36 - TextUtils.indexOf((CharSequence) "", '0'), (char) (ViewConfiguration.getScrollDefaultDelay() >> 16))).getMethod("AFKeystoreWrapper", AFa1qSDK.class, String.class, AFb1bSDK.class).invoke(null, aFa1qSDK, str, aFb1bSDK), "POST", Collections.emptyMap(), aFa1qSDK.AFKeystoreWrapper()), new AFc1jSDK());
int i2 = afDebugLog + 31;
AFLogger$LogLevel = i2 % 128;
if ((i2 % 2 == 0 ? 'Q' : ')') != 'Q') {
return values2;
}
throw null;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause != null) {
throw cause;
}
throw th;
}
}
public final AFc1nSDK<String> valueOf(@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("meta", AFKeystoreWrapper());
if ((str2 != null ? 'U' : (char) 19) != 19) {
int i2 = AFLogger$LogLevel + 1;
afDebugLog = i2 % 128;
char c2 = i2 % 2 != 0 ? 'V' : (char) 2;
hashMap.put("brand_domain", str2);
if (c2 != 2) {
throw null;
}
int i3 = AFLogger$LogLevel + 111;
afDebugLog = i3 % 128;
int i4 = i3 % 2;
}
String jSONObject = AFa1rSDK.values(hashMap).toString();
HashMap hashMap2 = new HashMap();
Object[] objArr = new Object[1];
valueOf((char) View.resolveSize(0, 0), (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 11, Color.blue(0), objArr);
hashMap2.put(((String) objArr[0]).intern(), values(str3, obj, "POST", jSONObject));
StringBuilder sb = new StringBuilder();
sb.append(String.format(values, AppsFlyerLib.getInstance().getHostPrefix(), AFa1dSDK.valueOf().getHostName()));
sb.append("/");
sb.append(str);
return AFKeystoreWrapper(new AFb1ySDK(sb.toString(), jSONObject.getBytes(Charset.defaultCharset()), "POST", hashMap2, false), (AFc1fSDK) new AFc1jSDK(), true);
}
@NonNull
public final AFc1nSDK<String> values(Map<String, Object> map, String str) {
StringBuilder sb = new StringBuilder();
sb.append(String.format("https://%sars.%s/api/v2/android/validate_subscription?app_id=", AppsFlyerLib.getInstance().getHostPrefix(), AFa1dSDK.valueOf().getHostName()));
sb.append(this.AFInAppEventParameterName.values.AFInAppEventParameterName.getPackageName());
try {
AFc1nSDK<String> values2 = values(new AFb1ySDK(sb.toString(), (byte[]) ((Class) AFa1wSDK.AFKeystoreWrapper((Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 72, 37 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), (char) ((-1) - Process.getGidForName("")))).getMethod("AFInAppEventParameterName", Map.class, String.class).invoke(null, map, str), "POST", Collections.emptyMap(), true), new AFc1jSDK());
int i2 = AFLogger$LogLevel + 111;
afDebugLog = i2 % 128;
if ((i2 % 2 != 0 ? '/' : '@') == '@') {
return values2;
}
throw null;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause != null) {
throw cause;
}
throw th;
}
}
@NonNull
public final AFc1nSDK<AFf1vSDK> AFInAppEventType(boolean z2, boolean z3, @NonNull String str, int i2) {
String str2;
String str3;
int i3 = afDebugLog + 95;
AFLogger$LogLevel = i3 % 128;
int i4 = i3 % 2;
AFc1cSDK aFc1cSDK = this.AFLogger;
Intrinsics.checkNotNullParameter(str, "");
String str4 = (z2 ? '/' : 'J') != '/' ? AFc1cSDK.AFKeystoreWrapper : AFc1cSDK.valueOf;
if (z3) {
int i5 = afDebugLog + 37;
AFLogger$LogLevel = i5 % 128;
int i6 = i5 % 2;
str2 = "stg";
} else {
str2 = "";
}
kotlin.jvm.internal.o oVar = kotlin.jvm.internal.o.a;
Object[] objArr = new Object[4];
if (AFc1cSDK.AFInAppEventParameterName()) {
int i7 = AFLogger$LogLevel + 1;
afDebugLog = i7 % 128;
if ((i7 % 2 != 0 ? '\t' : '/') == '\t') {
throw null;
}
str3 = (String) aFc1cSDK.AFInAppEventParameterName.getValue();
} else {
str3 = "";
}
objArr[0] = str3;
objArr[1] = str2;
objArr[2] = aFc1cSDK.AFInAppEventType();
objArr[3] = str;
String format = String.format(str4, Arrays.copyOf(objArr, 4));
Intrinsics.checkNotNullExpressionValue(format, "");
AFb1ySDK aFb1ySDK = new AFb1ySDK(format, "GET");
aFb1ySDK.afDebugLog = ConnectionResult.DRIVE_EXTERNAL_STORAGE_REQUIRED;
return values(aFb1ySDK, new AFc1kSDK());
}
public final AFc1nSDK<Map<String, String>> AFKeystoreWrapper(@NonNull String str, @NonNull String str2, @NonNull UUID uuid, @NonNull String str3) {
String obj = uuid.toString();
StringBuilder sb = new StringBuilder();
sb.append(String.format(values, AppsFlyerLib.getInstance().getHostPrefix(), AFa1dSDK.valueOf().getHostName()));
sb.append("/");
sb.append(str);
sb.append("?id=");
sb.append(str2);
String obj2 = sb.toString();
Map<String, Object> AFKeystoreWrapper = AFKeystoreWrapper();
String valueOf2 = String.valueOf(AFKeystoreWrapper.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(AFKeystoreWrapper.get("counter")));
hashMap.put("Af-Meta-Model", String.valueOf(AFKeystoreWrapper.get("model")));
hashMap.put("Af-Meta-Platform", String.valueOf(AFKeystoreWrapper.get("platformextension")));
hashMap.put("Af-Meta-System-Version", String.valueOf(AFKeystoreWrapper.get("sdk")));
Object[] objArr = new Object[1];
valueOf((char) (TextUtils.indexOf((CharSequence) "", '0') + 1), (Process.myTid() >> 22) + 12, ViewConfiguration.getJumpTapTimeout() >> 16, objArr);
hashMap.put(((String) objArr[0]).intern(), values(str3, obj, "GET", obj, str, str2, valueOf2));
AFc1nSDK<Map<String, String>> values2 = values(new AFb1ySDK(obj2, null, "GET", hashMap, false), new AFc1eSDK());
int i2 = AFLogger$LogLevel + 5;
afDebugLog = i2 % 128;
int i3 = i2 % 2;
return values2;
}
@NonNull
public final AFc1nSDK<String> AFInAppEventParameterName(Map<String, Object> map) {
StringBuilder sb = new StringBuilder();
sb.append(String.format(AFInAppEventType, AppsFlyerLib.getInstance().getHostPrefix(), AFa1dSDK.valueOf().getHostName()));
sb.append(this.AFInAppEventParameterName.values.AFInAppEventParameterName.getPackageName());
AFc1nSDK<String> values2 = values(new AFb1ySDK(sb.toString(), new JSONObject(map).toString().getBytes(Charset.defaultCharset()), "POST", Collections.emptyMap(), false, false), new AFc1jSDK());
int i2 = AFLogger$LogLevel + AppCompatDelegate.FEATURE_SUPPORT_ACTION_BAR_OVERLAY;
afDebugLog = i2 % 128;
if ((i2 % 2 != 0 ? 'S' : '%') != '%') {
int i3 = 18 / 0;
}
return values2;
}
public final AFc1nSDK<String> values(AFe1eSDK aFe1eSDK) {
AFc1nSDK<String> values2 = values(new AFb1ySDK(aFe1eSDK.afInfoLog, aFe1eSDK.valueOf(), "POST", Collections.emptyMap(), true), new AFc1jSDK());
int i2 = afDebugLog + 63;
AFLogger$LogLevel = i2 % 128;
if (!(i2 % 2 == 0)) {
return values2;
}
throw null;
}
public final AFc1nSDK<Map<String, Object>> AFInAppEventType(String str, String str2) {
String packageName = this.AFInAppEventParameterName.values.AFInAppEventParameterName.getPackageName();
AFb1cSDK aFb1cSDK = this.AFInAppEventParameterName;
AFc1nSDK<Map<String, Object>> values2 = values(AFc1oSDK.AFKeystoreWrapper(packageName, AFa1aSDK.AFInAppEventParameterName(aFb1cSDK.values, aFb1cSDK.AFInAppEventType), str, str2), new AFc1iSDK());
int i2 = AFLogger$LogLevel + 117;
afDebugLog = i2 % 128;
int i3 = i2 % 2;
return values2;
}
public final AFc1nSDK<String> values(@NonNull String str) {
AFb1ySDK aFb1ySDK = new AFb1ySDK(str, null, "GET", Collections.emptyMap(), false);
aFb1ySDK.afDebugLog = 10000;
aFb1ySDK.AFKeystoreWrapper = false;
AFc1nSDK<String> values2 = values(aFb1ySDK, new AFc1jSDK());
int i2 = afDebugLog + 119;
AFLogger$LogLevel = i2 % 128;
if ((i2 % 2 == 0 ? (char) 22 : '\\') != 22) {
return values2;
}
throw null;
}
private boolean valueOf() {
throw new UnsupportedOperationException("Method not decompiled: com.appsflyer.internal.AFc1qSDK.valueOf():boolean");
}
private static void valueOf(char c2, int i2, int i3, Object[] objArr) {
String str;
synchronized (AFg1iSDK.valueOf) {
char[] cArr = new char[i2];
AFg1iSDK.values = 0;
while (true) {
int i4 = AFg1iSDK.values;
if (i4 < i2) {
cArr[i4] = (char) ((afInfoLog[i3 + i4] ^ (i4 * afRDLog)) ^ c2);
AFg1iSDK.values = i4 + 1;
} else {
str = new String(cArr);
}
}
}
objArr[0] = str;
}
private <T> AFc1nSDK<T> values(AFb1ySDK aFb1ySDK, AFc1fSDK<T> aFc1fSDK) {
int i2 = AFLogger$LogLevel + 29;
afDebugLog = i2 % 128;
int i3 = i2 % 2;
AFc1nSDK<T> AFKeystoreWrapper = AFKeystoreWrapper(aFb1ySDK, aFc1fSDK, valueOf());
int i4 = AFLogger$LogLevel + 107;
afDebugLog = i4 % 128;
if (i4 % 2 == 0) {
return AFKeystoreWrapper;
}
int i5 = 22 / 0;
return AFKeystoreWrapper;
}
@VisibleForTesting
private Map<String, Object> AFKeystoreWrapper() {
HashMap hashMap = new HashMap();
hashMap.put("build_number", "6.12.1");
hashMap.put("counter", Integer.valueOf(this.AFInAppEventParameterName.AFInAppEventType.AFInAppEventType("appsFlyerCount", 0)));
hashMap.put("model", Build.MODEL);
Object[] objArr = new Object[1];
valueOf((char) (55561 - (ViewConfiguration.getScrollBarFadeDuration() >> 16)), (ViewConfiguration.getMinimumFlingVelocity() >> 16) + 5, (ViewConfiguration.getTouchSlop() >> 8) + 12, objArr);
hashMap.put(((String) objArr[0]).intern(), Build.BRAND);
hashMap.put("sdk", Integer.toString(Build.VERSION.SDK_INT));
Context context = this.AFInAppEventParameterName.values.AFInAppEventParameterName;
hashMap.put("app_version_name", AFa1cSDK.AFInAppEventParameterName(context, context.getPackageName()));
hashMap.put("app_id", this.AFInAppEventParameterName.values.AFInAppEventParameterName.getPackageName());
hashMap.put("platformextension", new AFb1xSDK().values());
int i2 = afDebugLog + 103;
AFLogger$LogLevel = i2 % 128;
int i3 = i2 % 2;
return hashMap;
}
private static String values(String str, String str2, String... strArr) {
ArrayList arrayList = new ArrayList(Arrays.asList(strArr));
arrayList.add(1, "v2");
String values2 = AFb1zSDK.values((String[]) arrayList.toArray(new String[0]));
StringBuilder sb = new StringBuilder();
sb.append(str);
sb.append(str2);
sb.append("v2");
String AFKeystoreWrapper = AFb1zSDK.AFKeystoreWrapper(values2, sb.toString());
int i2 = AFLogger$LogLevel + 123;
afDebugLog = i2 % 128;
if ((i2 % 2 != 0 ? 'Z' : '*') == '*') {
return AFKeystoreWrapper;
}
throw null;
}
private <T> AFc1nSDK<T> AFKeystoreWrapper(AFb1ySDK aFb1ySDK, AFc1fSDK<T> aFc1fSDK, boolean z2) {
aFb1ySDK.valueOf = z2;
AFc1pSDK aFc1pSDK = this.AFKeystoreWrapper;
AFc1nSDK<T> aFc1nSDK = new AFc1nSDK<>(aFb1ySDK, aFc1pSDK.valueOf, aFc1pSDK.values, aFc1fSDK);
int i2 = afDebugLog + 27;
AFLogger$LogLevel = i2 % 128;
if ((i2 % 2 == 0 ? '\t' : '7') != '\t') {
return aFc1nSDK;
}
throw null;
}
}