903 lines
32 KiB
Java
903 lines
32 KiB
Java
|
package com.google.firebase.messaging;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.content.Intent;
|
||
|
import android.content.SharedPreferences;
|
||
|
import android.content.pm.ApplicationInfo;
|
||
|
import android.content.pm.PackageItemInfo;
|
||
|
import android.content.pm.PackageManager;
|
||
|
import android.graphics.Color;
|
||
|
import android.graphics.ImageFormat;
|
||
|
import android.os.Bundle;
|
||
|
import android.os.Process;
|
||
|
import android.os.SystemClock;
|
||
|
import android.text.AndroidCharacter;
|
||
|
import android.text.TextUtils;
|
||
|
import android.view.Gravity;
|
||
|
import android.view.KeyEvent;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewConfiguration;
|
||
|
import com.google.firebase.FirebaseApp;
|
||
|
import com.google.firebase.encoders.DataEncoder;
|
||
|
import com.google.firebase.encoders.EncodingException;
|
||
|
import com.google.firebase.encoders.ObjectEncoder;
|
||
|
import com.google.firebase.encoders.json.JsonDataEncoderBuilder;
|
||
|
import com.google.firebase.iid.FirebaseInstanceId;
|
||
|
import com.google.firebase.messaging.FirelogAnalyticsEvent;
|
||
|
import com.pingan.ai.p;
|
||
|
import java.lang.reflect.Method;
|
||
|
import o.EnumC10854eQq;
|
||
|
import o.KRW;
|
||
|
import o.Nhs;
|
||
|
import o.ZQu;
|
||
|
import o.xzZ;
|
||
|
import org.bouncycastle.crypto.tls.CipherSuite;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public final class zzr {
|
||
|
private static char a;
|
||
|
private static long b;
|
||
|
private static int c;
|
||
|
private static int d;
|
||
|
private static final DataEncoder zza;
|
||
|
private static final byte[] $$a = {63, -72, 116, -100};
|
||
|
private static final int $$b = CipherSuite.TLS_PSK_WITH_AES_128_CBC_SHA256;
|
||
|
private static int $10 = 0;
|
||
|
private static int $11 = 1;
|
||
|
private static int e = 0;
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:10:0x0027 */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:7:0x001f */
|
||
|
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0027 -> B:4:0x002d). 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 g(byte r6, byte r7, int r8, java.lang.Object[] r9) {
|
||
|
/*
|
||
|
byte[] r0 = com.google.firebase.messaging.zzr.$$a
|
||
|
int r7 = r7 * 4
|
||
|
int r1 = 1 - r7
|
||
|
int r6 = r6 + 114
|
||
|
int r8 = r8 + 4
|
||
|
byte[] r1 = new byte[r1]
|
||
|
r2 = 0
|
||
|
int r7 = 0 - r7
|
||
|
if (r0 != 0) goto L15
|
||
|
r3 = r8
|
||
|
r4 = r2
|
||
|
r8 = r7
|
||
|
goto L2d
|
||
|
L15:
|
||
|
r3 = r2
|
||
|
L16:
|
||
|
int r8 = r8 + 1
|
||
|
byte r4 = (byte) r6
|
||
|
r1[r3] = r4
|
||
|
int r4 = r3 + 1
|
||
|
if (r3 != r7) goto L27
|
||
|
java.lang.String r6 = new java.lang.String
|
||
|
r6.<init>(r1, r2)
|
||
|
r9[r2] = r6
|
||
|
return
|
||
|
L27:
|
||
|
r3 = r0[r8]
|
||
|
r5 = r8
|
||
|
r8 = r6
|
||
|
r6 = r3
|
||
|
r3 = r5
|
||
|
L2d:
|
||
|
int r6 = -r6
|
||
|
int r6 = r6 + r8
|
||
|
r8 = r3
|
||
|
r3 = r4
|
||
|
goto L16
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.google.firebase.messaging.zzr.g(byte, byte, int, java.lang.Object[]):void");
|
||
|
}
|
||
|
|
||
|
public static void zza(Intent intent, KRW<String> krw) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = c + 1;
|
||
|
e = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
zza("_nr", intent);
|
||
|
if (krw != null) {
|
||
|
try {
|
||
|
krw.send(new ZQu(zza.encode(new FirelogAnalyticsEvent.zza(new FirelogAnalyticsEvent("MESSAGE_DELIVERED", intent))), EnumC10854eQq.VERY_LOW));
|
||
|
return;
|
||
|
} catch (EncodingException unused) {
|
||
|
}
|
||
|
}
|
||
|
int i4 = c + 67;
|
||
|
e = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:11:0x0084, code lost:
|
||
|
|
||
|
if (((java.lang.String) r3[0]).intern().equals(r2) != false) goto L11;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:6:0x004e, code lost:
|
||
|
|
||
|
if (((java.lang.String) r3[0]).intern().equals(r2) != false) goto L11;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:7:0x0086, code lost:
|
||
|
|
||
|
r2 = com.google.firebase.messaging.zzr.e + 121;
|
||
|
com.google.firebase.messaging.zzr.c = r2 % 128;
|
||
|
r2 = r2 % 2;
|
||
|
r2 = (com.google.firebase.analytics.connector.AnalyticsConnector) com.google.firebase.FirebaseApp.getInstance().get(com.google.firebase.analytics.connector.AnalyticsConnector.class);
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:8:0x009b, code lost:
|
||
|
|
||
|
if (r2 == null) goto L14;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:9:0x009d, code lost:
|
||
|
|
||
|
r3 = r14.getStringExtra("google.c.a.c_id");
|
||
|
r2.setUserProperty(com.google.android.gms.measurement.AppMeasurement.FCM_ORIGIN, "_ln", r3);
|
||
|
r4 = new android.os.Bundle();
|
||
|
r4.putString("source", "Firebase");
|
||
|
r4.putString("medium", "notification");
|
||
|
r4.putString("campaign", r3);
|
||
|
r2.logEvent(com.google.android.gms.measurement.AppMeasurement.FCM_ORIGIN, "_cmp", r4);
|
||
|
*/
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public static void zza(android.content.Intent r14) {
|
||
|
/*
|
||
|
r0 = 2
|
||
|
int r1 = r0 % r0
|
||
|
r1 = 0
|
||
|
if (r14 == 0) goto Lc7
|
||
|
int r2 = com.google.firebase.messaging.zzr.e
|
||
|
int r2 = r2 + 27
|
||
|
int r3 = r2 % 128
|
||
|
com.google.firebase.messaging.zzr.c = r3
|
||
|
int r2 = r2 % r0
|
||
|
r3 = 16300(0x3fac, float:2.2841E-41)
|
||
|
r4 = 1362001040(0x512e7c90, float:4.6838383E10)
|
||
|
java.lang.String r5 = "google.c.a.tc"
|
||
|
r6 = 4
|
||
|
r7 = 1
|
||
|
if (r2 != 0) goto L51
|
||
|
java.lang.String r2 = r14.getStringExtra(r5)
|
||
|
r5 = 20326(0x4f66, float:2.8483E-41)
|
||
|
int r8 = android.view.View.MeasureSpec.makeMeasureSpec(r1, r7)
|
||
|
int r5 = r5 % r8
|
||
|
char r8 = (char) r5
|
||
|
int r5 = android.view.ViewConfiguration.getTouchSlop()
|
||
|
int r5 = r5 / 90
|
||
|
int r9 = r4 >> r5
|
||
|
char[] r10 = new char[r6]
|
||
|
r10 = {x00da: FILL_ARRAY_DATA , data: [-28632, 11900, 30801, -23947} // fill-array
|
||
|
char[] r11 = new char[r7]
|
||
|
r11[r1] = r3
|
||
|
char[] r12 = new char[r6]
|
||
|
r12 = {x00e2: FILL_ARRAY_DATA , data: [0, 0, 0, 0} // fill-array
|
||
|
java.lang.Object[] r3 = new java.lang.Object[r7]
|
||
|
r13 = r3
|
||
|
f(r8, r9, r10, r11, r12, r13)
|
||
|
r3 = r3[r1]
|
||
|
java.lang.String r3 = (java.lang.String) r3
|
||
|
java.lang.String r3 = r3.intern()
|
||
|
boolean r2 = r3.equals(r2)
|
||
|
if (r2 == 0) goto Lc7
|
||
|
goto L86
|
||
|
L51:
|
||
|
java.lang.String r2 = r14.getStringExtra(r5)
|
||
|
int r5 = android.view.View.MeasureSpec.makeMeasureSpec(r1, r1)
|
||
|
int r5 = r5 + 30072
|
||
|
char r8 = (char) r5
|
||
|
int r5 = android.view.ViewConfiguration.getTouchSlop()
|
||
|
int r5 = r5 >> 8
|
||
|
int r9 = r4 - r5
|
||
|
char[] r10 = new char[r6]
|
||
|
r10 = {x00ea: FILL_ARRAY_DATA , data: [-28632, 11900, 30801, -23947} // fill-array
|
||
|
char[] r11 = new char[r7]
|
||
|
r11[r1] = r3
|
||
|
char[] r12 = new char[r6]
|
||
|
r12 = {x00f2: FILL_ARRAY_DATA , data: [0, 0, 0, 0} // fill-array
|
||
|
java.lang.Object[] r3 = new java.lang.Object[r7]
|
||
|
r13 = r3
|
||
|
f(r8, r9, r10, r11, r12, r13)
|
||
|
r3 = r3[r1]
|
||
|
java.lang.String r3 = (java.lang.String) r3
|
||
|
java.lang.String r3 = r3.intern()
|
||
|
boolean r2 = r3.equals(r2)
|
||
|
if (r2 == 0) goto Lc7
|
||
|
L86:
|
||
|
int r2 = com.google.firebase.messaging.zzr.e
|
||
|
int r2 = r2 + 121
|
||
|
int r3 = r2 % 128
|
||
|
com.google.firebase.messaging.zzr.c = r3
|
||
|
int r2 = r2 % r0
|
||
|
com.google.firebase.FirebaseApp r2 = com.google.firebase.FirebaseApp.getInstance()
|
||
|
java.lang.Class<com.google.firebase.analytics.connector.AnalyticsConnector> r3 = com.google.firebase.analytics.connector.AnalyticsConnector.class
|
||
|
java.lang.Object r2 = r2.get(r3)
|
||
|
com.google.firebase.analytics.connector.AnalyticsConnector r2 = (com.google.firebase.analytics.connector.AnalyticsConnector) r2
|
||
|
if (r2 == 0) goto Lc7
|
||
|
java.lang.String r3 = "google.c.a.c_id"
|
||
|
java.lang.String r3 = r14.getStringExtra(r3)
|
||
|
java.lang.String r4 = "_ln"
|
||
|
java.lang.String r5 = "fcm"
|
||
|
r2.setUserProperty(r5, r4, r3)
|
||
|
android.os.Bundle r4 = new android.os.Bundle
|
||
|
r4.<init>()
|
||
|
java.lang.String r6 = "source"
|
||
|
java.lang.String r7 = "Firebase"
|
||
|
r4.putString(r6, r7)
|
||
|
java.lang.String r6 = "medium"
|
||
|
java.lang.String r7 = "notification"
|
||
|
r4.putString(r6, r7)
|
||
|
java.lang.String r6 = "campaign"
|
||
|
r4.putString(r6, r3)
|
||
|
java.lang.String r3 = "_cmp"
|
||
|
r2.logEvent(r5, r3, r4)
|
||
|
Lc7:
|
||
|
java.lang.String r2 = "_no"
|
||
|
zza(r2, r14)
|
||
|
int r14 = com.google.firebase.messaging.zzr.c
|
||
|
r2 = 55
|
||
|
int r14 = r14 + r2
|
||
|
int r3 = r14 % 128
|
||
|
com.google.firebase.messaging.zzr.e = r3
|
||
|
int r14 = r14 % r0
|
||
|
if (r14 == 0) goto Ld9
|
||
|
int r2 = r2 / r1
|
||
|
Ld9:
|
||
|
return
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.google.firebase.messaging.zzr.zza(android.content.Intent):void");
|
||
|
}
|
||
|
|
||
|
public static void zzb(Intent intent) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = c + 1;
|
||
|
e = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
zza("_nd", intent);
|
||
|
int i4 = e + 3;
|
||
|
c = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
}
|
||
|
|
||
|
public static void zzc(Intent intent) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = e + 23;
|
||
|
c = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
zza("_nf", intent);
|
||
|
int i4 = e + 45;
|
||
|
c = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:10:0x0070, code lost:
|
||
|
|
||
|
if ((r1 % 2) == 0) goto L13;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:11:0x0072, code lost:
|
||
|
|
||
|
return r10;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:13:0x0074, code lost:
|
||
|
|
||
|
throw null;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:14:0x0015, code lost:
|
||
|
|
||
|
if (r10 != null) goto L8;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:4:0x0012, code lost:
|
||
|
|
||
|
if (r10 != null) goto L8;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:8:0x001b, code lost:
|
||
|
|
||
|
if (zzn(r10) != false) goto L15;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:9:0x001d, code lost:
|
||
|
|
||
|
r1 = com.google.firebase.messaging.zzr.c + 101;
|
||
|
com.google.firebase.messaging.zzr.e = r1 % 128;
|
||
|
r1 = r1 % 2;
|
||
|
r9 = new java.lang.Object[1];
|
||
|
f((char) ((android.view.ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 30072), 1362001039 - android.text.TextUtils.lastIndexOf("", '0'), new char[]{36904, 11900, 30801, 41589}, new char[]{16300}, new char[]{0, 0, 0, 0}, r9);
|
||
|
r10 = ((java.lang.String) r9[0]).intern().equals(r10.getStringExtra("google.c.a.e"));
|
||
|
r1 = com.google.firebase.messaging.zzr.e + 53;
|
||
|
com.google.firebase.messaging.zzr.c = r1 % 128;
|
||
|
*/
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public static boolean zzd(android.content.Intent r10) {
|
||
|
/*
|
||
|
r0 = 2
|
||
|
int r1 = r0 % r0
|
||
|
int r1 = com.google.firebase.messaging.zzr.e
|
||
|
int r1 = r1 + 57
|
||
|
int r2 = r1 % 128
|
||
|
com.google.firebase.messaging.zzr.c = r2
|
||
|
int r1 = r1 % r0
|
||
|
r2 = 0
|
||
|
if (r1 != 0) goto L15
|
||
|
r1 = 76
|
||
|
int r1 = r1 / r2
|
||
|
if (r10 == 0) goto L75
|
||
|
goto L17
|
||
|
L15:
|
||
|
if (r10 == 0) goto L75
|
||
|
L17:
|
||
|
boolean r1 = zzn(r10)
|
||
|
if (r1 != 0) goto L75
|
||
|
int r1 = com.google.firebase.messaging.zzr.c
|
||
|
int r1 = r1 + 101
|
||
|
int r3 = r1 % 128
|
||
|
com.google.firebase.messaging.zzr.e = r3
|
||
|
int r1 = r1 % r0
|
||
|
int r1 = android.view.ViewConfiguration.getMaximumDrawingCacheSize()
|
||
|
int r1 = r1 >> 24
|
||
|
int r1 = r1 + 30072
|
||
|
char r3 = (char) r1
|
||
|
java.lang.String r1 = ""
|
||
|
r4 = 48
|
||
|
int r1 = android.text.TextUtils.lastIndexOf(r1, r4)
|
||
|
r4 = 1362001039(0x512e7c8f, float:4.683838E10)
|
||
|
int r4 = r4 - r1
|
||
|
r1 = 4
|
||
|
char[] r5 = new char[r1]
|
||
|
r5 = {x0076: FILL_ARRAY_DATA , data: [-28632, 11900, 30801, -23947} // fill-array
|
||
|
r6 = 1
|
||
|
char[] r7 = new char[r6]
|
||
|
r8 = 16300(0x3fac, float:2.2841E-41)
|
||
|
r7[r2] = r8
|
||
|
char[] r1 = new char[r1]
|
||
|
r1 = {x007e: FILL_ARRAY_DATA , data: [0, 0, 0, 0} // fill-array
|
||
|
java.lang.Object[] r9 = new java.lang.Object[r6]
|
||
|
r6 = r7
|
||
|
r7 = r1
|
||
|
r8 = r9
|
||
|
f(r3, r4, r5, r6, r7, r8)
|
||
|
r1 = r9[r2]
|
||
|
java.lang.String r1 = (java.lang.String) r1
|
||
|
java.lang.String r1 = r1.intern()
|
||
|
java.lang.String r2 = "google.c.a.e"
|
||
|
java.lang.String r10 = r10.getStringExtra(r2)
|
||
|
boolean r10 = r1.equals(r10)
|
||
|
int r1 = com.google.firebase.messaging.zzr.e
|
||
|
int r1 = r1 + 53
|
||
|
int r2 = r1 % 128
|
||
|
com.google.firebase.messaging.zzr.c = r2
|
||
|
int r1 = r1 % r0
|
||
|
if (r1 == 0) goto L73
|
||
|
return r10
|
||
|
L73:
|
||
|
r10 = 0
|
||
|
throw r10
|
||
|
L75:
|
||
|
return r2
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.google.firebase.messaging.zzr.zzd(android.content.Intent):boolean");
|
||
|
}
|
||
|
|
||
|
public static boolean zze(Intent intent) {
|
||
|
int i = 2 % 2;
|
||
|
if (intent != null) {
|
||
|
int i2 = c + 57;
|
||
|
e = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
if (!zzn(intent)) {
|
||
|
int i4 = e + 47;
|
||
|
c = i4 % 128;
|
||
|
if (i4 % 2 != 0) {
|
||
|
return zza();
|
||
|
}
|
||
|
int i5 = 55 / 0;
|
||
|
return zza();
|
||
|
}
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
private static boolean zzn(Intent intent) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = e + 51;
|
||
|
c = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
boolean equals = "com.google.firebase.messaging.RECEIVE_DIRECT_BOOT".equals(intent.getAction());
|
||
|
if (i3 == 0) {
|
||
|
int i4 = 66 / 0;
|
||
|
}
|
||
|
return equals;
|
||
|
}
|
||
|
|
||
|
static boolean zza() {
|
||
|
Context applicationContext;
|
||
|
SharedPreferences sharedPreferences;
|
||
|
ApplicationInfo applicationInfo;
|
||
|
int i = 2 % 2;
|
||
|
int i2 = c + 9;
|
||
|
e = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
try {
|
||
|
FirebaseApp.getInstance();
|
||
|
applicationContext = FirebaseApp.getInstance().getApplicationContext();
|
||
|
sharedPreferences = applicationContext.getSharedPreferences("com.google.firebase.messaging", 0);
|
||
|
} catch (IllegalStateException unused) {
|
||
|
}
|
||
|
if (sharedPreferences.contains("export_to_big_query")) {
|
||
|
return sharedPreferences.getBoolean("export_to_big_query", false);
|
||
|
}
|
||
|
try {
|
||
|
PackageManager packageManager = applicationContext.getPackageManager();
|
||
|
if (packageManager != null && (applicationInfo = packageManager.getApplicationInfo(applicationContext.getPackageName(), 128)) != null && PackageItemInfo.class.getField("metaData").get(applicationInfo) != null) {
|
||
|
int i4 = c + 119;
|
||
|
e = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
if (((Bundle) PackageItemInfo.class.getField("metaData").get(applicationInfo)).containsKey("delivery_metrics_exported_to_big_query_enabled")) {
|
||
|
return ((Bundle) PackageItemInfo.class.getField("metaData").get(applicationInfo)).getBoolean("delivery_metrics_exported_to_big_query_enabled", false);
|
||
|
}
|
||
|
}
|
||
|
} catch (PackageManager.NameNotFoundException unused2) {
|
||
|
}
|
||
|
int i6 = c + 83;
|
||
|
e = i6 % 128;
|
||
|
int i7 = i6 % 2;
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:51:0x00db, code lost:
|
||
|
|
||
|
if ("_nf".equals(r6) != false) goto L53;
|
||
|
*/
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
private static void zza(java.lang.String r6, android.content.Intent r7) {
|
||
|
/*
|
||
|
Method dump skipped, instructions count: 251
|
||
|
To view this dump add '--comments-level debug' option
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.google.firebase.messaging.zzr.zza(java.lang.String, android.content.Intent):void");
|
||
|
}
|
||
|
|
||
|
private static void f(char c2, int i, char[] cArr, char[] cArr2, char[] cArr3, Object[] objArr) {
|
||
|
int i2 = 2;
|
||
|
int i3 = 2 % 2;
|
||
|
Nhs nhs = new Nhs();
|
||
|
int length = cArr.length;
|
||
|
char[] cArr4 = new char[length];
|
||
|
int length2 = cArr3.length;
|
||
|
char[] cArr5 = new char[length2];
|
||
|
System.arraycopy(cArr, 0, cArr4, 0, length);
|
||
|
System.arraycopy(cArr3, 0, cArr5, 0, length2);
|
||
|
cArr4[0] = (char) (cArr4[0] ^ c2);
|
||
|
cArr5[2] = (char) (cArr5[2] + ((char) i));
|
||
|
int length3 = cArr2.length;
|
||
|
char[] cArr6 = new char[length3];
|
||
|
nhs.a = 0;
|
||
|
while (nhs.a < length3) {
|
||
|
int i4 = $11 + 97;
|
||
|
$10 = i4 % 128;
|
||
|
int i5 = i4 % i2;
|
||
|
try {
|
||
|
Object[] objArr2 = {nhs};
|
||
|
Object obj = xzZ.y.get(263693715);
|
||
|
if (obj == null) {
|
||
|
obj = ((Class) xzZ.c(45 - (KeyEvent.getMaxKeyCode() >> 16), 4 - ImageFormat.getBitsPerPixel(0), (char) ((Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) - 1))).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(Color.blue(0) + 352, (ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 5, (char) (TextUtils.getCapsMode("", 0, 0) + 52128));
|
||
|
byte b2 = (byte) 1;
|
||
|
byte b3 = (byte) (b2 - 1);
|
||
|
Object[] objArr4 = new Object[1];
|
||
|
g(b2, b3, (byte) (b3 - 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 - (ViewConfiguration.getTouchSlop() >> 8), 5 - TextUtils.getCapsMode("", 0, 0), (char) (1 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1))))).getMethod(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(KeyEvent.normalizeMetaState(0) + 402, 5 - Gravity.getAbsoluteGravity(0, 0), (char) (21608 - View.resolveSize(0, 0)));
|
||
|
byte b4 = (byte) 0;
|
||
|
byte b5 = b4;
|
||
|
Object[] objArr7 = new Object[1];
|
||
|
g(b4, b5, (byte) (b5 - 1), 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] ^ cArr2[nhs.a]) ^ (b ^ 9051040786702654117L)) ^ ((int) (d ^ 9051040786702654117L))) ^ ((char) (a ^ 9051040786702654117L)));
|
||
|
nhs.a++;
|
||
|
int i6 = $11 + 73;
|
||
|
$10 = i6 % 128;
|
||
|
int i7 = i6 % 2;
|
||
|
i2 = 2;
|
||
|
} catch (Throwable th) {
|
||
|
Throwable cause = th.getCause();
|
||
|
if (cause == null) {
|
||
|
throw th;
|
||
|
}
|
||
|
throw cause;
|
||
|
}
|
||
|
}
|
||
|
objArr[0] = new String(cArr6);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:12:0x0057, code lost:
|
||
|
|
||
|
r4 = com.google.firebase.messaging.zzr.c + 105;
|
||
|
com.google.firebase.messaging.zzr.e = r4 % 128;
|
||
|
r4 = r4 % 2;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:13:0x0060, code lost:
|
||
|
|
||
|
return 0;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:14:0x002d, code lost:
|
||
|
|
||
|
r1 = com.google.firebase.messaging.zzr.e + 119;
|
||
|
com.google.firebase.messaging.zzr.c = r1 % 128;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:15:0x0036, code lost:
|
||
|
|
||
|
if ((r1 % 2) == 0) goto L13;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:17:0x003e, code lost:
|
||
|
|
||
|
return ((java.lang.Integer) r4).intValue();
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:18:0x003f, code lost:
|
||
|
|
||
|
((java.lang.Integer) r4).intValue();
|
||
|
r4 = null;
|
||
|
r4.hashCode();
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:19:0x0048, code lost:
|
||
|
|
||
|
throw null;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:21:0x002b, code lost:
|
||
|
|
||
|
if ((r4 instanceof java.lang.Integer) != false) goto L9;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:4:0x001e, code lost:
|
||
|
|
||
|
if ((r4 instanceof java.lang.Integer) != false) goto L9;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:6:0x004d, code lost:
|
||
|
|
||
|
if ((!(r4 instanceof java.lang.String)) == false) goto L22;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:9:0x0056, code lost:
|
||
|
|
||
|
return java.lang.Integer.parseInt((java.lang.String) r4);
|
||
|
*/
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public static int zzf(android.content.Intent r4) {
|
||
|
/*
|
||
|
r0 = 2
|
||
|
int r1 = r0 % r0
|
||
|
int r1 = com.google.firebase.messaging.zzr.c
|
||
|
int r1 = r1 + 43
|
||
|
int r2 = r1 % 128
|
||
|
com.google.firebase.messaging.zzr.e = r2
|
||
|
int r1 = r1 % r0
|
||
|
r2 = 0
|
||
|
java.lang.String r3 = "google.ttl"
|
||
|
if (r1 == 0) goto L21
|
||
|
android.os.Bundle r4 = r4.getExtras()
|
||
|
java.lang.Object r4 = r4.get(r3)
|
||
|
boolean r1 = r4 instanceof java.lang.Integer
|
||
|
r3 = 23
|
||
|
int r3 = r3 / r2
|
||
|
if (r1 == 0) goto L49
|
||
|
goto L2d
|
||
|
L21:
|
||
|
android.os.Bundle r4 = r4.getExtras()
|
||
|
java.lang.Object r4 = r4.get(r3)
|
||
|
boolean r1 = r4 instanceof java.lang.Integer
|
||
|
if (r1 == 0) goto L49
|
||
|
L2d:
|
||
|
int r1 = com.google.firebase.messaging.zzr.e
|
||
|
int r1 = r1 + 119
|
||
|
int r2 = r1 % 128
|
||
|
com.google.firebase.messaging.zzr.c = r2
|
||
|
int r1 = r1 % r0
|
||
|
if (r1 == 0) goto L3f
|
||
|
java.lang.Integer r4 = (java.lang.Integer) r4
|
||
|
int r4 = r4.intValue()
|
||
|
return r4
|
||
|
L3f:
|
||
|
java.lang.Integer r4 = (java.lang.Integer) r4
|
||
|
r4.intValue()
|
||
|
r4 = 0
|
||
|
r4.hashCode()
|
||
|
throw r4
|
||
|
L49:
|
||
|
boolean r1 = r4 instanceof java.lang.String
|
||
|
r1 = r1 ^ 1
|
||
|
if (r1 == 0) goto L50
|
||
|
goto L57
|
||
|
L50:
|
||
|
java.lang.String r4 = (java.lang.String) r4 // Catch: java.lang.NumberFormatException -> L57
|
||
|
int r4 = java.lang.Integer.parseInt(r4) // Catch: java.lang.NumberFormatException -> L57
|
||
|
return r4
|
||
|
L57:
|
||
|
int r4 = com.google.firebase.messaging.zzr.c
|
||
|
int r4 = r4 + 105
|
||
|
int r1 = r4 % 128
|
||
|
com.google.firebase.messaging.zzr.e = r1
|
||
|
int r4 = r4 % r0
|
||
|
return r2
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.google.firebase.messaging.zzr.zzf(android.content.Intent):int");
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static String zzg(Intent intent) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = e + 53;
|
||
|
c = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
String stringExtra = intent.getStringExtra("collapse_key");
|
||
|
if (i3 == 0) {
|
||
|
int i4 = 54 / 0;
|
||
|
}
|
||
|
return stringExtra;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static String zzh(Intent intent) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = e + 75;
|
||
|
c = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
String stringExtra = intent.getStringExtra("google.c.a.c_l");
|
||
|
int i4 = c + 55;
|
||
|
e = i4 % 128;
|
||
|
if (i4 % 2 == 0) {
|
||
|
return stringExtra;
|
||
|
}
|
||
|
Object obj = null;
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static String zzi(Intent intent) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = c + 89;
|
||
|
e = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
String stringExtra = intent.getStringExtra("google.c.a.m_l");
|
||
|
int i4 = e + 33;
|
||
|
c = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
return stringExtra;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static String zzj(Intent intent) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = e + 97;
|
||
|
c = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
String stringExtra = intent.getStringExtra("google.message_id");
|
||
|
if (stringExtra != null) {
|
||
|
return stringExtra;
|
||
|
}
|
||
|
String stringExtra2 = intent.getStringExtra("message_id");
|
||
|
int i4 = e + 105;
|
||
|
c = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
return stringExtra2;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static String zzb() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = e + 53;
|
||
|
c = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
String packageName = FirebaseApp.getInstance().getApplicationContext().getPackageName();
|
||
|
int i4 = e + 51;
|
||
|
c = i4 % 128;
|
||
|
if (i4 % 2 == 0) {
|
||
|
int i5 = 27 / 0;
|
||
|
}
|
||
|
return packageName;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static String zzc() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = c + 33;
|
||
|
e = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
String id = FirebaseInstanceId.getInstance(FirebaseApp.getInstance()).getId();
|
||
|
int i4 = e + 55;
|
||
|
c = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
return id;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static String zzk(Intent intent) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = e + 17;
|
||
|
c = i2 % 128;
|
||
|
if (i2 % 2 == 0) {
|
||
|
intent.getExtras();
|
||
|
throw null;
|
||
|
}
|
||
|
if (intent.getExtras() == null || !zzt.zza(intent.getExtras())) {
|
||
|
return "DATA_MESSAGE";
|
||
|
}
|
||
|
int i3 = e + 85;
|
||
|
int i4 = i3 % 128;
|
||
|
c = i4;
|
||
|
if (i3 % 2 == 0) {
|
||
|
int i5 = 52 / 0;
|
||
|
}
|
||
|
int i6 = i4 + 79;
|
||
|
e = i6 % 128;
|
||
|
if (i6 % 2 != 0) {
|
||
|
int i7 = 37 / 0;
|
||
|
}
|
||
|
return "DISPLAY_NOTIFICATION";
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static String zzl(Intent intent) {
|
||
|
String stringExtra;
|
||
|
int i = 2 % 2;
|
||
|
int i2 = c + 79;
|
||
|
e = i2 % 128;
|
||
|
if (i2 % 2 != 0) {
|
||
|
stringExtra = intent.getStringExtra("from");
|
||
|
int i3 = 83 / 0;
|
||
|
if (stringExtra == null) {
|
||
|
return null;
|
||
|
}
|
||
|
} else {
|
||
|
stringExtra = intent.getStringExtra("from");
|
||
|
if (stringExtra == null) {
|
||
|
return null;
|
||
|
}
|
||
|
}
|
||
|
int i4 = c + 93;
|
||
|
e = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
boolean startsWith = stringExtra.startsWith("/topics/");
|
||
|
if (i5 != 0) {
|
||
|
int i6 = 40 / 0;
|
||
|
if (!startsWith) {
|
||
|
return null;
|
||
|
}
|
||
|
} else if (!startsWith) {
|
||
|
return null;
|
||
|
}
|
||
|
return stringExtra;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static int zzm(Intent intent) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = c + 113;
|
||
|
e = i2 % 128;
|
||
|
if (i2 % 2 != 0) {
|
||
|
intent.getStringExtra("google.delivered_priority");
|
||
|
throw null;
|
||
|
}
|
||
|
String stringExtra = intent.getStringExtra("google.delivered_priority");
|
||
|
if (stringExtra == null) {
|
||
|
int i3 = e + 29;
|
||
|
c = i3 % 128;
|
||
|
int i4 = i3 % 2;
|
||
|
Object[] objArr = new Object[1];
|
||
|
f((char) (30072 - (ViewConfiguration.getMinimumFlingVelocity() >> 16)), 31840 + AndroidCharacter.getMirror('0'), new char[]{36904, 11900, 30801, 41589}, new char[]{16300}, new char[]{0, 0, 0, 0}, objArr);
|
||
|
if (((String) objArr[0]).intern().equals(intent.getStringExtra("google.priority_reduced"))) {
|
||
|
int i5 = c + 75;
|
||
|
e = i5 % 128;
|
||
|
int i6 = i5 % 2;
|
||
|
return 2;
|
||
|
}
|
||
|
stringExtra = intent.getStringExtra("google.priority");
|
||
|
}
|
||
|
if ("high".equals(stringExtra)) {
|
||
|
int i7 = e + 39;
|
||
|
c = i7 % 128;
|
||
|
return i7 % 2 == 0 ? 0 : 1;
|
||
|
}
|
||
|
if ("normal".equals(stringExtra)) {
|
||
|
return 2;
|
||
|
}
|
||
|
int i8 = e + 63;
|
||
|
c = i8 % 128;
|
||
|
if (i8 % 2 != 0) {
|
||
|
return 0;
|
||
|
}
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static String zzd() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = e + 77;
|
||
|
c = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
FirebaseApp firebaseApp = FirebaseApp.getInstance();
|
||
|
String gcmSenderId = firebaseApp.getOptions().getGcmSenderId();
|
||
|
Object obj = null;
|
||
|
if (gcmSenderId != null) {
|
||
|
int i4 = e + 77;
|
||
|
c = i4 % 128;
|
||
|
if (i4 % 2 != 0) {
|
||
|
return gcmSenderId;
|
||
|
}
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
String applicationId = firebaseApp.getOptions().getApplicationId();
|
||
|
if (!applicationId.startsWith("1:")) {
|
||
|
int i5 = e + 47;
|
||
|
c = i5 % 128;
|
||
|
int i6 = i5 % 2;
|
||
|
return applicationId;
|
||
|
}
|
||
|
String[] split = applicationId.split(":");
|
||
|
if (split.length < 2) {
|
||
|
int i7 = e + 77;
|
||
|
c = i7 % 128;
|
||
|
int i8 = i7 % 2;
|
||
|
return null;
|
||
|
}
|
||
|
String str = split[1];
|
||
|
if (str.isEmpty()) {
|
||
|
return null;
|
||
|
}
|
||
|
return str;
|
||
|
}
|
||
|
|
||
|
static {
|
||
|
c = 1;
|
||
|
b();
|
||
|
zza = new JsonDataEncoderBuilder().registerEncoder(FirelogAnalyticsEvent.zza.class, (ObjectEncoder) new FirelogAnalyticsEvent.zzc()).registerEncoder(FirelogAnalyticsEvent.class, (ObjectEncoder) new FirelogAnalyticsEvent.zzb()).build();
|
||
|
int i = e + 107;
|
||
|
c = i % 128;
|
||
|
if (i % 2 == 0) {
|
||
|
int i2 = 99 / 0;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
static void b() {
|
||
|
b = 9051040786702654117L;
|
||
|
d = 452713125;
|
||
|
a = (char) 49236;
|
||
|
}
|
||
|
}
|