267 lines
12 KiB
Java
267 lines
12 KiB
Java
|
package com.google.firebase.messaging;
|
||
|
|
||
|
import android.content.Intent;
|
||
|
import android.media.AudioTrack;
|
||
|
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 com.google.android.gms.common.internal.Preconditions;
|
||
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||
|
import com.google.firebase.encoders.ObjectEncoder;
|
||
|
import com.google.firebase.encoders.ObjectEncoderContext;
|
||
|
import com.huawei.hms.support.api.entity.common.CommonConstant;
|
||
|
import java.io.IOException;
|
||
|
import java.lang.reflect.Method;
|
||
|
import o.C4593bdB;
|
||
|
import o.xzZ;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* loaded from: classes2.dex */
|
||
|
public final class FirelogAnalyticsEvent {
|
||
|
private final String zza;
|
||
|
private final Intent zzb;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
static final class zzc implements ObjectEncoder<zza> {
|
||
|
@Override // com.google.firebase.encoders.Encoder
|
||
|
public final /* synthetic */ void encode(Object obj, ObjectEncoderContext objectEncoderContext) throws IOException {
|
||
|
objectEncoderContext.add("messaging_client_event", ((zza) obj).zza());
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public FirelogAnalyticsEvent(String str, Intent intent) {
|
||
|
this.zza = Preconditions.checkNotEmpty(str, "evenType must be non-null");
|
||
|
this.zzb = (Intent) Preconditions.checkNotNull(intent, "intent must be non-null");
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
static final class zzb implements ObjectEncoder<FirelogAnalyticsEvent> {
|
||
|
private static final byte[] $$a = {83, -27, -97, -69};
|
||
|
private static final int $$b = 24;
|
||
|
private static int $10 = 0;
|
||
|
private static int $11 = 1;
|
||
|
private static int e = 0;
|
||
|
private static int a = 1;
|
||
|
private static long c = -8710154070053044163L;
|
||
|
|
||
|
/* 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:0x0029). 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 f(byte r6, int r7, int r8, java.lang.Object[] r9) {
|
||
|
/*
|
||
|
int r7 = r7 * 4
|
||
|
int r7 = 3 - r7
|
||
|
int r6 = r6 + 77
|
||
|
int r8 = r8 * 4
|
||
|
int r8 = r8 + 1
|
||
|
byte[] r0 = com.google.firebase.messaging.FirelogAnalyticsEvent.zzb.$$a
|
||
|
byte[] r1 = new byte[r8]
|
||
|
r2 = 0
|
||
|
if (r0 != 0) goto L15
|
||
|
r3 = r6
|
||
|
r6 = r8
|
||
|
r4 = r2
|
||
|
goto L29
|
||
|
L15:
|
||
|
r3 = r2
|
||
|
L16:
|
||
|
int r7 = r7 + 1
|
||
|
int r4 = r3 + 1
|
||
|
byte r5 = (byte) r6
|
||
|
r1[r3] = r5
|
||
|
if (r4 != r8) goto L27
|
||
|
java.lang.String r6 = new java.lang.String
|
||
|
r6.<init>(r1, r2)
|
||
|
r9[r2] = r6
|
||
|
return
|
||
|
L27:
|
||
|
r3 = r0[r7]
|
||
|
L29:
|
||
|
int r6 = r6 + r3
|
||
|
r3 = r4
|
||
|
goto L16
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.google.firebase.messaging.FirelogAnalyticsEvent.zzb.f(byte, int, int, java.lang.Object[]):void");
|
||
|
}
|
||
|
|
||
|
@Override // com.google.firebase.encoders.Encoder
|
||
|
public final /* synthetic */ void encode(Object obj, ObjectEncoderContext objectEncoderContext) throws IOException {
|
||
|
int i = 2 % 2;
|
||
|
FirelogAnalyticsEvent firelogAnalyticsEvent = (FirelogAnalyticsEvent) obj;
|
||
|
ObjectEncoderContext objectEncoderContext2 = objectEncoderContext;
|
||
|
Intent zza = firelogAnalyticsEvent.zza();
|
||
|
objectEncoderContext2.add("ttl", zzr.zzf(zza));
|
||
|
objectEncoderContext2.add("event", firelogAnalyticsEvent.zzb());
|
||
|
objectEncoderContext2.add("instanceId", zzr.zzc());
|
||
|
objectEncoderContext2.add("priority", zzr.zzm(zza));
|
||
|
objectEncoderContext2.add(CommonConstant.ReqAccessTokenParam.PACKAGE_NAME, zzr.zzb());
|
||
|
Object[] objArr = new Object[1];
|
||
|
b(new char[]{54202, 50232, 64677, 38158, 36224, 42611, 24305}, 6030 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), objArr);
|
||
|
objectEncoderContext2.add("sdkPlatform", ((String) objArr[0]).intern());
|
||
|
objectEncoderContext2.add("messageType", zzr.zzk(zza));
|
||
|
String zzj = zzr.zzj(zza);
|
||
|
if (zzj != null) {
|
||
|
objectEncoderContext2.add("messageId", zzj);
|
||
|
}
|
||
|
String zzl = zzr.zzl(zza);
|
||
|
if (zzl != null) {
|
||
|
objectEncoderContext2.add("topic", zzl);
|
||
|
}
|
||
|
String zzg = zzr.zzg(zza);
|
||
|
if (zzg != null) {
|
||
|
objectEncoderContext2.add("collapseKey", zzg);
|
||
|
}
|
||
|
if (zzr.zzi(zza) != null) {
|
||
|
int i2 = e + 13;
|
||
|
a = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
objectEncoderContext2.add("analyticsLabel", zzr.zzi(zza));
|
||
|
}
|
||
|
if (zzr.zzh(zza) != null) {
|
||
|
int i4 = e + 109;
|
||
|
a = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
objectEncoderContext2.add("composerLabel", zzr.zzh(zza));
|
||
|
int i6 = a + 47;
|
||
|
e = i6 % 128;
|
||
|
int i7 = i6 % 2;
|
||
|
}
|
||
|
String zzd = zzr.zzd();
|
||
|
if (zzd != null) {
|
||
|
objectEncoderContext2.add("projectNumber", zzd);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private static void b(char[] cArr, int i, Object[] objArr) {
|
||
|
int i2 = 2 % 2;
|
||
|
C4593bdB c4593bdB = new C4593bdB();
|
||
|
c4593bdB.a = i;
|
||
|
int length = cArr.length;
|
||
|
long[] jArr = new long[length];
|
||
|
c4593bdB.e = 0;
|
||
|
while (c4593bdB.e < cArr.length) {
|
||
|
int i3 = $10 + 85;
|
||
|
$11 = i3 % 128;
|
||
|
if (i3 % 2 == 0) {
|
||
|
int i4 = c4593bdB.e;
|
||
|
try {
|
||
|
Object[] objArr2 = {Integer.valueOf(cArr[c4593bdB.e]), c4593bdB, c4593bdB};
|
||
|
Object obj = xzZ.y.get(-1229953068);
|
||
|
if (obj == null) {
|
||
|
Class cls = (Class) xzZ.c(401 - TextUtils.indexOf((CharSequence) "", '0', 0, 0), 6 - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)), (char) (21608 - (Process.myTid() >> 22)));
|
||
|
byte b = (byte) 0;
|
||
|
byte b2 = b;
|
||
|
Object[] objArr3 = new Object[1];
|
||
|
f(b, b2, b2, objArr3);
|
||
|
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Object.class, Object.class);
|
||
|
xzZ.y.put(-1229953068, obj);
|
||
|
}
|
||
|
jArr[i4] = ((Long) ((Method) obj).invoke(null, objArr2)).longValue() % (c - 6958928035870403642L);
|
||
|
Object[] objArr4 = {c4593bdB, c4593bdB};
|
||
|
Object obj2 = xzZ.y.get(-1143917229);
|
||
|
if (obj2 == null) {
|
||
|
Class cls2 = (Class) xzZ.c(238 - (ViewConfiguration.getPressedStateDuration() >> 16), 5 - (ViewConfiguration.getWindowTouchSlop() >> 8), (char) View.getDefaultSize(0, 0));
|
||
|
byte b3 = (byte) 1;
|
||
|
byte b4 = (byte) (b3 - 1);
|
||
|
Object[] objArr5 = new Object[1];
|
||
|
f(b3, b4, b4, objArr5);
|
||
|
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
|
||
|
xzZ.y.put(-1143917229, obj2);
|
||
|
}
|
||
|
((Method) obj2).invoke(null, objArr4);
|
||
|
} catch (Throwable th) {
|
||
|
Throwable cause = th.getCause();
|
||
|
if (cause == null) {
|
||
|
throw th;
|
||
|
}
|
||
|
throw cause;
|
||
|
}
|
||
|
} else {
|
||
|
int i5 = c4593bdB.e;
|
||
|
Object[] objArr6 = {Integer.valueOf(cArr[c4593bdB.e]), c4593bdB, c4593bdB};
|
||
|
Object obj3 = xzZ.y.get(-1229953068);
|
||
|
if (obj3 == null) {
|
||
|
Class cls3 = (Class) xzZ.c((ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 401, 5 - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24), (char) (21608 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))));
|
||
|
byte b5 = (byte) 0;
|
||
|
byte b6 = b5;
|
||
|
Object[] objArr7 = new Object[1];
|
||
|
f(b5, b6, b6, objArr7);
|
||
|
obj3 = cls3.getMethod((String) objArr7[0], Integer.TYPE, Object.class, Object.class);
|
||
|
xzZ.y.put(-1229953068, obj3);
|
||
|
}
|
||
|
jArr[i5] = ((Long) ((Method) obj3).invoke(null, objArr6)).longValue() ^ (c ^ (-6958928035870403642L));
|
||
|
Object[] objArr8 = {c4593bdB, c4593bdB};
|
||
|
Object obj4 = xzZ.y.get(-1143917229);
|
||
|
if (obj4 == null) {
|
||
|
Class cls4 = (Class) xzZ.c(239 - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)), 4 - Process.getGidForName(""), (char) ((-1) - TextUtils.lastIndexOf("", '0', 0, 0)));
|
||
|
byte b7 = (byte) 1;
|
||
|
byte b8 = (byte) (b7 - 1);
|
||
|
Object[] objArr9 = new Object[1];
|
||
|
f(b7, b8, b8, objArr9);
|
||
|
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class);
|
||
|
xzZ.y.put(-1143917229, obj4);
|
||
|
}
|
||
|
((Method) obj4).invoke(null, objArr8);
|
||
|
}
|
||
|
}
|
||
|
char[] cArr2 = new char[length];
|
||
|
c4593bdB.e = 0;
|
||
|
while (c4593bdB.e < cArr.length) {
|
||
|
int i6 = $10 + 85;
|
||
|
$11 = i6 % 128;
|
||
|
int i7 = i6 % 2;
|
||
|
cArr2[c4593bdB.e] = (char) jArr[c4593bdB.e];
|
||
|
Object[] objArr10 = {c4593bdB, c4593bdB};
|
||
|
Object obj5 = xzZ.y.get(-1143917229);
|
||
|
if (obj5 == null) {
|
||
|
Class cls5 = (Class) xzZ.c(238 - KeyEvent.normalizeMetaState(0), TextUtils.indexOf("", "", 0) + 5, (char) TextUtils.indexOf("", ""));
|
||
|
byte b9 = (byte) 1;
|
||
|
byte b10 = (byte) (b9 - 1);
|
||
|
Object[] objArr11 = new Object[1];
|
||
|
f(b9, b10, b10, objArr11);
|
||
|
obj5 = cls5.getMethod((String) objArr11[0], Object.class, Object.class);
|
||
|
xzZ.y.put(-1143917229, obj5);
|
||
|
}
|
||
|
((Method) obj5).invoke(null, objArr10);
|
||
|
int i8 = $10 + 13;
|
||
|
$11 = i8 % 128;
|
||
|
if (i8 % 2 == 0) {
|
||
|
int i9 = 3 % 4;
|
||
|
}
|
||
|
}
|
||
|
objArr[0] = new String(cArr2);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* loaded from: classes2.dex */
|
||
|
public static final class zza {
|
||
|
private final FirelogAnalyticsEvent zza;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public zza(FirelogAnalyticsEvent firelogAnalyticsEvent) {
|
||
|
this.zza = (FirelogAnalyticsEvent) Preconditions.checkNotNull(firelogAnalyticsEvent);
|
||
|
}
|
||
|
|
||
|
final FirelogAnalyticsEvent zza() {
|
||
|
return this.zza;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
final String zzb() {
|
||
|
return this.zza;
|
||
|
}
|
||
|
|
||
|
final Intent zza() {
|
||
|
return this.zzb;
|
||
|
}
|
||
|
}
|