what-the-bank/sources/com/google/firebase/components/ComponentDiscoveryService.java

298 lines
16 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.firebase.components;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.PointF;
import android.media.AudioTrack;
import android.os.IBinder;
import android.os.Process;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.C3614bBe;
import o.xzZ;
import org.bouncycastle.crypto.tls.CipherSuite;
/* loaded from: classes.dex */
public class ComponentDiscoveryService extends Service {
private static final byte[] $$a = {72, -15, 70, -100};
private static final int $$b = CipherSuite.TLS_DH_DSS_WITH_AES_128_GCM_SHA256;
private static int $10 = 0;
private static int $11 = 1;
private static int c = 0;
private static int g = 1;
private static char[] d = {16099, 15888, 16102, 15892, 15889, 15899, 16080, 15893, 16114, 16101, 16103, 15903, 15883, 16119, 16083, 16073, 16086, 16100, 16085, 15896, 16075, 16084, 16074, 16072, 16087, 16082, 15898, 15894, 15890, 16076, 16081, 15902, 15901, 15897, 15895, 15891, 15880, 16095};
private static int b = 1934311042;
private static boolean a = true;
private static boolean e = true;
/* JADX WARN: Removed duplicated region for block: B:10:0x002a */
/* JADX WARN: Removed duplicated region for block: B:7:0x0022 */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x002a -> 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, int r7, byte r8, java.lang.Object[] r9) {
/*
int r6 = r6 * 3
int r6 = 1 - r6
int r8 = r8 + 4
int r7 = r7 * 57
int r7 = r7 + 65
byte[] r0 = com.google.firebase.components.ComponentDiscoveryService.$$a
byte[] r1 = new byte[r6]
r2 = 0
if (r0 != 0) goto L15
r4 = r6
r7 = r8
r3 = r2
goto L2c
L15:
r3 = r2
r5 = r8
r8 = r7
r7 = r5
L19:
byte r4 = (byte) r8
r1[r3] = r4
int r7 = r7 + 1
int r3 = r3 + 1
if (r3 != r6) goto L2a
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L2a:
r4 = r0[r7]
L2c:
int r8 = r8 + r4
goto L19
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.firebase.components.ComponentDiscoveryService.h(short, int, byte, java.lang.Object[]):void");
}
@Override // android.app.Service, android.content.ContextWrapper
public void attachBaseContext(Context context) {
int i = 2 % 2;
int i2 = c + 115;
g = i2 % 128;
int i3 = i2 % 2;
super.attachBaseContext(context);
Object[] objArr = new Object[1];
f(null, null, 127 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), new byte[]{-120, -120, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.LCS_BYTE, ISOFileInfo.PROP_INFO, -124, -119, ISOFileInfo.FCI_EXT, -120, ISOFileInfo.PROP_INFO, ISOFileInfo.FCI_EXT, ISOFileInfo.FILE_IDENTIFIER, -122, ISOFileInfo.PROP_INFO, -124, ISOFileInfo.FILE_IDENTIFIER, -126, ISOFileInfo.DATA_BYTES2}, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
f(null, null, 126 - TextUtils.indexOf((CharSequence) "", '0'), new byte[]{ISOFileInfo.FILE_IDENTIFIER, -122, ISOFileInfo.CHANNEL_SECURITY, ISOFileInfo.ENV_TEMP_EF, ISOFileInfo.SECURITY_ATTR_COMPACT}, objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue >= 99000) {
int i4 = c + 9;
g = i4 % 128;
int i5 = i4 % 2;
if (intValue <= 99999) {
return;
}
}
if (context != null) {
context = context.getApplicationContext();
}
if (context != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - (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)), (ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 5, (char) (ViewConfiguration.getDoubleTapTimeout() >> 16))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = new Object[1];
f(null, null, 127 - ExpandableListView.getPackedPositionType(0L), new byte[]{-111, ISOFileInfo.SECURITY_ATTR_EXP, -105, ISOFileInfo.LCS_BYTE, -103, -107, -111, -106, -110, -110, ISOFileInfo.SECURITY_ATTR_EXP, -108, -113, -105, -103, -113, -113, ISOFileInfo.FILE_IDENTIFIER, -107, ISOFileInfo.LCS_BYTE, -103, ISOFileInfo.LCS_BYTE, -104, -108, -107, ISOFileInfo.DATA_BYTES2, -111, -109, -105, -106, -109, -110, -105, -109, -110, -109, ISOFileInfo.DATA_BYTES2, -106, -107, -110, ISOFileInfo.DATA_BYTES2, -108, ISOFileInfo.LCS_BYTE, -109, -110, -111, -112, -113}, objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
f(null, null, 127 - View.MeasureSpec.getMode(0), new byte[]{ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.DATA_BYTES2, -110, -104, -105, -113, ISOFileInfo.LCS_BYTE, -105, -110, -103, -105, ISOFileInfo.LCS_BYTE, -112, -108, -105, ISOFileInfo.FILE_IDENTIFIER, -110, -104, -113, -103, -104, ISOFileInfo.DATA_BYTES2, -110, -104, -110, -110, -105, -103, ISOFileInfo.DATA_BYTES2, -103, -112, -112, -105, -102, -107, -106, ISOFileInfo.LCS_BYTE, -102, -104, -109, -111, ISOFileInfo.DATA_BYTES2, -104, ISOFileInfo.LCS_BYTE, -106, -113, -111, -104, -113, -112, -104, -106, -104, -106, -103, ISOFileInfo.SECURITY_ATTR_EXP, -107, -111, -110, -104, ISOFileInfo.SECURITY_ATTR_EXP, -104, -110, ISOFileInfo.SECURITY_ATTR_EXP}, objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
f(null, null, Color.blue(0) + 127, new byte[]{-112, ISOFileInfo.LCS_BYTE, -105, -103, ISOFileInfo.DATA_BYTES2, -108, ISOFileInfo.DATA_BYTES2, -102, -108, -102, -107, -104, -105, -106, ISOFileInfo.SECURITY_ATTR_EXP, -110, ISOFileInfo.SECURITY_ATTR_EXP, -104, ISOFileInfo.LCS_BYTE, -108, -109, -103, -102, -103, -113, -113, -106, -103, -103, ISOFileInfo.DATA_BYTES2, -110, -111, ISOFileInfo.FILE_IDENTIFIER, -107, -104, -105, ISOFileInfo.SECURITY_ATTR_EXP, -108, -105, ISOFileInfo.LCS_BYTE, -106, -112, -102, -113, -102, -108, -110, ISOFileInfo.DATA_BYTES2, -105, -102, -111, -110, ISOFileInfo.SECURITY_ATTR_EXP, -109, -107, -106, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.SECURITY_ATTR_EXP, -109, ISOFileInfo.DATA_BYTES2, -109, -102, -105, ISOFileInfo.DATA_BYTES2}, objArr5);
String str3 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
f(null, null, TextUtils.lastIndexOf("", '0') + 128, new byte[]{-120, -100, -126, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.A5, ISOFileInfo.SECURITY_ATTR_EXP, -97, -106, ISOFileInfo.A5, -97, -100, -120, ISOFileInfo.SECURITY_ATTR_EXP, -94, -126, -122, -97, -122, -99, ISOFileInfo.DATA_BYTES2, -97, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.PROP_INFO, ISOFileInfo.LCS_BYTE, ISOFileInfo.FCI_EXT, ISOFileInfo.SECURITY_ATTR_EXP, -124, ISOFileInfo.DATA_BYTES2, -93, -92, -120, ISOFileInfo.FILE_IDENTIFIER, -124, ISOFileInfo.DATA_BYTES2, -93, -94, ISOFileInfo.FCI_EXT, -100, -120, ISOFileInfo.DATA_BYTES2, ISOFileInfo.LCS_BYTE, -100, ISOFileInfo.DATA_BYTES2, ISOFileInfo.SECURITY_ATTR_EXP, -124, -101, -100, ISOFileInfo.FCI_EXT, ISOFileInfo.A1, -126, ISOFileInfo.DATA_BYTES2, -110, ISOFileInfo.A0, ISOFileInfo.DATA_BYTES2, -122, ISOFileInfo.LCS_BYTE, -124, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.PROP_INFO, ISOFileInfo.LCS_BYTE, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.DATA_BYTES2, -122, -120, -97, -97, -98, -120, -99, -100, -100, -101}, objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
f(null, null, 127 - Color.alpha(0), new byte[]{-102, ISOFileInfo.FCI_EXT, -105, ISOFileInfo.FCI_EXT, -107}, objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
f(null, null, TextUtils.indexOf("", "") + 127, new byte[]{ISOFileInfo.SECURITY_ATTR_EXP, -113, -103, -111, -103, ISOFileInfo.LCS_BYTE, ISOFileInfo.SECURITY_ATTR_EXP, -112, ISOFileInfo.DATA_BYTES2, -106, ISOFileInfo.LCS_BYTE, -106, -90, ISOFileInfo.LCS_BYTE, ISOFileInfo.SECURITY_ATTR_EXP, -110, ISOFileInfo.DATA_BYTES2, -90, -113, -113, -106, -111, -90, -110, ISOFileInfo.SECURITY_ATTR_EXP, -102, -104, -90, -102, -111, -107, ISOFileInfo.FILE_IDENTIFIER, -111, -106, ISOFileInfo.DATA_BYTES2, ISOFileInfo.SECURITY_ATTR_EXP}, objArr8);
Object[] objArr9 = {context, str, str2, str3, str4, true, str5, (String) objArr8[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(488 - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)), (Process.myPid() >> 22) + 5, (char) (TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 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, objArr9);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
private static void f(int[] iArr, char[] cArr, int i, byte[] bArr, Object[] objArr) {
int length;
char[] cArr2;
int i2 = 2;
int i3 = 2 % 2;
C3614bBe c3614bBe = new C3614bBe();
char[] cArr3 = d;
int i4 = 0;
if (cArr3 != null) {
int i5 = $11 + 79;
$10 = i5 % 128;
if (i5 % 2 != 0) {
length = cArr3.length;
cArr2 = new char[length];
} else {
length = cArr3.length;
cArr2 = new char[length];
}
int i6 = 0;
while (i6 < length) {
int i7 = $10 + 53;
$11 = i7 % 128;
int i8 = i7 % i2;
try {
Object[] objArr2 = new Object[1];
objArr2[i4] = Integer.valueOf(cArr3[i6]);
Object obj = xzZ.y.get(-950481649);
if (obj == null) {
Class cls = (Class) xzZ.c(Process.getGidForName("") + 338, (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, (char) KeyEvent.getDeadChar(i4, i4));
byte b2 = (byte) i4;
byte b3 = b2;
Object[] objArr3 = new Object[1];
h(b2, b3, (byte) (b3 - 1), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(-950481649, obj);
}
cArr2[i6] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i6++;
i2 = 2;
i4 = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr3 = cArr2;
}
try {
Object[] objArr4 = {Integer.valueOf(b)};
Object obj2 = xzZ.y.get(-1521625011);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(View.combineMeasuredStates(0, 0) + 283, ExpandableListView.getPackedPositionChild(0L) + 6, (char) (TextUtils.indexOf((CharSequence) "", '0', 0) + 39814));
byte b4 = (byte) 0;
byte b5 = (byte) (b4 + 1);
Object[] objArr5 = new Object[1];
h(b4, b5, (byte) (-b5), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1521625011, obj2);
}
int intValue = ((Integer) ((Method) obj2).invoke(null, objArr4)).intValue();
if (e) {
c3614bBe.c = bArr.length;
char[] cArr4 = new char[c3614bBe.c];
c3614bBe.a = 0;
while (c3614bBe.a < c3614bBe.c) {
cArr4[c3614bBe.a] = (char) (cArr3[bArr[(c3614bBe.c - 1) - c3614bBe.a] + i] - intValue);
Object[] objArr6 = {c3614bBe, c3614bBe};
Object obj3 = xzZ.y.get(1779759091);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(40 - (ViewConfiguration.getDoubleTapTimeout() >> 16), Color.rgb(0, 0, 0) + 16777221, (char) View.MeasureSpec.getSize(0))).getMethod("D", Object.class, Object.class);
xzZ.y.put(1779759091, obj3);
}
((Method) obj3).invoke(null, objArr6);
}
objArr[0] = new String(cArr4);
return;
}
if (a) {
int i9 = $10 + 17;
$11 = i9 % 128;
int i10 = i9 % 2;
c3614bBe.c = cArr.length;
char[] cArr5 = new char[c3614bBe.c];
c3614bBe.a = 0;
while (c3614bBe.a < c3614bBe.c) {
cArr5[c3614bBe.a] = (char) (cArr3[cArr[(c3614bBe.c - 1) - c3614bBe.a] - i] - intValue);
Object[] objArr7 = {c3614bBe, c3614bBe};
Object obj4 = xzZ.y.get(1779759091);
if (obj4 == null) {
obj4 = ((Class) xzZ.c((KeyEvent.getMaxKeyCode() >> 16) + 40, 5 - (Process.myTid() >> 22), (char) ((SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) - 1))).getMethod("D", Object.class, Object.class);
xzZ.y.put(1779759091, obj4);
}
((Method) obj4).invoke(null, objArr7);
}
objArr[0] = new String(cArr5);
return;
}
int i11 = 0;
c3614bBe.c = iArr.length;
char[] cArr6 = new char[c3614bBe.c];
while (true) {
c3614bBe.a = i11;
if (c3614bBe.a >= c3614bBe.c) {
objArr[0] = new String(cArr6);
return;
} else {
cArr6[c3614bBe.a] = (char) (cArr3[iArr[(c3614bBe.c - 1) - c3614bBe.a] - i] - intValue);
i11 = c3614bBe.a + 1;
}
}
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
@Override // android.app.Service
public void onCreate() {
int i = 2 % 2;
int i2 = c + 21;
g = i2 % 128;
int i3 = i2 % 2;
super.onCreate();
int i4 = c + 111;
g = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 46 / 0;
}
}
@Override // android.app.Service
public IBinder onBind(Intent intent) {
int i = 2 % 2;
int i2 = g + 97;
int i3 = i2 % 128;
c = i3;
int i4 = i2 % 2;
int i5 = i3 + 41;
g = i5 % 128;
int i6 = i5 % 2;
return null;
}
}