2019-07-24 11:27:29 +00:00
|
|
|
.class final Lcom/google/firebase/iid/p;
|
2019-10-07 23:23:22 +00:00
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "com.google.firebase:firebase-iid@@20.0.0"
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
2019-10-11 21:55:41 +00:00
|
|
|
.field private static aRy:Landroid/app/PendingIntent;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
.field private static zza:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-10-11 21:55:41 +00:00
|
|
|
.field private final aFp:Landroid/content/Context;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-10-11 21:55:41 +00:00
|
|
|
.field private final aRA:Lcom/google/firebase/iid/j;
|
|
|
|
|
|
|
|
.field private aRB:Landroid/os/Messenger;
|
|
|
|
|
|
|
|
.field private aRC:Landroid/os/Messenger;
|
|
|
|
|
|
|
|
.field private aRD:Lcom/google/firebase/iid/zzf;
|
|
|
|
|
|
|
|
.field private final aRz:Landroidx/collection/SimpleArrayMap;
|
2019-10-07 23:23:22 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Landroidx/collection/SimpleArrayMap<",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
"Lcom/google/android/gms/tasks/h<",
|
|
|
|
"Landroid/os/Bundle;",
|
|
|
|
">;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
# direct methods
|
2019-10-07 23:23:22 +00:00
|
|
|
.method static constructor <clinit>()V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Lcom/google/firebase/iid/j;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
new-instance v0, Landroidx/collection/SimpleArrayMap;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Landroidx/collection/SimpleArrayMap;-><init>()V
|
|
|
|
|
2019-10-11 21:55:41 +00:00
|
|
|
iput-object v0, p0, Lcom/google/firebase/iid/p;->aRz:Landroidx/collection/SimpleArrayMap;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-11 21:55:41 +00:00
|
|
|
iput-object p1, p0, Lcom/google/firebase/iid/p;->aFp:Landroid/content/Context;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-10-11 21:55:41 +00:00
|
|
|
iput-object p2, p0, Lcom/google/firebase/iid/p;->aRA:Lcom/google/firebase/iid/j;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
new-instance p1, Landroid/os/Messenger;
|
|
|
|
|
|
|
|
new-instance p2, Lcom/google/firebase/iid/t;
|
|
|
|
|
|
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {p2, p0, v0}, Lcom/google/firebase/iid/t;-><init>(Lcom/google/firebase/iid/p;Landroid/os/Looper;)V
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Landroid/os/Messenger;-><init>(Landroid/os/Handler;)V
|
|
|
|
|
2019-10-11 21:55:41 +00:00
|
|
|
iput-object p1, p0, Lcom/google/firebase/iid/p;->aRB:Landroid/os/Messenger;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
.method static synthetic a(Lcom/google/firebase/iid/p;Landroid/os/Message;)V
|
|
|
|
.locals 7
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
if-eqz p1, :cond_13
|
|
|
|
|
|
|
|
iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
|
|
|
|
|
|
|
|
instance-of v0, v0, Landroid/content/Intent;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_13
|
|
|
|
|
|
|
|
iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
|
|
|
|
|
|
|
|
check-cast v0, Landroid/content/Intent;
|
|
|
|
|
|
|
|
new-instance v1, Lcom/google/firebase/iid/zzf$a;
|
|
|
|
|
|
|
|
invoke-direct {v1}, Lcom/google/firebase/iid/zzf$a;-><init>()V
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->setExtrasClassLoader(Ljava/lang/ClassLoader;)V
|
|
|
|
|
|
|
|
const-string v1, "google.messenger"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
const-string v1, "google.messenger"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
instance-of v1, v0, Lcom/google/firebase/iid/zzf;
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
move-object v1, v0
|
|
|
|
|
|
|
|
check-cast v1, Lcom/google/firebase/iid/zzf;
|
|
|
|
|
2019-10-11 21:55:41 +00:00
|
|
|
iput-object v1, p0, Lcom/google/firebase/iid/p;->aRD:Lcom/google/firebase/iid/zzf;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
instance-of v1, v0, Landroid/os/Messenger;
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
check-cast v0, Landroid/os/Messenger;
|
|
|
|
|
2019-10-11 21:55:41 +00:00
|
|
|
iput-object v0, p0, Lcom/google/firebase/iid/p;->aRC:Landroid/os/Messenger;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
:cond_1
|
|
|
|
iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
|
|
|
|
|
|
|
|
check-cast p1, Landroid/content/Intent;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/content/Intent;->getAction()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "com.google.android.c2dm.intent.REGISTRATION"
|
|
|
|
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
const/4 v2, 0x3
|
|
|
|
|
|
|
|
if-nez v1, :cond_4
|
|
|
|
|
|
|
|
const-string p0, "FirebaseInstanceId"
|
|
|
|
|
|
|
|
invoke-static {p0, v2}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
if-eqz p0, :cond_3
|
|
|
|
|
|
|
|
const-string p0, "Unexpected response action: "
|
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
new-instance p1, Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/String;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
move-object p0, p1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
const-string p1, "FirebaseInstanceId"
|
|
|
|
|
|
|
|
invoke-static {p1, p0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
const-string v0, "registration_id"
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_5
|
|
|
|
|
|
|
|
const-string v0, "unregistered"
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
const/4 v1, 0x2
|
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
if-nez v0, :cond_f
|
|
|
|
|
|
|
|
const-string v0, "error"
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_6
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
add-int/lit8 p1, p1, 0x31
|
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
|
|
|
|
const-string p1, "Unexpected response, no error or registration id "
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
const-string p1, "FirebaseInstanceId"
|
|
|
|
|
|
|
|
invoke-static {p1, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
const-string v4, "FirebaseInstanceId"
|
|
|
|
|
|
|
|
invoke-static {v4, v2}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
if-eqz v4, :cond_8
|
|
|
|
|
|
|
|
const-string v4, "Received InstanceID error "
|
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
invoke-virtual {v5}, Ljava/lang/String;->length()I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
if-eqz v6, :cond_7
|
|
|
|
|
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
new-instance v5, Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-direct {v5, v4}, Ljava/lang/String;-><init>(Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
move-object v4, v5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
:goto_1
|
|
|
|
const-string v5, "FirebaseInstanceId"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-static {v5, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
const-string v4, "|"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
if-eqz v4, :cond_d
|
|
|
|
|
|
|
|
const-string v4, "\\|"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v4}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
array-length v5, v4
|
|
|
|
|
|
|
|
if-le v5, v1, :cond_b
|
|
|
|
|
|
|
|
aget-object v5, v4, v3
|
|
|
|
|
|
|
|
const-string v6, "ID"
|
|
|
|
|
|
|
|
invoke-virtual {v6, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
if-nez v5, :cond_9
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
aget-object v0, v4, v1
|
|
|
|
|
|
|
|
aget-object v1, v4, v2
|
|
|
|
|
|
|
|
const-string v2, ":"
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_a
|
|
|
|
|
|
|
|
invoke-virtual {v1, v3}, Ljava/lang/String;->substring(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
const-string v2, "error"
|
|
|
|
|
|
|
|
invoke-virtual {p1, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-direct {p0, v0, p1}, Lcom/google/firebase/iid/p;->d(Ljava/lang/String;Landroid/os/Bundle;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_b
|
|
|
|
:goto_2
|
|
|
|
const-string p0, "Unexpected structured response "
|
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_c
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_c
|
|
|
|
new-instance p1, Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/String;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
move-object p0, p1
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
const-string p1, "FirebaseInstanceId"
|
|
|
|
|
|
|
|
invoke-static {p1, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_d
|
2019-10-11 21:55:41 +00:00
|
|
|
iget-object v4, p0, Lcom/google/firebase/iid/p;->aRz:Landroidx/collection/SimpleArrayMap;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
monitor-enter v4
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
:try_start_0
|
2019-10-11 21:55:41 +00:00
|
|
|
iget-object v1, p0, Lcom/google/firebase/iid/p;->aRz:Landroidx/collection/SimpleArrayMap;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroidx/collection/SimpleArrayMap;->size()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-ge v0, v1, :cond_e
|
|
|
|
|
2019-10-11 21:55:41 +00:00
|
|
|
iget-object v1, p0, Lcom/google/firebase/iid/p;->aRz:Landroidx/collection/SimpleArrayMap;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1, v0}, Landroidx/collection/SimpleArrayMap;->keyAt(I)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-direct {p0, v1, v2}, Lcom/google/firebase/iid/p;->d(Ljava/lang/String;Landroid/os/Bundle;)V
|
|
|
|
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_e
|
|
|
|
monitor-exit v4
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p0
|
|
|
|
|
|
|
|
monitor-exit v4
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
|
|
|
|
:cond_f
|
|
|
|
const-string v4, "\\|ID\\|([^|]+)\\|:?+(.*)"
|
|
|
|
|
|
|
|
invoke-static {v4}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {v4, v0}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Ljava/util/regex/Matcher;->matches()Z
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
if-nez v5, :cond_12
|
|
|
|
|
|
|
|
const-string p0, "FirebaseInstanceId"
|
|
|
|
|
|
|
|
invoke-static {p0, v2}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
if-eqz p0, :cond_11
|
|
|
|
|
|
|
|
const-string p0, "Unexpected response string: "
|
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_10
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
|
|
|
:cond_10
|
|
|
|
new-instance p1, Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/String;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
move-object p0, p1
|
|
|
|
|
|
|
|
:goto_5
|
|
|
|
const-string p1, "FirebaseInstanceId"
|
|
|
|
|
|
|
|
invoke-static {p1, p0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
:cond_11
|
2019-07-24 11:27:29 +00:00
|
|
|
return-void
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
:cond_12
|
|
|
|
invoke-virtual {v4, v3}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v4, v1}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string v2, "registration_id"
|
|
|
|
|
|
|
|
invoke-virtual {p1, v2, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-direct {p0, v0, p1}, Lcom/google/firebase/iid/p;->d(Ljava/lang/String;Landroid/os/Bundle;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_13
|
|
|
|
const-string p0, "FirebaseInstanceId"
|
|
|
|
|
|
|
|
const-string p1, "Dropping invalid message"
|
|
|
|
|
|
|
|
invoke-static {p0, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private static declared-synchronized b(Landroid/content/Context;Landroid/content/Intent;)V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
const-class v0, Lcom/google/firebase/iid/p;
|
|
|
|
|
|
|
|
monitor-enter v0
|
|
|
|
|
|
|
|
:try_start_0
|
2019-10-11 21:55:41 +00:00
|
|
|
sget-object v1, Lcom/google/firebase/iid/p;->aRy:Landroid/app/PendingIntent;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
|
|
|
|
new-instance v1, Landroid/content/Intent;
|
|
|
|
|
|
|
|
invoke-direct {v1}, Landroid/content/Intent;-><init>()V
|
|
|
|
|
|
|
|
const-string v2, "com.google.example.invalidpackage"
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
invoke-static {p0, v2, v1, v2}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
2019-10-11 21:55:41 +00:00
|
|
|
sput-object p0, Lcom/google/firebase/iid/p;->aRy:Landroid/app/PendingIntent;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p0, "app"
|
|
|
|
|
2019-10-11 21:55:41 +00:00
|
|
|
sget-object v1, Lcom/google/firebase/iid/p;->aRy:Landroid/app/PendingIntent;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, p0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
monitor-exit v0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p0
|
|
|
|
|
|
|
|
monitor-exit v0
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final d(Landroid/os/Bundle;)Landroid/os/Bundle;
|
|
|
|
.locals 3
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/google/firebase/iid/p;->e(Landroid/os/Bundle;)Landroid/os/Bundle;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const-string v1, "google.messenger"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/google/firebase/iid/p;->e(Landroid/os/Bundle;)Landroid/os/Bundle;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final d(Ljava/lang/String;Landroid/os/Bundle;)V
|
|
|
|
.locals 3
|
|
|
|
|
2019-10-11 21:55:41 +00:00
|
|
|
iget-object v0, p0, Lcom/google/firebase/iid/p;->aRz:Landroidx/collection/SimpleArrayMap;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
monitor-enter v0
|
|
|
|
|
|
|
|
:try_start_0
|
2019-10-11 21:55:41 +00:00
|
|
|
iget-object v1, p0, Lcom/google/firebase/iid/p;->aRz:Landroidx/collection/SimpleArrayMap;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1, p1}, Landroidx/collection/SimpleArrayMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lcom/google/android/gms/tasks/h;
|
|
|
|
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
|
|
|
|
const-string p2, "FirebaseInstanceId"
|
|
|
|
|
|
|
|
const-string v1, "Missing callback for "
|
|
|
|
|
|
|
|
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_0
|
|
|
|
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p1, Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-direct {p1, v1}, Ljava/lang/String;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-static {p2, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
monitor-exit v0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {v1, p2}, Lcom/google/android/gms/tasks/h;->c(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
monitor-exit v0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
monitor-exit v0
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final e(Landroid/os/Bundle;)Landroid/os/Bundle;
|
|
|
|
.locals 7
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-10-17 23:49:31 +00:00
|
|
|
invoke-static {}, Lcom/google/firebase/iid/p;->pL()Ljava/lang/String;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-instance v1, Lcom/google/android/gms/tasks/h;
|
|
|
|
|
|
|
|
invoke-direct {v1}, Lcom/google/android/gms/tasks/h;-><init>()V
|
|
|
|
|
2019-10-11 21:55:41 +00:00
|
|
|
iget-object v2, p0, Lcom/google/firebase/iid/p;->aRz:Landroidx/collection/SimpleArrayMap;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
monitor-enter v2
|
|
|
|
|
|
|
|
:try_start_0
|
2019-10-11 21:55:41 +00:00
|
|
|
iget-object v3, p0, Lcom/google/firebase/iid/p;->aRz:Landroidx/collection/SimpleArrayMap;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {v3, v0, v1}, Landroidx/collection/SimpleArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
monitor-exit v2
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_3
|
|
|
|
|
2019-10-11 21:55:41 +00:00
|
|
|
iget-object v2, p0, Lcom/google/firebase/iid/p;->aRA:Lcom/google/firebase/iid/j;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-10-17 23:49:31 +00:00
|
|
|
invoke-virtual {v2}, Lcom/google/firebase/iid/j;->pG()I
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_6
|
|
|
|
|
|
|
|
new-instance v2, Landroid/content/Intent;
|
|
|
|
|
|
|
|
invoke-direct {v2}, Landroid/content/Intent;-><init>()V
|
|
|
|
|
|
|
|
const-string v3, "com.google.android.gms"
|
|
|
|
|
|
|
|
invoke-virtual {v2, v3}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
|
2019-10-11 21:55:41 +00:00
|
|
|
iget-object v3, p0, Lcom/google/firebase/iid/p;->aRA:Lcom/google/firebase/iid/j;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-10-17 23:49:31 +00:00
|
|
|
invoke-virtual {v3}, Lcom/google/firebase/iid/j;->pG()I
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
const/4 v4, 0x2
|
|
|
|
|
|
|
|
if-ne v3, v4, :cond_0
|
|
|
|
|
|
|
|
const-string v3, "com.google.iid.TOKEN_REQUEST"
|
|
|
|
|
|
|
|
invoke-virtual {v2, v3}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string v3, "com.google.android.c2dm.intent.REGISTER"
|
|
|
|
|
|
|
|
invoke-virtual {v2, v3}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {v2, p1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;
|
|
|
|
|
2019-10-11 21:55:41 +00:00
|
|
|
iget-object p1, p0, Lcom/google/firebase/iid/p;->aFp:Landroid/content/Context;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
invoke-static {p1, v2}, Lcom/google/firebase/iid/p;->b(Landroid/content/Context;Landroid/content/Intent;)V
|
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
add-int/lit8 p1, p1, 0x5
|
|
|
|
|
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v3, p1}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
|
|
|
|
const-string p1, "|ID|"
|
|
|
|
|
|
|
|
invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string p1, "|"
|
|
|
|
|
|
|
|
invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string v3, "kid"
|
|
|
|
|
|
|
|
invoke-virtual {v2, v3, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
|
|
|
|
const/4 p1, 0x3
|
|
|
|
|
|
|
|
const-string v3, "FirebaseInstanceId"
|
|
|
|
|
|
|
|
invoke-static {v3, p1}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
invoke-virtual {v5}, Ljava/lang/String;->length()I
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
add-int/lit8 v5, v5, 0x8
|
|
|
|
|
|
|
|
new-instance v6, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v6, v5}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
|
|
|
|
const-string v5, "Sending "
|
|
|
|
|
|
|
|
invoke-virtual {v6, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v6, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const-string v5, "FirebaseInstanceId"
|
|
|
|
|
|
|
|
invoke-static {v5, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
:cond_1
|
2019-10-11 21:55:41 +00:00
|
|
|
iget-object v3, p0, Lcom/google/firebase/iid/p;->aRB:Landroid/os/Messenger;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
const-string v5, "google.messenger"
|
|
|
|
|
|
|
|
invoke-virtual {v2, v5, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;
|
|
|
|
|
2019-10-11 21:55:41 +00:00
|
|
|
iget-object v3, p0, Lcom/google/firebase/iid/p;->aRC:Landroid/os/Messenger;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
if-nez v3, :cond_2
|
|
|
|
|
2019-10-11 21:55:41 +00:00
|
|
|
iget-object v3, p0, Lcom/google/firebase/iid/p;->aRD:Lcom/google/firebase/iid/zzf;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
if-eqz v3, :cond_4
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-static {}, Landroid/os/Message;->obtain()Landroid/os/Message;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
iput-object v2, v3, Landroid/os/Message;->obj:Ljava/lang/Object;
|
|
|
|
|
|
|
|
:try_start_1
|
2019-10-11 21:55:41 +00:00
|
|
|
iget-object v5, p0, Lcom/google/firebase/iid/p;->aRC:Landroid/os/Messenger;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
if-eqz v5, :cond_3
|
|
|
|
|
2019-10-11 21:55:41 +00:00
|
|
|
iget-object v5, p0, Lcom/google/firebase/iid/p;->aRC:Landroid/os/Messenger;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {v5, v3}, Landroid/os/Messenger;->send(Landroid/os/Message;)V
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_3
|
2019-10-11 21:55:41 +00:00
|
|
|
iget-object v5, p0, Lcom/google/firebase/iid/p;->aRD:Lcom/google/firebase/iid/zzf;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {v5, v3}, Lcom/google/firebase/iid/zzf;->a(Landroid/os/Message;)V
|
|
|
|
:try_end_1
|
|
|
|
.catch Landroid/os/RemoteException; {:try_start_1 .. :try_end_1} :catch_0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
nop
|
|
|
|
|
|
|
|
const-string v3, "FirebaseInstanceId"
|
|
|
|
|
|
|
|
invoke-static {v3, p1}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
|
|
|
const-string p1, "FirebaseInstanceId"
|
|
|
|
|
|
|
|
const-string v3, "Messenger failed, fallback to startService"
|
|
|
|
|
|
|
|
invoke-static {p1, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
:cond_4
|
2019-10-11 21:55:41 +00:00
|
|
|
iget-object p1, p0, Lcom/google/firebase/iid/p;->aRA:Lcom/google/firebase/iid/j;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-10-17 23:49:31 +00:00
|
|
|
invoke-virtual {p1}, Lcom/google/firebase/iid/j;->pG()I
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-ne p1, v4, :cond_5
|
|
|
|
|
2019-10-11 21:55:41 +00:00
|
|
|
iget-object p1, p0, Lcom/google/firebase/iid/p;->aFp:Landroid/content/Context;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v2}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;)V
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_5
|
2019-10-11 21:55:41 +00:00
|
|
|
iget-object p1, p0, Lcom/google/firebase/iid/p;->aFp:Landroid/content/Context;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v2}, Landroid/content/Context;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
:try_start_2
|
2019-10-11 21:55:41 +00:00
|
|
|
iget-object p1, v1, Lcom/google/android/gms/tasks/h;->aLL:Lcom/google/android/gms/tasks/ac;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
const-wide/16 v1, 0x7530
|
|
|
|
|
|
|
|
sget-object v3, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
|
|
|
|
invoke-static {p1, v1, v2, v3}, Lcom/google/android/gms/tasks/j;->a(Lcom/google/android/gms/tasks/Task;JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
check-cast p1, Landroid/os/Bundle;
|
|
|
|
:try_end_2
|
|
|
|
.catch Ljava/lang/InterruptedException; {:try_start_2 .. :try_end_2} :catch_2
|
|
|
|
.catch Ljava/util/concurrent/TimeoutException; {:try_start_2 .. :try_end_2} :catch_2
|
|
|
|
.catch Ljava/util/concurrent/ExecutionException; {:try_start_2 .. :try_end_2} :catch_1
|
|
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
|
|
|
|
2019-10-11 21:55:41 +00:00
|
|
|
iget-object v1, p0, Lcom/google/firebase/iid/p;->aRz:Landroidx/collection/SimpleArrayMap;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
monitor-enter v1
|
|
|
|
|
|
|
|
:try_start_3
|
2019-10-11 21:55:41 +00:00
|
|
|
iget-object v2, p0, Lcom/google/firebase/iid/p;->aRz:Landroidx/collection/SimpleArrayMap;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2, v0}, Landroidx/collection/SimpleArrayMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
monitor-exit v1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
monitor-exit v1
|
|
|
|
:try_end_3
|
|
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:catchall_1
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:catch_1
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
:try_start_4
|
|
|
|
new-instance v1, Ljava/io/IOException;
|
|
|
|
|
|
|
|
invoke-direct {v1, p1}, Ljava/io/IOException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
throw v1
|
|
|
|
|
|
|
|
:catch_2
|
|
|
|
const-string p1, "FirebaseInstanceId"
|
|
|
|
|
|
|
|
const-string v1, "No response"
|
|
|
|
|
|
|
|
invoke-static {p1, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
new-instance p1, Ljava/io/IOException;
|
|
|
|
|
|
|
|
const-string v1, "TIMEOUT"
|
|
|
|
|
|
|
|
invoke-direct {p1, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
:try_end_4
|
|
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_1
|
|
|
|
|
|
|
|
:goto_2
|
2019-10-11 21:55:41 +00:00
|
|
|
iget-object v1, p0, Lcom/google/firebase/iid/p;->aRz:Landroidx/collection/SimpleArrayMap;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
monitor-enter v1
|
|
|
|
|
|
|
|
:try_start_5
|
2019-10-11 21:55:41 +00:00
|
|
|
iget-object v2, p0, Lcom/google/firebase/iid/p;->aRz:Landroidx/collection/SimpleArrayMap;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2, v0}, Landroidx/collection/SimpleArrayMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
monitor-exit v1
|
|
|
|
:try_end_5
|
|
|
|
.catchall {:try_start_5 .. :try_end_5} :catchall_2
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:catchall_2
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
:try_start_6
|
|
|
|
monitor-exit v1
|
|
|
|
:try_end_6
|
|
|
|
.catchall {:try_start_6 .. :try_end_6} :catchall_2
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
new-instance p1, Ljava/io/IOException;
|
|
|
|
|
|
|
|
const-string v0, "MISSING_INSTANCEID_SERVICE"
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:catchall_3
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
:try_start_7
|
|
|
|
monitor-exit v2
|
|
|
|
:try_end_7
|
|
|
|
.catchall {:try_start_7 .. :try_end_7} :catchall_3
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
2019-10-17 23:49:31 +00:00
|
|
|
.method private static declared-synchronized pL()Ljava/lang/String;
|
2019-10-07 23:23:22 +00:00
|
|
|
.locals 3
|
|
|
|
|
|
|
|
const-class v0, Lcom/google/firebase/iid/p;
|
|
|
|
|
|
|
|
monitor-enter v0
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
sget v1, Lcom/google/firebase/iid/p;->zza:I
|
|
|
|
|
|
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
|
|
|
|
sput v2, Lcom/google/firebase/iid/p;->zza:I
|
|
|
|
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
monitor-exit v0
|
|
|
|
|
|
|
|
return-object v1
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v1
|
|
|
|
|
|
|
|
monitor-exit v0
|
|
|
|
|
|
|
|
throw v1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method final a(Landroid/os/Bundle;)Landroid/os/Bundle;
|
|
|
|
.locals 5
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-10-11 21:55:41 +00:00
|
|
|
iget-object v0, p0, Lcom/google/firebase/iid/p;->aRA:Lcom/google/firebase/iid/j;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-10-17 23:49:31 +00:00
|
|
|
invoke-virtual {v0}, Lcom/google/firebase/iid/j;->rj()I
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const v1, 0xb71b00
|
|
|
|
|
|
|
|
if-lt v0, v1, :cond_3
|
|
|
|
|
2019-10-11 21:55:41 +00:00
|
|
|
iget-object v0, p0, Lcom/google/firebase/iid/p;->aFp:Landroid/content/Context;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
invoke-static {v0}, Lcom/google/firebase/iid/az;->aC(Landroid/content/Context;)Lcom/google/firebase/iid/az;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-instance v1, Lcom/google/firebase/iid/k;
|
|
|
|
|
2019-10-17 23:49:31 +00:00
|
|
|
invoke-virtual {v0}, Lcom/google/firebase/iid/az;->pG()I
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
invoke-direct {v1, v2, p1}, Lcom/google/firebase/iid/k;-><init>(ILandroid/os/Bundle;)V
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/google/firebase/iid/az;->a(Lcom/google/firebase/iid/i;)Lcom/google/android/gms/tasks/Task;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
const-string v1, "Must not be called on the main application thread"
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {v1}, Lcom/google/android/gms/common/internal/r;->aW(Ljava/lang/String;)V
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
const-string v1, "Task must not be null"
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Lcom/google/android/gms/common/internal/r;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/google/android/gms/tasks/Task;->isComplete()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
invoke-static {v0}, Lcom/google/android/gms/tasks/j;->c(Lcom/google/android/gms/tasks/Task;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance v1, Lcom/google/android/gms/tasks/j$a;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
invoke-direct {v1, v2}, Lcom/google/android/gms/tasks/j$a;-><init>(B)V
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Lcom/google/android/gms/tasks/j;->a(Lcom/google/android/gms/tasks/Task;Lcom/google/android/gms/tasks/j$b;)V
|
|
|
|
|
2019-10-11 21:55:41 +00:00
|
|
|
iget-object v1, v1, Lcom/google/android/gms/tasks/j$a;->aLO:Ljava/util/concurrent/CountDownLatch;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/util/concurrent/CountDownLatch;->await()V
|
|
|
|
|
|
|
|
invoke-static {v0}, Lcom/google/android/gms/tasks/j;->c(Lcom/google/android/gms/tasks/Task;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
check-cast v0, Landroid/os/Bundle;
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_1
|
|
|
|
.catch Ljava/util/concurrent/ExecutionException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:catch_1
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
const/4 v1, 0x3
|
|
|
|
|
|
|
|
const-string v2, "FirebaseInstanceId"
|
|
|
|
|
|
|
|
invoke-static {v2, v1}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Ljava/lang/String;->length()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
add-int/lit8 v3, v3, 0x16
|
|
|
|
|
|
|
|
new-instance v4, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v4, v3}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
|
|
|
|
const-string v3, "Error making request: "
|
|
|
|
|
|
|
|
invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-static {v2, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Exception;->getCause()Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
instance-of v1, v1, Lcom/google/firebase/iid/h;
|
|
|
|
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Exception;->getCause()Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Lcom/google/firebase/iid/h;
|
|
|
|
|
|
|
|
iget v0, v0, Lcom/google/firebase/iid/h;->zza:I
|
|
|
|
|
|
|
|
const/4 v1, 0x4
|
|
|
|
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/google/firebase/iid/p;->d(Landroid/os/Bundle;)Landroid/os/Bundle;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
invoke-direct {p0, p1}, Lcom/google/firebase/iid/p;->d(Landroid/os/Bundle;)Landroid/os/Bundle;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|