what-the-bank/sources/com/google/firebase/provider/FirebaseInitProvider.java

487 lines
24 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.firebase.provider;
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.graphics.PointF;
import android.graphics.drawable.Drawable;
import android.media.AudioTrack;
import android.net.Uri;
import android.os.Process;
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.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.firebase.FirebaseApp;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISO7816;
import o.GuL;
import o.IRS;
import o.xzZ;
import org.jnbis.internal.NistHelper;
/* loaded from: classes2.dex */
public class FirebaseInitProvider extends ContentProvider {
private static final byte[] $$a = {ISO7816.INS_CHANGE_CHV, -61, -106, ISO7816.INS_ENVELOPE};
private static final int $$b = 86;
private static int $10 = 0;
private static int $11 = 1;
private static int c = 0;
private static int e = 1;
private static char[] d = {49093, 49109, 49089, 49117, 49106, 49034, 49127, 49092, 49026, 49123, 49119, 49094, 49112, 49107, 49030, 49113, 49115, 49088, 49095, 49118, 49053, 49027, 49138, 49025, 49098, 49091, 49029, 49031, 49110, 49028, 49104, 49116, 49111, 49114, 49105, 49054};
private static char a = 35375;
private static long b = -6239305998911888027L;
/* JADX WARN: Removed duplicated region for block: B:10:0x0023 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001b */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0023 -> B:4:0x002c). Please report as a decompilation issue!!! */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void h(short r6, short r7, int r8, java.lang.Object[] r9) {
/*
byte[] r0 = com.google.firebase.provider.FirebaseInitProvider.$$a
int r6 = r6 + 4
int r7 = r7 * 4
int r1 = r7 + 1
int r8 = r8 + 117
byte[] r1 = new byte[r1]
r2 = 0
if (r0 != 0) goto L13
r3 = r8
r4 = r2
r8 = r6
goto L2c
L13:
r3 = r2
L14:
byte r4 = (byte) r8
r1[r3] = r4
int r6 = r6 + 1
if (r3 != r7) goto L23
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L23:
int r3 = r3 + 1
r4 = r0[r6]
r5 = r8
r8 = r6
r6 = r4
r4 = r3
r3 = r5
L2c:
int r6 = r6 + r3
r3 = r4
r5 = r8
r8 = r6
r6 = r5
goto L14
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.firebase.provider.FirebaseInitProvider.h(short, short, int, java.lang.Object[]):void");
}
@Override // android.content.ContentProvider
public void attachInfo(Context context, ProviderInfo providerInfo) {
int i = 2 % 2;
int i2 = e + 113;
c = i2 % 128;
if (i2 % 2 == 0) {
checkContentProviderAuthority(providerInfo);
super.attachInfo(context, providerInfo);
} else {
checkContentProviderAuthority(providerInfo);
super.attachInfo(context, providerInfo);
Object obj = null;
obj.hashCode();
throw null;
}
}
private static void g(char[] cArr, int i, Object[] objArr) {
int i2 = 2 % 2;
GuL guL = new GuL();
char[] a2 = GuL.a(b ^ (-7538262848231253921L), cArr, i);
int i3 = 4;
guL.a = 4;
int i4 = $11 + 65;
$10 = i4 % 128;
int i5 = i4 % 2;
while (guL.a < a2.length) {
int i6 = $10 + 75;
$11 = i6 % 128;
int i7 = i6 % 2;
guL.c = guL.a - i3;
int i8 = guL.a;
try {
Object[] objArr2 = {Long.valueOf(a2[guL.a] ^ a2[guL.a % i3]), Long.valueOf(guL.c), Long.valueOf(b)};
Object obj = xzZ.y.get(428080616);
if (obj == null) {
Class cls = (Class) xzZ.c(208 - (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), KeyEvent.getDeadChar(0, 0) + 5, (char) (1706 - (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1))));
byte b2 = (byte) (-1);
byte b3 = (byte) (b2 + 1);
Object[] objArr3 = new Object[1];
h(b2, b3, (byte) (b3 + 2), objArr3);
obj = cls.getMethod((String) objArr3[0], Long.TYPE, Long.TYPE, Long.TYPE);
xzZ.y.put(428080616, obj);
}
a2[i8] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
Object[] objArr4 = {guL, guL};
Object obj2 = xzZ.y.get(-1875914398);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(TextUtils.indexOf("", "", 0) + 392, 6 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) View.MeasureSpec.makeMeasureSpec(0, 0));
byte b4 = (byte) (-1);
Object[] objArr5 = new Object[1];
h(b4, (byte) (b4 + 1), (byte) $$a.length, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1875914398, obj2);
}
((Method) obj2).invoke(null, objArr4);
i3 = 4;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
objArr[0] = new String(a2, 4, a2.length - 4);
}
@Override // android.content.ContentProvider
public boolean onCreate() {
int i = 2 % 2;
int i2 = c + 71;
e = i2 % 128;
int i3 = i2 % 2;
Object[] objArr = new Object[1];
f(new char[]{5, 4, 2, '\b', ' ', '\"', 2, 26, '#', '\r', 21, '\b', 1, ' ', '\"', 24, 13816, 13816}, (byte) (Drawable.resolveOpacity(0, 0) + 15), 18 - (ViewConfiguration.getMinimumFlingVelocity() >> 16), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
g(new char[]{9061, 8968, 20330, 12841, 17922, 30553, 48163, 158, 55273}, ViewConfiguration.getDoubleTapTimeout() >> 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];
f(new char[]{5, 4, 2, '\b', ' ', '\"', 2, 26, 1, NistHelper.SEP_FS, 26, 19, 18, '\"', 21, 30, 3, 30, 24, 30, '\n', '\f', 4, 26, 2, '\"'}, (byte) (94 - View.MeasureSpec.getSize(0)), (ViewConfiguration.getLongPressTimeout() >> 16) + 26, objArr3);
Class<?> cls2 = Class.forName((String) objArr3[0]);
Object[] objArr4 = new Object[1];
f(new char[]{'#', 6, 13907, 13907, 27, 4, 19, 23, 13909, 13909, '\t', '\"', '\"', 0, 21, 30, '!', 1}, (byte) (108 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1))), Process.getGidForName("") + 19, objArr4);
Context context = (Context) cls2.getMethod((String) objArr4[0], new Class[0]).invoke(null, null);
if (context != null) {
context = context.getApplicationContext();
}
if (context != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(491 - MotionEvent.axisFromString(""), KeyEvent.normalizeMetaState(0) + 5, (char) (ViewConfiguration.getScrollBarSize() >> 8))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr5 = new Object[1];
g(new char[]{10276, 10261, 33338, 65335, 44025, 52738, 20921, 47566, 56575, 61563, 48771, 54585, 49558, 58633, 46543, 55505, 63151, 55722, 34982, 61328, 64486, 53971, 40863, 62136, 57503, 51148, 37668, 63937, 38194, 47270, 58942, 36069, 39455, 44433, 64785, 37881, 36693, 42613, 61493, 42769, 46186, 39741, 51015, 43642, 47366, 35908, 55812, 45381, 44479, 33072, 53680, 17500}, ExpandableListView.getPackedPositionType(0L), objArr5);
String str = (String) objArr5[0];
Object[] objArr6 = new Object[1];
g(new char[]{59923, 60022, 53446, 44446, 21133, 57088, 43215, 43211, 7885, 41606, 18343, 50276, 934, 47097, 19641, 51587, 13465, 35586, 29140, 65180, 14725, 32808, 26346, 58295, 8952, 38194, 27218, 59593, 22352, 59994, 7963, 40374, 22649, 65389, 1075, 33525, 19812, 62603, 2382, 46660, 30222, 51612, 15921, 47999, 31541, 57070, 9002, 41027, 28638, 54213, 10389, 21775, 37015, 10468, 56829, 23154, 34232, 15868, 49862, 20447, 36507, 12623, 63450, 29869, 46013, 1654, 64674, 31208}, ViewConfiguration.getKeyRepeatTimeout() >> 16, objArr6);
String str2 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
g(new char[]{53198, 53167, 11611, 20569, 24940, 61063, 39720, 39194, 15175, 24394, 29713, 62953, 9772, 19048, 32607, 63489, 4372, 30365, 16948, 53060, 7183, 32227, 21850, 53860, 1911, 26793, 23011, 55582, 29405, 6089, 11434, 44129, 32174, 767, 14301, 45944, 26810, 2371, 15101, 34753, 21459, 13323, 3461, 35581, 24299, 8993, 4249, 37271, 19024, 11786, 7026, 25817, 46412, 54564, 61006, 27564, 41008, 49248, 61732, 32266, 43854, 52432, 50282, 17701, 38499, 64433, 53063, 18539}, View.resolveSizeAndState(0, 0, 0), objArr7);
String str3 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
g(new char[]{39331, 39371, 25803, 6533, 52825, 62380, 13401, 33906, 27960, 5843, 56106, 59595, 28672, 936, 53372, 58721, 18296, 16214, 60696, 53881, 19046, 13411, 64046, 53077, 20810, 8549, 63175, 50213, 9405, 24074, 33683, 45336, 11155, 19243, 39152, 44565, 16023, 16594, 38284, 39663, 1535, 32135, 41634, 38865, 2258, 27379, 49081, 36031, 7210, 26508, 46164, 31142, 58150, 40191, 16750, 30355, 62982, 35302, 24068, 25460, 64890, 34062, 27412, 22594, 49244, 45692, 24614, 21824, 55052, 44807, 31903, 17011, 55982, 42015, 2528, 16138, 41351, 53554}, KeyEvent.getDeadChar(0, 0), objArr8);
String str4 = (String) objArr8[0];
Object[] objArr9 = new Object[1];
g(new char[]{33053, 33060, 37310, 60586, 47885, 14175, 16705, 16607, 30149}, View.combineMeasuredStates(0, 0), objArr9);
String str5 = (String) objArr9[0];
Object[] objArr10 = new Object[1];
f(new char[]{'\"', '\n', 21, 29, '#', 2, '!', 27, ' ', 29, 22, 27, '#', 30, 29, 21, 13806, 13806, '\"', 5, 4, '\"', 31, 30, 18, '#', 22, 5, 24, 29, ' ', '\f', 26, 15, '\n', 26}, (byte) (TextUtils.indexOf((CharSequence) "", '0', 0) + 68), 37 - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)), 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((AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 486, 5 - TextUtils.indexOf("", "", 0), (char) ((Process.getThreadPriority(0) + 20) >> 6))).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;
}
}
}
FirebaseApp.initializeApp(getContext());
int i4 = c + 29;
e = i4 % 128;
int i5 = i4 % 2;
return false;
}
private static void checkContentProviderAuthority(ProviderInfo providerInfo) {
int i = 2 % 2;
int i2 = c + 95;
e = i2 % 128;
int i3 = i2 % 2;
Preconditions.checkNotNull(providerInfo, "FirebaseInitProvider ProviderInfo cannot be null.");
if ("com.google.firebase.firebaseinitprovider".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 = e + 99;
c = i4 % 128;
int i5 = i4 % 2;
}
private static void f(char[] cArr, byte b2, int i, Object[] objArr) {
int i2;
char c2;
int i3 = 2 % 2;
IRS irs = new IRS();
char[] cArr2 = d;
char c3 = '0';
int i4 = 6;
int i5 = -1;
float f = BitmapDescriptorFactory.HUE_RED;
int i6 = 1;
if (cArr2 != null) {
int length = cArr2.length;
char[] cArr3 = new char[length];
int i7 = 0;
while (i7 < length) {
int i8 = $10 + 91;
$11 = i8 % 128;
int i9 = i8 % 2;
try {
Object[] objArr2 = new Object[i6];
objArr2[0] = Integer.valueOf(cArr2[i7]);
Object obj = xzZ.y.get(-1987398494);
if (obj == null) {
Class cls = (Class) xzZ.c(298 - (KeyEvent.getMaxKeyCode() >> 16), TextUtils.indexOf("", c3, 0, 0) + i4, (char) (TypedValue.complexToFraction(0, f, f) > f ? 1 : (TypedValue.complexToFraction(0, f, f) == f ? 0 : -1)));
byte b3 = (byte) i5;
byte b4 = (byte) (b3 + 1);
Object[] objArr3 = new Object[1];
h(b3, b4, b4, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj);
}
cArr3[i7] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i7++;
c3 = '0';
i4 = 6;
i5 = -1;
f = BitmapDescriptorFactory.HUE_RED;
i6 = 1;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr2 = cArr3;
}
Object[] objArr4 = {Integer.valueOf(a)};
Object obj2 = xzZ.y.get(-1987398494);
char c4 = 5;
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(298 - (ViewConfiguration.getMaximumFlingVelocity() >> 16), (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, (char) TextUtils.indexOf("", "", 0, 0));
byte b5 = (byte) (-1);
byte b6 = (byte) (b5 + 1);
Object[] objArr5 = new Object[1];
h(b5, b6, b6, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj2);
}
char charValue = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
char[] cArr4 = new char[i];
if (i % 2 != 0) {
int i10 = $10 + 17;
$11 = i10 % 128;
if (i10 % 2 == 0) {
i2 = i + 125;
cArr4[i2] = (char) (cArr[i2] + b2);
} else {
i2 = i - 1;
cArr4[i2] = (char) (cArr[i2] - b2);
}
} else {
i2 = i;
}
if (i2 > 1) {
irs.e = 0;
int i11 = $11 + 25;
$10 = i11 % 128;
int i12 = i11 % 2;
while (irs.e < i2) {
irs.b = cArr[irs.e];
irs.c = cArr[irs.e + 1];
if (irs.b == irs.c) {
cArr4[irs.e] = (char) (irs.b - b2);
cArr4[irs.e + 1] = (char) (irs.c - b2);
c2 = c4;
} else {
Object[] objArr6 = new Object[13];
objArr6[12] = irs;
objArr6[11] = Integer.valueOf(charValue);
objArr6[10] = irs;
objArr6[9] = irs;
objArr6[8] = Integer.valueOf(charValue);
objArr6[7] = irs;
objArr6[6] = irs;
objArr6[c4] = Integer.valueOf(charValue);
objArr6[4] = irs;
objArr6[3] = irs;
objArr6[2] = Integer.valueOf(charValue);
objArr6[1] = irs;
objArr6[0] = irs;
Object obj3 = xzZ.y.get(822107368);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c((ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 233, Color.rgb(0, 0, 0) + 16777221, (char) (22023 - TextUtils.indexOf((CharSequence) "", '0')));
byte b7 = (byte) (-1);
byte b8 = (byte) (b7 + 1);
Object[] objArr7 = new Object[1];
h(b7, b8, (byte) (b8 + 3), objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class);
xzZ.y.put(822107368, obj3);
}
if (((Integer) ((Method) obj3).invoke(null, objArr6)).intValue() == irs.j) {
int i13 = $11 + 117;
$10 = i13 % 128;
int i14 = i13 % 2;
Object[] objArr8 = {irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, Integer.valueOf(charValue), irs};
Object obj4 = xzZ.y.get(-1152873385);
if (obj4 != null) {
c2 = 5;
} else {
Class cls4 = (Class) xzZ.c(327 - (ViewConfiguration.getMinimumFlingVelocity() >> 16), ExpandableListView.getPackedPositionType(0L) + 5, (char) (ViewConfiguration.getJumpTapTimeout() >> 16));
byte b9 = (byte) (-1);
byte b10 = (byte) (b9 + 1);
Object[] objArr9 = new Object[1];
h(b9, b10, (byte) (b10 + 1), objArr9);
c2 = 5;
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Integer.TYPE, Object.class);
xzZ.y.put(-1152873385, obj4);
}
int intValue = ((Integer) ((Method) obj4).invoke(null, objArr8)).intValue();
int i15 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr2[intValue];
cArr4[irs.e + 1] = cArr2[i15];
} else {
c2 = 5;
if (irs.a == irs.d) {
int i16 = $10 + 51;
$11 = i16 % 128;
int i17 = i16 % 2;
irs.f = ((irs.f + charValue) - 1) % charValue;
irs.j = ((irs.j + charValue) - 1) % charValue;
int i18 = (irs.a * charValue) + irs.f;
int i19 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr2[i18];
cArr4[irs.e + 1] = cArr2[i19];
} else {
int i20 = (irs.a * charValue) + irs.j;
int i21 = (irs.d * charValue) + irs.f;
cArr4[irs.e] = cArr2[i20];
cArr4[irs.e + 1] = cArr2[i21];
}
}
}
irs.e += 2;
c4 = c2;
}
}
for (int i22 = 0; i22 < i; i22++) {
int i23 = $11 + 13;
$10 = i23 % 128;
int i24 = i23 % 2;
cArr4[i22] = (char) (cArr4[i22] ^ 13722);
}
objArr[0] = new String(cArr4);
}
@Override // android.content.ContentProvider
public int update(Uri uri, ContentValues contentValues, String str, String[] strArr) {
int i = 2 % 2;
int i2 = e;
int i3 = i2 + 13;
c = i3 % 128;
int i4 = i3 % 2 != 0 ? 1 : 0;
int i5 = i2 + 91;
c = i5 % 128;
int i6 = i5 % 2;
return i4;
}
@Override // android.content.ContentProvider
public Cursor query(Uri uri, String[] strArr, String str, String[] strArr2, String str2) {
int i = 2 % 2;
int i2 = c + 125;
int i3 = i2 % 128;
e = i3;
if (i2 % 2 == 0) {
int i4 = 44 / 0;
}
int i5 = i3 + 115;
c = i5 % 128;
Object obj = null;
if (i5 % 2 == 0) {
return null;
}
obj.hashCode();
throw null;
}
@Override // android.content.ContentProvider
public Uri insert(Uri uri, ContentValues contentValues) {
int i = 2 % 2;
int i2 = e;
int i3 = i2 + 25;
c = i3 % 128;
int i4 = i3 % 2;
int i5 = i2 + 91;
c = i5 % 128;
int i6 = i5 % 2;
return null;
}
@Override // android.content.ContentProvider
public String getType(Uri uri) {
int i = 2 % 2;
int i2 = e + 107;
c = i2 % 128;
Object obj = null;
if (i2 % 2 == 0) {
return null;
}
obj.hashCode();
throw null;
}
@Override // android.content.ContentProvider
public int delete(Uri uri, String str, String[] strArr) {
int i = 2 % 2;
int i2 = c + 121;
int i3 = i2 % 128;
e = i3;
int i4 = i2 % 2;
int i5 = i3 + 83;
c = i5 % 128;
if (i5 % 2 != 0) {
int i6 = 5 / 0;
}
return 0;
}
}