MD5 校验值:51aae3247d6bd20bca268c4c9a4dd21c
AFc1hSDK.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package com.appsflyer.internal; import android.content.Context; import android.graphics.ImageFormat; import android.media.AudioTrack; import android.os.Build; import android.os.Process; import android.os.SystemClock; import android.text.TextUtils; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import androidx.annotation.NonNull; import com.appsflyer.AppsFlyerLib; import com.appsflyer.AppsFlyerProperties; import com.google.android.gms.common.ConnectionResult; import com.google.android.gms.fido.fido2.api.common.UserVerificationMethods; import java.lang.ref.WeakReference; 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.y; import org.json.JSONObject; public final class AFc1hSDK { private static int $10 = 0; private static int $11 = 1; private static String AFInAppEventParameterName = null; private static String AFKeystoreWrapper = null; private static int AFLogger$LogLevel = 0; private static char AFVersionDeclaration = 0; private static char afDebugLog = 0; private static char afErrorLog = 0; private static char afInfoLog = 0; private static int getLevel = 1; public static String valueOf; private final AFc1dSDK AFInAppEventType; private final AFd1qSDK AFLogger; private final AppsFlyerProperties afRDLog; private final AFc1vSDK values; static { AFInAppEventType(); AFKeystoreWrapper = "https://%smonitorsdk.%s/remote-debug?app_id="; valueOf = "https://%sgcdsdk.%s/install_data/v5.0/"; AFInAppEventParameterName = "https://%sonelink.%s/shortlink-sdk/v2"; int i5 = AFLogger$LogLevel + 39; getLevel = i5 % UserVerificationMethods.USER_VERIFY_PATTERN; if (i5 % 2 == 0) { throw null; } } public AFc1hSDK(AFc1dSDK aFc1dSDK, AFc1vSDK aFc1vSDK, AppsFlyerProperties appsFlyerProperties, AFd1qSDK aFd1qSDK) { this.AFInAppEventType = aFc1dSDK; this.values = aFc1vSDK; this.afRDLog = appsFlyerProperties; this.AFLogger = aFd1qSDK; } private <T> AFc1eSDK<T> AFInAppEventParameterName(AFd1vSDK aFd1vSDK, AFd1wSDK<T> aFd1wSDK, boolean z5) { aFd1vSDK.AFKeystoreWrapper = z5; AFc1dSDK aFc1dSDK = this.AFInAppEventType; AFc1eSDK<T> aFc1eSDK = new AFc1eSDK<>(aFd1vSDK, aFc1dSDK.values, aFc1dSDK.valueOf, aFd1wSDK); getLevel = (AFLogger$LogLevel + 111) % UserVerificationMethods.USER_VERIFY_PATTERN; return aFc1eSDK; } public final AFc1eSDK<Map<String, String>> AFInAppEventType(@NonNull String str, @NonNull String str2, @NonNull UUID uuid, @NonNull String str3) { String obj = uuid.toString(); StringBuilder sb = new StringBuilder(); sb.append(String.format(AFInAppEventParameterName, AppsFlyerLib.getInstance().getHostPrefix(), AFa1dSDK.valueOf().getHostName())); sb.append("/"); sb.append(str); sb.append("?id="); sb.append(str2); String obj2 = sb.toString(); Map<String, Object> values = values(); String valueOf2 = String.valueOf(values.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(values.get("counter"))); hashMap.put("Af-Meta-Model", String.valueOf(values.get("model"))); hashMap.put("Af-Meta-Platform", String.valueOf(values.get("platformextension"))); hashMap.put("Af-Meta-System-Version", String.valueOf(values.get("sdk"))); Object[] objArr = new Object[1]; AFKeystoreWrapper("뺃뎓ヺ쭺㭝\ue473\udc59犙态\u0872괩ܚ", (AudioTrack.getMinVolume() > 0.0f ? 1 : (AudioTrack.getMinVolume() == 0.0f ? 0 : -1)) + 12, objArr); hashMap.put(((String) objArr[0]).intern(), AFKeystoreWrapper(str3, obj, "GET", obj, str, str2, valueOf2)); AFc1eSDK<Map<String, String>> AFKeystoreWrapper2 = AFKeystoreWrapper(new AFd1vSDK(obj2, null, "GET", hashMap, false), new AFd1xSDK()); AFLogger$LogLevel = (getLevel + 81) % UserVerificationMethods.USER_VERIFY_PATTERN; return AFKeystoreWrapper2; } public final AFc1eSDK<String> AFKeystoreWrapper(AFa1rSDK aFa1rSDK, String str, AFc1tSDK aFc1tSDK) { try { Object[] objArr = {aFa1rSDK, str, aFc1tSDK}; Map<Integer, Object> map = AFa1wSDK.onInstallConversionFailureNative; Object obj = map.get(1062297095); if (obj == null) { obj = ((Class) AFa1wSDK.AFKeystoreWrapper((char) (ViewConfiguration.getScrollBarSize() >> 8), (ViewConfiguration.getMinimumFlingVelocity() >> 16) + 73, (ViewConfiguration.getScrollDefaultDelay() >> 16) + 36)).getMethod("AFInAppEventParameterName", AFa1rSDK.class, String.class, AFc1tSDK.class); map.put(1062297095, obj); } AFc1eSDK<String> AFKeystoreWrapper2 = AFKeystoreWrapper(new AFd1vSDK(aFa1rSDK.afErrorLog, (byte[]) ((Method) obj).invoke(null, objArr), "POST", Collections.emptyMap(), aFa1rSDK.AFInAppEventParameterName()), new AFc1bSDK()); int i5 = getLevel + 45; AFLogger$LogLevel = i5 % UserVerificationMethods.USER_VERIFY_PATTERN; if (i5 % 2 != 0) { int i6 = 1 / 0; } return AFKeystoreWrapper2; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause != null) { throw cause; } throw th; } } public final AFc1eSDK<String> valueOf(@NonNull String str) { AFd1vSDK aFd1vSDK = new AFd1vSDK(str, null, "GET", Collections.emptyMap(), false); aFd1vSDK.afRDLog = 10000; aFd1vSDK.AFInAppEventParameterName = false; AFc1eSDK<String> AFKeystoreWrapper2 = AFKeystoreWrapper(aFd1vSDK, new AFc1bSDK()); int i5 = AFLogger$LogLevel + 1; getLevel = i5 % UserVerificationMethods.USER_VERIFY_PATTERN; if (i5 % 2 != 0) { return AFKeystoreWrapper2; } throw null; } public final AFc1eSDK<String> values(AFf1rSDK aFf1rSDK) { AFc1eSDK<String> AFKeystoreWrapper2 = AFKeystoreWrapper(new AFd1vSDK(aFf1rSDK.afErrorLog, aFf1rSDK.values(), "POST", Collections.emptyMap(), true), new AFc1bSDK()); AFLogger$LogLevel = (getLevel + 7) % UserVerificationMethods.USER_VERIFY_PATTERN; return AFKeystoreWrapper2; } private <T> AFc1eSDK<T> AFKeystoreWrapper(AFd1vSDK aFd1vSDK, AFd1wSDK<T> aFd1wSDK) { int i5 = AFLogger$LogLevel + 89; getLevel = i5 % UserVerificationMethods.USER_VERIFY_PATTERN; if (i5 % 2 == 0) { AFInAppEventParameterName(aFd1vSDK, aFd1wSDK, valueOf()); throw null; } AFc1eSDK<T> AFInAppEventParameterName2 = AFInAppEventParameterName(aFd1vSDK, aFd1wSDK, valueOf()); getLevel = (AFLogger$LogLevel + 3) % UserVerificationMethods.USER_VERIFY_PATTERN; return AFInAppEventParameterName2; } @NonNull public final AFc1eSDK<String> AFInAppEventType(Map<String, Object> map) { StringBuilder sb = new StringBuilder(); sb.append(String.format(AFKeystoreWrapper, AppsFlyerLib.getInstance().getHostPrefix(), AFa1dSDK.valueOf().getHostName())); sb.append(this.values.AFInAppEventParameterName.AFInAppEventType.getPackageName()); AFc1eSDK<String> AFKeystoreWrapper2 = AFKeystoreWrapper(new AFd1vSDK(sb.toString(), new JSONObject(map).toString().getBytes(Charset.defaultCharset()), "POST", Collections.emptyMap(), false), new AFc1bSDK()); int i5 = getLevel + 5; AFLogger$LogLevel = i5 % UserVerificationMethods.USER_VERIFY_PATTERN; if (i5 % 2 == 0) { return AFKeystoreWrapper2; } throw null; } @NonNull public final AFc1eSDK<String> valueOf(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.values.AFInAppEventParameterName.AFInAppEventType.getPackageName()); String obj = sb.toString(); try { Object[] objArr = {map, str}; Map<Integer, Object> map2 = AFa1wSDK.onInstallConversionFailureNative; Object obj2 = map2.get(538938077); if (obj2 == null) { obj2 = ((Class) AFa1wSDK.AFKeystoreWrapper((char) ((-1) - ImageFormat.getBitsPerPixel(0)), 74 - (ViewConfiguration.getScrollFriction() > 0.0f ? 1 : (ViewConfiguration.getScrollFriction() == 0.0f ? 0 : -1)), 37 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)))).getMethod("AFKeystoreWrapper", Map.class, String.class); map2.put(538938077, obj2); } AFc1eSDK<String> AFKeystoreWrapper2 = AFKeystoreWrapper(new AFd1vSDK(obj, (byte[]) ((Method) obj2).invoke(null, objArr), "POST", Collections.emptyMap(), true), new AFc1bSDK()); AFLogger$LogLevel = (getLevel + 21) % UserVerificationMethods.USER_VERIFY_PATTERN; return AFKeystoreWrapper2; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause != null) { throw cause; } throw th; } } public final AFc1eSDK<Map<String, Object>> values(String str, String str2) { AFc1eSDK<Map<String, Object>> AFKeystoreWrapper2 = AFKeystoreWrapper(AFc1cSDK.valueOf(this.values.AFInAppEventParameterName.AFInAppEventType.getPackageName(), AFb1rSDK.valueOf(new WeakReference(this.values.AFInAppEventParameterName.AFInAppEventType)), str, str2), new AFc1aSDK()); AFLogger$LogLevel = (getLevel + 59) % UserVerificationMethods.USER_VERIFY_PATTERN; return AFKeystoreWrapper2; } private boolean valueOf() { AFLogger$LogLevel = (getLevel + 93) % UserVerificationMethods.USER_VERIFY_PATTERN; if (this.afRDLog.getBoolean(AppsFlyerProperties.HTTP_CACHE, true)) { return false; } getLevel = (AFLogger$LogLevel + 123) % UserVerificationMethods.USER_VERIFY_PATTERN; return true; } @NonNull public final AFc1eSDK<AFf1gSDK> AFInAppEventType(boolean z5, boolean z6, @NonNull String str, int i5) { String str2; String str3; getLevel = (AFLogger$LogLevel + 67) % UserVerificationMethods.USER_VERIFY_PATTERN; AFd1qSDK aFd1qSDK = this.AFLogger; Intrinsics.checkNotNullParameter(str, ""); if (z5) { str2 = AFd1qSDK.AFKeystoreWrapper; AFLogger$LogLevel = (getLevel + 55) % UserVerificationMethods.USER_VERIFY_PATTERN; } else { str2 = AFd1qSDK.AFInAppEventType; } if (z6) { getLevel = (AFLogger$LogLevel + 119) % UserVerificationMethods.USER_VERIFY_PATTERN; str3 = "stg"; } else { str3 = ""; } y yVar = y.f15635a; String format = String.format(str2, Arrays.copyOf(new Object[]{AFd1qSDK.AFInAppEventType() ? (String) aFd1qSDK.valueOf.getValue() : "", str3, aFd1qSDK.valueOf(), str}, 4)); Intrinsics.checkNotNullExpressionValue(format, ""); AFd1vSDK aFd1vSDK = new AFd1vSDK(format, "GET"); aFd1vSDK.afRDLog = ConnectionResult.DRIVE_EXTERNAL_STORAGE_REQUIRED; return AFKeystoreWrapper(aFd1vSDK, new AFd1uSDK()); } @NonNull public final AFc1eSDK<String> AFKeystoreWrapper(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.values.AFInAppEventParameterName.AFInAppEventType.getPackageName()); String obj = sb.toString(); try { Object[] objArr = {map, str}; Map<Integer, Object> map2 = AFa1wSDK.onInstallConversionFailureNative; Object obj2 = map2.get(538938077); if (obj2 == null) { obj2 = ((Class) AFa1wSDK.AFKeystoreWrapper((char) (ViewConfiguration.getPressedStateDuration() >> 16), 72 - TextUtils.lastIndexOf("", '0'), 36 - (ViewConfiguration.getKeyRepeatDelay() >> 16))).getMethod("AFKeystoreWrapper", Map.class, String.class); map2.put(538938077, obj2); } AFc1eSDK<String> AFKeystoreWrapper2 = AFKeystoreWrapper(new AFd1vSDK(obj, (byte[]) ((Method) obj2).invoke(null, objArr), "POST", Collections.emptyMap(), true), new AFc1bSDK()); int i5 = getLevel + 73; AFLogger$LogLevel = i5 % UserVerificationMethods.USER_VERIFY_PATTERN; if (i5 % 2 == 0) { return AFKeystoreWrapper2; } throw null; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause != null) { throw cause; } throw th; } } public final AFc1eSDK<String> values(@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", values()); if (str2 != null) { int i5 = AFLogger$LogLevel + 33; getLevel = i5 % UserVerificationMethods.USER_VERIFY_PATTERN; int i6 = i5 % 2; hashMap.put("brand_domain", str2); if (i6 == 0) { int i7 = 22 / 0; } AFLogger$LogLevel = (getLevel + 31) % UserVerificationMethods.USER_VERIFY_PATTERN; } String jSONObject = AFa1tSDK.AFInAppEventParameterName(hashMap).toString(); HashMap hashMap2 = new HashMap(); Object[] objArr = new Object[1]; AFKeystoreWrapper("뺃뎓ヺ쭺㭝\ue473\udc59犙态\u0872괩ܚ", 12 - (ViewConfiguration.getKeyRepeatTimeout() >> 16), objArr); hashMap2.put(((String) objArr[0]).intern(), AFKeystoreWrapper(str3, obj, "POST", jSONObject)); StringBuilder sb = new StringBuilder(); sb.append(String.format(AFInAppEventParameterName, AppsFlyerLib.getInstance().getHostPrefix(), AFa1dSDK.valueOf().getHostName())); sb.append("/"); sb.append(str); return AFInAppEventParameterName(new AFd1vSDK(sb.toString(), jSONObject.getBytes(Charset.defaultCharset()), "POST", hashMap2, false), new AFc1bSDK(), true); } static void AFInAppEventType() { afInfoLog = (char) 27244; afErrorLog = (char) 61600; AFVersionDeclaration = (char) 65434; afDebugLog = (char) 20617; } private static String AFKeystoreWrapper(String str, String str2, String... strArr) { ArrayList arrayList = new ArrayList(Arrays.asList(strArr)); arrayList.add(1, "v2"); String AFInAppEventType = AFa1aSDK.AFInAppEventType((String[]) arrayList.toArray(new String[0])); StringBuilder sb = new StringBuilder(); sb.append(str); sb.append(str2); sb.append("v2"); String valueOf2 = AFa1aSDK.valueOf(AFInAppEventType, sb.toString()); int i5 = getLevel + 111; AFLogger$LogLevel = i5 % UserVerificationMethods.USER_VERIFY_PATTERN; if (i5 % 2 == 0) { return valueOf2; } throw null; } private Map<String, Object> values() { HashMap hashMap = new HashMap(); hashMap.put("build_number", "6.11.1"); hashMap.put("counter", Integer.valueOf(this.values.values.AFInAppEventType("appsFlyerCount", 0))); hashMap.put("model", Build.MODEL); Object[] objArr = new Object[1]; AFKeystoreWrapper("榦落綏쒖蘦뉀", 4 - MotionEvent.axisFromString(""), objArr); hashMap.put(((String) objArr[0]).intern(), Build.BRAND); hashMap.put("sdk", Integer.toString(Build.VERSION.SDK_INT)); Context context = this.values.AFInAppEventParameterName.AFInAppEventType; hashMap.put("app_version_name", AFa1bSDK.values(context, context.getPackageName())); hashMap.put("app_id", this.values.AFInAppEventParameterName.AFInAppEventType.getPackageName()); hashMap.put("platformextension", new AFb1vSDK().AFInAppEventParameterName()); int i5 = getLevel + 43; AFLogger$LogLevel = i5 % UserVerificationMethods.USER_VERIFY_PATTERN; if (i5 % 2 == 0) { return hashMap; } throw null; } private static void AFKeystoreWrapper(String str, int i5, Object[] objArr) { int i6; int i7; int i8; String str2; Object method; char c5; char c6 = 3; int i9 = 0; int i10 = 2; int i11 = 1; int i12 = $11 + 59; $10 = i12 % UserVerificationMethods.USER_VERIFY_PATTERN; if (i12 % 2 != 0) { throw null; } char[] charArray = str != null ? str.toCharArray() : str; AFg1bSDK aFg1bSDK = new AFg1bSDK(); char[] cArr = new char[charArray.length]; aFg1bSDK.values = 0; char[] cArr2 = new char[2]; while (true) { int i13 = aFg1bSDK.values; if (i13 >= charArray.length) { objArr[0] = new String(cArr, 0, i5); return; } int i14 = $10 + 35; $11 = i14 % UserVerificationMethods.USER_VERIFY_PATTERN; if (i14 % i10 == 0) { cArr2[i11] = charArray[i13]; cArr2[i9] = charArray[i9]; i6 = i11; } else { cArr2[i9] = charArray[i13]; cArr2[i11] = charArray[i13 + i11]; i6 = i9; } int i15 = 58224; while (i6 < 16) { char c7 = cArr2[i11]; char c8 = cArr2[i9]; int i16 = (c8 + i15) ^ ((c8 << 4) + ((char) (afInfoLog ^ (-4811251968381114924L)))); int i17 = c8 >>> 5; try { Object[] objArr2 = new Object[4]; objArr2[c6] = Integer.valueOf(AFVersionDeclaration); objArr2[i10] = Integer.valueOf(i17); objArr2[i11] = Integer.valueOf(i16); objArr2[i9] = Integer.valueOf(c7); Map<Integer, Object> map = AFa1wSDK.onInstallConversionFailureNative; Object obj = map.get(537658797); if (obj != null) { method = obj; str2 = ""; } else { str2 = ""; Class cls = (Class) AFa1wSDK.AFKeystoreWrapper((char) (TextUtils.getCapsMode(str2, i9, i9) + 5147), 342 - (ViewConfiguration.getScrollBarFadeDuration() >> 16), Process.getGidForName(str2) + 38); Class<?>[] clsArr = new Class[4]; Class<?> cls2 = Integer.TYPE; clsArr[i9] = cls2; clsArr[i11] = cls2; clsArr[2] = cls2; clsArr[3] = cls2; method = cls.getMethod("l", clsArr); map.put(537658797, method); } char charValue = ((Character) ((Method) method).invoke(null, objArr2)).charValue(); cArr2[i11] = charValue; char[] cArr3 = charArray; try { Object[] objArr3 = {Integer.valueOf(cArr2[i9]), Integer.valueOf((charValue + i15) ^ ((charValue << 4) + ((char) (afErrorLog ^ (-4811251968381114924L))))), Integer.valueOf(charValue >>> 5), Integer.valueOf(afDebugLog)}; Object obj2 = map.get(537658797); if (obj2 != null) { c5 = 3; } else { Class cls3 = (Class) AFa1wSDK.AFKeystoreWrapper((char) (TextUtils.indexOf(str2, str2, 0) + 5147), (Process.myTid() >> 22) + 342, ExpandableListView.getPackedPositionChild(0L) + 38); Class<?> cls4 = Integer.TYPE; c5 = 3; obj2 = cls3.getMethod("l", cls4, cls4, cls4, cls4); map.put(537658797, obj2); } cArr2[0] = ((Character) ((Method) obj2).invoke(null, objArr3)).charValue(); i15 -= 40503; i6++; c6 = c5; charArray = cArr3; i9 = 0; i10 = 2; i11 = 1; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } catch (Throwable th2) { Throwable cause2 = th2.getCause(); if (cause2 == null) { throw th2; } throw cause2; } } char c9 = c6; char[] cArr4 = charArray; int i18 = aFg1bSDK.values; cArr[i18] = cArr2[0]; cArr[i18 + 1] = cArr2[1]; try { Object[] objArr4 = {aFg1bSDK, aFg1bSDK}; Map<Integer, Object> map2 = AFa1wSDK.onInstallConversionFailureNative; Object obj3 = map2.get(-1282540758); if (obj3 != null) { i7 = 2; i8 = 1; } else { i7 = 2; i8 = 1; obj3 = ((Class) AFa1wSDK.AFKeystoreWrapper((char) ((-1) - ((byte) KeyEvent.getModifierMetaStateMask())), TextUtils.indexOf((CharSequence) "", '0') + 74, 36 - (ViewConfiguration.getDoubleTapTimeout() >> 16))).getMethod("n", Object.class, Object.class); map2.put(-1282540758, obj3); } ((Method) obj3).invoke(null, objArr4); c6 = c9; i10 = i7; i11 = i8; charArray = cArr4; i9 = 0; } catch (Throwable th3) { Throwable cause3 = th3.getCause(); if (cause3 == null) { throw th3; } throw cause3; } } } }