Files
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- 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
2026-02-18 15:48:36 -08:00

621 lines
28 KiB
Java
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package com.ironsource.adqualitysdk.sdk.i;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.graphics.Color;
import android.graphics.PointF;
import android.net.Uri;
import android.os.Handler;
import android.os.Message;
import android.os.Process;
import android.os.SystemClock;
import android.text.AndroidCharacter;
import android.text.TextUtils;
import android.util.TypedValue;
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 com.ironsource.nb;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Set;
/* loaded from: classes4.dex */
public final class ie {
/* renamed from: ףּ, reason: contains not printable characters */
private static int f2344 = 1;
/* renamed from: ﭖ, reason: contains not printable characters */
private static int f2345;
/* renamed from: ﭴ, reason: contains not printable characters */
private static short[] f2346;
/* renamed from: ﭸ, reason: contains not printable characters */
private static int f2347;
/* renamed from: ﮉ, reason: contains not printable characters */
private static int f2348;
/* renamed from: ﮌ, reason: contains not printable characters */
private static byte[] f2349;
/* renamed from: ﱟ, reason: contains not printable characters */
private static int f2350;
/* renamed from: ﱡ, reason: contains not printable characters */
private static final Object f2351;
/* renamed from: ﺙ, reason: contains not printable characters */
private static int[] f2352;
/* renamed from: ﻏ, reason: contains not printable characters */
private static ie f2353;
/* renamed from: ﮐ, reason: contains not printable characters */
private final Handler f2354;
/* renamed from: ヌ, reason: contains not printable characters */
private final Context f2358;
/* renamed from: メ, reason: contains not printable characters */
private boolean f2359 = true;
/* renamed from: , reason: contains not printable characters */
private final HashMap<BroadcastReceiver, ArrayList<IntentFilter>> f2357 = new HashMap<>();
/* renamed from: ﻐ, reason: contains not printable characters */
private final HashMap<String, ArrayList<e>> f2355 = new HashMap<>();
/* renamed from: ﻛ, reason: contains not printable characters */
private final ArrayList<a> f2356 = new ArrayList<>();
/* renamed from: , reason: contains not printable characters */
public static void m3020() {
f2352 = new int[]{-710872471, 875936597, 1839323962, -1185361548, 1772151194, 2131402036, -725321125, -269356306, -1863786214, 121630261, -1158653216, 1950973269, -1135942593, -302613137, 1055634302, -561570940, 1134604163, 157951636};
f2350 = 1279070416;
f2348 = 121;
f2345 = -1263703721;
f2349 = new byte[]{-115, 46, -41, 36, -64, -45, -107, -26, -27, Ascii.VT, -27, -22, 75, -85, -18, 17, Ascii.CAN, Ascii.SUB, -28, -32, -97, -59, -15, 38, -52, 48, -41, 110, -113, 38, 34, 109, -97, -40, 38, 103, -115, 46, -46, 43, 32, 0, 5, 35};
}
/* renamed from: メ, reason: contains not printable characters */
public static /* synthetic */ void m3025(ie ieVar) {
int i = f2344 + 97;
f2347 = i % 128;
int i2 = i % 2;
ieVar.m3024();
if (i2 != 0) {
int i3 = 98 / 0;
}
}
public static class e {
/* renamed from: ﱟ, reason: contains not printable characters */
private static int f2363 = 1;
/* renamed from: ﻏ, reason: contains not printable characters */
private static int f2364 = 0;
/* renamed from: ﻐ, reason: contains not printable characters */
private static char f2365 = 4;
/* renamed from: ﻛ, reason: contains not printable characters */
private static char[] f2366 = {'R', 'e', 'c', 'i', 'v', 'r', '{', ' ', 'f', 'l', 't', nb.T, '}', 'S', 'T', 'U'};
/* renamed from: , reason: contains not printable characters */
final BroadcastReceiver f2367;
/* renamed from: ヌ, reason: contains not printable characters */
boolean f2368;
/* renamed from: メ, reason: contains not printable characters */
final IntentFilter f2369;
public final String toString() {
StringBuilder sb = new StringBuilder(128);
sb.append(m3029(TextUtils.lastIndexOf("", '0', 0, 0) + 10, (byte) ((ViewConfiguration.getWindowTouchSlop() >> 8) + 1), "\u0001\u0002\u0003\u0002\u0000\u0007\u0005\t|").intern());
sb.append(this.f2367);
sb.append(m3029((ViewConfiguration.getPressedStateDuration() >> 16) + 8, (byte) (79 - TextUtils.getCapsMode("", 0, 0)), "\u0004\u000b\u0001\u000b\t\u0002\u0007\t").intern());
sb.append(this.f2369);
sb.append(m3029(1 - TextUtils.indexOf("", "", 0, 0), (byte) (39 - (KeyEvent.getMaxKeyCode() >> 16)), "¤").intern());
String obj = sb.toString();
int i = f2363 + 89;
f2364 = i % 128;
if (i % 2 == 0) {
return obj;
}
throw null;
}
/* renamed from: ﻛ, reason: contains not printable characters */
private static String m3029(int i, byte b, String str) {
String str2;
char[] cArr = str;
if (str != null) {
cArr = str.toCharArray();
}
char[] cArr2 = cArr;
synchronized (h.f2156) {
try {
char[] cArr3 = f2366;
char c = f2365;
char[] cArr4 = new char[i];
if (i % 2 != 0) {
i--;
cArr4[i] = (char) (cArr2[i] - b);
}
if (i > 1) {
h.f2159 = 0;
while (true) {
int i2 = h.f2159;
if (i2 >= i) {
break;
}
h.f2158 = cArr2[i2];
h.f2161 = cArr2[h.f2159 + 1];
if (h.f2158 == h.f2161) {
cArr4[h.f2159] = (char) (h.f2158 - b);
cArr4[h.f2159 + 1] = (char) (h.f2161 - b);
} else {
h.f2162 = h.f2158 / c;
h.f2157 = h.f2158 % c;
h.f2160 = h.f2161 / c;
h.f2155 = h.f2161 % c;
if (h.f2157 == h.f2155) {
h.f2162 = ((h.f2162 + c) - 1) % c;
h.f2160 = ((h.f2160 + c) - 1) % c;
int i3 = (h.f2162 * c) + h.f2157;
int i4 = (h.f2160 * c) + h.f2155;
int i5 = h.f2159;
cArr4[i5] = cArr3[i3];
cArr4[i5 + 1] = cArr3[i4];
} else if (h.f2162 == h.f2160) {
h.f2157 = ((h.f2157 + c) - 1) % c;
h.f2155 = ((h.f2155 + c) - 1) % c;
int i6 = (h.f2162 * c) + h.f2157;
int i7 = (h.f2160 * c) + h.f2155;
int i8 = h.f2159;
cArr4[i8] = cArr3[i6];
cArr4[i8 + 1] = cArr3[i7];
} else {
int i9 = (h.f2162 * c) + h.f2155;
int i10 = (h.f2160 * c) + h.f2157;
int i11 = h.f2159;
cArr4[i11] = cArr3[i9];
cArr4[i11 + 1] = cArr3[i10];
}
}
h.f2159 += 2;
}
}
str2 = new String(cArr4);
} catch (Throwable th) {
throw th;
}
}
return str2;
}
}
public static class a {
/* renamed from: ﻛ, reason: contains not printable characters */
final Intent f2361;
/* renamed from: メ, reason: contains not printable characters */
final ArrayList<e> f2362;
public a(Intent intent, ArrayList<e> arrayList) {
this.f2361 = intent;
this.f2362 = arrayList;
}
}
static {
m3020();
f2351 = new Object();
int i = f2347 + 9;
f2344 = i % 128;
if (i % 2 == 0) {
throw null;
}
}
/* renamed from: , reason: contains not printable characters */
public static ie m3019(Context context) {
ie ieVar;
synchronized (f2351) {
try {
if (f2353 == null) {
f2353 = new ie(context.getApplicationContext());
}
ieVar = f2353;
} catch (Throwable th) {
throw th;
}
}
return ieVar;
}
/* renamed from: ヌ, reason: contains not printable characters */
public final synchronized void m3028() {
try {
int i = f2347;
int i2 = i + 29;
f2344 = i2 % 128;
int i3 = i2 % 2;
this.f2359 = true;
int i4 = i + 17;
f2344 = i4 % 128;
int i5 = i4 % 2;
} catch (Throwable th) {
throw th;
}
}
/* renamed from: ﻐ, reason: contains not printable characters */
public final synchronized void m3026() {
try {
int i = f2344 + 75;
f2347 = i % 128;
if (i % 2 != 0) {
this.f2359 = false;
} else {
this.f2359 = false;
}
m3018();
int i2 = f2344 + 101;
f2347 = i2 % 128;
if (i2 % 2 != 0) {
int i3 = 14 / 0;
}
} catch (Throwable th) {
throw th;
}
}
private ie(Context context) {
this.f2358 = context;
this.f2354 = new Handler(context.getMainLooper()) { // from class: com.ironsource.adqualitysdk.sdk.i.ie.3
@Override // android.os.Handler
public final void handleMessage(Message message) {
if (message.what == 1) {
ie.m3025(ie.this);
} else {
super.handleMessage(message);
}
}
};
}
/* renamed from: , reason: contains not printable characters */
private void m3021(BroadcastReceiver broadcastReceiver) {
synchronized (this.f2357) {
try {
ArrayList<IntentFilter> remove = this.f2357.remove(broadcastReceiver);
if (remove == null) {
return;
}
for (int i = 0; i < remove.size(); i++) {
IntentFilter intentFilter = remove.get(i);
for (int i2 = 0; i2 < intentFilter.countActions(); i2++) {
String action = intentFilter.getAction(i2);
ArrayList<e> arrayList = this.f2355.get(action);
if (arrayList != null) {
int i3 = 0;
while (i3 < arrayList.size()) {
if (arrayList.get(i3).f2367 == broadcastReceiver) {
arrayList.remove(i3);
i3--;
}
i3++;
}
if (arrayList.size() <= 0) {
this.f2355.remove(action);
}
}
}
}
} catch (Throwable th) {
throw th;
}
}
}
/* renamed from: ﻛ, reason: contains not printable characters */
private void m3018() {
synchronized (this.f2357) {
try {
Iterator it = new HashMap(this.f2357).keySet().iterator();
while (it.hasNext()) {
m3021((BroadcastReceiver) it.next());
}
} catch (Throwable th) {
throw th;
}
}
}
/* renamed from: , reason: contains not printable characters */
public final boolean m3027(Intent intent) {
int i;
ArrayList arrayList;
ArrayList<e> arrayList2;
String str;
String intern;
int i2 = 12;
float f = 0.0f;
String intern2 = m3023(new int[]{1506600129, -560612875, 1872324066, -736373328, 311381678, 140488495, 724938214, -219121993, -332735101, -351256106, 563336367, -60506695}, 21 - (PointF.length(0.0f, 0.0f) > 0.0f ? 1 : (PointF.length(0.0f, 0.0f) == 0.0f ? 0 : -1))).intern();
if (!this.f2359) {
return false;
}
synchronized (this.f2357) {
try {
String action = intent.getAction();
String resolveTypeIfNeeded = intent.resolveTypeIfNeeded(this.f2358.getContentResolver());
Uri data = intent.getData();
String scheme = intent.getScheme();
Set<String> categories = intent.getCategories();
boolean z = (intent.getFlags() & 8) != 0;
if (z) {
StringBuilder sb = new StringBuilder();
sb.append(m3023(new int[]{-696931877, -1983504878, 760791566, 1398264656, -451856366, 876873215, 1901901246, 1383882590}, Process.getGidForName("") + 16).intern());
sb.append(resolveTypeIfNeeded);
sb.append(m3023(new int[]{-938291258, -551456354, 720817630, -488012235}, Color.blue(0) + 8).intern());
sb.append(scheme);
sb.append(m3023(new int[]{-509142910, 1058737115, -1239690805, 886836291, 156717337, 780552601}, (ViewConfiguration.getWindowTouchSlop() >> 8) + 11).intern());
sb.append(intent);
}
ArrayList<e> arrayList3 = this.f2355.get(intent.getAction());
if (arrayList3 != null) {
if (z) {
StringBuilder sb2 = new StringBuilder();
sb2.append(m3023(new int[]{-900558593, -1490760710, -2031241474, 1909252252, 1903713740, -1307360496, -188895726, 921032043}, KeyEvent.keyCodeFromString("") + 13).intern());
sb2.append(arrayList3);
}
ArrayList arrayList4 = null;
int i3 = 0;
while (i3 < arrayList3.size()) {
e eVar = arrayList3.get(i3);
if (z) {
StringBuilder sb3 = new StringBuilder();
int[] iArr = new int[i2];
// fill-array-data instruction
iArr[0] = 1544464856;
iArr[1] = 1025721853;
iArr[2] = -1724779268;
iArr[3] = 995289266;
iArr[4] = 977800796;
iArr[5] = 1014255420;
iArr[6] = -900893978;
iArr[7] = 1041360167;
iArr[8] = 1545801649;
iArr[9] = 810169910;
iArr[10] = -541003791;
iArr[11] = -1897622002;
sb3.append(m3023(iArr, (PointF.length(f, f) > f ? 1 : (PointF.length(f, f) == f ? 0 : -1)) + 24).intern());
sb3.append(eVar.f2369);
}
if (!eVar.f2368) {
i = i3;
arrayList = arrayList4;
arrayList2 = arrayList3;
str = scheme;
int match = eVar.f2369.match(action, resolveTypeIfNeeded, scheme, data, categories, intern2);
if (match >= 0) {
if (z) {
StringBuilder sb4 = new StringBuilder();
sb4.append(m3023(new int[]{1096232762, 820515742, 1468775265, 2124236744, 1039883511, 135731336, -1233598944, 641881813, 52676118, 405945912, 238496994, -179204920, 385535762, 1417841514}, 27 - (Process.myPid() >> 22)).intern());
sb4.append(Integer.toHexString(match));
}
arrayList4 = arrayList == null ? new ArrayList() : arrayList;
arrayList4.add(eVar);
eVar.f2368 = true;
i3 = i + 1;
arrayList3 = arrayList2;
scheme = str;
i2 = 12;
f = 0.0f;
} else if (z) {
if (match == -4) {
intern = m3023(new int[]{-1994474821, -1329811959, -1023554141, -532399429}, 7 - TextUtils.lastIndexOf("", '0', 0)).intern();
} else if (match == -3) {
intern = m3022(1263703819 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)), MotionEvent.axisFromString("") - 1279070415, (-122) - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), (short) (Process.myTid() >> 22), (byte) ((-48) - TextUtils.lastIndexOf("", '0'))).intern();
} else if (match == -2) {
intern = m3023(new int[]{-604502973, -709508226}, 4 - (TypedValue.complexToFloat(0) > 0.0f ? 1 : (TypedValue.complexToFloat(0) == 0.0f ? 0 : -1))).intern();
} else if (match == -1) {
intern = m3023(new int[]{-2115036932, -1788647705}, TextUtils.indexOf("", "") + 4).intern();
} else {
intern = m3022(1263703837 - TextUtils.indexOf((CharSequence) "", '0', 0, 0), View.combineMeasuredStates(0, 0) - 1279070410, (-123) - TextUtils.indexOf((CharSequence) "", '0', 0), (short) (ViewConfiguration.getScrollDefaultDelay() >> 16), (byte) ('I' - AndroidCharacter.getMirror('0'))).intern();
}
StringBuilder sb5 = new StringBuilder();
sb5.append(m3022(1263703753 - (TypedValue.complexToFraction(0, 0.0f, 0.0f) > 0.0f ? 1 : (TypedValue.complexToFraction(0, 0.0f, 0.0f) == 0.0f ? 0 : -1)), TextUtils.lastIndexOf("", '0') - 1279070395, (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) - 122, (short) TextUtils.getOffsetBefore("", 0), (byte) ((SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 34)).intern());
sb5.append(intern);
}
} else if (z) {
m3023(new int[]{1096232762, 820515742, 1468775265, 2124236744, -2012727035, -1032738794, -2076052959, 531796571, 1537481775, -319028909, -1083412836, -476647126, 1281692931, 1490060870, 518249836, 1737797229}, (ViewConfiguration.getPressedStateDuration() >> 16) + 31).intern();
i = i3;
arrayList = arrayList4;
arrayList2 = arrayList3;
str = scheme;
} else {
i = i3;
arrayList = arrayList4;
arrayList2 = arrayList3;
str = scheme;
}
arrayList4 = arrayList;
i3 = i + 1;
arrayList3 = arrayList2;
scheme = str;
i2 = 12;
f = 0.0f;
}
ArrayList arrayList5 = arrayList4;
if (arrayList5 != null) {
for (int i4 = 0; i4 < arrayList5.size(); i4++) {
((e) arrayList5.get(i4)).f2368 = false;
}
this.f2356.add(new a(intent, arrayList5));
if (!this.f2354.hasMessages(1)) {
this.f2354.sendEmptyMessage(1);
}
return true;
}
}
return false;
} catch (Throwable th) {
throw th;
}
}
}
/* renamed from: メ, reason: contains not printable characters */
private void m3024() {
int size;
a[] aVarArr;
while (true) {
synchronized (this.f2357) {
try {
size = this.f2356.size();
if (size <= 0) {
return;
}
aVarArr = new a[size];
this.f2356.toArray(aVarArr);
this.f2356.clear();
} catch (Throwable th) {
throw th;
}
}
for (int i = 0; i < size; i++) {
a aVar = aVarArr[i];
for (int i2 = 0; i2 < aVar.f2362.size(); i2++) {
aVar.f2362.get(i2).f2367.onReceive(this.f2358, aVar.f2361);
}
}
}
}
/* renamed from: ヌ, reason: contains not printable characters */
private static String m3023(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[]) f2352.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 m3022(int i, int i2, int i3, short s, byte b) {
String obj;
synchronized (m.f2834) {
try {
StringBuilder sb = new StringBuilder();
int i4 = f2348;
int i5 = i3 + i4;
int i6 = i5 == -1 ? 1 : 0;
if (i6 != 0) {
byte[] bArr = f2349;
if (bArr != null) {
i5 = (byte) (bArr[f2350 + i2] + i4);
} else {
i5 = (short) (f2346[f2350 + i2] + i4);
}
}
if (i5 > 0) {
m.f2839 = ((i2 + i5) - 2) + f2350 + i6;
m.f2835 = b;
char c = (char) (i + f2345);
m.f2836 = c;
sb.append(c);
m.f2838 = m.f2836;
m.f2837 = 1;
while (m.f2837 < i5) {
byte[] bArr2 = f2349;
if (bArr2 != null) {
int i7 = m.f2839;
m.f2839 = i7 - 1;
m.f2836 = (char) (m.f2838 + (((byte) (bArr2[i7] + s)) ^ m.f2835));
} else {
short[] sArr = f2346;
int i8 = m.f2839;
m.f2839 = i8 - 1;
m.f2836 = (char) (m.f2838 + (((short) (sArr[i8] + s)) ^ m.f2835));
}
sb.append(m.f2836);
m.f2838 = m.f2836;
m.f2837++;
}
}
obj = sb.toString();
} catch (Throwable th) {
throw th;
}
}
return obj;
}
}