.class public Lcom/google/android/gms/common/GooglePlayServicesUtilLight; .super Ljava/lang/Object; .source "com.google.android.gms:play-services-basement@@18.0.0" # annotations .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation build Lcom/google/android/gms/common/internal/ShowFirstParty; .end annotation # static fields .field public static final GMS_AVAILABILITY_NOTIFICATION_ID:I = 0x28c4 .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .end field .field public static final GMS_GENERAL_ERROR_NOTIFICATION_ID:I = 0x9b6d .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .end field .field public static final GOOGLE_PLAY_GAMES_PACKAGE:Ljava/lang/String; = "com.google.android.play.games" .annotation build Landroidx/annotation/NonNull; .end annotation .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .end field .field public static final GOOGLE_PLAY_SERVICES_PACKAGE:Ljava/lang/String; = "com.google.android.gms" .annotation build Landroidx/annotation/NonNull; .end annotation .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .end field .field public static final GOOGLE_PLAY_SERVICES_VERSION_CODE:I = 0xbdfcb8 .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .end field .field public static final GOOGLE_PLAY_STORE_PACKAGE:Ljava/lang/String; = "com.android.vending" .annotation build Landroidx/annotation/NonNull; .end annotation .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .end field .field public static final sCanceledAvailabilityNotification:Ljava/util/concurrent/atomic/AtomicBoolean; .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation build Lcom/google/android/gms/common/util/VisibleForTesting; .end annotation .end field .field public static zza:Z = false .annotation build Lcom/google/android/gms/common/util/VisibleForTesting; .end annotation .end field .field private static zzb:Z = false .field private static final zzc:Ljava/util/concurrent/atomic/AtomicBoolean; # direct methods .method public static constructor ()V .locals 1 .line 1 new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean; invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;->()V sput-object v0, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->sCanceledAvailabilityNotification:Ljava/util/concurrent/atomic/AtomicBoolean; new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean; .line 2 invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;->()V sput-object v0, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzc:Ljava/util/concurrent/atomic/AtomicBoolean; return-void .end method .method public constructor ()V .locals 0 .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public static cancelAvailabilityErrorNotifications(Landroid/content/Context;)V .locals 2 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .line 1 sget-object v0, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->sCanceledAvailabilityNotification:Ljava/util/concurrent/atomic/AtomicBoolean; const/4 v1, 0x1 invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->getAndSet(Z)Z move-result v0 if-eqz v0, :cond_0 return-void :cond_0 :try_start_0 const-string v0, "notification" .line 2 invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object; move-result-object p0 check-cast p0, Landroid/app/NotificationManager; if-eqz p0, :cond_1 const/16 v0, 0x28c4 .line 3 invoke-virtual {p0, v0}, Landroid/app/NotificationManager;->cancel(I)V :try_end_0 .catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_0 :catch_0 :cond_1 return-void .end method .method public static enableUsingApkIndependentContext()V .locals 2 .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation build Lcom/google/android/gms/common/internal/ShowFirstParty; .end annotation .line 1 sget-object v0, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzc:Ljava/util/concurrent/atomic/AtomicBoolean; const/4 v1, 0x1 invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V return-void .end method .method public static ensurePlayServicesAvailable(Landroid/content/Context;I)V .locals 2 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation system Ldalvik/annotation/Throws; value = { Lcom/google/android/gms/common/GooglePlayServicesRepairableException;, Lcom/google/android/gms/common/GooglePlayServicesNotAvailableException; } .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .line 1 invoke-static {}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->getInstance()Lcom/google/android/gms/common/GoogleApiAvailabilityLight; move-result-object v0 .line 2 invoke-virtual {v0, p0, p1}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->isGooglePlayServicesAvailable(Landroid/content/Context;I)I move-result p1 if-eqz p1, :cond_1 invoke-static {}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->getInstance()Lcom/google/android/gms/common/GoogleApiAvailabilityLight; move-result-object v0 const-string v1, "e" .line 3 invoke-virtual {v0, p0, p1, v1}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->getErrorResolutionIntent(Landroid/content/Context;ILjava/lang/String;)Landroid/content/Intent; move-result-object p0 new-instance v0, Ljava/lang/StringBuilder; const/16 v1, 0x39 .line 4 invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(I)V const-string v1, "GooglePlayServices not available due to error " invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 const-string v1, "GooglePlayServicesUtil" invoke-static {v1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I if-nez p0, :cond_0 new-instance p0, Lcom/google/android/gms/common/GooglePlayServicesNotAvailableException; .line 5 invoke-direct {p0, p1}, Lcom/google/android/gms/common/GooglePlayServicesNotAvailableException;->(I)V throw p0 :cond_0 new-instance v0, Lcom/google/android/gms/common/GooglePlayServicesRepairableException; const-string v1, "Google Play Services not available" .line 6 invoke-direct {v0, p1, v1, p0}, Lcom/google/android/gms/common/GooglePlayServicesRepairableException;->(ILjava/lang/String;Landroid/content/Intent;)V throw v0 :cond_1 return-void .end method .method public static getApkVersion(Landroid/content/Context;)I .locals 2 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation build Lcom/google/android/gms/common/internal/ShowFirstParty; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation const/4 v0, 0x0 .line 1 :try_start_0 invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; move-result-object p0 const-string v1, "com.google.android.gms" invoke-virtual {p0, v1, v0}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo; move-result-object p0 :try_end_0 .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0 .line 2 iget p0, p0, Landroid/content/pm/PackageInfo;->versionCode:I return p0 :catch_0 const-string p0, "GooglePlayServicesUtil" const-string v1, "Google Play services is missing." .line 3 invoke-static {p0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I return v0 .end method .method public static getClientVersion(Landroid/content/Context;)I .locals 1 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation build Lcom/google/android/gms/common/internal/ShowFirstParty; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation const/4 v0, 0x1 .line 1 invoke-static {v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(Z)V .line 2 invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String; move-result-object v0 invoke-static {p0, v0}, Lcom/google/android/gms/common/util/ClientLibraryUtils;->getClientVersion(Landroid/content/Context;Ljava/lang/String;)I move-result p0 return p0 .end method .method public static getErrorPendingIntent(ILandroid/content/Context;I)Landroid/app/PendingIntent; .locals 1 .param p1 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/Nullable; .end annotation .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .line 1 invoke-static {}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->getInstance()Lcom/google/android/gms/common/GoogleApiAvailabilityLight; move-result-object v0 .line 2 invoke-virtual {v0, p1, p0, p2}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->getErrorResolutionPendingIntent(Landroid/content/Context;II)Landroid/app/PendingIntent; move-result-object p0 return-object p0 .end method .method public static getErrorString(I)Ljava/lang/String; .locals 0 .annotation build Landroidx/annotation/NonNull; .end annotation .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation build Lcom/google/android/gms/common/util/VisibleForTesting; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .line 1 invoke-static {p0}, Lcom/google/android/gms/common/ConnectionResult;->zza(I)Ljava/lang/String; move-result-object p0 return-object p0 .end method .method public static getGooglePlayServicesAvailabilityRecoveryIntent(I)Landroid/content/Intent; .locals 2 .annotation build Landroidx/annotation/Nullable; .end annotation .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation build Lcom/google/android/gms/common/internal/ShowFirstParty; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .line 1 invoke-static {}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->getInstance()Lcom/google/android/gms/common/GoogleApiAvailabilityLight; move-result-object v0 const/4 v1, 0x0 invoke-virtual {v0, v1, p0, v1}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->getErrorResolutionIntent(Landroid/content/Context;ILjava/lang/String;)Landroid/content/Intent; move-result-object p0 return-object p0 .end method .method public static getRemoteContext(Landroid/content/Context;)Landroid/content/Context; .locals 2 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/Nullable; .end annotation .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation :try_start_0 const-string v0, "com.google.android.gms" const/4 v1, 0x3 .line 1 invoke-virtual {p0, v0, v1}, Landroid/content/Context;->createPackageContext(Ljava/lang/String;I)Landroid/content/Context; move-result-object p0 :try_end_0 .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0 return-object p0 :catch_0 const/4 p0, 0x0 return-object p0 .end method .method public static getRemoteResource(Landroid/content/Context;)Landroid/content/res/Resources; .locals 1 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/Nullable; .end annotation .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .line 1 :try_start_0 invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; move-result-object p0 const-string v0, "com.google.android.gms" .line 2 invoke-virtual {p0, v0}, Landroid/content/pm/PackageManager;->getResourcesForApplication(Ljava/lang/String;)Landroid/content/res/Resources; move-result-object p0 :try_end_0 .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0 return-object p0 :catch_0 const/4 p0, 0x0 return-object p0 .end method .method public static honorsDebugCertificates(Landroid/content/Context;)Z .locals 5 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation build Lcom/google/android/gms/common/internal/ShowFirstParty; .end annotation .line 1 sget-boolean v0, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zza:Z const/4 v1, 0x0 const/4 v2, 0x1 if-nez v0, :cond_1 :try_start_0 invoke-static {p0}, Lcom/google/android/gms/common/wrappers/Wrappers;->packageManager(Landroid/content/Context;)Lcom/google/android/gms/common/wrappers/PackageManagerWrapper; move-result-object v0 const-string v3, "com.google.android.gms" const/16 v4, 0x40 .line 2 invoke-virtual {v0, v3, v4}, Lcom/google/android/gms/common/wrappers/PackageManagerWrapper;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo; move-result-object v0 .line 3 invoke-static {p0}, Lcom/google/android/gms/common/GoogleSignatureVerifier;->getInstance(Landroid/content/Context;)Lcom/google/android/gms/common/GoogleSignatureVerifier; if-eqz v0, :cond_0 .line 4 invoke-static {v0, v1}, Lcom/google/android/gms/common/GoogleSignatureVerifier;->zzb(Landroid/content/pm/PackageInfo;Z)Z move-result p0 if-nez p0, :cond_0 .line 5 invoke-static {v0, v2}, Lcom/google/android/gms/common/GoogleSignatureVerifier;->zzb(Landroid/content/pm/PackageInfo;Z)Z move-result p0 if-eqz p0, :cond_0 sput-boolean v2, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzb:Z goto :goto_0 .line 6 :cond_0 sput-boolean v1, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzb:Z :try_end_0 .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 .line 7 :goto_0 sput-boolean v2, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zza:Z goto :goto_2 :catchall_0 move-exception p0 goto :goto_1 :catch_0 move-exception p0 :try_start_1 const-string v0, "GooglePlayServicesUtil" const-string v3, "Cannot find Google Play services package name." .line 8 invoke-static {v0, v3, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 .line 9 sput-boolean v2, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zza:Z goto :goto_2 .line 10 :goto_1 sput-boolean v2, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zza:Z .line 11 throw p0 .line 12 :cond_1 :goto_2 sget-boolean p0, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzb:Z if-nez p0, :cond_3 .line 13 invoke-static {}, Lcom/google/android/gms/common/util/DeviceProperties;->isUserBuild()Z move-result p0 if-nez p0, :cond_2 goto :goto_3 :cond_2 return v1 :cond_3 :goto_3 return v2 .end method .method public static isGooglePlayServicesAvailable(Landroid/content/Context;)I .locals 1 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation build Lcom/google/android/gms/common/internal/HideFirstParty; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .line 1 sget v0, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->GOOGLE_PLAY_SERVICES_VERSION_CODE:I invoke-static {p0, v0}, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->isGooglePlayServicesAvailable(Landroid/content/Context;I)I move-result p0 return p0 .end method .method public static isGooglePlayServicesAvailable(Landroid/content/Context;I)I .locals 10 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation const-string v0, "GooglePlayServicesUtil" .line 2 :try_start_0 invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources; move-result-object v1 .line 3 sget v2, Lcom/google/android/gms/common/R$string;->common_google_play_services_unknown_issue:I invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String; :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 goto :goto_0 :catchall_0 const-string v1, "The Google Play services resources were not found. Check your project configuration to ensure that the resources are included." .line 4 invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I .line 5 :goto_0 invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String; move-result-object v1 const-string v2, "com.google.android.gms" invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v1 if-nez v1, :cond_3 sget-object v1, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzc:Ljava/util/concurrent/atomic/AtomicBoolean; .line 6 invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z move-result v1 if-eqz v1, :cond_0 goto :goto_1 .line 7 :cond_0 invoke-static {p0}, Lcom/google/android/gms/common/internal/zzag;->zza(Landroid/content/Context;)I move-result v1 if-eqz v1, :cond_2 .line 8 sget v3, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->GOOGLE_PLAY_SERVICES_VERSION_CODE:I if-ne v1, v3, :cond_1 goto :goto_1 :cond_1 new-instance p0, Lcom/google/android/gms/common/GooglePlayServicesIncorrectManifestValueException; .line 9 invoke-direct {p0, v1}, Lcom/google/android/gms/common/GooglePlayServicesIncorrectManifestValueException;->(I)V throw p0 .line 10 :cond_2 new-instance p0, Lcom/google/android/gms/common/GooglePlayServicesMissingManifestValueException; .line 11 invoke-direct {p0}, Lcom/google/android/gms/common/GooglePlayServicesMissingManifestValueException;->()V throw p0 .line 12 :cond_3 :goto_1 invoke-static {p0}, Lcom/google/android/gms/common/util/DeviceProperties;->isWearableWithoutPlayStore(Landroid/content/Context;)Z move-result v1 const/4 v3, 0x1 const/4 v4, 0x0 if-nez v1, :cond_4 invoke-static {p0}, Lcom/google/android/gms/common/util/DeviceProperties;->zzb(Landroid/content/Context;)Z move-result v1 if-nez v1, :cond_4 move v1, v3 goto :goto_2 :cond_4 move v1, v4 :goto_2 if-ltz p1, :cond_5 move v5, v3 goto :goto_3 :cond_5 move v5, v4 .line 13 :goto_3 invoke-static {v5}, Lcom/google/android/gms/common/internal/Preconditions;->checkArgument(Z)V .line 14 invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String; move-result-object v5 .line 15 invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; move-result-object v6 const/16 v7, 0x9 if-eqz v1, :cond_6 :try_start_1 const-string v8, "com.android.vending" const/16 v9, 0x2040 .line 16 invoke-virtual {v6, v8, v9}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo; move-result-object v8 :try_end_1 .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_1 .. :try_end_1} :catch_0 goto :goto_5 .line 17 :catch_0 invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String; move-result-object p0 const-string p1, " requires the Google Play Store, but it is missing." invoke-virtual {p0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String; move-result-object p0 invoke-static {v0, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I :goto_4 move v3, v7 goto/16 :goto_7 :cond_6 const/4 v8, 0x0 :goto_5 const/16 v9, 0x40 .line 18 :try_start_2 invoke-virtual {v6, v2, v9}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo; move-result-object v9 :try_end_2 .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_2 .. :try_end_2} :catch_2 .line 19 invoke-static {p0}, Lcom/google/android/gms/common/GoogleSignatureVerifier;->getInstance(Landroid/content/Context;)Lcom/google/android/gms/common/GoogleSignatureVerifier; .line 20 invoke-static {v9, v3}, Lcom/google/android/gms/common/GoogleSignatureVerifier;->zzb(Landroid/content/pm/PackageInfo;Z)Z move-result p0 if-nez p0, :cond_7 .line 21 invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String; move-result-object p0 const-string p1, " requires Google Play services, but their signature is invalid." invoke-virtual {p0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String; move-result-object p0 invoke-static {v0, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I goto :goto_4 :cond_7 if-eqz v1, :cond_8 .line 22 invoke-static {v8}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; .line 23 invoke-static {v8, v3}, Lcom/google/android/gms/common/GoogleSignatureVerifier;->zzb(Landroid/content/pm/PackageInfo;Z)Z move-result p0 if-nez p0, :cond_8 .line 24 invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String; move-result-object p0 const-string p1, " requires Google Play Store, but its signature is invalid." invoke-virtual {p0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String; move-result-object p0 invoke-static {v0, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I goto :goto_4 :cond_8 if-eqz v1, :cond_9 if-eqz v8, :cond_9 .line 25 iget-object p0, v8, Landroid/content/pm/PackageInfo;->signatures:[Landroid/content/pm/Signature; aget-object p0, p0, v4 iget-object v1, v9, Landroid/content/pm/PackageInfo;->signatures:[Landroid/content/pm/Signature; aget-object v1, v1, v4 .line 26 invoke-virtual {p0, v1}, Landroid/content/pm/Signature;->equals(Ljava/lang/Object;)Z move-result p0 if-nez p0, :cond_9 .line 27 invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String; move-result-object p0 const-string p1, " requires Google Play Store, but its signature doesn\'t match that of Google Play services." invoke-virtual {p0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String; move-result-object p0 invoke-static {v0, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I goto :goto_4 .line 28 :cond_9 iget p0, v9, Landroid/content/pm/PackageInfo;->versionCode:I invoke-static {p0}, Lcom/google/android/gms/common/util/zza;->zza(I)I move-result p0 invoke-static {p1}, Lcom/google/android/gms/common/util/zza;->zza(I)I move-result v1 if-ge p0, v1, :cond_a .line 29 iget p0, v9, Landroid/content/pm/PackageInfo;->versionCode:I invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String; move-result-object v1 invoke-virtual {v1}, Ljava/lang/String;->length()I move-result v1 new-instance v2, Ljava/lang/StringBuilder; add-int/lit8 v1, v1, 0x52 invoke-direct {v2, v1}, Ljava/lang/StringBuilder;->(I)V const-string v1, "Google Play services out of date for " invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v1, ". Requires " invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; const-string p1, " but found " invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 invoke-static {v0, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I const/4 v3, 0x2 goto :goto_7 .line 30 :cond_a iget-object p0, v9, Landroid/content/pm/PackageInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo; if-nez p0, :cond_b .line 31 :try_start_3 invoke-virtual {v6, v2, v4}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo; move-result-object p0 :try_end_3 .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_3 .. :try_end_3} :catch_1 goto :goto_6 :catch_1 move-exception p0 .line 32 invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String; move-result-object p1 const-string v1, " requires Google Play services, but they\'re missing when getting application info." invoke-virtual {p1, v1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String; move-result-object p1 invoke-static {v0, p1, p0}, Landroid/util/Log;->wtf(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I goto :goto_7 .line 33 :cond_b :goto_6 iget-boolean p0, p0, Landroid/content/pm/ApplicationInfo;->enabled:Z if-nez p0, :cond_c const/4 v3, 0x3 goto :goto_7 :cond_c return v4 .line 34 :catch_2 invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String; move-result-object p0 const-string p1, " requires Google Play services, but they are missing." invoke-virtual {p0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String; move-result-object p0 invoke-static {v0, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I :goto_7 return v3 .end method .method public static isGooglePlayServicesUid(Landroid/content/Context;I)Z .locals 0 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .line 1 invoke-static {p0, p1}, Lcom/google/android/gms/common/util/UidVerifier;->isGooglePlayServicesUid(Landroid/content/Context;I)Z move-result p0 return p0 .end method .method public static isPlayServicesPossiblyUpdating(Landroid/content/Context;I)Z .locals 2 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation build Lcom/google/android/gms/common/internal/ShowFirstParty; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation const/4 v0, 0x1 const/16 v1, 0x12 if-ne p1, v1, :cond_0 return v0 :cond_0 if-ne p1, v0, :cond_1 const-string p1, "com.google.android.gms" .line 1 invoke-static {p0, p1}, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zza(Landroid/content/Context;Ljava/lang/String;)Z move-result p0 return p0 :cond_1 const/4 p0, 0x0 return p0 .end method .method public static isPlayStorePossiblyUpdating(Landroid/content/Context;I)Z .locals 1 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation build Lcom/google/android/gms/common/internal/ShowFirstParty; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation const/16 v0, 0x9 if-ne p1, v0, :cond_0 const-string p1, "com.android.vending" .line 1 invoke-static {p0, p1}, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zza(Landroid/content/Context;Ljava/lang/String;)Z move-result p0 return p0 :cond_0 const/4 p0, 0x0 return p0 .end method .method public static isRestrictedUserProfile(Landroid/content/Context;)Z .locals 1 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroid/annotation/TargetApi; value = 0x12 .end annotation .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .line 1 invoke-static {}, Lcom/google/android/gms/common/util/PlatformVersion;->isAtLeastJellyBeanMR2()Z move-result v0 if-eqz v0, :cond_0 const-string v0, "user" invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object; move-result-object v0 invoke-static {v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; check-cast v0, Landroid/os/UserManager; .line 2 invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String; move-result-object p0 invoke-virtual {v0, p0}, Landroid/os/UserManager;->getApplicationRestrictions(Ljava/lang/String;)Landroid/os/Bundle; move-result-object p0 if-eqz p0, :cond_0 const-string v0, "restricted_profile" .line 3 invoke-virtual {p0, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object p0 const-string v0, "true" invoke-virtual {v0, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result p0 if-eqz p0, :cond_0 const/4 p0, 0x1 return p0 :cond_0 const/4 p0, 0x0 return p0 .end method .method public static isSidewinderDevice(Landroid/content/Context;)Z .locals 0 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation build Lcom/google/android/gms/common/internal/ShowFirstParty; .end annotation .annotation build Lcom/google/android/gms/common/util/VisibleForTesting; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .line 1 invoke-static {p0}, Lcom/google/android/gms/common/util/DeviceProperties;->isSidewinder(Landroid/content/Context;)Z move-result p0 return p0 .end method .method public static isUserRecoverableError(I)Z .locals 2 .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation const/4 v0, 0x1 if-eq p0, v0, :cond_0 const/4 v1, 0x2 if-eq p0, v1, :cond_0 const/4 v1, 0x3 if-eq p0, v1, :cond_0 const/16 v1, 0x9 if-eq p0, v1, :cond_0 const/4 p0, 0x0 return p0 :cond_0 return v0 .end method .method public static uidHasPackageName(Landroid/content/Context;ILjava/lang/String;)Z .locals 0 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p2 # Ljava/lang/String; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroid/annotation/TargetApi; value = 0x13 .end annotation .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .line 1 invoke-static {p0, p1, p2}, Lcom/google/android/gms/common/util/UidVerifier;->uidHasPackageName(Landroid/content/Context;ILjava/lang/String;)Z move-result p0 return p0 .end method .method public static zza(Landroid/content/Context;Ljava/lang/String;)Z .locals 5 .annotation build Landroid/annotation/TargetApi; value = 0x15 .end annotation const-string v0, "com.google.android.gms" .line 1 invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v0 invoke-static {}, Lcom/google/android/gms/common/util/PlatformVersion;->isAtLeastLollipop()Z move-result v1 const/4 v2, 0x1 const/4 v3, 0x0 if-eqz v1, :cond_1 .line 2 :try_start_0 invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; move-result-object v1 invoke-virtual {v1}, Landroid/content/pm/PackageManager;->getPackageInstaller()Landroid/content/pm/PackageInstaller; move-result-object v1 invoke-virtual {v1}, Landroid/content/pm/PackageInstaller;->getAllSessions()Ljava/util/List; move-result-object v1 :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 .line 3 invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object v1 :cond_0 invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z move-result v4 if-eqz v4, :cond_1 invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v4 check-cast v4, Landroid/content/pm/PackageInstaller$SessionInfo; .line 4 invoke-virtual {v4}, Landroid/content/pm/PackageInstaller$SessionInfo;->getAppPackageName()Ljava/lang/String; move-result-object v4 invoke-virtual {p1, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v4 if-eqz v4, :cond_0 return v2 :catch_0 return v3 .line 5 :cond_1 invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; move-result-object v1 const/16 v4, 0x2000 .line 6 :try_start_1 invoke-virtual {v1, p1, v4}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo; move-result-object p1 if-eqz v0, :cond_2 .line 7 iget-boolean p0, p1, Landroid/content/pm/ApplicationInfo;->enabled:Z return p0 .line 8 :cond_2 iget-boolean p1, p1, Landroid/content/pm/ApplicationInfo;->enabled:Z if-eqz p1, :cond_3 invoke-static {p0}, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->isRestrictedUserProfile(Landroid/content/Context;)Z move-result p0 :try_end_1 .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_1 .. :try_end_1} :catch_1 if-nez p0, :cond_3 return v2 :catch_1 :cond_3 return v3 .end method