- 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
292 lines
16 KiB
Java
292 lines
16 KiB
Java
package com.ironsource.adqualitysdk.sdk.i;
|
||
|
||
import android.content.Context;
|
||
import android.content.pm.PackageInfo;
|
||
import android.content.pm.PackageManager;
|
||
import android.graphics.Color;
|
||
import android.graphics.drawable.Drawable;
|
||
import android.media.AudioTrack;
|
||
import android.os.Process;
|
||
import android.text.TextUtils;
|
||
import android.util.TypedValue;
|
||
import android.view.View;
|
||
import android.view.ViewConfiguration;
|
||
import android.widget.ExpandableListView;
|
||
import com.ironsource.mediationsdk.utils.IronSourceConstants;
|
||
import org.json.JSONException;
|
||
import org.json.JSONObject;
|
||
|
||
/* loaded from: classes4.dex */
|
||
public final class jt {
|
||
|
||
/* renamed from: ﻛ, reason: contains not printable characters */
|
||
private static int f2762 = 0;
|
||
|
||
/* renamed from: ヌ, reason: contains not printable characters */
|
||
private static int f2764 = 1;
|
||
|
||
/* renamed from: ﻐ, reason: contains not printable characters */
|
||
private static char[] f2761 = {153, 306, ' ', 'X', 'p', 'b', 'd', 'n', 'j', 'o', 'R', 187, 212, 210, 202, 203, 172, 175, 172, 162, 196, 198, 164, 166, 205, 210, 213, 204, 200, 206, 202, 205, 171, 170, 202, 196, 201, 200, 198, 200, 164, 169, 201, 201, 203, 164, 172, 211, 169, 167, 208, 211, 208, 176, 137, 164, 205, 212, 210, 210, 184, 143, '2', 'k', 'r', 'p', 'p', 'V', '-', ' ', '&', '&', '7', 'i', 'w', 245, 250, 217, 215, 249, 252, 250, 252, 253, 254, 255, 246, 240, 213, 211, 238, 246, 255, 247, 242, 246, 250, 258, 258, 247, 243, 216, 220, 247, 243, 216, 211, 241, 249, 220, 204, 237, 251, 250, 248, 242, 230, 239, 245, 238, 240, 239, 237, 238, 243, 228, 234, 258, 248, 245, 252, 250, 248, 250, 'K', '7'};
|
||
|
||
/* renamed from: メ, reason: contains not printable characters */
|
||
private static char f2765 = 6;
|
||
|
||
/* renamed from: k, reason: contains not printable characters */
|
||
private static char[] f2763 = {'C', 'o', 'u', 'l', 'd', 'n', '\'', 't', ' ', 'a', 'b', 'e', 'I', 'i', 'f', 'j', 's', 'c', 'v', 'g', 'p', 'k', 'm', 'r', '.', ':', 'y', '3', 'U', 'P', 'D', 'E', 'F', 'G', 'H', 'J'};
|
||
|
||
/* renamed from: ﻛ, reason: contains not printable characters */
|
||
public static boolean m3279(Context context, String str) {
|
||
if (context.checkCallingOrSelfPermission(str) == 0) {
|
||
int i = f2764 + 31;
|
||
f2762 = i % 128;
|
||
return i % 2 == 0;
|
||
}
|
||
int i2 = f2764 + 73;
|
||
f2762 = i2 % 128;
|
||
int i3 = i2 % 2;
|
||
return false;
|
||
}
|
||
|
||
/* renamed from: ﻐ, reason: contains not printable characters */
|
||
public static void m3278(Context context, JSONObject jSONObject) {
|
||
int i = f2762 + 95;
|
||
f2764 = i % 128;
|
||
int i2 = i % 2;
|
||
String intern = m3283("\u0001\u0001\u0000\u0001\u0001\u0001\u0001\u0001", false, new int[]{2, 8, 0, 0}).intern();
|
||
String packageName = context.getPackageName();
|
||
try {
|
||
jSONObject.put(m3283("\u0001\u0000", false, new int[]{0, 2, 195, 0}).intern(), packageName);
|
||
} catch (JSONException e) {
|
||
l.m3428(intern, m3281(Drawable.resolveOpacity(0, 0) + 34, (byte) (96 - View.MeasureSpec.getMode(0)), "\u0001\u0002\u0003\u0004\u0005\u0000\u0007\b\t\nÄÄ\t\u000b\u0003\u0000\u0005\u0004\u0006\u0011\u0002\n\u0011\u0001\r\u0002\t\b\u0002\u0007\u0010\u0011\u0002\u0000").intern(), e);
|
||
}
|
||
PackageManager packageManager = context.getPackageManager();
|
||
try {
|
||
jSONObject.put(m3281(3 - (ViewConfiguration.getScrollFriction() > 0.0f ? 1 : (ViewConfiguration.getScrollFriction() == 0.0f ? 0 : -1)), (byte) (84 - View.getDefaultSize(0, 0)), "\f\u000f").intern(), packageManager.getInstallerPackageName(packageName));
|
||
} catch (JSONException e2) {
|
||
StringBuilder sb = new StringBuilder();
|
||
sb.append(m3283("\u0001\u0000\u0000\u0001\u0000\u0000\u0001\u0001\u0000\u0001\u0001\u0000\u0000\u0001\u0001\u0001\u0001\u0001\u0001\u0000\u0001\u0001\u0000\u0000\u0001\u0000\u0000\u0000\u0000\u0000\u0001\u0000\u0001\u0000\u0000\u0001\u0000\u0001\u0001\u0000\u0001\u0000\u0001\u0000\u0000\u0001\u0001\u0000\u0001\u0001\u0000\u0000", false, new int[]{10, 52, 98, 0}).intern());
|
||
sb.append(e2.getLocalizedMessage());
|
||
l.m3417(intern, sb.toString());
|
||
}
|
||
try {
|
||
PackageInfo packageInfo = packageManager.getPackageInfo(packageName, 0);
|
||
jSONObject.put(m3281((AudioTrack.getMinVolume() > 0.0f ? 1 : (AudioTrack.getMinVolume() == 0.0f ? 0 : -1)) + 2, (byte) (10 - Color.blue(0)), "\u0017\f").intern(), Integer.toString(packageInfo.versionCode));
|
||
jSONObject.put(m3281(1 - ExpandableListView.getPackedPositionChild(0L), (byte) (View.getDefaultSize(0, 0) + 27), "\u0017\u0000").intern(), packageInfo.versionName);
|
||
} catch (PackageManager.NameNotFoundException e3) {
|
||
StringBuilder sb2 = new StringBuilder();
|
||
sb2.append(m3281(TextUtils.getTrimmedLength("") + 33, (byte) (Color.red(0) + 16), "\u0001\u0002\u0003\u0004\u0005\u0000\u0007\b\u0007\u0014\u0006\b\u000e\u001a\u000b\u000f\u001b\u000f\u0017\u0007\n\u0014\u000b\u0003\u0007\u0015\u0011\u001d\u000e\u0014\u0005\u00130").intern());
|
||
sb2.append(packageName);
|
||
sb2.append(m3283("\u0001\u0001\u0000\u0001\u0001\u0000\u0000\u0000\u0001\u0001", false, new int[]{62, 10, 0, 7}).intern());
|
||
sb2.append(e3.getLocalizedMessage());
|
||
l.m3417(intern, sb2.toString());
|
||
} catch (JSONException e4) {
|
||
StringBuilder sb3 = new StringBuilder();
|
||
sb3.append(m3281(Drawable.resolveOpacity(0, 0) + 46, (byte) (TextUtils.lastIndexOf("", '0', 0) + 104), "\u0001\u0002\u0003\u0004\u0005\u0000\u0007\b\t\nËË\t\n××\u0006\u0014\u0011\u001d\u0011\u000e\u0002\u0000\u0007\u000e\u0002\u0011\u0002\u0007\r\u0007\t\u000e\r\u0004\u0000\u001d\t\u0006ÙÙ\u0005\u0013\u001a\u0007").intern());
|
||
sb3.append(e4.getLocalizedMessage());
|
||
l.m3417(intern, sb3.toString());
|
||
}
|
||
try {
|
||
jSONObject.put(m3283("\u0000\u0000", true, new int[]{72, 2, 0, 0}).intern(), packageManager.getApplicationLabel(packageManager.getApplicationInfo(packageName, 0)).toString());
|
||
int i3 = f2762 + 9;
|
||
f2764 = i3 % 128;
|
||
int i4 = i3 % 2;
|
||
} catch (PackageManager.NameNotFoundException e5) {
|
||
StringBuilder sb4 = new StringBuilder();
|
||
sb4.append(m3281(33 - (ViewConfiguration.getMinimumFlingVelocity() >> 16), (byte) (TextUtils.indexOf("", "", 0, 0) + 16), "\u0001\u0002\u0003\u0004\u0005\u0000\u0007\b\u0007\u0014\u0006\b\u000e\u001a\u000b\u000f\u001b\u000f\u0017\u0007\n\u0014\u000b\u0003\u0007\u0015\u0011\u001d\u000e\u0014\u0005\u00130").intern());
|
||
sb4.append(packageName);
|
||
sb4.append(m3283("\u0001\u0001\u0000\u0001\u0001\u0000\u0000\u0000\u0001\u0001", false, new int[]{62, 10, 0, 7}).intern());
|
||
sb4.append(e5.getLocalizedMessage());
|
||
l.m3417(intern, sb4.toString());
|
||
} catch (JSONException e6) {
|
||
StringBuilder sb5 = new StringBuilder();
|
||
sb5.append(m3281(43 - (Process.myPid() >> 22), (byte) (72 - (ViewConfiguration.getDoubleTapTimeout() >> 16)), "\u0001\u0002\u0003\u0004\u0005\u0000\u0007\b\t\n¬¬\t\n¸¸\u000b\u0002\n\u0015\u0006\t\u0011\u0001\r\u0002\t\b\u0002\u0007\u0010\u0011\u0002\u0000\u001a\u0006\u0011\u001d\u0013\u0005\u0013\u001dh").intern());
|
||
sb5.append(e6.getLocalizedMessage());
|
||
l.m3417(intern, sb5.toString());
|
||
}
|
||
}
|
||
|
||
/* JADX WARN: Multi-variable type inference failed */
|
||
/* renamed from: メ, reason: contains not printable characters */
|
||
public static String m3282(Context context) {
|
||
int i = f2762 + 91;
|
||
f2764 = i % 128;
|
||
try {
|
||
return (i % 2 == 0 ? context.getPackageManager().getPackageInfo(context.getPackageName(), 1) : context.getPackageManager().getPackageInfo(context.getPackageName(), 0)).versionName;
|
||
} catch (PackageManager.NameNotFoundException e) {
|
||
String intern = m3283("\u0001\u0001\u0000\u0001\u0001\u0001\u0001\u0001", false, new int[]{2, 8, 0, 0}).intern();
|
||
StringBuilder sb = new StringBuilder();
|
||
sb.append(m3281(33 - View.MeasureSpec.getMode(0), (byte) ((ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 15), "\u0001\u0002\u0003\u0004\u0005\u0000\u0007\b\u0007\u0014\u0006\b\u000e\u001a\u000b\u000f\u001b\u000f\u0017\u0007\n\u0014\u000b\u0003\u0007\u0015\u0011\u001d\u000e\u0014\u0005\u00130").intern());
|
||
sb.append((String) context);
|
||
sb.append(m3283("\u0001\u0001\u0000\u0001\u0001\u0000\u0000\u0000\u0001\u0001", false, new int[]{62, 10, 0, 7}).intern());
|
||
sb.append(e.getLocalizedMessage());
|
||
l.m3417(intern, sb.toString());
|
||
return null;
|
||
}
|
||
}
|
||
|
||
/* renamed from: ヌ, reason: contains not printable characters */
|
||
public static String m3280() {
|
||
int i = f2764 + 85;
|
||
f2762 = i % 128;
|
||
int i2 = i % 2;
|
||
try {
|
||
try {
|
||
Class.forName(m3281(30 - (TypedValue.complexToFraction(0, 0.0f, 0.0f) > 0.0f ? 1 : (TypedValue.complexToFraction(0, 0.0f, 0.0f) == 0.0f ? 0 : -1)), (byte) (TextUtils.lastIndexOf("", '0', 0, 0) + 106), "\r\u0005\u0012\u001c\u0003\u0000\u0013\r\u001b\u001c\u0000\u001c\u0015\u0002\b\u001b\u0011\u001d\u0019\u001d\u0001\u0011\b\u0019\u001b\u0005\b\u001b\u0011\u001d").intern());
|
||
String intern = m3281(1 - View.combineMeasuredStates(0, 0), (byte) (35 - (ViewConfiguration.getScrollBarFadeDuration() >> 16)), "\u0098").intern();
|
||
int i3 = f2762 + 53;
|
||
f2764 = i3 % 128;
|
||
int i4 = i3 % 2;
|
||
return intern;
|
||
} catch (ClassNotFoundException unused) {
|
||
Class.forName(m3283("\u0001\u0000\u0000\u0001\u0001\u0001\u0001\u0001\u0001\u0000\u0000\u0001\u0001\u0000\u0001\u0001\u0001\u0001\u0000\u0000\u0001\u0001\u0001\u0001\u0000\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0000\u0001\u0000\u0001\u0000\u0000\u0000\u0001\u0001\u0001\u0000\u0001\u0000\u0000\u0001\u0001\u0000\u0000\u0000\u0001\u0000\u0001\u0001\u0001\u0000\u0000\u0001", false, new int[]{74, 60, IronSourceConstants.USING_CACHE_FOR_INIT_EVENT, 0}).intern());
|
||
return m3283("\u0000", true, new int[]{134, 1, 53, 1}).intern();
|
||
}
|
||
} catch (ClassNotFoundException unused2) {
|
||
return m3283("\u0000", false, new int[]{135, 1, 0, 1}).intern();
|
||
}
|
||
}
|
||
|
||
/* renamed from: メ, reason: contains not printable characters */
|
||
private static String m3283(String str, boolean z, int[] iArr) {
|
||
String str2;
|
||
byte[] bArr = str;
|
||
if (str != null) {
|
||
bArr = str.getBytes("ISO-8859-1");
|
||
}
|
||
byte[] bArr2 = bArr;
|
||
synchronized (g.f2033) {
|
||
try {
|
||
int i = iArr[0];
|
||
int i2 = iArr[1];
|
||
int i3 = iArr[2];
|
||
int i4 = iArr[3];
|
||
char[] cArr = new char[i2];
|
||
System.arraycopy(f2761, i, cArr, 0, i2);
|
||
if (bArr2 != null) {
|
||
char[] cArr2 = new char[i2];
|
||
g.f2032 = 0;
|
||
char c = 0;
|
||
while (true) {
|
||
int i5 = g.f2032;
|
||
if (i5 >= i2) {
|
||
break;
|
||
}
|
||
if (bArr2[i5] == 1) {
|
||
cArr2[i5] = (char) (((cArr[i5] << 1) + 1) - c);
|
||
} else {
|
||
cArr2[i5] = (char) ((cArr[i5] << 1) - c);
|
||
}
|
||
c = cArr2[i5];
|
||
g.f2032 = i5 + 1;
|
||
}
|
||
cArr = cArr2;
|
||
}
|
||
if (i4 > 0) {
|
||
char[] cArr3 = new char[i2];
|
||
System.arraycopy(cArr, 0, cArr3, 0, i2);
|
||
int i6 = i2 - i4;
|
||
System.arraycopy(cArr3, 0, cArr, i6, i4);
|
||
System.arraycopy(cArr3, i4, cArr, 0, i6);
|
||
}
|
||
if (z) {
|
||
char[] cArr4 = new char[i2];
|
||
g.f2032 = 0;
|
||
while (true) {
|
||
int i7 = g.f2032;
|
||
if (i7 >= i2) {
|
||
break;
|
||
}
|
||
cArr4[i7] = cArr[(i2 - i7) - 1];
|
||
g.f2032 = i7 + 1;
|
||
}
|
||
cArr = cArr4;
|
||
}
|
||
if (i3 > 0) {
|
||
g.f2032 = 0;
|
||
while (true) {
|
||
int i8 = g.f2032;
|
||
if (i8 >= i2) {
|
||
break;
|
||
}
|
||
cArr[i8] = (char) (cArr[i8] - iArr[2]);
|
||
g.f2032 = i8 + 1;
|
||
}
|
||
}
|
||
str2 = new String(cArr);
|
||
} catch (Throwable th) {
|
||
throw th;
|
||
}
|
||
}
|
||
return str2;
|
||
}
|
||
|
||
/* renamed from: メ, reason: contains not printable characters */
|
||
private static String m3281(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 = f2763;
|
||
char c = f2765;
|
||
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;
|
||
}
|
||
}
|