250 lines
15 KiB
Java
250 lines
15 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.graphics.Color;
|
||
|
import android.graphics.PointF;
|
||
|
import android.media.AudioTrack;
|
||
|
import android.os.Process;
|
||
|
import android.telephony.cdma.CdmaCellLocation;
|
||
|
import android.text.TextUtils;
|
||
|
import android.util.TypedValue;
|
||
|
import android.view.KeyEvent;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewConfiguration;
|
||
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||
|
import com.google.firebase.messaging.FirebaseMessagingService;
|
||
|
import com.scb.phone.service.SCBFcmMessagingService;
|
||
|
import java.lang.reflect.Method;
|
||
|
import org.bouncycastle.crypto.tls.AlertDescription;
|
||
|
|
||
|
/* renamed from: o.doR, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes4.dex */
|
||
|
public abstract class AbstractServiceC9677doR extends FirebaseMessagingService implements fPA {
|
||
|
private volatile C13077fPx b;
|
||
|
private final Object c = new Object();
|
||
|
private boolean e = false;
|
||
|
private static final byte[] $$g = {0, -67, 121, 0};
|
||
|
private static final int $$h = 60;
|
||
|
private static int $10 = 0;
|
||
|
private static int $11 = 1;
|
||
|
private static int g = 0;
|
||
|
private static int h = 1;
|
||
|
private static long d = 9051040786702654117L;
|
||
|
private static int a = 452713125;
|
||
|
private static char f = 25307;
|
||
|
|
||
|
private static void n(int i, int i2, short s, Object[] objArr) {
|
||
|
int i3 = (i2 * 2) + 4;
|
||
|
byte[] bArr = $$g;
|
||
|
int i4 = i * 4;
|
||
|
int i5 = s + AlertDescription.bad_certificate_hash_value;
|
||
|
byte[] bArr2 = new byte[1 - i4];
|
||
|
int i6 = 0 - i4;
|
||
|
int i7 = -1;
|
||
|
if (bArr == null) {
|
||
|
i3++;
|
||
|
i5 += i3;
|
||
|
}
|
||
|
while (true) {
|
||
|
i7++;
|
||
|
bArr2[i7] = (byte) i5;
|
||
|
if (i7 == i6) {
|
||
|
objArr[0] = new String(bArr2, 0);
|
||
|
return;
|
||
|
} else {
|
||
|
byte b = bArr[i3];
|
||
|
i3++;
|
||
|
i5 += b;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.google.firebase.messaging.FirebaseMessagingService, com.google.firebase.messaging.zzf, android.app.Service
|
||
|
public void onCreate() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = g + 3;
|
||
|
h = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
if (!this.e) {
|
||
|
this.e = true;
|
||
|
((InterfaceC9684doY) y_()).a((SCBFcmMessagingService) this);
|
||
|
int i4 = h + 53;
|
||
|
g = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
}
|
||
|
super.onCreate();
|
||
|
}
|
||
|
|
||
|
private C13077fPx b() {
|
||
|
if (this.b == null) {
|
||
|
synchronized (this.c) {
|
||
|
if (this.b == null) {
|
||
|
this.b = new C13077fPx(this);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
return this.b;
|
||
|
}
|
||
|
|
||
|
@Override // o.fPC
|
||
|
public final Object y_() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = h + 13;
|
||
|
g = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
C13077fPx b = b();
|
||
|
if (i3 == 0) {
|
||
|
return b.y_();
|
||
|
}
|
||
|
b.y_();
|
||
|
Object obj = null;
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
private static void m(char c, char[] cArr, char[] cArr2, char[] cArr3, int i, Object[] objArr) {
|
||
|
int i2 = 2;
|
||
|
int i3 = 2 % 2;
|
||
|
Nhs nhs = new Nhs();
|
||
|
int length = cArr2.length;
|
||
|
char[] cArr4 = new char[length];
|
||
|
int length2 = cArr3.length;
|
||
|
char[] cArr5 = new char[length2];
|
||
|
System.arraycopy(cArr2, 0, cArr4, 0, length);
|
||
|
System.arraycopy(cArr3, 0, cArr5, 0, length2);
|
||
|
cArr4[0] = (char) (cArr4[0] ^ c);
|
||
|
cArr5[2] = (char) (cArr5[2] + ((char) i));
|
||
|
int length3 = cArr.length;
|
||
|
char[] cArr6 = new char[length3];
|
||
|
nhs.a = 0;
|
||
|
while (nhs.a < length3) {
|
||
|
int i4 = $10 + 29;
|
||
|
$11 = i4 % 128;
|
||
|
int i5 = i4 % i2;
|
||
|
try {
|
||
|
Object[] objArr2 = {nhs};
|
||
|
Object obj = xzZ.y.get(263693715);
|
||
|
if (obj == null) {
|
||
|
obj = ((Class) xzZ.c(Process.getGidForName("") + 46, 5 - (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)), (char) Color.argb(0, 0, 0, 0))).getMethod("t", Object.class);
|
||
|
xzZ.y.put(263693715, obj);
|
||
|
}
|
||
|
int intValue = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue();
|
||
|
Object[] objArr3 = {nhs};
|
||
|
Object obj2 = xzZ.y.get(-484664112);
|
||
|
if (obj2 == null) {
|
||
|
Class cls = (Class) xzZ.c(352 - (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)), 5 - (ViewConfiguration.getWindowTouchSlop() >> 8), (char) ((ViewConfiguration.getScrollBarFadeDuration() >> 16) + 52128));
|
||
|
byte b = $$g[0];
|
||
|
byte b2 = b;
|
||
|
Object[] objArr4 = new Object[1];
|
||
|
n(b, b2, (byte) (b2 + 1), objArr4);
|
||
|
obj2 = cls.getMethod((String) objArr4[0], Object.class);
|
||
|
xzZ.y.put(-484664112, obj2);
|
||
|
}
|
||
|
int intValue2 = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue();
|
||
|
Object[] objArr5 = {nhs, Integer.valueOf(cArr4[nhs.a % 4] * 32718), Integer.valueOf(cArr5[intValue])};
|
||
|
Object obj3 = xzZ.y.get(430099516);
|
||
|
if (obj3 == null) {
|
||
|
obj3 = ((Class) xzZ.c(748 - (Process.myPid() >> 22), (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 4, (char) ((AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) - 1))).getMethod(com.pingan.ai.p.a, Object.class, Integer.TYPE, Integer.TYPE);
|
||
|
xzZ.y.put(430099516, obj3);
|
||
|
}
|
||
|
((Method) obj3).invoke(null, objArr5);
|
||
|
Object[] objArr6 = {Integer.valueOf(cArr4[intValue2] * 32718), Integer.valueOf(cArr5[intValue])};
|
||
|
Object obj4 = xzZ.y.get(1019894806);
|
||
|
if (obj4 == null) {
|
||
|
Class cls2 = (Class) xzZ.c((TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 402, (ViewConfiguration.getFadingEdgeLength() >> 16) + 5, (char) (21608 - (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1))));
|
||
|
byte b3 = $$g[0];
|
||
|
byte b4 = b3;
|
||
|
Object[] objArr7 = new Object[1];
|
||
|
n(b3, b4, b4, objArr7);
|
||
|
obj4 = cls2.getMethod((String) objArr7[0], Integer.TYPE, Integer.TYPE);
|
||
|
xzZ.y.put(1019894806, obj4);
|
||
|
}
|
||
|
cArr5[intValue2] = ((Character) ((Method) obj4).invoke(null, objArr6)).charValue();
|
||
|
cArr4[intValue2] = nhs.c;
|
||
|
cArr6[nhs.a] = (char) ((((cArr4[intValue2] ^ cArr[nhs.a]) ^ (d ^ 9051040786702654117L)) ^ ((int) (a ^ 9051040786702654117L))) ^ ((char) (f ^ 9051040786702654117L)));
|
||
|
nhs.a++;
|
||
|
i2 = 2;
|
||
|
} catch (Throwable th) {
|
||
|
Throwable cause = th.getCause();
|
||
|
if (cause == null) {
|
||
|
throw th;
|
||
|
}
|
||
|
throw cause;
|
||
|
}
|
||
|
}
|
||
|
String str = new String(cArr6);
|
||
|
int i6 = $11 + 49;
|
||
|
$10 = i6 % 128;
|
||
|
int i7 = i6 % 2;
|
||
|
objArr[0] = str;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.firebase.messaging.FirebaseMessagingService, com.google.firebase.messaging.zzf, android.app.Service, android.content.ContextWrapper
|
||
|
public void attachBaseContext(Context context) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = g + 51;
|
||
|
h = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
super.attachBaseContext(context);
|
||
|
Object[] objArr = new Object[1];
|
||
|
m((char) (Color.alpha(0) + 58419), new char[]{23342, 25748, 61422, 22928, 52742, 55226, 30299, 28175, 57480, 24886, 64617, 32127, 20991, 49977, 32062, 56702, 10787, 28268}, new char[]{19610, 40899, 13220, 33252}, new char[]{0, 0, 0, 0}, (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)), objArr);
|
||
|
Class<?> cls = Class.forName((String) objArr[0]);
|
||
|
Object[] objArr2 = new Object[1];
|
||
|
m((char) (View.MeasureSpec.getSize(0) + 35599), new char[]{14150, 3916, 56716, 18369, 44761}, new char[]{24997, 28143, 4052, 62091}, new char[]{0, 0, 0, 0}, Color.green(0) - 730992799, objArr2);
|
||
|
Object obj = null;
|
||
|
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
|
||
|
if (intValue >= 99000) {
|
||
|
int i4 = g + 95;
|
||
|
h = i4 % 128;
|
||
|
if (i4 % 2 == 0) {
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
if (intValue <= 99999) {
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
Context applicationContext = context != null ? context.getApplicationContext() : context;
|
||
|
if (applicationContext != null) {
|
||
|
try {
|
||
|
Object obj2 = xzZ.y.get(125943855);
|
||
|
if (obj2 == null) {
|
||
|
obj2 = ((Class) xzZ.c((ViewConfiguration.getMaximumFlingVelocity() >> 16) + 492, 5 - (ViewConfiguration.getKeyRepeatTimeout() >> 16), (char) (ViewConfiguration.getMinimumFlingVelocity() >> 16))).getMethod("a", null);
|
||
|
xzZ.y.put(125943855, obj2);
|
||
|
}
|
||
|
Object invoke = ((Method) obj2).invoke(null, null);
|
||
|
Object[] objArr3 = new Object[1];
|
||
|
m((char) KeyEvent.getDeadChar(0, 0), new char[]{19928, 19435, 8898, 57508, 36251, 8495, 59877, 23589, 13598, 30755, 37716, 23792, 34363, 18725, 9191, 47585, 62859, 48639, 7918, 29875, 24235, 22018, 22863, 5581, 60193, 23146, 20664, 24749, 9465, 5424, 14424, 42430, 55786, 14643, 46141, 26306, 48701, 65263, '(', 60942, 3731, 56469, 50855, 51199, 37339, 27301, 14574, 37836}, new char[]{39772, 43894, 41968, 13887}, new char[]{0, 0, 0, 0}, TextUtils.getOffsetBefore("", 0), objArr3);
|
||
|
String str = (String) objArr3[0];
|
||
|
Object[] objArr4 = new Object[1];
|
||
|
m((char) TextUtils.indexOf("", ""), new char[]{29473, 54417, 41158, 46287, 6068, 7655, 890, 48289, 54821, 40356, 55343, 46122, 38136, 43930, 5555, 13064, 35143, 51730, 9152, 57895, 37235, 15473, 34124, 62102, 42056, 350, 28708, 35773, 58166, 62736, 55459, 2979, 7469, 22413, 26106, 36210, 17777, 19691, 6921, 53210, 62273, 52641, 59736, 63319, 20450, 22116, 54897, 32042, 8731, 5071, 60616, 22526, 3915, 24284, 50137, 3854, 22783, 52904, 46413, 61830, 24326, 21591, 16523, 62631}, new char[]{20132, 45481, 23245, 36337}, new char[]{0, 0, 0, 0}, ViewConfiguration.getScrollDefaultDelay() >> 16, objArr4);
|
||
|
String str2 = (String) objArr4[0];
|
||
|
Object[] objArr5 = new Object[1];
|
||
|
m((char) (ViewConfiguration.getScrollBarFadeDuration() >> 16), new char[]{55168, 38978, 28457, 55475, 44870, 43371, 63191, 57300, 26563, 30561, 52665, 54559, 40398, 6301, 60254, 21126, 9380, 47909, 21478, 58239, 60899, 5178, 26585, 23730, 27882, 18439, 46807, 31146, 50645, 46337, 15444, 34682, 63321, 36087, 32154, 53240, 56418, 52816, 52600, 15572, 56586, 49030, 44718, 40493, 31006, 64860, 8194, 132, 38677, 21995, 22524, 2950, 57950, 1667, 3401, 46144, 52988, 5092, 17454, 57025, 64692, 52966, 51654, 7879}, new char[]{37155, 60673, 36993, 59424}, new char[]{0, 0, 0, 0}, 1 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)), objArr5);
|
||
|
String str3 = (String) objArr5[0];
|
||
|
Object[] objArr6 = new Object[1];
|
||
|
m((char) (Process.myPid() >> 22), new char[]{15550, 58337, 669, 4926, 28417, 5543, 43947, 28794, 36348, 13974, 39494, 41926, 60924, 20128, 56675, 19968, 25184, 13743, 56913, 52134, 12197, 7519, 57338, 25698, 31534, 36007, 34912, 52022, 34185, 43044, 27141, 5596, 41410, 50640, 22182, 54456, 15246, 56251, 416, 45316, 56414, 24626, 18787, 49694, 35920, 47346, 59694, 24617, 13527, 24395, 3383, 22251, 33808, 34520, 34243, 34780, 26578, 40881, 28679, 57871, 53789, 30819, 40661, 23564, 19957, 2601, 61581, 11183, 14409, 20810, 815, 60494, 38776, 46419}, new char[]{63525, 41932, 14901, 4097}, new char[]{0, 0, 0, 0}, ViewConfiguration.getKeyRepeatTimeout() >> 16, objArr6);
|
||
|
String str4 = (String) objArr6[0];
|
||
|
Object[] objArr7 = new Object[1];
|
||
|
m((char) ((ViewConfiguration.getMinimumFlingVelocity() >> 16) + 26559), new char[]{31380, 17063, 24742, 23736, 57503}, new char[]{34628, 8643, 49107, 1127}, new char[]{0, 0, 0, 0}, Process.getGidForName("") - 752761976, objArr7);
|
||
|
String str5 = (String) objArr7[0];
|
||
|
Object[] objArr8 = new Object[1];
|
||
|
m((char) ((-1) - ((byte) KeyEvent.getModifierMetaStateMask())), new char[]{21012, 8018, 34150, 61828, 63354, 6504, 46697, 32039, 49777, 21392, 7370, 53631, 28672, 54528, 44190, 6365, 10420, 58538, 4664, 14814, 25043, 27796, 12136, 3888, 7867, 7069, 52250, 15013, 1639, 27832, 45709, 52289, 7135, 60499, 17005, 23501}, new char[]{10043, 6094, 20968, 33666}, new char[]{0, 0, 0, 0}, (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) - 1, objArr8);
|
||
|
Object[] objArr9 = {applicationContext, str, str2, str3, str4, true, str5, (String) objArr8[0]};
|
||
|
Object obj3 = xzZ.y.get(1656189573);
|
||
|
if (obj3 == null) {
|
||
|
obj3 = ((Class) xzZ.c(View.MeasureSpec.makeMeasureSpec(0, 0) + 487, (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)) + 5, (char) (ViewConfiguration.getDoubleTapTimeout() >> 16))).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, objArr9);
|
||
|
} catch (Throwable th) {
|
||
|
Throwable cause = th.getCause();
|
||
|
if (cause == null) {
|
||
|
throw th;
|
||
|
}
|
||
|
throw cause;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|