Files
rr3-apk/decompiled-community/sources/com/ironsource/adqualitysdk/sdk/i/ae.java
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

460 lines
20 KiB
Java
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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.Context;
import android.graphics.Color;
import android.graphics.PointF;
import android.graphics.drawable.Drawable;
import android.media.AudioTrack;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Process;
import android.os.SystemClock;
import android.text.AndroidCharacter;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import androidx.annotation.AnyThread;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public final class ae extends js {
/* renamed from: ﭖ, reason: contains not printable characters */
private static int f92 = 1;
/* renamed from: ﭸ, reason: contains not printable characters */
private static int f93 = 0;
/* renamed from: ﮐ, reason: contains not printable characters */
private static int f94 = 62;
/* renamed from: ﱟ, reason: contains not printable characters */
private static char f95 = 60409;
/* renamed from: ﱡ, reason: contains not printable characters */
private static char f96 = 47305;
/* renamed from: ﺙ, reason: contains not printable characters */
private static char f97 = 7498;
/* renamed from: ﻏ, reason: contains not printable characters */
private static char f98 = 33741;
/* renamed from: ﻐ, reason: contains not printable characters */
private int f99;
/* renamed from: ﻛ, reason: contains not printable characters */
private int f100;
/* renamed from: , reason: contains not printable characters */
private int f101;
/* renamed from: ヌ, reason: contains not printable characters */
private String f102;
/* renamed from: メ, reason: contains not printable characters */
private Handler f103;
public interface c {
void onEventGenerated(JSONObject jSONObject);
}
/* renamed from: ﻐ, reason: contains not printable characters */
public static /* synthetic */ int m922(ae aeVar) {
int i = f92 + 117;
int i2 = i % 128;
f93 = i2;
int i3 = i % 2;
int i4 = aeVar.f101;
aeVar.f101 = i4 + 1;
int i5 = i2 + 67;
f92 = i5 % 128;
int i6 = i5 % 2;
return i4;
}
/* renamed from: ﻛ, reason: contains not printable characters */
public static /* synthetic */ int m924(ae aeVar) {
int i = f93;
int i2 = i + 45;
f92 = i2 % 128;
int i3 = i2 % 2;
int i4 = aeVar.f100;
aeVar.f100 = i4 + 1;
int i5 = i + 13;
f92 = i5 % 128;
int i6 = i5 % 2;
return i4;
}
/* renamed from: ヌ, reason: contains not printable characters */
public static /* synthetic */ int m926(ae aeVar) {
int i = f93;
int i2 = i + 105;
f92 = i2 % 128;
int i3 = i2 % 2;
int i4 = aeVar.f101;
int i5 = i + 97;
f92 = i5 % 128;
int i6 = i5 % 2;
return i4;
}
public ae(Context context, al alVar, int i, String str, long j) {
super(context, alVar, j);
this.f99 = i;
this.f100 = 0;
this.f101 = 1;
this.f102 = str;
HandlerThread handlerThread = new HandlerThread(m923("\udfa7뻬⯸䴝喒艤ᵰ쳺胆\u1739ᦈኳ텭됥\uf37fѧ鴣䇖說\ueb51瘟㠷䃔⦃", 23 - Color.argb(0, 0, 0, 0)).intern());
handlerThread.start();
this.f103 = new Handler(handlerThread.getLooper());
}
/* renamed from: メ, reason: contains not printable characters */
private int m928() {
int i = f92;
int i2 = i + 109;
int i3 = i2 % 128;
f93 = i3;
int i4 = i2 % 2;
int i5 = this.f100;
if (i5 != 0) {
int i6 = i3 + 67;
f92 = i6 % 128;
if (i6 % 2 != 0) {
return i5;
}
throw null;
}
int i7 = i + 59;
int i8 = i7 % 128;
f93 = i8;
int i9 = i7 % 2 != 0 ? 0 : 1;
int i10 = i8 + 97;
f92 = i10 % 128;
if (i10 % 2 != 0) {
return i9;
}
throw null;
}
/* renamed from: ﻛ, reason: contains not printable characters */
public final synchronized void m929(final String str, final JSONObject jSONObject, final JSONObject jSONObject2, final boolean z, final c cVar) {
this.f103.post(new io() { // from class: com.ironsource.adqualitysdk.sdk.i.ae.3
/* renamed from: ﮐ, reason: contains not printable characters */
private static int f104 = 0;
/* renamed from: ﱟ, reason: contains not printable characters */
private static int f105 = 1;
/* renamed from: ﻏ, reason: contains not printable characters */
private static long f106 = -1043968294105785616L;
@Override // com.ironsource.adqualitysdk.sdk.i.io
/* renamed from: , reason: contains not printable characters */
public final void mo933() throws Exception {
if (str.equals(m932("홲黫퉣詯혆䑫柜ᫌ뷗\ud828\uf3b0皠Ɓ⳯形\ue24d镆", KeyEvent.normalizeMetaState(0)).intern())) {
ae.m924(ae.this);
int i = f105 + 9;
f104 = i % 128;
int i2 = i % 2;
}
int m926 = ae.m926(ae.this);
ae.m922(ae.this);
JSONObject m3324 = jx.m3324(jSONObject);
m3324.put(m932("컟紪ꗊ畐캱ꞻ၇\ue5e5", Process.myPid() >> 22).intern(), str);
m3324.put(m932("\udc1d㒨鵺∮ڃ", ExpandableListView.getPackedPositionGroup(0L)).intern(), m926);
String intern = m932("䞿푯\uef44줃䟋\u0eed嫅妰Ⱊ銽캅㗰達", View.resolveSize(0, 0)).intern();
JSONObject jSONObject3 = jSONObject2;
if (jSONObject3 != null) {
int i3 = f104 + 99;
f105 = i3 % 128;
int i4 = i3 % 2;
intern = jSONObject3.optString(ik.f2437);
String str2 = ik.f2395;
m3324.put(str2, jSONObject2.optString(str2, null));
}
if (TextUtils.isEmpty(intern)) {
int i5 = f105 + 7;
f104 = i5 % 128;
intern = i5 % 2 != 0 ? m932("誱퍶〱\udee6諟৩薿乓", 'l' % AndroidCharacter.getMirror('3')).intern() : m932("誱퍶〱\udee6諟৩薿乓", '0' - AndroidCharacter.getMirror('0')).intern();
}
m3324.put(ik.f2441, intern);
if (!m3324.has(ik.f2440)) {
m3324.put(ik.f2440, intern);
}
final JSONObject mo931 = ae.this.mo931(m3324, z, true, str.equals(m932("\uf33f⥉\uf04c뢨⦿鳶惵퍲뗦࢝", MotionEvent.axisFromString("") + 1).intern()));
t.m3514(new io() { // from class: com.ironsource.adqualitysdk.sdk.i.ae.3.4
@Override // com.ironsource.adqualitysdk.sdk.i.io
/* renamed from: */
public final void mo933() {
cVar.onEventGenerated(mo931);
}
});
}
/* renamed from: メ, reason: contains not printable characters */
private static String m932(String str2, int i) {
String str3;
char[] cArr = str2;
if (str2 != null) {
cArr = str2.toCharArray();
}
char[] cArr2 = cArr;
synchronized (i.f2325) {
try {
char[] m2999 = i.m2999(f106, cArr2, i);
i.f2324 = 4;
while (true) {
int i2 = i.f2324;
if (i2 < m2999.length) {
i.f2323 = i2 - 4;
m2999[i.f2324] = (char) ((m2999[r1] ^ m2999[r1 % 4]) ^ (i.f2323 * f106));
i.f2324++;
} else {
str3 = new String(m2999, 4, m2999.length - 4);
}
}
} catch (Throwable th) {
throw th;
}
}
return str3;
}
});
int i = f92 + 59;
f93 = i % 128;
int i2 = i % 2;
}
/* renamed from: ﻛ, reason: contains not printable characters */
public final void m930(final JSONArray jSONArray, final boolean z, final c cVar) {
this.f103.post(new io() { // from class: com.ironsource.adqualitysdk.sdk.i.ae.5
/* renamed from: ﱟ, reason: contains not printable characters */
private static int f115 = 0;
/* renamed from: ﱡ, reason: contains not printable characters */
private static int f116 = 1;
/* renamed from: , reason: contains not printable characters */
private static char[] f118 = {41142, 31759, 6626, 13635, 53775, 61426, 'A', 56516, 47413, 38290, 29393, 20262, 11157, 2245, 58659, 49599, 40658, 31531, 22422, 13526, 4363, 60819, 51918, 42799, 33670, 24831, 15676, 6557, 63214, 47020, 27441, 3791, 8824, 50483, 63643, 40054, 48957, 21212, 30322, 10553, 52430, 57471, 33580, 42629, 23162, 32063, 4294, 13427, 55043, 35564, 44670, 16641, 25806};
/* renamed from: ﺙ, reason: contains not printable characters */
private static long f117 = -1632652314227581782L;
@Override // com.ironsource.adqualitysdk.sdk.i.io
/* renamed from: */
public final void mo933() throws Exception {
int i = f115 + 63;
f116 = i % 128;
int i2 = i % 2;
final JSONObject mo931 = ae.this.mo931(null, z, false, false);
try {
mo931.put(m934((char) (41171 - ((Process.getThreadPriority(0) + 20) >> 6)), (PointF.length(0.0f, 0.0f) > 0.0f ? 1 : (PointF.length(0.0f, 0.0f) == 0.0f ? 0 : -1)) + 6, TextUtils.getTrimmedLength("")).intern(), jSONArray);
int i3 = f115 + 13;
f116 = i3 % 128;
int i4 = i3 % 2;
} catch (JSONException e) {
l.m3428(m934((char) Color.alpha(0), MotionEvent.axisFromString("") + 24, TextUtils.lastIndexOf("", '0', 0, 0) + 7).intern(), m934((char) ((ViewConfiguration.getScrollBarFadeDuration() >> 16) + 47081), 24 - (PointF.length(0.0f, 0.0f) > 0.0f ? 1 : (PointF.length(0.0f, 0.0f) == 0.0f ? 0 : -1)), (TypedValue.complexToFloat(0) > 0.0f ? 1 : (TypedValue.complexToFloat(0) == 0.0f ? 0 : -1)) + 29).intern(), e);
}
t.m3514(new io() { // from class: com.ironsource.adqualitysdk.sdk.i.ae.5.1
@Override // com.ironsource.adqualitysdk.sdk.i.io
/* renamed from: */
public final void mo933() {
cVar.onEventGenerated(mo931);
}
});
}
/* renamed from: ﻐ, reason: contains not printable characters */
private static String m934(char c2, int i, int i2) {
String str;
synchronized (d.f1568) {
try {
char[] cArr = new char[i];
d.f1567 = 0;
while (true) {
int i3 = d.f1567;
if (i3 < i) {
cArr[i3] = (char) ((f118[i2 + i3] ^ (i3 * f117)) ^ c2);
d.f1567 = i3 + 1;
} else {
str = new String(cArr);
}
}
} catch (Throwable th) {
throw th;
}
}
return str;
}
});
int i = f93 + 121;
f92 = i % 128;
if (i % 2 == 0) {
int i2 = 70 / 0;
}
}
@Override // com.ironsource.adqualitysdk.sdk.i.js
@AnyThread
/* renamed from: ヌ, reason: contains not printable characters */
public final JSONObject mo931(JSONObject jSONObject, boolean z, boolean z2, boolean z3) throws JSONException {
long m3253;
long m3254;
synchronized (this) {
m3253 = jp.m3253();
m3254 = jp.m3254();
}
JSONObject mo931 = super.mo931(jSONObject, z, z2, z3);
try {
long optLong = mo931.optLong(ik.f2434);
mo931.remove(ik.f2434);
if (optLong != 0) {
long j = m3254 - (m3253 - optLong);
mo931.put(m923("\ueabb䈳\uee08", 3 - (ViewConfiguration.getKeyRepeatTimeout() >> 16)).intern(), m3253);
mo931.put(m927(false, "\u0001\u0000\uffff", 179 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 1, Color.green(0) + 3).intern(), m3254);
m3253 = optLong;
m3254 = j;
}
mo931.put(m923("\uedab䦴䈳\uee08", 4 - (AudioTrack.getMaxVolume() > 0.0f ? 1 : (AudioTrack.getMaxVolume() == 0.0f ? 0 : -1))).intern(), m3253);
mo931.put(m927(true, "\u0001\u0000", 179 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), -TextUtils.lastIndexOf("", '0', 0), 2 - TextUtils.getTrimmedLength("")).intern(), m3254);
mo931.put(m927(true, "\u0006\ufff7\b", 172 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)), TextUtils.indexOf("", "", 0) + 1, 4 - Drawable.resolveOpacity(0, 0)).intern(), this.f102);
mo931.put(m923("ꪥ킭옻ᢓ", 3 - View.resolveSizeAndState(0, 0, 0)).intern(), this.f99);
mo931.put(m927(true, "\uffff\u0004\ufffe", 173 - Gravity.getAbsoluteGravity(0, 0), TextUtils.indexOf("", "") + 2, 3 - (ViewConfiguration.getPressedStateDuration() >> 16)).intern(), m928());
if (ao.m1084().mo1086()) {
mo931.put(m927(false, "\ufffa\n\u0003\ufffb", 167 - (TypedValue.complexToFraction(0, 0.0f, 0.0f) > 0.0f ? 1 : (TypedValue.complexToFraction(0, 0.0f, 0.0f) == 0.0f ? 0 : -1)), 4 - View.resolveSize(0, 0), AndroidCharacter.getMirror('0') - ',').intern(), true);
}
if (z2) {
m925(mo931);
}
} catch (JSONException e) {
l.m3428(m923("\udfa7뻬⯸䴝喒艤ᵰ쳺胆\u1739ᦈኳ텭됥\uf37fѧ鴣䇖說\ueb51瘟㠷䃔⦃", TextUtils.getOffsetAfter("", 0) + 23).intern(), m923("風䚧\ue910姆ꔌ◥獈؇꺊\uf040鬒劥\ue54e䂊ᦈኳ텭됥㋭㝫廷", 24 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1))).intern(), e);
}
return mo931;
}
/* renamed from: , reason: contains not printable characters */
private synchronized void m925(JSONObject jSONObject) {
int i = f92 + 123;
f93 = i % 128;
int i2 = i % 2;
ih m3174 = jc.m3166().m3174();
try {
jSONObject.put(m923("ḓ䁚纝\ueabb㖖\u2d6d瑟\uf0b9\ued55儑", 9 - (TypedValue.complexToFloat(0) > 0.0f ? 1 : (TypedValue.complexToFloat(0) == 0.0f ? 0 : -1))).intern(), jx.m3338(m3174.m3032(), m3174.m3033(), m3174.m3030(), m3174.m3031()));
int i3 = f92 + 89;
f93 = i3 % 128;
if (i3 % 2 != 0) {
int i4 = 44 / 0;
}
} catch (JSONException e) {
l.m3428(m923("\udfa7뻬⯸䴝喒艤ᵰ쳺胆\u1739ᦈኳ텭됥\uf37fѧ鴣䇖說\ueb51瘟㠷䃔⦃", (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 24).intern(), m927(true, "\u0012\u0000\u000b\uffbf\u0006\r\b\u0003\u0003\u0000\uffbf\u0011\u000e\u0011\u0011\u0004\u0013\r\u0004\u0015\u0004\uffbf\u000e\u0013\uffbf\u0007\u0002\u0014\u000e\u0013", TextUtils.lastIndexOf("", '0', 0, 0) + 160, 16 - TextUtils.indexOf("", "", 0), View.MeasureSpec.getMode(0) + 30).intern(), e);
}
}
/* renamed from: ﻐ, reason: contains not printable characters */
private static String m923(String str, int i) {
String str2;
char[] cArr = str;
if (str != null) {
cArr = str.toCharArray();
}
char[] cArr2 = cArr;
synchronized (k.f2799) {
try {
char[] cArr3 = new char[cArr2.length];
k.f2798 = 0;
char[] cArr4 = new char[2];
while (true) {
int i2 = k.f2798;
if (i2 < cArr2.length) {
cArr4[0] = cArr2[i2];
cArr4[1] = cArr2[i2 + 1];
int i3 = 58224;
for (int i4 = 0; i4 < 16; i4++) {
char c2 = cArr4[1];
char c3 = cArr4[0];
char c4 = (char) (c2 - (((c3 + i3) ^ ((c3 << 4) + f98)) ^ ((c3 >>> 5) + f95)));
cArr4[1] = c4;
cArr4[0] = (char) (c3 - (((c4 >>> 5) + f96) ^ ((c4 + i3) ^ ((c4 << 4) + f97))));
i3 -= 40503;
}
int i5 = k.f2798;
cArr3[i5] = cArr4[0];
cArr3[i5 + 1] = cArr4[1];
k.f2798 = i5 + 2;
} else {
str2 = new String(cArr3, 0, i);
}
}
} catch (Throwable th) {
throw th;
}
}
return str2;
}
/* renamed from: ヌ, reason: contains not printable characters */
private static String m927(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[i3];
a.f56 = 0;
while (true) {
int i4 = a.f56;
if (i4 >= i3) {
break;
}
a.f54 = cArr2[i4];
cArr3[a.f56] = (char) (a.f54 + i);
int i5 = a.f56;
cArr3[i5] = (char) (cArr3[i5] - f94);
a.f56 = i5 + 1;
}
if (i2 > 0) {
a.f55 = i2;
char[] cArr4 = new char[i3];
System.arraycopy(cArr3, 0, cArr4, 0, i3);
int i6 = a.f55;
System.arraycopy(cArr4, 0, cArr3, i3 - i6, i6);
int i7 = a.f55;
System.arraycopy(cArr4, i7, cArr3, 0, i3 - i7);
}
if (z) {
char[] cArr5 = new char[i3];
a.f56 = 0;
while (true) {
int i8 = a.f56;
if (i8 >= i3) {
break;
}
cArr5[i8] = cArr3[(i3 - i8) - 1];
a.f56 = i8 + 1;
}
cArr3 = cArr5;
}
str2 = new String(cArr3);
} catch (Throwable th) {
throw th;
}
}
return str2;
}
}