- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
320 lines
17 KiB
Java
320 lines
17 KiB
Java
package com.ironsource.adqualitysdk.sdk.i;
|
||
|
||
import android.graphics.Color;
|
||
import android.graphics.ImageFormat;
|
||
import android.media.AudioTrack;
|
||
import android.os.Process;
|
||
import android.os.SystemClock;
|
||
import android.text.TextUtils;
|
||
import android.view.KeyEvent;
|
||
import android.view.MotionEvent;
|
||
import android.view.View;
|
||
import android.view.ViewConfiguration;
|
||
import android.widget.ExpandableListView;
|
||
import com.applovin.exoplayer2.common.base.Ascii;
|
||
import java.io.UnsupportedEncodingException;
|
||
import java.security.GeneralSecurityException;
|
||
import java.security.MessageDigest;
|
||
import java.security.NoSuchAlgorithmException;
|
||
import javax.crypto.BadPaddingException;
|
||
import javax.crypto.Cipher;
|
||
import javax.crypto.IllegalBlockSizeException;
|
||
import javax.crypto.SecretKey;
|
||
import javax.crypto.SecretKeyFactory;
|
||
import javax.crypto.spec.IvParameterSpec;
|
||
import javax.crypto.spec.PBEKeySpec;
|
||
import javax.crypto.spec.SecretKeySpec;
|
||
|
||
/* loaded from: classes4.dex */
|
||
public final class hz {
|
||
|
||
/* renamed from: ﮐ, reason: contains not printable characters */
|
||
private static int f2315 = 0;
|
||
|
||
/* renamed from: ﱟ, reason: contains not printable characters */
|
||
private static int f2316 = 1;
|
||
|
||
/* renamed from: ﻏ, reason: contains not printable characters */
|
||
private static int f2317;
|
||
|
||
/* renamed from: ﻛ, reason: contains not printable characters */
|
||
private static final byte[] f2318;
|
||
|
||
/* renamed from: ヌ, reason: contains not printable characters */
|
||
private static int[] f2319;
|
||
|
||
/* renamed from: ﻐ, reason: contains not printable characters */
|
||
private SecretKey f2320;
|
||
|
||
/* renamed from: k, reason: contains not printable characters */
|
||
private Cipher f2321;
|
||
|
||
/* renamed from: メ, reason: contains not printable characters */
|
||
private Cipher f2322;
|
||
|
||
/* renamed from: k, reason: contains not printable characters */
|
||
public static void m2995() {
|
||
f2319 = new int[]{-1351787279, 41887111, 180349504, 159267120, 1471198607, -1769599491, 202387312, 446676806, -1464034284, -965603775, 969350929, -752142583, -153569140, -1529928797, -1016601886, -1409870187, -748880605, -729246461};
|
||
f2315 = 136;
|
||
}
|
||
|
||
static {
|
||
m2995();
|
||
f2318 = new byte[]{Ascii.DLE, 74, 71, -80, 32, 101, -47, 72, 117, -14, 0, -29, 70, 65, -12, 74};
|
||
int i = f2316 + 55;
|
||
f2317 = i % 128;
|
||
int i2 = i % 2;
|
||
}
|
||
|
||
public hz(byte[] bArr, String str, String str2, String str3) {
|
||
byte[] digest;
|
||
try {
|
||
SecretKeyFactory secretKeyFactory = SecretKeyFactory.getInstance(m2996(new int[]{-1241765392, -1548515945, 235970642, 1525436194, -2091861601, 747701949, -1810977020, 505543024, 1296661128, -1935892336, -1834067484, 2142209229, 1051850198, -1125532951, 1452949141, 2018644470}, View.resolveSize(0, 0) + 29).intern());
|
||
StringBuilder sb = new StringBuilder();
|
||
sb.append(str);
|
||
sb.append(str2);
|
||
sb.append(str3);
|
||
digest = secretKeyFactory.generateSecret(new PBEKeySpec(sb.toString().toCharArray(), bArr, 1024, 256)).getEncoded();
|
||
} catch (GeneralSecurityException unused) {
|
||
ic.m3010(m2994(false, "↑○\ufff8\u000b\u000f\u001e\u001c\f\n\u001d\u0018\u001b\ufff4○○\uffff↑\uffc9", MotionEvent.axisFromString("") + 224, (ViewConfiguration.getTouchSlop() >> 8) + 19, ((byte) KeyEvent.getModifierMetaStateMask()) + Ascii.SO).intern(), m2994(false, "\u0011\u0002\u0015\n\u0003\r\u0006\uffc1\u0005\u0006\u0017\n\u0004\u0006ᅬ\uffc1\ufff5\u0013\u001a\n\u000f\b\uffc1\u0005\n\u0007\u0007\u0006\u0013\u0006\u000f\u0015\uffc1\u0002\u0011\u0011\u0013\u0010\u0002\u0004\tᅬ\ufff1\u0013\u0010\u0003\u0002\u0003\r\u001a\uffc1\u0002\u000f\uffc1\n\u000f\u0004\u0010\u000e", (ViewConfiguration.getDoubleTapTimeout() >> 16) + 231, View.MeasureSpec.getMode(0) + 59, (ViewConfiguration.getWindowTouchSlop() >> 8) + 42).intern());
|
||
try {
|
||
MessageDigest messageDigest = MessageDigest.getInstance(m2996(new int[]{-1608358933, 871662238}, 3 - (ViewConfiguration.getScrollBarSize() >> 8)).intern());
|
||
StringBuilder sb2 = new StringBuilder();
|
||
sb2.append(str);
|
||
sb2.append(str2);
|
||
sb2.append(str3);
|
||
for (char c : sb2.toString().toCharArray()) {
|
||
messageDigest.update((byte) c);
|
||
}
|
||
digest = messageDigest.digest();
|
||
} catch (NoSuchAlgorithmException e2) {
|
||
throw new RuntimeException(m2994(false, "\u0010\ufffb\u0006\u0003\ufffeᄎ\uffff\b\u0010\u0003\f\t\b\u0007\uffff\b\u000e ̄\b", TextUtils.getTrimmedLength("") + 238, TextUtils.indexOf("", "", 0) + 19, 17 - View.resolveSizeAndState(0, 0, 0)).intern(), e2);
|
||
}
|
||
}
|
||
this.f2320 = new SecretKeySpec(digest, m2994(false, "\ufff9<EFBFBD>\u000b", TextUtils.lastIndexOf("", '0') + 209, 3 - View.MeasureSpec.getMode(0), View.combineMeasuredStates(0, 0) + 3).intern());
|
||
m2993();
|
||
}
|
||
|
||
/* renamed from: ﻐ, reason: contains not printable characters */
|
||
private void m2993() {
|
||
try {
|
||
Cipher cipher = Cipher.getInstance(m2994(false, "\u0005\uffe7\u0002\u0013\u0016\u0016\u001b \u0019\ufff3\ufff7\u0005£\ufff5\ufff4\ufff5£\u0002<EFBFBD>\ufff5", (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) + 213, (ViewConfiguration.getTouchSlop() >> 8) + 20, (ViewConfiguration.getKeyRepeatTimeout() >> 16) + 9).intern());
|
||
this.f2321 = cipher;
|
||
SecretKey secretKey = this.f2320;
|
||
byte[] bArr = f2318;
|
||
cipher.init(1, secretKey, new IvParameterSpec(bArr));
|
||
Cipher cipher2 = Cipher.getInstance(m2994(false, "\u0005\uffe7\u0002\u0013\u0016\u0016\u001b \u0019\ufff3\ufff7\u0005£\ufff5\ufff4\ufff5£\u0002<EFBFBD>\ufff5", 214 - (ViewConfiguration.getFadingEdgeLength() >> 16), 20 - (ViewConfiguration.getJumpTapTimeout() >> 16), (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 8).intern());
|
||
this.f2322 = cipher2;
|
||
cipher2.init(2, this.f2320, new IvParameterSpec(bArr));
|
||
int i = f2317 + 125;
|
||
f2316 = i % 128;
|
||
int i2 = i % 2;
|
||
} catch (GeneralSecurityException e2) {
|
||
throw new RuntimeException(m2994(true, "\u0016\u000e\u0005\uffc0\u0004\t\f\u0001\u0016\u000e←ᅭ\uffc0\u0014\u000e\u0005\r\u000e\u000f\u0012\t", (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 231, 20 - ImageFormat.getBitsPerPixel(0), TextUtils.indexOf("", "", 0, 0) + 11).intern(), e2);
|
||
}
|
||
}
|
||
|
||
/* renamed from: ヌ, reason: contains not printable characters */
|
||
public final synchronized String m2998(String str) {
|
||
int i = f2316 + 125;
|
||
f2317 = i % 128;
|
||
int i2 = i % 2;
|
||
if (!(!TextUtils.isEmpty(str))) {
|
||
int i3 = f2316 + 115;
|
||
f2317 = i3 % 128;
|
||
if (i3 % 2 == 0) {
|
||
return str;
|
||
}
|
||
throw null;
|
||
}
|
||
try {
|
||
Cipher cipher = this.f2321;
|
||
StringBuilder sb = new StringBuilder();
|
||
sb.append(m2996(new int[]{-2016239179, 79776694, -1733590989, -1568063081, 737274536, 1578390170, -1502126541, 256505651, -1331759483, 867736274, 1308949227, 2147256202, -1859054795, 1706674368, -1255479495, 193295828, -1496174147, 334261703, -1342923182, -1773418210}, (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) + 39).intern());
|
||
sb.append(str);
|
||
return hy.m2988(cipher.doFinal(sb.toString().getBytes(m2996(new int[]{-2138994512, -993482758, -306235558, -1533197395}, (AudioTrack.getMinVolume() > 0.0f ? 1 : (AudioTrack.getMinVolume() == 0.0f ? 0 : -1)) + 5).intern())));
|
||
} catch (UnsupportedEncodingException e2) {
|
||
m2993();
|
||
throw new RuntimeException(m2994(false, "\u0010\ufffb\u0006\u0003\ufffeᄎ\uffff\b\u0010\u0003\f\t\b\u0007\uffff\b\u000e ̄\b", (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 237, ExpandableListView.getPackedPositionGroup(0L) + 19, 18 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1))).intern(), e2);
|
||
} catch (GeneralSecurityException e3) {
|
||
m2993();
|
||
throw new RuntimeException(m2994(false, "\u0010\ufffb\u0006\u0003\ufffeᄎ\uffff\b\u0010\u0003\f\t\b\u0007\uffff\b\u000e ̄\b", 239 - (AudioTrack.getMaxVolume() > 0.0f ? 1 : (AudioTrack.getMaxVolume() == 0.0f ? 0 : -1)), 18 - TextUtils.lastIndexOf("", '0'), (ViewConfiguration.getMinimumFlingVelocity() >> 16) + 17).intern(), e3);
|
||
}
|
||
}
|
||
|
||
/* renamed from: k, reason: contains not printable characters */
|
||
public final synchronized String m2997(String str) throws e {
|
||
int i = f2316 + 101;
|
||
f2317 = i % 128;
|
||
int i2 = i % 2;
|
||
if (TextUtils.isEmpty(str)) {
|
||
int i3 = f2317 + 5;
|
||
f2316 = i3 % 128;
|
||
int i4 = i3 % 2;
|
||
return null;
|
||
}
|
||
try {
|
||
try {
|
||
String str2 = new String(this.f2322.doFinal(hy.m2985(str)), m2996(new int[]{-2138994512, -993482758, -306235558, -1533197395}, (ViewConfiguration.getKeyRepeatDelay() >> 16) + 5).intern());
|
||
if (str2.indexOf(m2996(new int[]{-2016239179, 79776694, -1733590989, -1568063081, 737274536, 1578390170, -1502126541, 256505651, -1331759483, 867736274, 1308949227, 2147256202, -1859054795, 1706674368, -1255479495, 193295828, -1496174147, 334261703, -1342923182, -1773418210}, 40 - (ViewConfiguration.getScrollBarSize() >> 8)).intern()) != 0) {
|
||
StringBuilder sb = new StringBuilder();
|
||
sb.append(m2996(new int[]{-1200821890, 1046320566, -1321876143, 1701334313, -372769516, 1167903852, -605276443, 45017607, 1785311666, -1622444183, -2059352312, -342934937, 605448195, 1108337239, -980279549, -64632355, 1378356431, 1103571703, -266441902, -188273413}, 39 - Color.argb(0, 0, 0, 0)).intern());
|
||
sb.append(str);
|
||
throw new e(sb.toString());
|
||
}
|
||
String substring = str2.substring(m2996(new int[]{-2016239179, 79776694, -1733590989, -1568063081, 737274536, 1578390170, -1502126541, 256505651, -1331759483, 867736274, 1308949227, 2147256202, -1859054795, 1706674368, -1255479495, 193295828, -1496174147, 334261703, -1342923182, -1773418210}, (-16777176) - Color.rgb(0, 0, 0)).intern().length(), str2.length());
|
||
int i5 = f2316 + 11;
|
||
f2317 = i5 % 128;
|
||
if (i5 % 2 == 0) {
|
||
return substring;
|
||
}
|
||
throw null;
|
||
} catch (ia e2) {
|
||
m2993();
|
||
StringBuilder sb2 = new StringBuilder();
|
||
sb2.append(e2.getMessage());
|
||
sb2.append(m2996(new int[]{-1764736294, 678914055}, 1 - (ViewConfiguration.getScrollDefaultDelay() >> 16)).intern());
|
||
sb2.append(str);
|
||
throw new e(sb2.toString());
|
||
} catch (UnsupportedEncodingException e3) {
|
||
throw new RuntimeException(m2994(false, "\u0010\ufffb\u0006\u0003\ufffeᄎ\uffff\b\u0010\u0003\f\t\b\u0007\uffff\b\u000e ̄\b", (AudioTrack.getMaxVolume() > 0.0f ? 1 : (AudioTrack.getMaxVolume() == 0.0f ? 0 : -1)) + 237, 19 - (ViewConfiguration.getLongPressTimeout() >> 16), 18 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1))).intern(), e3);
|
||
}
|
||
} catch (BadPaddingException e4) {
|
||
m2993();
|
||
StringBuilder sb3 = new StringBuilder();
|
||
sb3.append(e4.getMessage());
|
||
sb3.append(m2996(new int[]{-1764736294, 678914055}, (ViewConfiguration.getScrollBarFadeDuration() >> 16) + 1).intern());
|
||
sb3.append(str);
|
||
throw new e(sb3.toString());
|
||
} catch (IllegalBlockSizeException e5) {
|
||
m2993();
|
||
StringBuilder sb4 = new StringBuilder();
|
||
sb4.append(e5.getMessage());
|
||
sb4.append(m2996(new int[]{-1764736294, 678914055}, (-16777215) - Color.rgb(0, 0, 0)).intern());
|
||
sb4.append(str);
|
||
throw new e(sb4.toString());
|
||
}
|
||
}
|
||
|
||
public class e extends Exception {
|
||
public e(String str) {
|
||
super(str);
|
||
}
|
||
}
|
||
|
||
/* renamed from: ヌ, reason: contains not printable characters */
|
||
private static String m2996(int[] iArr, int i) {
|
||
String str;
|
||
synchronized (com.ironsource.adqualitysdk.sdk.i.e.f1827) {
|
||
try {
|
||
char[] cArr = new char[4];
|
||
char[] cArr2 = new char[iArr.length << 1];
|
||
int[] iArr2 = (int[]) f2319.clone();
|
||
com.ironsource.adqualitysdk.sdk.i.e.f1826 = 0;
|
||
while (true) {
|
||
int i2 = com.ironsource.adqualitysdk.sdk.i.e.f1826;
|
||
if (i2 < iArr.length) {
|
||
int i3 = iArr[i2];
|
||
char c = (char) (i3 >> 16);
|
||
cArr[0] = c;
|
||
char c2 = (char) i3;
|
||
cArr[1] = c2;
|
||
char c3 = (char) (iArr[i2 + 1] >> 16);
|
||
cArr[2] = c3;
|
||
char c4 = (char) iArr[i2 + 1];
|
||
cArr[3] = c4;
|
||
com.ironsource.adqualitysdk.sdk.i.e.f1825 = (c << 16) + c2;
|
||
com.ironsource.adqualitysdk.sdk.i.e.f1828 = (c3 << 16) + c4;
|
||
com.ironsource.adqualitysdk.sdk.i.e.m2679(iArr2);
|
||
for (int i4 = 0; i4 < 16; i4++) {
|
||
int i5 = com.ironsource.adqualitysdk.sdk.i.e.f1825 ^ iArr2[i4];
|
||
com.ironsource.adqualitysdk.sdk.i.e.f1825 = i5;
|
||
com.ironsource.adqualitysdk.sdk.i.e.f1828 = com.ironsource.adqualitysdk.sdk.i.e.m2678(i5) ^ com.ironsource.adqualitysdk.sdk.i.e.f1828;
|
||
int i6 = com.ironsource.adqualitysdk.sdk.i.e.f1825;
|
||
com.ironsource.adqualitysdk.sdk.i.e.f1825 = com.ironsource.adqualitysdk.sdk.i.e.f1828;
|
||
com.ironsource.adqualitysdk.sdk.i.e.f1828 = i6;
|
||
}
|
||
int i7 = com.ironsource.adqualitysdk.sdk.i.e.f1825;
|
||
com.ironsource.adqualitysdk.sdk.i.e.f1825 = com.ironsource.adqualitysdk.sdk.i.e.f1828;
|
||
com.ironsource.adqualitysdk.sdk.i.e.f1828 = i7;
|
||
com.ironsource.adqualitysdk.sdk.i.e.f1828 = i7 ^ iArr2[16];
|
||
com.ironsource.adqualitysdk.sdk.i.e.f1825 ^= iArr2[17];
|
||
int i8 = com.ironsource.adqualitysdk.sdk.i.e.f1826;
|
||
int i9 = com.ironsource.adqualitysdk.sdk.i.e.f1825;
|
||
cArr[0] = (char) (i9 >>> 16);
|
||
cArr[1] = (char) i9;
|
||
int i10 = com.ironsource.adqualitysdk.sdk.i.e.f1828;
|
||
cArr[2] = (char) (i10 >>> 16);
|
||
cArr[3] = (char) i10;
|
||
com.ironsource.adqualitysdk.sdk.i.e.m2679(iArr2);
|
||
int i11 = com.ironsource.adqualitysdk.sdk.i.e.f1826;
|
||
cArr2[i11 << 1] = cArr[0];
|
||
cArr2[(i11 << 1) + 1] = cArr[1];
|
||
cArr2[(i11 << 1) + 2] = cArr[2];
|
||
cArr2[(i11 << 1) + 3] = cArr[3];
|
||
com.ironsource.adqualitysdk.sdk.i.e.f1826 = i11 + 2;
|
||
} else {
|
||
str = new String(cArr2, 0, i);
|
||
}
|
||
}
|
||
} catch (Throwable th) {
|
||
throw th;
|
||
}
|
||
}
|
||
return str;
|
||
}
|
||
|
||
/* renamed from: ﻛ, reason: contains not printable characters */
|
||
private static String m2994(boolean z, String str, int i, int i2, int i3) {
|
||
String str2;
|
||
char[] cArr = str;
|
||
if (str != null) {
|
||
cArr = str.toCharArray();
|
||
}
|
||
char[] cArr2 = cArr;
|
||
synchronized (a.f57) {
|
||
try {
|
||
char[] cArr3 = new char[i2];
|
||
a.f56 = 0;
|
||
while (true) {
|
||
int i4 = a.f56;
|
||
if (i4 >= i2) {
|
||
break;
|
||
}
|
||
a.f54 = cArr2[i4];
|
||
cArr3[a.f56] = (char) (a.f54 + i);
|
||
int i5 = a.f56;
|
||
cArr3[i5] = (char) (cArr3[i5] - f2315);
|
||
a.f56 = i5 + 1;
|
||
}
|
||
if (i3 > 0) {
|
||
a.f55 = i3;
|
||
char[] cArr4 = new char[i2];
|
||
System.arraycopy(cArr3, 0, cArr4, 0, i2);
|
||
int i6 = a.f55;
|
||
System.arraycopy(cArr4, 0, cArr3, i2 - i6, i6);
|
||
int i7 = a.f55;
|
||
System.arraycopy(cArr4, i7, cArr3, 0, i2 - i7);
|
||
}
|
||
if (z) {
|
||
char[] cArr5 = new char[i2];
|
||
a.f56 = 0;
|
||
while (true) {
|
||
int i8 = a.f56;
|
||
if (i8 >= i2) {
|
||
break;
|
||
}
|
||
cArr5[i8] = cArr3[(i2 - i8) - 1];
|
||
a.f56 = i8 + 1;
|
||
}
|
||
cArr3 = cArr5;
|
||
}
|
||
str2 = new String(cArr3);
|
||
} catch (Throwable th) {
|
||
throw th;
|
||
}
|
||
}
|
||
return str2;
|
||
}
|
||
}
|