1004 lines
24 KiB
Smali
1004 lines
24 KiB
Smali
.class public Lcom/google/firebase/messaging/FirebaseMessagingService;
|
|
.super Lf/h/c/r/k;
|
|
.source "com.google.firebase:firebase-messaging@@20.2.0"
|
|
|
|
|
|
# static fields
|
|
.field public static final zza:Ljava/util/Queue;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Queue<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
new-instance v0, Ljava/util/ArrayDeque;
|
|
|
|
const/16 v1, 0xa
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/ArrayDeque;-><init>(I)V
|
|
|
|
sput-object v0, Lcom/google/firebase/messaging/FirebaseMessagingService;->zza:Ljava/util/Queue;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lf/h/c/r/k;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onDeletedMessages()V
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/WorkerThread;
|
|
.end annotation
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onMessageReceived(Lcom/google/firebase/messaging/RemoteMessage;)V
|
|
.locals 0
|
|
.param p1 # Lcom/google/firebase/messaging/RemoteMessage;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/WorkerThread;
|
|
.end annotation
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onMessageSent(Ljava/lang/String;)V
|
|
.locals 0
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/WorkerThread;
|
|
.end annotation
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onNewToken(Ljava/lang/String;)V
|
|
.locals 0
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/WorkerThread;
|
|
.end annotation
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onSendError(Ljava/lang/String;Ljava/lang/Exception;)V
|
|
.locals 0
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Ljava/lang/Exception;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/WorkerThread;
|
|
.end annotation
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final zza(Landroid/content/Intent;)Landroid/content/Intent;
|
|
.locals 0
|
|
|
|
invoke-static {}, Lf/h/c/n/w;->a()Lf/h/c/n/w;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object p1, p1, Lf/h/c/n/w;->d:Ljava/util/Queue;
|
|
|
|
invoke-interface {p1}, Ljava/util/Queue;->poll()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/content/Intent;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final zzb(Landroid/content/Intent;)Z
|
|
.locals 6
|
|
|
|
invoke-virtual {p1}, Landroid/content/Intent;->getAction()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "com.google.firebase.messaging.NOTIFICATION_OPEN"
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
const-string v0, "pending_intent"
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/app/PendingIntent;
|
|
|
|
const-string v1, "FirebaseMessaging"
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
:try_start_0
|
|
invoke-virtual {v0}, Landroid/app/PendingIntent;->send()V
|
|
:try_end_0
|
|
.catch Landroid/app/PendingIntent$CanceledException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
const-string v0, "Notification pending intent canceled"
|
|
|
|
invoke-static {v1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_0
|
|
:goto_0
|
|
invoke-static {p1}, Lf/h/c/r/t;->c(Landroid/content/Intent;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
const-string v0, "google.c.a.tc"
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v2, "1"
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v2, 0x3
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
invoke-static {}, Lf/h/c/c;->b()Lf/h/c/c;
|
|
|
|
move-result-object v0
|
|
|
|
const-class v3, Lf/h/c/f/a/a;
|
|
|
|
invoke-virtual {v0}, Lf/h/c/c;->a()V
|
|
|
|
iget-object v0, v0, Lf/h/c/c;->d:Lf/h/c/g/m;
|
|
|
|
invoke-virtual {v0, v3}, Lf/h/c/g/a;->a(Ljava/lang/Class;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lf/h/c/f/a/a;
|
|
|
|
invoke-static {v1, v2}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
const-string v2, "Received event with track-conversion=true. Setting user property and reengagement event"
|
|
|
|
invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_1
|
|
if-eqz v0, :cond_2
|
|
|
|
const-string v1, "google.c.a.c_id"
|
|
|
|
invoke-virtual {p1, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "fcm"
|
|
|
|
const-string v3, "_ln"
|
|
|
|
invoke-interface {v0, v2, v3, v1}, Lf/h/c/f/a/a;->f(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V
|
|
|
|
new-instance v3, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v3}, Landroid/os/Bundle;-><init>()V
|
|
|
|
const-string v4, "source"
|
|
|
|
const-string v5, "Firebase"
|
|
|
|
invoke-virtual {v3, v4, v5}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
const-string v4, "medium"
|
|
|
|
const-string v5, "notification"
|
|
|
|
invoke-virtual {v3, v4, v5}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
const-string v4, "campaign"
|
|
|
|
invoke-virtual {v3, v4, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
const-string v1, "_cmp"
|
|
|
|
invoke-interface {v0, v2, v1, v3}, Lf/h/c/f/a/a;->c(Ljava/lang/String;Ljava/lang/String;Landroid/os/Bundle;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const-string v0, "Unable to set user property for conversion tracking: analytics library is missing"
|
|
|
|
invoke-static {v1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
invoke-static {v1, v2}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
const-string v0, "Received event with track-conversion=false. Do not set user property"
|
|
|
|
invoke-static {v1, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_4
|
|
:goto_1
|
|
const-string v0, "_no"
|
|
|
|
invoke-static {v0, p1}, Lf/h/c/r/t;->b(Ljava/lang/String;Landroid/content/Intent;)V
|
|
|
|
:cond_5
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
:cond_6
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final zzc(Landroid/content/Intent;)V
|
|
.locals 9
|
|
|
|
invoke-virtual {p1}, Landroid/content/Intent;->getAction()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "com.google.android.c2dm.intent.RECEIVE"
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_5
|
|
|
|
const-string v1, "com.google.firebase.messaging.RECEIVE_DIRECT_BOOT"
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const-string v1, "com.google.firebase.messaging.NOTIFICATION_DISMISS"
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-static {p1}, Lf/h/c/r/t;->c(Landroid/content/Intent;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
const-string v0, "_nd"
|
|
|
|
invoke-static {v0, p1}, Lf/h/c/r/t;->b(Ljava/lang/String;Landroid/content/Intent;)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
const-string v1, "com.google.firebase.messaging.NEW_TOKEN"
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
const-string v0, "token"
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/firebase/messaging/FirebaseMessagingService;->onNewToken(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
const-string v0, "FirebaseMessaging"
|
|
|
|
const-string v1, "Unknown intent action: "
|
|
|
|
invoke-virtual {p1}, Landroid/content/Intent;->getAction()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
new-instance p1, Ljava/lang/String;
|
|
|
|
invoke-direct {p1, v1}, Ljava/lang/String;-><init>(Ljava/lang/String;)V
|
|
|
|
:goto_0
|
|
invoke-static {v0, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_4
|
|
return-void
|
|
|
|
:cond_5
|
|
:goto_1
|
|
const-string v0, "google.message_id"
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
invoke-static {v2}, Lf/h/a/b/i1/e;->h0(Ljava/lang/Object;)Lcom/google/android/gms/tasks/Task;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_6
|
|
new-instance v1, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v1}, Landroid/os/Bundle;-><init>()V
|
|
|
|
const-string v3, "google.message_id"
|
|
|
|
invoke-virtual {v1, v3, v0}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
invoke-static {p0}, Lf/h/c/n/d;->b(Landroid/content/Context;)Lf/h/c/n/d;
|
|
|
|
move-result-object v3
|
|
|
|
new-instance v4, Lf/h/c/n/m;
|
|
|
|
monitor-enter v3
|
|
|
|
:try_start_0
|
|
iget v5, v3, Lf/h/c/n/d;->d:I
|
|
|
|
add-int/lit8 v6, v5, 0x1
|
|
|
|
iput v6, v3, Lf/h/c/n/d;->d:I
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
monitor-exit v3
|
|
|
|
invoke-direct {v4, v5, v1}, Lf/h/c/n/m;-><init>(ILandroid/os/Bundle;)V
|
|
|
|
invoke-virtual {v3, v4}, Lf/h/c/n/d;->a(Lf/h/c/n/o;)Lcom/google/android/gms/tasks/Task;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_2
|
|
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v3
|
|
|
|
const/4 v4, 0x3
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x1
|
|
|
|
if-eqz v3, :cond_7
|
|
|
|
goto :goto_4
|
|
|
|
:cond_7
|
|
sget-object v3, Lcom/google/firebase/messaging/FirebaseMessagingService;->zza:Ljava/util/Queue;
|
|
|
|
invoke-interface {v3, v0}, Ljava/util/Queue;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_a
|
|
|
|
const-string v3, "FirebaseMessaging"
|
|
|
|
invoke-static {v3, v4}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_9
|
|
|
|
const-string v3, "FirebaseMessaging"
|
|
|
|
const-string v7, "Received duplicate message: "
|
|
|
|
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v8
|
|
|
|
if-eqz v8, :cond_8
|
|
|
|
invoke-virtual {v7, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_8
|
|
new-instance v0, Ljava/lang/String;
|
|
|
|
invoke-direct {v0, v7}, Ljava/lang/String;-><init>(Ljava/lang/String;)V
|
|
|
|
:goto_3
|
|
invoke-static {v3, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_9
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_5
|
|
|
|
:cond_a
|
|
sget-object v3, Lcom/google/firebase/messaging/FirebaseMessagingService;->zza:Ljava/util/Queue;
|
|
|
|
invoke-interface {v3}, Ljava/util/Queue;->size()I
|
|
|
|
move-result v3
|
|
|
|
const/16 v7, 0xa
|
|
|
|
if-lt v3, v7, :cond_b
|
|
|
|
sget-object v3, Lcom/google/firebase/messaging/FirebaseMessagingService;->zza:Ljava/util/Queue;
|
|
|
|
invoke-interface {v3}, Ljava/util/Queue;->remove()Ljava/lang/Object;
|
|
|
|
:cond_b
|
|
sget-object v3, Lcom/google/firebase/messaging/FirebaseMessagingService;->zza:Ljava/util/Queue;
|
|
|
|
invoke-interface {v3, v0}, Ljava/util/Queue;->add(Ljava/lang/Object;)Z
|
|
|
|
:goto_4
|
|
const/4 v0, 0x0
|
|
|
|
:goto_5
|
|
if-nez v0, :cond_1d
|
|
|
|
const-string v0, "message_type"
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_c
|
|
|
|
const-string v0, "gcm"
|
|
|
|
:cond_c
|
|
const/4 v3, -0x1
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v7
|
|
|
|
const/4 v8, 0x2
|
|
|
|
sparse-switch v7, :sswitch_data_0
|
|
|
|
goto :goto_6
|
|
|
|
:sswitch_0
|
|
const-string v7, "send_event"
|
|
|
|
invoke-virtual {v0, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_d
|
|
|
|
const/4 v3, 0x2
|
|
|
|
goto :goto_6
|
|
|
|
:sswitch_1
|
|
const-string v7, "send_error"
|
|
|
|
invoke-virtual {v0, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_d
|
|
|
|
const/4 v3, 0x3
|
|
|
|
goto :goto_6
|
|
|
|
:sswitch_2
|
|
const-string v7, "gcm"
|
|
|
|
invoke-virtual {v0, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_d
|
|
|
|
const/4 v3, 0x0
|
|
|
|
goto :goto_6
|
|
|
|
:sswitch_3
|
|
const-string v7, "deleted_messages"
|
|
|
|
invoke-virtual {v0, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_d
|
|
|
|
const/4 v3, 0x1
|
|
|
|
:cond_d
|
|
:goto_6
|
|
if-eqz v3, :cond_13
|
|
|
|
if-eq v3, v6, :cond_12
|
|
|
|
if-eq v3, v8, :cond_11
|
|
|
|
if-eq v3, v4, :cond_f
|
|
|
|
const-string p1, "FirebaseMessaging"
|
|
|
|
const-string v2, "Received message with unknown type: "
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_e
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_7
|
|
|
|
:cond_e
|
|
new-instance v0, Ljava/lang/String;
|
|
|
|
invoke-direct {v0, v2}, Ljava/lang/String;-><init>(Ljava/lang/String;)V
|
|
|
|
:goto_7
|
|
invoke-static {p1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
goto/16 :goto_b
|
|
|
|
:cond_f
|
|
const-string v0, "google.message_id"
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_10
|
|
|
|
const-string v0, "message_id"
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_10
|
|
new-instance v2, Lcom/google/firebase/messaging/SendException;
|
|
|
|
const-string v3, "error"
|
|
|
|
invoke-virtual {p1, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v2, p1}, Lcom/google/firebase/messaging/SendException;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, v0, v2}, Lcom/google/firebase/messaging/FirebaseMessagingService;->onSendError(Ljava/lang/String;Ljava/lang/Exception;)V
|
|
|
|
goto/16 :goto_b
|
|
|
|
:cond_11
|
|
const-string v0, "google.message_id"
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/firebase/messaging/FirebaseMessagingService;->onMessageSent(Ljava/lang/String;)V
|
|
|
|
goto/16 :goto_b
|
|
|
|
:cond_12
|
|
invoke-virtual {p0}, Lcom/google/firebase/messaging/FirebaseMessagingService;->onDeletedMessages()V
|
|
|
|
goto/16 :goto_b
|
|
|
|
:cond_13
|
|
invoke-static {p1}, Lf/h/c/r/t;->c(Landroid/content/Intent;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_14
|
|
|
|
invoke-static {p1, v2}, Lf/h/c/r/t;->a(Landroid/content/Intent;Lf/h/a/a/f;)V
|
|
|
|
:cond_14
|
|
invoke-virtual {p1}, Landroid/content/Intent;->getAction()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v2, "com.google.firebase.messaging.RECEIVE_DIRECT_BOOT"
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_15
|
|
|
|
goto :goto_8
|
|
|
|
:cond_15
|
|
const-string v0, "delivery_metrics_exported_to_big_query_enabled"
|
|
|
|
:try_start_1
|
|
invoke-static {}, Lf/h/c/c;->b()Lf/h/c/c;
|
|
:try_end_1
|
|
.catch Ljava/lang/IllegalStateException; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
invoke-static {}, Lf/h/c/c;->b()Lf/h/c/c;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Lf/h/c/c;->a()V
|
|
|
|
iget-object v2, v2, Lf/h/c/c;->a:Landroid/content/Context;
|
|
|
|
const-string v3, "com.google.firebase.messaging"
|
|
|
|
invoke-virtual {v2, v3, v5}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "export_to_big_query"
|
|
|
|
invoke-interface {v3, v4}, Landroid/content/SharedPreferences;->contains(Ljava/lang/String;)Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_16
|
|
|
|
invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
|
|
|
|
move-result v5
|
|
|
|
goto :goto_8
|
|
|
|
:cond_16
|
|
:try_start_2
|
|
invoke-virtual {v2}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
move-result-object v3
|
|
|
|
if-eqz v3, :cond_17
|
|
|
|
invoke-virtual {v2}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
const/16 v4, 0x80
|
|
|
|
invoke-virtual {v3, v2, v4}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_17
|
|
|
|
iget-object v3, v2, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
|
|
|
|
if-eqz v3, :cond_17
|
|
|
|
iget-object v3, v2, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
|
|
|
|
invoke-virtual {v3, v0}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_17
|
|
|
|
iget-object v2, v2, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
|
|
|
|
invoke-virtual {v2, v0, v5}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
|
|
|
|
move-result v5
|
|
:try_end_2
|
|
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_2 .. :try_end_2} :catch_0
|
|
|
|
goto :goto_8
|
|
|
|
:catch_0
|
|
nop
|
|
|
|
goto :goto_8
|
|
|
|
:catch_1
|
|
const-string v0, "FirebaseMessaging"
|
|
|
|
const-string v2, "FirebaseApp has not being initialized. Device might be in direct boot mode. Skip exporting delivery metrics to Big Query"
|
|
|
|
invoke-static {v0, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_17
|
|
:goto_8
|
|
if-eqz v5, :cond_19
|
|
|
|
sget-object v0, Lcom/google/firebase/messaging/FirebaseMessaging;->d:Lf/h/a/a/g;
|
|
|
|
if-eqz v0, :cond_18
|
|
|
|
const-string v2, "FCM_CLIENT_EVENT_LOGGING"
|
|
|
|
const-class v3, Ljava/lang/String;
|
|
|
|
const-string v4, "json"
|
|
|
|
new-instance v5, Lf/h/a/a/b;
|
|
|
|
invoke-direct {v5, v4}, Lf/h/a/a/b;-><init>(Ljava/lang/String;)V
|
|
|
|
sget-object v4, Lf/h/c/r/r;->a:Lf/h/a/a/e;
|
|
|
|
invoke-interface {v0, v2, v3, v5, v4}, Lf/h/a/a/g;->a(Ljava/lang/String;Ljava/lang/Class;Lf/h/a/a/b;Lf/h/a/a/e;)Lf/h/a/a/f;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {p1, v0}, Lf/h/c/r/t;->a(Landroid/content/Intent;Lf/h/a/a/f;)V
|
|
|
|
goto :goto_9
|
|
|
|
:cond_18
|
|
const-string v0, "FirebaseMessaging"
|
|
|
|
const-string v2, "TransportFactory is null. Skip exporting message delivery metrics to Big Query"
|
|
|
|
invoke-static {v0, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_19
|
|
:goto_9
|
|
invoke-virtual {p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_1a
|
|
|
|
new-instance v0, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
|
|
|
|
:cond_1a
|
|
const-string v2, "androidx.contentpager.content.wakelockid"
|
|
|
|
invoke-virtual {v0, v2}, Landroid/os/Bundle;->remove(Ljava/lang/String;)V
|
|
|
|
invoke-static {v0}, Lf/h/c/r/v;->c(Landroid/os/Bundle;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1c
|
|
|
|
new-instance v2, Lf/h/c/r/v;
|
|
|
|
invoke-direct {v2, v0}, Lf/h/c/r/v;-><init>(Landroid/os/Bundle;)V
|
|
|
|
new-instance v3, Lf/h/a/d/e/n/i/a;
|
|
|
|
const-string v4, "Firebase-Messaging-Network-Io"
|
|
|
|
invoke-direct {v3, v4}, Lf/h/a/d/e/n/i/a;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-static {v3}, Ljava/util/concurrent/Executors;->newSingleThreadExecutor(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;
|
|
|
|
move-result-object v3
|
|
|
|
new-instance v4, Lf/h/c/r/h;
|
|
|
|
invoke-direct {v4, p0, v2, v3}, Lf/h/c/r/h;-><init>(Landroid/content/Context;Lf/h/c/r/v;Ljava/util/concurrent/Executor;)V
|
|
|
|
:try_start_3
|
|
invoke-virtual {v4}, Lf/h/c/r/h;->a()Z
|
|
|
|
move-result v2
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
if-eqz v2, :cond_1b
|
|
|
|
invoke-interface {v3}, Ljava/util/concurrent/ExecutorService;->shutdown()V
|
|
|
|
goto :goto_b
|
|
|
|
:cond_1b
|
|
invoke-interface {v3}, Ljava/util/concurrent/ExecutorService;->shutdown()V
|
|
|
|
invoke-static {p1}, Lf/h/c/r/t;->c(Landroid/content/Intent;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1c
|
|
|
|
const-string v2, "_nf"
|
|
|
|
invoke-static {v2, p1}, Lf/h/c/r/t;->b(Ljava/lang/String;Landroid/content/Intent;)V
|
|
|
|
goto :goto_a
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
invoke-interface {v3}, Ljava/util/concurrent/ExecutorService;->shutdown()V
|
|
|
|
throw p1
|
|
|
|
:cond_1c
|
|
:goto_a
|
|
new-instance p1, Lcom/google/firebase/messaging/RemoteMessage;
|
|
|
|
invoke-direct {p1, v0}, Lcom/google/firebase/messaging/RemoteMessage;-><init>(Landroid/os/Bundle;)V
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/firebase/messaging/FirebaseMessagingService;->onMessageReceived(Lcom/google/firebase/messaging/RemoteMessage;)V
|
|
|
|
:cond_1d
|
|
:goto_b
|
|
:try_start_4
|
|
sget-object p1, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
const-wide/16 v2, 0x1
|
|
|
|
invoke-virtual {p1, v2, v3}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J
|
|
|
|
move-result-wide v2
|
|
|
|
sget-object p1, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-static {v1, v2, v3, p1}, Lf/h/a/b/i1/e;->d(Lcom/google/android/gms/tasks/Task;JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
|
|
:try_end_4
|
|
.catch Ljava/util/concurrent/ExecutionException; {:try_start_4 .. :try_end_4} :catch_4
|
|
.catch Ljava/lang/InterruptedException; {:try_start_4 .. :try_end_4} :catch_3
|
|
.catch Ljava/util/concurrent/TimeoutException; {:try_start_4 .. :try_end_4} :catch_2
|
|
|
|
return-void
|
|
|
|
:catch_2
|
|
move-exception p1
|
|
|
|
goto :goto_c
|
|
|
|
:catch_3
|
|
move-exception p1
|
|
|
|
goto :goto_c
|
|
|
|
:catch_4
|
|
move-exception p1
|
|
|
|
:goto_c
|
|
const-string v0, "FirebaseMessaging"
|
|
|
|
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v1
|
|
|
|
add-int/lit8 v1, v1, 0x14
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2, v1}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
const-string v1, "Message ack failed: "
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {v0, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
return-void
|
|
|
|
:catchall_1
|
|
move-exception p1
|
|
|
|
monitor-exit v3
|
|
|
|
throw p1
|
|
|
|
nop
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
-0x7aedf14e -> :sswitch_3
|
|
0x18f11 -> :sswitch_2
|
|
0x308f3e91 -> :sswitch_1
|
|
0x3090df23 -> :sswitch_0
|
|
.end sparse-switch
|
|
.end method
|