what-the-bank/sources/com/google/android/gms/measurement/AppMeasurementContentProvid...

422 lines
21 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.measurement;
import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.Context;
import android.content.pm.ProviderInfo;
import android.database.Cursor;
import android.graphics.Color;
import android.net.Uri;
import android.os.Process;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.gms.measurement.internal.zzfv;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISO7816;
import o.jTb;
import o.xzZ;
import org.jnbis.internal.NistHelper;
@Deprecated
/* loaded from: classes2.dex */
public class AppMeasurementContentProvider extends ContentProvider {
private static final byte[] $$a = {85, 123, 51, ISO7816.INS_READ_RECORD2};
private static final int $$b = 27;
private static int $10 = 0;
private static int $11 = 1;
private static int g = 0;
private static int j = 1;
private static char d = 51376;
private static char c = 44118;
private static char b = 15746;
private static char e = 20789;
private static char[] a = {49127, 49145, 49024, 49034, 49106, 49109, 49091, 49029, 49146, 49093, 49026, 49035, 49138, 49030, 49053, 49147, 49105, 49114, 49116, 49118, 49111, 49104, 49110, 49144, 49089, 49126, 49149, 49117, 49025, 49031, 49115, 49028, 49098, 49095, 49027, 49148};
private static char h = 35375;
private static void k(short s, int i, int i2, Object[] objArr) {
byte[] bArr = $$a;
int i3 = i * 3;
int i4 = 120 - i2;
int i5 = 4 - (s * 3);
byte[] bArr2 = new byte[i3 + 1];
int i6 = -1;
if (bArr == null) {
i6 = -1;
i4 = i5 + i3;
i5++;
}
while (true) {
int i7 = i6 + 1;
bArr2[i7] = (byte) i4;
if (i7 == i3) {
objArr[0] = new String(bArr2, 0);
return;
}
int i8 = i4;
i6 = i7;
i4 = bArr[i5] + i8;
i5++;
}
}
@Override // android.content.ContentProvider
public void attachInfo(Context context, ProviderInfo providerInfo) {
int i = 2 % 2;
int i2 = g + 27;
j = i2 % 128;
int i3 = i2 % 2;
super.attachInfo(context, providerInfo);
if ("com.google.android.gms.measurement.google_measurement_service".equals(providerInfo.authority)) {
throw new IllegalStateException("Incorrect provider authority in manifest. Most likely due to a missing applicationId variable in application's build.gradle.");
}
int i4 = j + 5;
g = i4 % 128;
int i5 = i4 % 2;
}
@Override // android.content.ContentProvider
public boolean onCreate() {
int i = 2 % 2;
int i2 = g + 47;
j = i2 % 128;
int i3 = i2 % 2;
Object[] objArr = new Object[1];
f(new char[]{4845, 7397, 51510, 23180, 7100, 15941, 25470, 13319, 60531, 594, 10283, 11145, 56481, 26845, 25367, 40230, 17172, 10339}, TextUtils.indexOf((CharSequence) "", '0') + 19, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
i(new char[]{20, 31, 29, '\r', 13841}, (byte) (19 - (ViewConfiguration.getDoubleTapTimeout() >> 16)), 5 - (ViewConfiguration.getLongPressTimeout() >> 16), objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue < 99000 || intValue > 99999) {
Object[] objArr3 = new Object[1];
i(new char[]{3, NistHelper.SEP_FS, 18, 26, 23, '\f', 26, 20, 0, '\n', '\b', '\f', 15, 18, '#', 15, 11, 15, '\"', '!', 6, 0, NistHelper.SEP_FS, 18, 2, 22}, (byte) (93 - View.MeasureSpec.getMode(0)), Color.green(0) + 26, objArr3);
Class<?> cls2 = Class.forName((String) objArr3[0]);
Object[] objArr4 = new Object[1];
f(new char[]{4002, 27458, 17814, 29306, 30843, 23160, 20921, 30237, 41692, 11074, 55498, 9077, 41301, 3018, 3438, 61046, 59848, 18341}, (ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 18, objArr4);
Context context = (Context) cls2.getMethod((String) objArr4[0], new Class[0]).invoke(null, null);
if (context != null) {
int i4 = j + 89;
g = i4 % 128;
int i5 = i4 % 2;
context = context.getApplicationContext();
}
if (context != null) {
int i6 = j + 95;
g = i6 % 128;
int i7 = i6 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(491 - TextUtils.indexOf((CharSequence) "", '0', 0, 0), Color.blue(0) + 5, (char) ((Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) - 1))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr5 = new Object[1];
i(new char[]{7, '\"', NistHelper.SEP_FS, 17, 3, 20, 0, 5, 15, 4, '\"', '\n', 4, 14, 5, '\b', 14, 4, 29, '\n', 5, 26, 5, 4, 1, 11, 19, 15, 27, '\t', 22, '\b', 7, 16, 6, 11, 4, 23, 13828, 13828, 29, 24, 1, 15, 23, '\t', 23, NistHelper.SEP_FS}, (byte) (11 - TextUtils.lastIndexOf("", '0', 0, 0)), TextUtils.getCapsMode("", 0, 0) + 48, objArr5);
String str = (String) objArr5[0];
Object[] objArr6 = new Object[1];
f(new char[]{59961, 47410, 238, 13048, 64899, 44170, 16039, 16840, 44663, 50069, 46559, 59217, 46559, 59217, 34255, 3443, 3304, 16262, 33865, 24137, 24440, 64592, 51310, 30048, 8364, 51357, 13892, 64889, 27463, 63336, 50760, 1395, 50597, 7228, 51377, 35443, 48456, 31629, 12703, 55977, 64899, 44170, 4275, 28854, 37523, 15852, 64899, 44170, 8309, 23419, 39939, 62678, 6451, 38349, 65093, 49182, 24090, 2968, 12628, 43788, 64899, 44170, 52100, 18829}, View.MeasureSpec.getSize(0) + 64, objArr6);
String str2 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
i(new char[]{5, '\n', ' ', 4, 5, 3, 13888, 13888, 27, 4, 4, 20, 17, NistHelper.SEP_FS, '#', '\n', '\n', 22, 4, '#', 16, 4, '\"', 25, 23, '\t', 4, 23, 6, '\b', 2, 21, NistHelper.SEP_FS, 17, 1, 16, 16, 25, 13804, 13804, 16, 31, 14, 1, 3, 23, '\n', 19, 22, NistHelper.SEP_FS, 29, '\n', '\t', 1, '#', 4, 4, '\n', 0, 5, 17, 7, 19, '!'}, (byte) (TextUtils.getOffsetAfter("", 0) + 65), (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 63, objArr7);
String str3 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
f(new char[]{50384, 18468, 2006, 8846, 33923, 872, 26838, 6978, 9202, 39954, 37059, 27599, 51278, 51711, 18104, 14108, 26581, 13403, 64485, 6359, 59229, 62661, 30528, 62422, 5361, 13422, 8601, 15433, 41910, 57821, 5820, 4200, 635, 481, 7754, 63879, 43495, 39054, 'b', 57518, 39301, 443, 65353, 25420, 58789, 8779, 39301, 443, 24975, 32923, 51278, 51711, 34307, 25323, 38303, 33464, 63578, 19018, 3941, 26011, 5391, 'J', 63308, 55320, 16927, 21489, 9379, 136, 6416, 14360, 30843, 23160, 1584, 48729}, (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 74, objArr8);
String str4 = (String) objArr8[0];
Object[] objArr9 = new Object[1];
f(new char[]{30148, 14747, 48599, 39123, 17285, 61584}, 5 - (ViewConfiguration.getMinimumFlingVelocity() >> 16), objArr9);
String str5 = (String) objArr9[0];
Object[] objArr10 = new Object[1];
f(new char[]{5820, 4200, 47384, 11830, 33612, 36996, 40563, 39162, 26885, 57392, 35363, 34153, 4999, 58869, 14938, 49058, 38370, 13071, 39005, 42239, 15889, 10088, 45158, 26283, 18826, 47710, 47455, 15421, 62803, 31333, 20752, 24061, 31593, 50472, 33354, 30910}, (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 35, objArr10);
Object[] objArr11 = {context, str, str2, str3, str4, true, str5, (String) objArr10[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(TextUtils.lastIndexOf("", '0', 0, 0) + 488, 5 - (Process.myPid() >> 22), (char) ((ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) - 1))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class);
xzZ.y.put(1656189573, obj2);
}
((Method) obj2).invoke(invoke, objArr11);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause != null) {
throw cause;
}
throw th;
}
}
}
Context context2 = getContext();
Preconditions.checkNotNull(context2);
zzfv.zzp(context2, null, null);
int i8 = j + 33;
g = i8 % 128;
if (i8 % 2 != 0) {
int i9 = 79 / 0;
}
return false;
}
private static void f(char[] cArr, int i, Object[] objArr) {
int i2 = 2 % 2;
jTb jtb = new jTb();
char[] cArr2 = new char[cArr.length];
int i3 = 0;
jtb.b = 0;
char[] cArr3 = new char[2];
while (jtb.b < cArr.length) {
int i4 = $11 + 117;
$10 = i4 % 128;
int i5 = i4 % 2;
cArr3[i3] = cArr[jtb.b];
cArr3[1] = cArr[jtb.b + 1];
int i6 = 58224;
int i7 = i3;
while (i7 < 16) {
char c2 = cArr3[1];
char c3 = cArr3[i3];
char[] cArr4 = cArr3;
try {
Object[] objArr2 = {Integer.valueOf(c2), Integer.valueOf((c3 + i6) ^ ((c3 << 4) + ((char) (b ^ 41718355337583039L)))), Integer.valueOf(c3 >>> 5), Integer.valueOf(e)};
Object obj = xzZ.y.get(597144044);
if (obj == null) {
Class cls = (Class) xzZ.c(412 - (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (ViewConfiguration.getPressedStateDuration() >> 16) + 5, (char) TextUtils.indexOf("", "", 0, 0));
byte b2 = (byte) 0;
byte b3 = b2;
Object[] objArr3 = new Object[1];
k(b2, b3, (byte) (b3 | 54), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
xzZ.y.put(597144044, obj);
}
char charValue = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
cArr4[1] = charValue;
Object[] objArr4 = {Integer.valueOf(cArr4[0]), Integer.valueOf((charValue + i6) ^ ((charValue << 4) + ((char) (d ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(c)};
Object obj2 = xzZ.y.get(597144044);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(412 - KeyEvent.normalizeMetaState(0), 5 - Color.blue(0), (char) ((-1) - ((byte) KeyEvent.getModifierMetaStateMask())));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr5 = new Object[1];
k(b4, b5, (byte) (b5 | 54), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
xzZ.y.put(597144044, obj2);
}
cArr4[0] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
i6 -= 40503;
i7++;
cArr3 = cArr4;
i3 = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
char[] cArr5 = cArr3;
cArr2[jtb.b] = cArr5[0];
cArr2[jtb.b + 1] = cArr5[1];
Object[] objArr6 = {jtb, jtb};
Object obj3 = xzZ.y.get(943004485);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(98 - (ViewConfiguration.getJumpTapTimeout() >> 16), (ViewConfiguration.getScrollDefaultDelay() >> 16) + 5, (char) ExpandableListView.getPackedPositionType(0L));
byte b6 = (byte) 0;
byte b7 = b6;
Object[] objArr7 = new Object[1];
k(b6, b7, (byte) (b7 | 53), objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(943004485, obj3);
}
((Method) obj3).invoke(null, objArr6);
int i8 = $11 + 29;
$10 = i8 % 128;
int i9 = i8 % 2;
cArr3 = cArr5;
i3 = 0;
}
objArr[0] = new String(cArr2, 0, i);
}
/* JADX WARN: Code restructure failed: missing block: B:37:0x0122, code lost:
if (r2.b == r2.c) goto L36;
*/
/* JADX WARN: Code restructure failed: missing block: B:38:0x0159, code lost:
r10 = new java.lang.Object[]{r2, r2, java.lang.Integer.valueOf(r1), r2, r2, java.lang.Integer.valueOf(r1), r2, r2, java.lang.Integer.valueOf(r1), r2, r2, java.lang.Integer.valueOf(r1), r2};
r4 = o.xzZ.y.get(822107368);
*/
/* JADX WARN: Code restructure failed: missing block: B:39:0x01a8, code lost:
if (r4 == null) goto L40;
*/
/* JADX WARN: Code restructure failed: missing block: B:43:0x0234, code lost:
if (((java.lang.Integer) ((java.lang.reflect.Method) r4).invoke(null, r10)).intValue() != r2.j) goto L51;
*/
/* JADX WARN: Code restructure failed: missing block: B:44:0x0236, code lost:
r4 = com.google.android.gms.measurement.AppMeasurementContentProvider.$10 + 121;
com.google.android.gms.measurement.AppMeasurementContentProvider.$11 = r4 % 128;
r4 = r4 % 2;
*/
/* JADX WARN: Code restructure failed: missing block: B:45:0x0242, code lost:
r10 = new java.lang.Object[]{r2, r2, java.lang.Integer.valueOf(r1), java.lang.Integer.valueOf(r1), r2, r2, java.lang.Integer.valueOf(r1), java.lang.Integer.valueOf(r1), r2, java.lang.Integer.valueOf(r1), r2};
r4 = o.xzZ.y.get(-1152873385);
*/
/* JADX WARN: Code restructure failed: missing block: B:46:0x0281, code lost:
if (r4 == null) goto L48;
*/
/* JADX WARN: Code restructure failed: missing block: B:48:0x02f6, code lost:
r11 = null;
r4 = ((java.lang.Integer) ((java.lang.reflect.Method) r4).invoke(null, r10)).intValue();
*/
/* JADX WARN: Code restructure failed: missing block: B:49:0x0303, code lost:
r10 = (r2.d * r1) + r2.j;
r5[r2.e] = r3[r4];
r5[r2.e + 1] = r3[r10];
*/
/* JADX WARN: Code restructure failed: missing block: B:51:0x036a, code lost:
r2.e += 2;
r4 = r11;
*/
/* JADX WARN: Code restructure failed: missing block: B:52:0x0285, code lost:
r4 = (java.lang.Class) o.xzZ.c(327 - (android.view.ViewConfiguration.getMaximumDrawingCacheSize() >> 24), 5 - (android.view.ViewConfiguration.getWindowTouchSlop() >> 8), (char) (android.telephony.cdma.CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (android.telephony.cdma.CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)));
r12 = (byte) 0;
r13 = r12;
r15 = new java.lang.Object[1];
k(r12, r13, (byte) (r13 + 2), r15);
r4 = r4.getMethod((java.lang.String) r15[0], java.lang.Object.class, java.lang.Object.class, java.lang.Integer.TYPE, java.lang.Integer.TYPE, java.lang.Object.class, java.lang.Object.class, java.lang.Integer.TYPE, java.lang.Integer.TYPE, java.lang.Object.class, java.lang.Integer.TYPE, java.lang.Object.class);
o.xzZ.y.put(-1152873385, r4);
*/
/* JADX WARN: Code restructure failed: missing block: B:53:0x0317, code lost:
r11 = null;
*/
/* JADX WARN: Code restructure failed: missing block: B:54:0x031d, code lost:
if (r2.a != r2.d) goto L54;
*/
/* JADX WARN: Code restructure failed: missing block: B:55:0x031f, code lost:
r4 = com.google.android.gms.measurement.AppMeasurementContentProvider.$10 + 15;
com.google.android.gms.measurement.AppMeasurementContentProvider.$11 = r4 % 128;
r4 = r4 % 2;
r2.f = ((r2.f + r1) - 1) % r1;
r2.j = ((r2.j + r1) - 1) % r1;
r4 = (r2.a * r1) + r2.f;
r10 = (r2.d * r1) + r2.j;
r5[r2.e] = r3[r4];
r5[r2.e + 1] = r3[r10];
*/
/* JADX WARN: Code restructure failed: missing block: B:57:0x0351, code lost:
r4 = (r2.a * r1) + r2.j;
r10 = (r2.d * r1) + r2.f;
r5[r2.e] = r3[r4];
r5[r2.e + 1] = r3[r10];
*/
/* JADX WARN: Code restructure failed: missing block: B:59:0x01ab, code lost:
r4 = (java.lang.Class) o.xzZ.c((android.os.Process.getElapsedCpuTime() > 0 ? 1 : (android.os.Process.getElapsedCpuTime() == 0 ? 0 : -1)) + 232, (android.view.ViewConfiguration.getJumpTapTimeout() >> 16) + 5, (char) (android.view.MotionEvent.axisFromString("") + 22025));
r12 = (byte) 0;
r14 = r12;
r15 = new java.lang.Object[1];
k(r12, r14, r14, r15);
r4 = r4.getMethod((java.lang.String) r15[0], java.lang.Object.class, java.lang.Object.class, java.lang.Integer.TYPE, java.lang.Object.class, java.lang.Object.class, java.lang.Integer.TYPE, java.lang.Object.class, java.lang.Object.class, java.lang.Integer.TYPE, java.lang.Object.class, java.lang.Object.class, java.lang.Integer.TYPE, java.lang.Object.class);
o.xzZ.y.put(822107368, r4);
*/
/* JADX WARN: Code restructure failed: missing block: B:61:0x0138, code lost:
r10 = com.google.android.gms.measurement.AppMeasurementContentProvider.$11 + 57;
com.google.android.gms.measurement.AppMeasurementContentProvider.$10 = r10 % 128;
r10 = r10 % 2;
r5[r2.e] = (char) (r2.b - r31);
r5[r2.e + 1] = (char) (r2.c - r31);
r11 = r4;
*/
/* JADX WARN: Code restructure failed: missing block: B:64:0x0136, code lost:
if (r2.b == r2.c) goto L36;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void i(char[] r30, byte r31, int r32, java.lang.Object[] r33) {
/*
Method dump skipped, instructions count: 933
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.AppMeasurementContentProvider.i(char[], byte, int, java.lang.Object[]):void");
}
@Override // android.content.ContentProvider
public int update(Uri uri, ContentValues contentValues, String str, String[] strArr) {
int i = 2 % 2;
int i2 = g + 121;
j = i2 % 128;
return i2 % 2 == 0 ? 1 : 0;
}
@Override // android.content.ContentProvider
public Cursor query(Uri uri, String[] strArr, String str, String[] strArr2, String str2) {
int i = 2 % 2;
int i2 = g;
int i3 = i2 + 53;
j = i3 % 128;
int i4 = i3 % 2;
int i5 = i2 + 3;
j = i5 % 128;
int i6 = i5 % 2;
return null;
}
@Override // android.content.ContentProvider
public Uri insert(Uri uri, ContentValues contentValues) {
int i = 2 % 2;
int i2 = g;
int i3 = i2 + 49;
j = i3 % 128;
int i4 = i3 % 2;
int i5 = i2 + 53;
j = i5 % 128;
int i6 = i5 % 2;
return null;
}
@Override // android.content.ContentProvider
public String getType(Uri uri) {
int i = 2 % 2;
int i2 = g + 11;
int i3 = i2 % 128;
j = i3;
int i4 = i2 % 2;
int i5 = i3 + 35;
g = i5 % 128;
if (i5 % 2 == 0) {
return null;
}
throw null;
}
@Override // android.content.ContentProvider
public int delete(Uri uri, String str, String[] strArr) {
int i = 2 % 2;
int i2 = g + 109;
j = i2 % 128;
int i3 = i2 % 2;
return 0;
}
}