package com.google.firebase.auth.internal; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.graphics.Color; import android.graphics.ImageFormat; import android.media.AudioTrack; import android.net.Uri; import android.os.Bundle; 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.fragment.app.FragmentActivity; import com.google.android.gms.common.api.Status; import com.google.android.gms.common.util.AndroidUtilsLight; import com.google.android.gms.common.util.DefaultClock; import com.google.android.gms.common.util.Hex; import com.google.android.gms.internal.p002firebaseauthapi.zzxe; import com.google.android.gms.internal.p002firebaseauthapi.zzxg; import com.google.android.gms.internal.p002firebaseauthapi.zzxr; import com.google.android.gms.internal.p002firebaseauthapi.zzyz; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import com.google.common.base.Ascii; import com.google.firebase.FirebaseApp; import com.google.firebase.auth.FirebaseAuth; import com.huawei.hms.support.api.entity.common.CommonConstant; import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper; import com.pingan.ai.p; import com.scb.phone.R; import java.io.IOException; import java.lang.reflect.Method; import java.net.HttpURLConnection; import java.net.URL; import java.util.List; import java.util.Locale; import java.util.UUID; import java.util.concurrent.ExecutorService; import o.C0198BcN; import o.C4403bZM; import o.TVH; import o.nMh; import o.wpO; import o.xzZ; import org.bouncycastle.crypto.tls.CipherSuite; /* loaded from: classes2.dex */ public class RecaptchaActivity extends FragmentActivity implements zzxg { private static char[] a; private static int[] b; private static int e; private static final ExecutorService zzc; private static long zzd; private static final zzbm zze; private boolean zzf = false; private static final byte[] $$a = {75, -3, Ascii.EM, 97}; private static final int $$b = 75; private static int $10 = 0; private static int $11 = 1; private static int c = 1; private static void h(int i, int i2, byte b2, Object[] objArr) { int i3 = (i2 * 3) + 4; byte[] bArr = $$a; int i4 = i * 3; int i5 = 104 - b2; byte[] bArr2 = new byte[i4 + 1]; int i6 = -1; if (bArr == null) { i3++; i5 = i3 + (-i4); } while (true) { int i7 = i5; int i8 = i3; i6++; bArr2[i6] = (byte) i7; if (i6 == i4) { objArr[0] = new String(bArr2, 0); return; } else { i3 = i8 + 1; i5 = i7 + (-bArr[i8]); } } } private final void zzg() { int i = 2 % 2; zzd = 0L; this.zzf = false; Intent intent = new Intent(); intent.putExtra("com.google.firebase.auth.internal.EXTRA_CANCELED", true); intent.setAction("com.google.firebase.auth.ACTION_RECEIVE_FIREBASE_AUTH_INTENT"); C0198BcN.d(this).zE_(intent); zze.zzd(this); finish(); int i2 = c + 59; e = i2 % 128; int i3 = i2 % 2; } private final void zzh(Status status) { int i = 2 % 2; zzd = 0L; this.zzf = false; Intent intent = new Intent(); zzbl.zzc(intent, status); intent.setAction("com.google.firebase.auth.ACTION_RECEIVE_FIREBASE_AUTH_INTENT"); C0198BcN.d(this).zE_(intent); zze.zzd(this); finish(); int i2 = c + 43; e = i2 % 128; if (i2 % 2 != 0) { int i3 = 55 / 0; } } @Override // androidx.activity.ComponentActivity, android.app.Activity public final void onNewIntent(Intent intent) { int i = 2 % 2; int i2 = c + 15; e = i2 % 128; int i3 = i2 % 2; super.onNewIntent(intent); setIntent(intent); int i4 = e + 5; c = i4 % 128; if (i4 % 2 == 0) { throw null; } } @Override // androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity public final void onCreate(Bundle bundle) { int i = 2 % 2; Object[] objArr = new Object[1]; Object obj = null; f(new int[]{0, 18, CipherSuite.TLS_DH_RSA_WITH_CAMELLIA_256_CBC_SHA256, 9}, true, null, objArr); Class cls = Class.forName((String) objArr[0]); Object[] objArr2 = new Object[1]; f(new int[]{18, 5, 84, 5}, true, new byte[]{0, 1, 0, 0, 0}, objArr2); int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000; if (intValue < 99000 || intValue > 99999) { Context baseContext = getBaseContext(); if (baseContext == null) { Object[] objArr3 = new Object[1]; f(new int[]{23, 26, 0, 12}, true, new byte[]{0, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0}, objArr3); Class cls2 = Class.forName((String) objArr3[0]); Object[] objArr4 = new Object[1]; g(new int[]{-1404970677, 842265447, 619088709, 649451260, 1564750133, -1446552582, -263425327, -1572532983, 695762614, 452468051}, 18 - Color.red(0), objArr4); baseContext = (Context) cls2.getMethod((String) objArr4[0], new Class[0]).invoke(null, null); } if (baseContext != null) { baseContext = baseContext.getApplicationContext(); } if (baseContext != null) { try { Object obj2 = xzZ.y.get(125943855); if (obj2 == null) { obj2 = ((Class) xzZ.c(TextUtils.getOffsetAfter("", 0) + 492, 5 - (ViewConfiguration.getTouchSlop() >> 8), (char) ((-1) - ExpandableListView.getPackedPositionChild(0L)))).getMethod("a", null); xzZ.y.put(125943855, obj2); } Object invoke = ((Method) obj2).invoke(null, null); Object[] objArr5 = new Object[1]; g(new int[]{-1610916959, -376420190, 1159175437, -1118614501, 638512257, -1953941494, 1840132585, -836385165, -2134995225, 160884973, -1155258748, -1689371045, 1118608924, 65385087, -30539255, -622628899, 2061277232, 27979889, -1691116681, -1290976010, -851079833, 259804617, 754197341, 785990930}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.auto_kofax_camera_tutorial_no_certificate).substring(0, 2).length() + 46, objArr5); String str = (String) objArr5[0]; Object[] objArr6 = new Object[1]; g(new int[]{784420483, 12502247, -1357875599, 34976101, -1727359612, -1153969863, -550974788, -208600637, -1533187577, -215262906, -1315041436, -1859261505, -1742539135, -1710603258, 1628543320, -804656870, -603854939, 325004640, -1289012098, 81333788, 2089085560, 314178616, 769153005, 453603552, 851712105, 1891144037, 618174692, 1448907698, 1357065497, -389438321, -1149146920, 383180309}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 30, objArr6); String str2 = (String) objArr6[0]; Object[] objArr7 = new Object[1]; g(new int[]{948847529, -2072488759, 1772183170, 1950813043, 131055780, 1924953878, 1302260950, -988523161, -1129350051, 737068014, -260181553, -49376525, 277104539, -2018671952, 1629244784, -1713542872, -1792204752, -1824787467, 1719624104, 732637945, -1356625617, -2110996908, 1754216832, 949669517, -1402635570, 1595746814, -84761960, 669352305, 206492202, 1671513677, 181899300, -122466693}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.levelup_repayment_qrcode).substring(0, 3).codePointAt(1) - 18, objArr7); String str3 = (String) objArr7[0]; Object[] objArr8 = new Object[1]; f(new int[]{49, 74, 98, 0}, false, new byte[]{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1}, objArr8); String str4 = (String) objArr8[0]; Object[] objArr9 = new Object[1]; g(new int[]{-1343775326, 1919370879, -752866914, 1597792490}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.prepaid_request_contact_message).substring(35, 37).length() + 3, objArr9); String str5 = (String) objArr9[0]; Object[] objArr10 = new Object[1]; g(new int[]{1148678734, -514838986, 1287440354, 2112772218, 1279390115, 1011295790, -1569421178, -1055724066, -592718291, 67992894, 1489173462, 438824346, -247687284, -1277275734, 550512181, -978689919, -671084953, 305161721}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 2, objArr10); Object[] objArr11 = {baseContext, str, str2, str3, str4, true, str5, (String) objArr10[0]}; Object obj3 = xzZ.y.get(1656189573); if (obj3 == null) { obj3 = ((Class) xzZ.c((ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 487, 5 - (ViewConfiguration.getScrollBarSize() >> 8), (char) ((-1) - TextUtils.lastIndexOf("", '0')))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class); xzZ.y.put(1656189573, obj3); } ((Method) obj3).invoke(invoke, objArr11); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } } super.onCreate(bundle); String action = getIntent().getAction(); if (!"com.google.firebase.auth.internal.ACTION_SHOW_RECAPTCHA".equals(action)) { int i2 = e + 25; c = i2 % 128; if (i2 % 2 == 0) { CommonConstant.ACTION.HWID_SCHEME_URL.equals(action); throw null; } if (!CommonConstant.ACTION.HWID_SCHEME_URL.equals(action)) { zzg(); int i3 = c + 11; e = i3 % 128; if (i3 % 2 == 0) { return; } obj.hashCode(); throw null; } } long currentTimeMillis = DefaultClock.getInstance().currentTimeMillis(); if (currentTimeMillis - zzd >= 30000) { zzd = currentTimeMillis; if (bundle != null) { this.zzf = bundle.getBoolean("com.google.firebase.auth.internal.KEY_ALREADY_STARTED_RECAPTCHA_FLOW"); return; } return; } int i4 = e + 95; c = i4 % 128; if (i4 % 2 == 0) { int i5 = 19 / 0; } } @Override // com.google.android.gms.internal.p002firebaseauthapi.zzxg public final Context zza() { int i = 2 % 2; int i2 = e + 17; c = i2 % 128; int i3 = i2 % 2; Context applicationContext = getApplicationContext(); int i4 = c + 89; e = i4 % 128; if (i4 % 2 == 0) { return applicationContext; } Object obj = null; obj.hashCode(); throw null; } @Override // com.google.android.gms.internal.p002firebaseauthapi.zzxg public final String zzc(String str) { int i = 2 % 2; int i2 = e + 123; c = i2 % 128; int i3 = i2 % 2; String zzb = zzyz.zzb(str); int i4 = c + 17; e = i4 % 128; int i5 = i4 % 2; return zzb; } static { e = 0; a(); zzc = com.google.android.gms.internal.p002firebaseauthapi.zzf.zza().zza(2); zzd = 0L; zze = zzbm.zzc(); int i = c + 39; e = i % 128; if (i % 2 != 0) { int i2 = 41 / 0; } } @Override // androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity public final void onSaveInstanceState(Bundle bundle) { int i = 2 % 2; int i2 = c + 45; e = i2 % 128; if (i2 % 2 == 0) { super.onSaveInstanceState(bundle); bundle.putBoolean("com.google.firebase.auth.internal.KEY_ALREADY_STARTED_RECAPTCHA_FLOW", this.zzf); } else { super.onSaveInstanceState(bundle); bundle.putBoolean("com.google.firebase.auth.internal.KEY_ALREADY_STARTED_RECAPTCHA_FLOW", this.zzf); throw null; } } @Override // com.google.android.gms.internal.p002firebaseauthapi.zzxg public final void zze(String str, Status status) { int i = 2 % 2; if (status == null) { zzg(); int i2 = c + 111; e = i2 % 128; if (i2 % 2 != 0) { int i3 = 11 / 0; return; } return; } zzh(status); int i4 = e + 121; c = i4 % 128; if (i4 % 2 != 0) { return; } Object obj = null; obj.hashCode(); throw null; } @Override // com.google.android.gms.internal.p002firebaseauthapi.zzxg public final HttpURLConnection zzd(URL url) { int i = 2 % 2; int i2 = c + 65; e = i2 % 128; int i3 = i2 % 2; try { HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection(); int i4 = e + 47; c = i4 % 128; int i5 = i4 % 2; return httpURLConnection; } catch (IOException unused) { zza.e("Error generating connection", new Object[0]); return null; } } @Override // com.google.android.gms.internal.p002firebaseauthapi.zzxg public final void zzf(Uri uri, String str) { int i = 2 % 2; if (getPackageManager().resolveActivity(new Intent(CommonConstant.ACTION.HWID_SCHEME_URL), 0) == null) { zze(str, null); int i2 = c + 37; e = i2 % 128; int i3 = i2 % 2; return; } List queryIntentServices = getPackageManager().queryIntentServices(new Intent("android.support.customtabs.action.CustomTabsService"), 0); if (queryIntentServices != null) { int i4 = c + 65; e = i4 % 128; if (i4 % 2 == 0) { if (!queryIntentServices.isEmpty()) { wpO c2 = new wpO.HBt().c(); c2.e.addFlags(1073741824); c2.e.addFlags(268435456); c2.e.setData(uri); nMh.startActivity(this, c2.e, c2.b); return; } } else { queryIntentServices.isEmpty(); throw null; } } Intent intent = new Intent(CommonConstant.ACTION.HWID_SCHEME_URL, uri); intent.putExtra("com.android.browser.application_id", str); intent.addFlags(1073741824); intent.addFlags(268435456); startActivity(intent); } private static void g(int[] iArr, int i, Object[] objArr) { int i2; int i3 = 2 % 2; C4403bZM c4403bZM = new C4403bZM(); char[] cArr = new char[4]; char[] cArr2 = new char[iArr.length * 2]; int[] iArr2 = b; int i4 = 58134; int i5 = 729798706; int i6 = 1; int i7 = 0; if (iArr2 != null) { int length = iArr2.length; int[] iArr3 = new int[length]; int i8 = 0; while (i8 < length) { try { Object[] objArr2 = new Object[i6]; objArr2[0] = Integer.valueOf(iArr2[i8]); Object obj = xzZ.y.get(Integer.valueOf(i5)); if (obj == null) { obj = ((Class) xzZ.c(KeyEvent.normalizeMetaState(0) + 15, 5 - (ViewConfiguration.getTouchSlop() >> 8), (char) (TextUtils.getCapsMode("", 0, 0) + i4))).getMethod("i", Integer.TYPE); xzZ.y.put(729798706, obj); } iArr3[i8] = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue(); i8++; i4 = 58134; i5 = 729798706; i6 = 1; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } iArr2 = iArr3; } int length2 = iArr2.length; int[] iArr4 = new int[length2]; int[] iArr5 = b; if (iArr5 != null) { int length3 = iArr5.length; int[] iArr6 = new int[length3]; int i9 = 0; while (i9 < length3) { int i10 = $11 + 119; $10 = i10 % 128; if (i10 % 2 != 0) { try { Object[] objArr3 = new Object[1]; objArr3[i7] = Integer.valueOf(iArr5[i9]); Object obj2 = xzZ.y.get(729798706); if (obj2 != null) { i2 = length3; } else { obj2 = ((Class) xzZ.c(14 - TextUtils.indexOf((CharSequence) "", '0', 0, 0), TextUtils.getOffsetBefore("", 0) + 5, (char) (58134 - (ViewConfiguration.getPressedStateDuration() >> 16)))).getMethod("i", Integer.TYPE); i2 = length3; xzZ.y.put(729798706, obj2); } iArr6[i9] = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue(); i9 >>>= 1; } catch (Throwable th2) { Throwable cause2 = th2.getCause(); if (cause2 == null) { throw th2; } throw cause2; } } else { i2 = length3; Object[] objArr4 = {Integer.valueOf(iArr5[i9])}; Object obj3 = xzZ.y.get(729798706); if (obj3 == null) { obj3 = ((Class) xzZ.c(16 - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)), (ViewConfiguration.getPressedStateDuration() >> 16) + 5, (char) (58134 - TextUtils.indexOf("", "", 0)))).getMethod("i", Integer.TYPE); xzZ.y.put(729798706, obj3); } iArr6[i9] = ((Integer) ((Method) obj3).invoke(null, objArr4)).intValue(); i9++; } length3 = i2; i7 = 0; } iArr5 = iArr6; } int i11 = i7; System.arraycopy(iArr5, i11, iArr4, i11, length2); c4403bZM.b = i11; while (c4403bZM.b < iArr.length) { cArr[i11] = (char) (iArr[c4403bZM.b] >> 16); cArr[1] = (char) iArr[c4403bZM.b]; cArr[2] = (char) (iArr[c4403bZM.b + 1] >> 16); cArr[3] = (char) iArr[c4403bZM.b + 1]; c4403bZM.e = (cArr[0] << 16) + cArr[1]; c4403bZM.a = (cArr[2] << 16) + cArr[3]; C4403bZM.d(iArr4); int i12 = 0; for (int i13 = 16; i12 < i13; i13 = 16) { c4403bZM.e ^= iArr4[i12]; Object[] objArr5 = {c4403bZM, Integer.valueOf(C4403bZM.d(c4403bZM.e)), c4403bZM, c4403bZM}; Object obj4 = xzZ.y.get(-1196964548); if (obj4 == null) { Class cls = (Class) xzZ.c(TextUtils.indexOf("", "", 0) + 118, 4 - TextUtils.lastIndexOf("", '0', 0, 0), (char) ((ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) - 1)); byte b2 = (byte) 0; byte b3 = b2; Object[] objArr6 = new Object[1]; h(b2, b3, b3, objArr6); obj4 = cls.getMethod((String) objArr6[0], Object.class, Integer.TYPE, Object.class, Object.class); xzZ.y.put(-1196964548, obj4); } int intValue = ((Integer) ((Method) obj4).invoke(null, objArr5)).intValue(); c4403bZM.e = c4403bZM.a; c4403bZM.a = intValue; i12++; } int i14 = c4403bZM.e; c4403bZM.e = c4403bZM.a; c4403bZM.a = i14; c4403bZM.a ^= iArr4[16]; c4403bZM.e ^= iArr4[17]; int i15 = c4403bZM.e; int i16 = c4403bZM.a; cArr[0] = (char) (c4403bZM.e >>> 16); cArr[1] = (char) c4403bZM.e; cArr[2] = (char) (c4403bZM.a >>> 16); cArr[3] = (char) c4403bZM.a; C4403bZM.d(iArr4); cArr2[c4403bZM.b * 2] = cArr[0]; cArr2[(c4403bZM.b * 2) + 1] = cArr[1]; cArr2[(c4403bZM.b * 2) + 2] = cArr[2]; cArr2[(c4403bZM.b * 2) + 3] = cArr[3]; try { Object[] objArr7 = {c4403bZM, c4403bZM}; Object obj5 = xzZ.y.get(1914371176); if (obj5 == null) { Class cls2 = (Class) xzZ.c(View.getDefaultSize(0, 0) + 98, 5 - (ViewConfiguration.getTouchSlop() >> 8), (char) (ViewConfiguration.getMaximumFlingVelocity() >> 16)); byte b4 = (byte) 0; byte b5 = b4; Object[] objArr8 = new Object[1]; h(b4, b5, (byte) (b5 + 2), objArr8); obj5 = cls2.getMethod((String) objArr8[0], Object.class, Object.class); xzZ.y.put(1914371176, obj5); } ((Method) obj5).invoke(null, objArr7); int i17 = $10 + 79; $11 = i17 % 128; int i18 = i17 % 2; i11 = 0; } catch (Throwable th3) { Throwable cause3 = th3.getCause(); if (cause3 == null) { throw th3; } throw cause3; } } objArr[0] = new String(cArr2, 0, i); } @Override // com.google.android.gms.internal.p002firebaseauthapi.zzxg public final Uri.Builder zzb(Intent intent, String str, String str2) { String zza; int i = 2 % 2; int i2 = c + 63; e = i2 % 128; int i3 = i2 % 2; String stringExtra = intent.getStringExtra("com.google.firebase.auth.KEY_API_KEY"); String obj = UUID.randomUUID().toString(); String stringExtra2 = intent.getStringExtra("com.google.firebase.auth.internal.CLIENT_VERSION"); String stringExtra3 = intent.getStringExtra("com.google.firebase.auth.internal.FIREBASE_APP_NAME"); FirebaseApp firebaseApp = FirebaseApp.getInstance(stringExtra3); FirebaseAuth firebaseAuth = FirebaseAuth.getInstance(firebaseApp); zzj.zzb().zze(getApplicationContext(), str, obj, "com.google.firebase.auth.internal.ACTION_SHOW_RECAPTCHA", stringExtra3); String zzc2 = zzk.zza(getApplicationContext(), firebaseApp.getPersistenceKey()).zzc(); Object obj2 = null; if (!TextUtils.isEmpty(zzc2)) { if (TextUtils.isEmpty(firebaseAuth.getLanguageCode())) { zza = zzxr.zza(); } else { int i4 = c + 43; e = i4 % 128; if (i4 % 2 != 0) { firebaseAuth.getLanguageCode(); obj2.hashCode(); throw null; } zza = firebaseAuth.getLanguageCode(); } return new Uri.Builder().scheme("https").appendPath("__").appendPath("auth").appendPath("handler").appendQueryParameter("apiKey", stringExtra).appendQueryParameter("authType", "verifyApp").appendQueryParameter("apn", str).appendQueryParameter("hl", zza).appendQueryParameter("eventId", obj).appendQueryParameter("v", "X".concat(String.valueOf(stringExtra2))).appendQueryParameter("eid", p.a).appendQueryParameter("appName", stringExtra3).appendQueryParameter("sha1Cert", str2).appendQueryParameter("publicKey", zzc2); } int i5 = c + 29; e = i5 % 128; int i6 = i5 % 2; zzh(zzai.zza("Failed to generate/retrieve public encryption key for reCAPTCHA flow.")); return null; } @Override // androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity public final void onResume() { int i = 2 % 2; Context baseContext = getBaseContext(); Object obj = null; if (baseContext == null) { int i2 = c + 7; e = i2 % 128; int i3 = i2 % 2; Object[] objArr = new Object[1]; f(new int[]{23, 26, 0, 12}, true, new byte[]{0, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0}, objArr); Class cls = Class.forName((String) objArr[0]); Object[] objArr2 = new Object[1]; g(new int[]{-1404970677, 842265447, 619088709, 649451260, 1564750133, -1446552582, -263425327, -1572532983, 695762614, 452468051}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.ndid_service_unregister_success_description_one).substring(30, 31).length() + 17, objArr2); baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null); } if (baseContext != null) { baseContext = baseContext.getApplicationContext(); } if (baseContext != null) { try { Object obj2 = xzZ.y.get(125943855); if (obj2 == null) { obj2 = ((Class) xzZ.c(493 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (ViewConfiguration.getLongPressTimeout() >> 16) + 5, (char) TextUtils.indexOf("", "", 0, 0))).getMethod("a", null); xzZ.y.put(125943855, obj2); } Object invoke = ((Method) obj2).invoke(null, null); Object[] objArr3 = {baseContext}; Object obj3 = xzZ.y.get(1378719468); if (obj3 == null) { obj3 = ((Class) xzZ.c(487 - TextUtils.getOffsetBefore("", 0), (ViewConfiguration.getDoubleTapTimeout() >> 16) + 5, (char) (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class); xzZ.y.put(1378719468, obj3); } ((Method) obj3).invoke(invoke, objArr3); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } super.onResume(); if (!CommonConstant.ACTION.HWID_SCHEME_URL.equals(getIntent().getAction())) { if (this.zzf) { zzg(); return; } Intent intent = getIntent(); String packageName = getPackageName(); try { new zzxe(packageName, Hex.bytesToStringUppercase(AndroidUtilsLight.getPackageCertificateHashBytes(this, packageName)).toLowerCase(Locale.US), intent, FirebaseApp.getInstance(intent.getStringExtra("com.google.firebase.auth.internal.FIREBASE_APP_NAME")), this).executeOnExecutor(zzc, new Void[0]); } catch (PackageManager.NameNotFoundException unused) { zze(packageName, null); } this.zzf = true; return; } int i4 = e + 11; c = i4 % 128; int i5 = i4 % 2; Intent intent2 = getIntent(); if (intent2.hasExtra("firebaseError")) { int i6 = e + 115; c = i6 % 128; if (i6 % 2 != 0) { zzh(zzbl.zzb(intent2.getStringExtra("firebaseError"))); return; } else { zzh(zzbl.zzb(intent2.getStringExtra("firebaseError"))); int i7 = 59 / 0; return; } } if (!intent2.hasExtra("link") || !intent2.hasExtra("eventId")) { zzg(); return; } String stringExtra = intent2.getStringExtra("link"); String zzc2 = zzj.zzb().zzc(getApplicationContext(), getPackageName(), intent2.getStringExtra("eventId")); if (TextUtils.isEmpty(zzc2)) { int i8 = e + 41; c = i8 % 128; int i9 = i8 % 2; zzh(zzai.zza("Failed to find registration for this reCAPTCHA event")); } if (intent2.getBooleanExtra("encryptionEnabled", true)) { int i10 = c + 7; e = i10 % 128; if (i10 % 2 != 0) { zzk.zza(getApplicationContext(), FirebaseApp.getInstance(zzc2).getPersistenceKey()).zzb(stringExtra); obj.hashCode(); throw null; } stringExtra = zzk.zza(getApplicationContext(), FirebaseApp.getInstance(zzc2).getPersistenceKey()).zzb(stringExtra); } String queryParameter = Uri.parse(stringExtra).getQueryParameter("recaptchaToken"); zzd = 0L; this.zzf = false; Intent intent3 = new Intent(); intent3.putExtra("com.google.firebase.auth.internal.RECAPTCHA_TOKEN", queryParameter); intent3.putExtra("com.google.firebase.auth.internal.OPERATION", "com.google.firebase.auth.internal.ACTION_SHOW_RECAPTCHA"); intent3.setAction("com.google.firebase.auth.ACTION_RECEIVE_FIREBASE_AUTH_INTENT"); if (C0198BcN.d(this).zE_(intent3)) { zze.zzd(this); } else { SharedPreferences.Editor edit = getApplicationContext().getSharedPreferences("com.google.firebase.auth.internal.ProcessDeathHelper", 0).edit(); edit.putString("recaptchaToken", queryParameter); edit.putString("operation", "com.google.firebase.auth.internal.ACTION_SHOW_RECAPTCHA"); edit.putLong("timestamp", DefaultClock.getInstance().currentTimeMillis()); edit.commit(); } finish(); } @Override // androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity public void onPause() { int i = 2 % 2; Context baseContext = getBaseContext(); if (baseContext == null) { int i2 = e + 57; c = i2 % 128; int i3 = i2 % 2; Object[] objArr = new Object[1]; f(new int[]{23, 26, 0, 12}, true, new byte[]{0, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0}, objArr); Class cls = Class.forName((String) objArr[0]); Object[] objArr2 = new Object[1]; g(new int[]{-1404970677, 842265447, 619088709, 649451260, 1564750133, -1446552582, -263425327, -1572532983, 695762614, 452468051}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.juristic_resend_starting_pin).substring(7, 21).codePointAt(4) - 96, objArr2); baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null); } if (baseContext != null) { int i4 = e + 33; c = i4 % 128; if (i4 % 2 == 0) { baseContext = baseContext.getApplicationContext(); int i5 = 1 / 0; } else { baseContext = baseContext.getApplicationContext(); } int i6 = c + 61; e = i6 % 128; int i7 = i6 % 2; } if (baseContext != null) { int i8 = e + 51; c = i8 % 128; try { if (i8 % 2 == 0) { Object obj = xzZ.y.get(125943855); if (obj == null) { obj = ((Class) xzZ.c((SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) + 491, 5 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), (char) (ImageFormat.getBitsPerPixel(0) + 1))).getMethod("a", null); xzZ.y.put(125943855, obj); } Object invoke = ((Method) obj).invoke(null, null); Object[] objArr3 = {baseContext}; Object obj2 = xzZ.y.get(1633456013); if (obj2 == null) { obj2 = ((Class) xzZ.c(TextUtils.indexOf((CharSequence) "", '0', 0) + 488, (ViewConfiguration.getDoubleTapTimeout() >> 16) + 5, (char) (KeyEvent.getMaxKeyCode() >> 16))).getMethod("c", Context.class); xzZ.y.put(1633456013, obj2); } ((Method) obj2).invoke(invoke, objArr3); throw null; } Object obj3 = xzZ.y.get(125943855); if (obj3 == null) { obj3 = ((Class) xzZ.c(492 - Color.alpha(0), 5 - (ViewConfiguration.getTouchSlop() >> 8), (char) TextUtils.indexOf("", "", 0))).getMethod("a", null); xzZ.y.put(125943855, obj3); } Object invoke2 = ((Method) obj3).invoke(null, null); Object[] objArr4 = {baseContext}; Object obj4 = xzZ.y.get(1633456013); if (obj4 == null) { obj4 = ((Class) xzZ.c(AndroidCharacter.getMirror('0') + 439, (ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 5, (char) ExpandableListView.getPackedPositionType(0L))).getMethod("c", Context.class); xzZ.y.put(1633456013, obj4); } ((Method) obj4).invoke(invoke2, objArr4); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } super.onPause(); } private static void f(int[] iArr, boolean z, byte[] bArr, Object[] objArr) { int i; int length; char[] cArr; int i2; int i3 = 2; int i4 = 2 % 2; TVH tvh = new TVH(); int i5 = 0; int i6 = iArr[0]; int i7 = iArr[1]; int i8 = iArr[2]; int i9 = iArr[3]; char[] cArr2 = a; if (cArr2 != null) { int i10 = $10 + 5; $11 = i10 % 128; if (i10 % 2 == 0) { length = cArr2.length; cArr = new char[length]; } else { length = cArr2.length; cArr = new char[length]; } int i11 = 0; while (i11 < length) { int i12 = $11 + 119; $10 = i12 % 128; if (i12 % i3 != 0) { try { Object[] objArr2 = new Object[1]; objArr2[i5] = Integer.valueOf(cArr2[i11]); Object obj = xzZ.y.get(1645349359); if (obj != null) { i2 = length; } else { Class cls = (Class) xzZ.c(Color.blue(i5) + 223, (ViewConfiguration.getKeyRepeatTimeout() >> 16) + 5, (char) (41977 - (ViewConfiguration.getKeyRepeatTimeout() >> 16))); byte b2 = (byte) i5; byte b3 = b2; i2 = length; Object[] objArr3 = new Object[1]; h(b2, b3, (byte) (b3 | 33), objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE); xzZ.y.put(1645349359, obj); } cArr[i11] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); i11 <<= 1; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } else { i2 = length; Object[] objArr4 = {Integer.valueOf(cArr2[i11])}; Object obj2 = xzZ.y.get(1645349359); if (obj2 == null) { Class cls2 = (Class) xzZ.c(TextUtils.getTrimmedLength("") + 223, 5 - TextUtils.getCapsMode("", 0, 0), (char) ((ViewConfiguration.getMinimumFlingVelocity() >> 16) + 41977)); byte b4 = (byte) 0; byte b5 = b4; Object[] objArr5 = new Object[1]; h(b4, b5, (byte) (b5 | 33), objArr5); obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE); xzZ.y.put(1645349359, obj2); } cArr[i11] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue(); i11++; } length = i2; i3 = 2; i5 = 0; } cArr2 = cArr; } char[] cArr3 = new char[i7]; System.arraycopy(cArr2, i6, cArr3, 0, i7); if (bArr != null) { int i13 = $10 + 47; $11 = i13 % 128; int i14 = 2; int i15 = i13 % 2; char[] cArr4 = new char[i7]; tvh.c = 0; int i16 = $10 + 85; $11 = i16 % 128; int i17 = i16 % 2; char c2 = 0; while (tvh.c < i7) { int i18 = $10 + 29; $11 = i18 % 128; if (i18 % i14 != 0 ? bArr[tvh.c] != 1 : bArr[tvh.c] != 1) { int i19 = tvh.c; try { Object[] objArr6 = {Integer.valueOf(cArr3[tvh.c]), Integer.valueOf(c2)}; Object obj3 = xzZ.y.get(1084521042); if (obj3 == null) { obj3 = ((Class) xzZ.c((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)) + 15, 4 - TextUtils.indexOf((CharSequence) "", '0', 0, 0), (char) (TextUtils.lastIndexOf("", '0', 0) + 58135))).getMethod("H", Integer.TYPE, Integer.TYPE); xzZ.y.put(1084521042, obj3); } cArr4[i19] = ((Character) ((Method) obj3).invoke(null, objArr6)).charValue(); } catch (Throwable th2) { Throwable cause2 = th2.getCause(); if (cause2 == null) { throw th2; } throw cause2; } } else { int i20 = tvh.c; Object[] objArr7 = {Integer.valueOf(cArr3[tvh.c]), Integer.valueOf(c2)}; Object obj4 = xzZ.y.get(850398076); if (obj4 == null) { obj4 = ((Class) xzZ.c(((byte) KeyEvent.getModifierMetaStateMask()) + 503, 5 - ((Process.getThreadPriority(0) + 20) >> 6), (char) (54 - TextUtils.indexOf("", "", 0)))).getMethod("F", Integer.TYPE, Integer.TYPE); xzZ.y.put(850398076, obj4); } cArr4[i20] = ((Character) ((Method) obj4).invoke(null, objArr7)).charValue(); } c2 = cArr4[tvh.c]; Object[] objArr8 = {tvh, tvh}; Object obj5 = xzZ.y.get(1698744941); if (obj5 == null) { Class cls3 = (Class) xzZ.c(View.resolveSizeAndState(0, 0, 0) + 402, 5 - View.MeasureSpec.getSize(0), (char) ((ViewConfiguration.getScrollDefaultDelay() >> 16) + 21608)); byte b6 = (byte) 0; byte b7 = b6; Object[] objArr9 = new Object[1]; h(b6, b7, (byte) (b7 | Ascii.US), objArr9); obj5 = cls3.getMethod((String) objArr9[0], Object.class, Object.class); xzZ.y.put(1698744941, obj5); } ((Method) obj5).invoke(null, objArr8); i14 = 2; } cArr3 = cArr4; } if (i9 > 0) { char[] cArr5 = new char[i7]; i = 0; System.arraycopy(cArr3, 0, cArr5, 0, i7); int i21 = i7 - i9; System.arraycopy(cArr5, 0, cArr3, i21, i9); System.arraycopy(cArr5, i9, cArr3, 0, i21); } else { i = 0; } if (z) { char[] cArr6 = new char[i7]; while (true) { tvh.c = i; if (tvh.c >= i7) { break; } cArr6[tvh.c] = cArr3[(i7 - tvh.c) - 1]; i = tvh.c + 1; } cArr3 = cArr6; } if (i8 > 0) { int i22 = 0; while (true) { tvh.c = i22; if (tvh.c >= i7) { break; } cArr3[tvh.c] = (char) (cArr3[tvh.c] - iArr[2]); i22 = tvh.c + 1; } } objArr[0] = new String(cArr3); } @Override // androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity, android.view.ContextThemeWrapper, android.content.ContextWrapper public void attachBaseContext(Context context) { Context context2; int i = 2 % 2; int i2 = e + 89; c = i2 % 128; int i3 = i2 % 2; super.attachBaseContext(context); Object[] objArr = new Object[1]; f(new int[]{0, 18, CipherSuite.TLS_DH_RSA_WITH_CAMELLIA_256_CBC_SHA256, 9}, true, null, objArr); Class cls = Class.forName((String) objArr[0]); Object[] objArr2 = new Object[1]; f(new int[]{18, 5, 84, 5}, true, new byte[]{0, 1, 0, 0, 0}, objArr2); int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000; if (intValue >= 99000) { int i4 = e + 27; c = i4 % 128; int i5 = i4 % 2; if (intValue <= 99999) { return; } } if (context != null) { int i6 = c + 75; e = i6 % 128; int i7 = i6 % 2; context2 = context.getApplicationContext(); } else { context2 = context; } if (context2 != null) { int i8 = e + 87; c = i8 % 128; int i9 = i8 % 2; try { Object obj = xzZ.y.get(125943855); if (obj == null) { obj = ((Class) xzZ.c(Process.getGidForName("") + 493, View.MeasureSpec.makeMeasureSpec(0, 0) + 5, (char) (1 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))))).getMethod("a", null); xzZ.y.put(125943855, obj); } Object invoke = ((Method) obj).invoke(null, null); Object[] objArr3 = new Object[1]; g(new int[]{-1610916959, -376420190, 1159175437, -1118614501, 638512257, -1953941494, 1840132585, -836385165, -2134995225, 160884973, -1155258748, -1689371045, 1118608924, 65385087, -30539255, -622628899, 2061277232, 27979889, -1691116681, -1290976010, -851079833, 259804617, 754197341, 785990930}, TextUtils.getTrimmedLength("") + 48, objArr3); String str = (String) objArr3[0]; Object[] objArr4 = new Object[1]; g(new int[]{784420483, 12502247, -1357875599, 34976101, -1727359612, -1153969863, -550974788, -208600637, -1533187577, -215262906, -1315041436, -1859261505, -1742539135, -1710603258, 1628543320, -804656870, -603854939, 325004640, -1289012098, 81333788, 2089085560, 314178616, 769153005, 453603552, 851712105, 1891144037, 618174692, 1448907698, 1357065497, -389438321, -1149146920, 383180309}, 63 - ((byte) KeyEvent.getModifierMetaStateMask()), objArr4); String str2 = (String) objArr4[0]; Object[] objArr5 = new Object[1]; g(new int[]{948847529, -2072488759, 1772183170, 1950813043, 131055780, 1924953878, 1302260950, -988523161, -1129350051, 737068014, -260181553, -49376525, 277104539, -2018671952, 1629244784, -1713542872, -1792204752, -1824787467, 1719624104, 732637945, -1356625617, -2110996908, 1754216832, 949669517, -1402635570, 1595746814, -84761960, 669352305, 206492202, 1671513677, 181899300, -122466693}, (ViewConfiguration.getFadingEdgeLength() >> 16) + 64, objArr5); String str3 = (String) objArr5[0]; Object[] objArr6 = new Object[1]; f(new int[]{49, 74, 98, 0}, false, new byte[]{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1}, objArr6); String str4 = (String) objArr6[0]; Object[] objArr7 = new Object[1]; g(new int[]{-1343775326, 1919370879, -752866914, 1597792490}, (ViewConfiguration.getPressedStateDuration() >> 16) + 5, objArr7); String str5 = (String) objArr7[0]; Object[] objArr8 = new Object[1]; g(new int[]{1148678734, -514838986, 1287440354, 2112772218, 1279390115, 1011295790, -1569421178, -1055724066, -592718291, 67992894, 1489173462, 438824346, -247687284, -1277275734, 550512181, -978689919, -671084953, 305161721}, 36 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), objArr8); Object[] objArr9 = {context2, str, str2, str3, str4, true, str5, (String) objArr8[0]}; Object obj2 = xzZ.y.get(1656189573); if (obj2 == null) { obj2 = ((Class) xzZ.c(KeyEvent.keyCodeFromString("") + 487, Gravity.getAbsoluteGravity(0, 0) + 5, (char) (MotionEvent.axisFromString("") + 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; } } } static void a() { a = new char[]{40250, 40187, 40237, 40224, 40250, 40255, 40237, 40251, 40232, 40254, 40254, 40236, 40238, 40250, 40255, 40217, 40187, 40254, 40023, 40113, 40120, 40112, 40140, 39964, 40004, 40059, 40035, 40012, 40002, 40045, 40039, 40059, 40032, 40034, 40044, 40041, 40041, 40040, 40032, 40038, 40021, 40045, 40061, 40037, 40036, 40036, 40037, 40032, 40025, 40046, 40155, 40157, 40159, 40152, 40115, 40093, 40090, 40120, 40155, 40140, 40130, 40129, 40128, 40155, 40132, 40128, 40134, 40135, 40131, 40140, 40131, 40130, 40136, 40130, 40133, 40101, 40120, 40155, 40132, 40134, 40142, 40135, 40134, 40143, 40135, 40158, 40120, 40103, 40155, 40134, 40128, 40134, 40134, 40159, 40158, 40134, 40128, 40134, 40096, 40097, 40128, 40155, 40123, 40097, 40129, 40133, 40101, 40101, 40134, 40135, 40131, 40133, 40158, 40120, 40127, 40125, 40089, 40103, 40132, 40132, 40128, 40152, 40158}; b = new int[]{-13114268, 1945777458, -1876324131, -1894102460, -1460650266, 1774751906, -1227192833, 2044104623, -1304921853, 1834532046, 685417727, 771387190, 339316778, 677952799, 136336678, -844279616, 1346269140, 48828258}; } @Override // androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity public void onStart() { int i = 2 % 2; int i2 = c + 33; e = i2 % 128; int i3 = i2 % 2; super.onStart(); int i4 = e + 103; c = i4 % 128; int i5 = i4 % 2; } }