542 lines
15 KiB
Smali
542 lines
15 KiB
Smali
.class public Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;
|
|
.super Lcom/google/android/gms/common/internal/safeparcel/AbstractSafeParcelable;
|
|
.source "com.google.android.gms:play-services-base@@17.1.0"
|
|
|
|
# interfaces
|
|
.implements Lcom/google/android/gms/common/internal/ReflectedParcelable;
|
|
|
|
|
|
# static fields
|
|
.field public static final CREATOR:Landroid/os/Parcelable$Creator;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroid/os/Parcelable$Creator<",
|
|
"Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static q:Lf/h/a/f/e/n/b;
|
|
|
|
|
|
# instance fields
|
|
.field public final d:I
|
|
|
|
.field public e:Ljava/lang/String;
|
|
|
|
.field public f:Ljava/lang/String;
|
|
|
|
.field public g:Ljava/lang/String;
|
|
|
|
.field public h:Ljava/lang/String;
|
|
|
|
.field public i:Landroid/net/Uri;
|
|
|
|
.field public j:Ljava/lang/String;
|
|
|
|
.field public k:J
|
|
|
|
.field public l:Ljava/lang/String;
|
|
|
|
.field public m:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lcom/google/android/gms/common/api/Scope;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public n:Ljava/lang/String;
|
|
|
|
.field public o:Ljava/lang/String;
|
|
|
|
.field public p:Ljava/util/Set;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Set<",
|
|
"Lcom/google/android/gms/common/api/Scope;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Lf/h/a/f/c/a/a/b;
|
|
|
|
invoke-direct {v0}, Lf/h/a/f/c/a/a/b;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->CREATOR:Landroid/os/Parcelable$Creator;
|
|
|
|
sget-object v0, Lf/h/a/f/e/n/c;->a:Lf/h/a/f/e/n/c;
|
|
|
|
sput-object v0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->q:Lf/h/a/f/e/n/b;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/net/Uri;Ljava/lang/String;JLjava/lang/String;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(I",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
"Landroid/net/Uri;",
|
|
"Ljava/lang/String;",
|
|
"J",
|
|
"Ljava/lang/String;",
|
|
"Ljava/util/List<",
|
|
"Lcom/google/android/gms/common/api/Scope;",
|
|
">;",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Lcom/google/android/gms/common/internal/safeparcel/AbstractSafeParcelable;-><init>()V
|
|
|
|
new-instance v0, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->p:Ljava/util/Set;
|
|
|
|
iput p1, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->d:I
|
|
|
|
iput-object p2, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->e:Ljava/lang/String;
|
|
|
|
iput-object p3, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->f:Ljava/lang/String;
|
|
|
|
iput-object p4, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->g:Ljava/lang/String;
|
|
|
|
iput-object p5, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->h:Ljava/lang/String;
|
|
|
|
iput-object p6, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->i:Landroid/net/Uri;
|
|
|
|
iput-object p7, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->j:Ljava/lang/String;
|
|
|
|
iput-wide p8, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->k:J
|
|
|
|
iput-object p10, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->l:Ljava/lang/String;
|
|
|
|
iput-object p11, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->m:Ljava/util/List;
|
|
|
|
iput-object p12, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->n:Ljava/lang/String;
|
|
|
|
iput-object p13, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->o:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static e0(Ljava/lang/String;)Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;
|
|
.locals 20
|
|
.param p0 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lorg/json/JSONException;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-static/range {p0 .. p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-object v1
|
|
|
|
:cond_0
|
|
new-instance v0, Lorg/json/JSONObject;
|
|
|
|
move-object/from16 v2, p0
|
|
|
|
invoke-direct {v0, v2}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
|
|
|
|
const-string v2, "photoUrl"
|
|
|
|
invoke-virtual {v0, v2, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_1
|
|
|
|
invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
|
|
|
|
move-result-object v2
|
|
|
|
move-object v9, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move-object v9, v1
|
|
|
|
:goto_0
|
|
const-string v2, "expirationTime"
|
|
|
|
invoke-virtual {v0, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v2}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
|
|
|
|
move-result-wide v2
|
|
|
|
new-instance v4, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v4}, Ljava/util/HashSet;-><init>()V
|
|
|
|
const-string v5, "grantedScopes"
|
|
|
|
invoke-virtual {v0, v5}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v5}, Lorg/json/JSONArray;->length()I
|
|
|
|
move-result v6
|
|
|
|
const/4 v7, 0x0
|
|
|
|
:goto_1
|
|
if-ge v7, v6, :cond_2
|
|
|
|
new-instance v8, Lcom/google/android/gms/common/api/Scope;
|
|
|
|
invoke-virtual {v5, v7}, Lorg/json/JSONArray;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v10
|
|
|
|
invoke-direct {v8, v10}, Lcom/google/android/gms/common/api/Scope;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v4, v8}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
|
|
|
add-int/lit8 v7, v7, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const-string v5, "id"
|
|
|
|
invoke-virtual {v0, v5}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
const-string v6, "tokenId"
|
|
|
|
invoke-virtual {v0, v6, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
const-string v7, "email"
|
|
|
|
invoke-virtual {v0, v7, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
const-string v8, "displayName"
|
|
|
|
invoke-virtual {v0, v8, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
const-string v10, "givenName"
|
|
|
|
invoke-virtual {v0, v10, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v15
|
|
|
|
const-string v10, "familyName"
|
|
|
|
invoke-virtual {v0, v10, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v16
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "obfuscatedIdentifier"
|
|
|
|
invoke-virtual {v0, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v13
|
|
|
|
if-nez v2, :cond_3
|
|
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v2
|
|
|
|
const-wide/16 v10, 0x3e8
|
|
|
|
div-long/2addr v2, v10
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v2
|
|
|
|
:cond_3
|
|
new-instance v14, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;
|
|
|
|
const/4 v10, 0x3
|
|
|
|
const/4 v11, 0x0
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v17
|
|
|
|
invoke-static {v13}, Lf/h/a/c/i1/e;->y(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
new-instance v2, Ljava/util/ArrayList;
|
|
|
|
invoke-static {v4}, Lf/h/a/c/i1/e;->D(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
invoke-direct {v2, v4}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
|
|
|
|
move-object v3, v14
|
|
|
|
move v4, v10
|
|
|
|
move-object v10, v11
|
|
|
|
move-wide/from16 v11, v17
|
|
|
|
move-object/from16 v19, v14
|
|
|
|
move-object v14, v2
|
|
|
|
invoke-direct/range {v3 .. v16}, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;-><init>(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/net/Uri;Ljava/lang/String;JLjava/lang/String;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
const-string v2, "serverAuthCode"
|
|
|
|
invoke-virtual {v0, v2, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
move-object/from16 v1, v19
|
|
|
|
iput-object v0, v1, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->j:Ljava/lang/String;
|
|
|
|
return-object v1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public Z()Ljava/util/Set;
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/Set<",
|
|
"Lcom/google/android/gms/common/api/Scope;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Ljava/util/HashSet;
|
|
|
|
iget-object v1, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->m:Ljava/util/List;
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/HashSet;-><init>(Ljava/util/Collection;)V
|
|
|
|
iget-object v1, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->p:Ljava/util/Set;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/AbstractCollection;->addAll(Ljava/util/Collection;)Z
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 4
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-ne p1, p0, :cond_0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
instance-of v1, p1, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
return v2
|
|
|
|
:cond_1
|
|
check-cast p1, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;
|
|
|
|
iget-object v1, p1, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->l:Ljava/lang/String;
|
|
|
|
iget-object v3, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->l:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-virtual {p1}, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->Z()Ljava/util/Set;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->Z()Ljava/util/Set;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast p1, Ljava/util/AbstractSet;
|
|
|
|
invoke-virtual {p1, v1}, Ljava/util/AbstractSet;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
return v0
|
|
|
|
:cond_2
|
|
return v2
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->l:Ljava/lang/String;
|
|
|
|
const/16 v1, 0x20f
|
|
|
|
const/16 v2, 0x1f
|
|
|
|
invoke-static {v0, v1, v2}, Lf/e/b/a/a;->T(Ljava/lang/String;II)I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->Z()Ljava/util/Set;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/util/AbstractSet;
|
|
|
|
invoke-virtual {v1}, Ljava/util/AbstractSet;->hashCode()I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
return v1
|
|
.end method
|
|
|
|
.method public writeToParcel(Landroid/os/Parcel;I)V
|
|
.locals 4
|
|
|
|
invoke-static {p1}, Lf/h/a/c/i1/e;->i(Landroid/os/Parcel;)I
|
|
|
|
move-result v0
|
|
|
|
iget v1, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->d:I
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-static {p1, v2, v1}, Lf/h/a/c/i1/e;->H1(Landroid/os/Parcel;II)V
|
|
|
|
iget-object v1, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->e:Ljava/lang/String;
|
|
|
|
const/4 v2, 0x2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-static {p1, v2, v1, v3}, Lf/h/a/c/i1/e;->L1(Landroid/os/Parcel;ILjava/lang/String;Z)V
|
|
|
|
const/4 v1, 0x3
|
|
|
|
iget-object v2, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->f:Ljava/lang/String;
|
|
|
|
invoke-static {p1, v1, v2, v3}, Lf/h/a/c/i1/e;->L1(Landroid/os/Parcel;ILjava/lang/String;Z)V
|
|
|
|
const/4 v1, 0x4
|
|
|
|
iget-object v2, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->g:Ljava/lang/String;
|
|
|
|
invoke-static {p1, v1, v2, v3}, Lf/h/a/c/i1/e;->L1(Landroid/os/Parcel;ILjava/lang/String;Z)V
|
|
|
|
const/4 v1, 0x5
|
|
|
|
iget-object v2, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->h:Ljava/lang/String;
|
|
|
|
invoke-static {p1, v1, v2, v3}, Lf/h/a/c/i1/e;->L1(Landroid/os/Parcel;ILjava/lang/String;Z)V
|
|
|
|
const/4 v1, 0x6
|
|
|
|
iget-object v2, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->i:Landroid/net/Uri;
|
|
|
|
invoke-static {p1, v1, v2, p2, v3}, Lf/h/a/c/i1/e;->K1(Landroid/os/Parcel;ILandroid/os/Parcelable;IZ)V
|
|
|
|
const/4 p2, 0x7
|
|
|
|
iget-object v1, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->j:Ljava/lang/String;
|
|
|
|
invoke-static {p1, p2, v1, v3}, Lf/h/a/c/i1/e;->L1(Landroid/os/Parcel;ILjava/lang/String;Z)V
|
|
|
|
const/16 p2, 0x8
|
|
|
|
iget-wide v1, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->k:J
|
|
|
|
invoke-static {p1, p2, v1, v2}, Lf/h/a/c/i1/e;->J1(Landroid/os/Parcel;IJ)V
|
|
|
|
const/16 p2, 0x9
|
|
|
|
iget-object v1, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->l:Ljava/lang/String;
|
|
|
|
invoke-static {p1, p2, v1, v3}, Lf/h/a/c/i1/e;->L1(Landroid/os/Parcel;ILjava/lang/String;Z)V
|
|
|
|
const/16 p2, 0xa
|
|
|
|
iget-object v1, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->m:Ljava/util/List;
|
|
|
|
invoke-static {p1, p2, v1, v3}, Lf/h/a/c/i1/e;->O1(Landroid/os/Parcel;ILjava/util/List;Z)V
|
|
|
|
const/16 p2, 0xb
|
|
|
|
iget-object v1, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->n:Ljava/lang/String;
|
|
|
|
invoke-static {p1, p2, v1, v3}, Lf/h/a/c/i1/e;->L1(Landroid/os/Parcel;ILjava/lang/String;Z)V
|
|
|
|
const/16 p2, 0xc
|
|
|
|
iget-object v1, p0, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->o:Ljava/lang/String;
|
|
|
|
invoke-static {p1, p2, v1, v3}, Lf/h/a/c/i1/e;->L1(Landroid/os/Parcel;ILjava/lang/String;Z)V
|
|
|
|
invoke-static {p1, v0}, Lf/h/a/c/i1/e;->n3(Landroid/os/Parcel;I)V
|
|
|
|
return-void
|
|
.end method
|