- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
190 lines
6.0 KiB
Java
190 lines
6.0 KiB
Java
package com.google.android.gms.cloudmessaging;
|
|
|
|
import android.content.Intent;
|
|
import android.os.Bundle;
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import android.util.Log;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.collection.ArrayMap;
|
|
import com.ea.eadp.pushnotification.forwarding.FCMMessageService;
|
|
import com.google.android.gms.common.annotation.KeepForSdk;
|
|
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
|
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
|
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
|
|
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
import java.util.Map;
|
|
import java.util.Objects;
|
|
|
|
@SafeParcelable.Class(creator = "CloudMessageCreator")
|
|
/* loaded from: classes2.dex */
|
|
public final class CloudMessage extends AbstractSafeParcelable {
|
|
|
|
@NonNull
|
|
public static final Parcelable.Creator<CloudMessage> CREATOR = new zza();
|
|
public static final int PRIORITY_HIGH = 1;
|
|
public static final int PRIORITY_NORMAL = 2;
|
|
public static final int PRIORITY_UNKNOWN = 0;
|
|
|
|
@NonNull
|
|
@SafeParcelable.Field(id = 1)
|
|
final Intent zza;
|
|
private Map zzb;
|
|
|
|
@Target({ElementType.TYPE_PARAMETER, ElementType.TYPE_USE})
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface MessagePriority {
|
|
}
|
|
|
|
@SafeParcelable.Constructor
|
|
@KeepForSdk
|
|
public CloudMessage(@NonNull @SafeParcelable.Param(id = 1) Intent intent) {
|
|
this.zza = intent;
|
|
}
|
|
|
|
private static int zzb(@Nullable String str) {
|
|
if (Objects.equals(str, "high")) {
|
|
return 1;
|
|
}
|
|
return Objects.equals(str, "normal") ? 2 : 0;
|
|
}
|
|
|
|
@Nullable
|
|
public String getCollapseKey() {
|
|
return this.zza.getStringExtra(FCMMessageService.PushIntentExtraKeys.COLLAPSE_KEY);
|
|
}
|
|
|
|
@NonNull
|
|
public synchronized Map<String, String> getData() {
|
|
try {
|
|
if (this.zzb == null) {
|
|
Bundle extras = this.zza.getExtras();
|
|
ArrayMap arrayMap = new ArrayMap();
|
|
if (extras != null) {
|
|
for (String str : extras.keySet()) {
|
|
Object obj = extras.get(str);
|
|
if (obj instanceof String) {
|
|
String str2 = (String) obj;
|
|
if (!str.startsWith("google.") && !str.equals("from") && !str.equals("message_type") && !str.equals(FCMMessageService.PushIntentExtraKeys.COLLAPSE_KEY)) {
|
|
arrayMap.put(str, str2);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.zzb = arrayMap;
|
|
}
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
return this.zzb;
|
|
}
|
|
|
|
@Nullable
|
|
public String getFrom() {
|
|
return this.zza.getStringExtra("from");
|
|
}
|
|
|
|
@NonNull
|
|
public Intent getIntent() {
|
|
return this.zza;
|
|
}
|
|
|
|
@Nullable
|
|
public String getMessageId() {
|
|
String stringExtra = this.zza.getStringExtra("google.message_id");
|
|
return stringExtra == null ? this.zza.getStringExtra("message_id") : stringExtra;
|
|
}
|
|
|
|
@Nullable
|
|
public String getMessageType() {
|
|
return this.zza.getStringExtra("message_type");
|
|
}
|
|
|
|
public int getOriginalPriority() {
|
|
String stringExtra = this.zza.getStringExtra("google.original_priority");
|
|
if (stringExtra == null) {
|
|
stringExtra = this.zza.getStringExtra("google.priority");
|
|
}
|
|
return zzb(stringExtra);
|
|
}
|
|
|
|
public int getPriority() {
|
|
String stringExtra = this.zza.getStringExtra("google.delivered_priority");
|
|
if (stringExtra == null) {
|
|
if (Objects.equals(this.zza.getStringExtra("google.priority_reduced"), "1")) {
|
|
return 2;
|
|
}
|
|
stringExtra = this.zza.getStringExtra("google.priority");
|
|
}
|
|
return zzb(stringExtra);
|
|
}
|
|
|
|
@Nullable
|
|
public byte[] getRawData() {
|
|
return this.zza.getByteArrayExtra("rawData");
|
|
}
|
|
|
|
@Nullable
|
|
public String getSenderId() {
|
|
return this.zza.getStringExtra("google.c.sender.id");
|
|
}
|
|
|
|
public long getSentTime() {
|
|
Bundle extras = this.zza.getExtras();
|
|
Object obj = extras != null ? extras.get("google.sent_time") : null;
|
|
if (obj instanceof Long) {
|
|
return ((Long) obj).longValue();
|
|
}
|
|
if (!(obj instanceof String)) {
|
|
return 0L;
|
|
}
|
|
try {
|
|
return Long.parseLong((String) obj);
|
|
} catch (NumberFormatException unused) {
|
|
Log.w("CloudMessage", "Invalid sent time: ".concat(String.valueOf(obj)));
|
|
return 0L;
|
|
}
|
|
}
|
|
|
|
@Nullable
|
|
public String getTo() {
|
|
return this.zza.getStringExtra("google.to");
|
|
}
|
|
|
|
public int getTtl() {
|
|
Bundle extras = this.zza.getExtras();
|
|
Object obj = extras != null ? extras.get("google.ttl") : null;
|
|
if (obj instanceof Integer) {
|
|
return ((Integer) obj).intValue();
|
|
}
|
|
if (!(obj instanceof String)) {
|
|
return 0;
|
|
}
|
|
try {
|
|
return Integer.parseInt((String) obj);
|
|
} catch (NumberFormatException unused) {
|
|
Log.w("CloudMessage", "Invalid TTL: ".concat(String.valueOf(obj)));
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public void writeToParcel(@NonNull Parcel parcel, int i) {
|
|
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
|
SafeParcelWriter.writeParcelable(parcel, 1, this.zza, i, false);
|
|
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
|
}
|
|
|
|
@Nullable
|
|
public final Integer zza() {
|
|
if (this.zza.hasExtra("google.product_id")) {
|
|
return Integer.valueOf(this.zza.getIntExtra("google.product_id", 0));
|
|
}
|
|
return null;
|
|
}
|
|
}
|