granularity level: instruction

		.class public Lcom/google/android/gms/common/GooglePlayServicesUtilLight;
.super Ljava/lang/Object;
.source "com.google.android.gms:play-services-basement@@18.1.0"


.field static final GMS_AVAILABILITY_NOTIFICATION_ID:I = 0x28c4
.field static final GMS_GENERAL_ERROR_NOTIFICATION_ID:I = 0x9b6d
.field public static final GOOGLE_PLAY_GAMES_PACKAGE:Ljava/lang/String; = "com.google.android.play.games"
.field public static final GOOGLE_PLAY_SERVICES_PACKAGE:Ljava/lang/String; = "com.google.android.gms"
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.end field
.field public static final GOOGLE_PLAY_SERVICES_VERSION_CODE:I = 0xbdfcb8
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.end field
.field public static final GOOGLE_PLAY_STORE_PACKAGE:Ljava/lang/String; = "com.android.vending"
.field static final sCanceledAvailabilityNotification:Ljava/util/concurrent/atomic/AtomicBoolean;
.field static zza:Z = false
.field private static zzb:Z = false
.field private static final zzc:Ljava/util/concurrent/atomic/AtomicBoolean;


.method static constructor <clinit>()V
	.locals 1

	new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
	invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V
	sput-object v0, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->sCanceledAvailabilityNotification:Ljava/util/concurrent/atomic/AtomicBoolean;
	new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
	invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V
	sput-object v0, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzc:Ljava/util/concurrent/atomic/AtomicBoolean;
	return-void
.end method

.method constructor <init>()V
	.locals 0

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	return-void
.end method

.method public static cancelAvailabilityErrorNotifications(Landroid/content/Context;)V
	.locals 2
	.annotation runtime Ljava/lang/Deprecated;
	.end annotation

	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"
	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
	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
	:cond_1
	:catch_0
	return-void
.end method

.method public static enableUsingApkIndependentContext()V
	.locals 2

	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
	.annotation runtime Ljava/lang/Deprecated;
	.end annotation
	.annotation system Ldalvik/annotation/Throws;
	value = {
	Lcom/google/android/gms/common/GooglePlayServicesRepairableException;,
	Lcom/google/android/gms/common/GooglePlayServicesNotAvailableException;
	}
	.end annotation

	invoke-static {}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->getInstance()Lcom/google/android/gms/common/GoogleApiAvailabilityLight;
	move-result-object v0
	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"
	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;
	invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()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;
	invoke-direct {p0, p1}, Lcom/google/android/gms/common/GooglePlayServicesNotAvailableException;-><init>(I)V
	throw p0
	:cond_0
	new-instance v0, Lcom/google/android/gms/common/GooglePlayServicesRepairableException;
	const-string v1, "Google Play Services not available"
	invoke-direct {v0, p1, v1, p0}, Lcom/google/android/gms/common/GooglePlayServicesRepairableException;-><init>(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
	.annotation runtime Ljava/lang/Deprecated;
	.end annotation

	const/4 v0, 0x0
	: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
	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."
	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
	.annotation runtime Ljava/lang/Deprecated;
	.end annotation

	const/4 v0, 0x1
	invoke-static {v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(Z)V
	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
	.annotation runtime Ljava/lang/Deprecated;
	.end annotation

	invoke-static {}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->getInstance()Lcom/google/android/gms/common/GoogleApiAvailabilityLight;
	move-result-object v0
	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 runtime Ljava/lang/Deprecated;
	.end annotation

	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 runtime Ljava/lang/Deprecated;
	.end annotation

	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

	:try_start_0
	const-string v0, "com.google.android.gms"
	const/4 v1, 0x3
	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

	: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"
	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

	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
	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
	invoke-static {p0}, Lcom/google/android/gms/common/GoogleSignatureVerifier;->getInstance(Landroid/content/Context;)Lcom/google/android/gms/common/GoogleSignatureVerifier;
	if-eqz v0, :cond_0
	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
	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
	: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
	: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."
	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
	sput-boolean v2, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zza:Z
	goto :goto_2
	:goto_1
	sput-boolean v2, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zza:Z
	throw p0
	:goto_2
	:cond_1
	sget-boolean p0, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzb:Z
	if-nez p0, :cond_3
	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
	:goto_3
	:cond_3
	return v2
.end method

.method public static isGooglePlayServicesAvailable(Landroid/content/Context;)I
	.locals 1
	.annotation runtime Ljava/lang/Deprecated;
	.end annotation

	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
	.annotation runtime Ljava/lang/Deprecated;
	.end annotation

	const-string v0, "GooglePlayServicesUtil"
	:try_start_0
	invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
	move-result-object v1
	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."
	invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
	: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;
	invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
	move-result v1
	if-eqz v1, :cond_0
	goto :goto_1
	: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
	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;
	invoke-direct {p0, v1}, Lcom/google/android/gms/common/GooglePlayServicesIncorrectManifestValueException;-><init>(I)V
	throw p0
	:cond_2
	new-instance p0, Lcom/google/android/gms/common/GooglePlayServicesMissingManifestValueException;
	invoke-direct {p0}, Lcom/google/android/gms/common/GooglePlayServicesMissingManifestValueException;-><init>()V
	throw p0
	:goto_1
	:cond_3
	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
	const/4 v1, 0x1
	goto :goto_2
	:cond_4
	const/4 v1, 0x0
	:goto_2
	if-ltz p1, :cond_5
	const/4 v5, 0x1
	goto :goto_3
	:cond_5
	const/4 v5, 0x0
	:goto_3
	invoke-static {v5}, Lcom/google/android/gms/common/internal/Preconditions;->checkArgument(Z)V
	invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
	move-result-object v5
	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
	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
	: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
	const/16 v3, 0x9
	goto/16 :goto_7
	:cond_6
	const/4 v8, 0x0
	:goto_5
	const/16 v9, 0x40
	: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
	invoke-static {p0}, Lcom/google/android/gms/common/GoogleSignatureVerifier;->getInstance(Landroid/content/Context;)Lcom/google/android/gms/common/GoogleSignatureVerifier;
	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
	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
	invoke-static {v8}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
	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
	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
	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
	invoke-virtual {p0, v1}, Landroid/content/pm/Signature;->equals(Ljava/lang/Object;)Z
	move-result p0
	if-nez p0, :cond_9
	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
	: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
	iget p0, v9, Landroid/content/pm/PackageInfo;->versionCode:I
	new-instance v1, Ljava/lang/StringBuilder;
	invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
	const-string v2, "Google Play services out of date for "
	invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v1, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string v2, ".  Requires "
	invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
	const-string p1, " but found "
	invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
	invoke-virtual {v1}, 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
	:cond_a
	iget-object p0, v9, Landroid/content/pm/PackageInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo;
	if-nez p0, :cond_b
	: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
	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
	:goto_6
	:cond_b
	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
	: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
	.annotation runtime Ljava/lang/Deprecated;
	.end annotation

	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
	.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"
	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
	.annotation runtime Ljava/lang/Deprecated;
	.end annotation

	const/16 v0, 0x9
	if-ne p1, v0, :cond_0
	const-string p1, "com.android.vending"
	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

	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;
	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"
	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
	.annotation runtime Ljava/lang/Deprecated;
	.end annotation

	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 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
	.annotation runtime Ljava/lang/Deprecated;
	.end annotation

	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 static zza(Landroid/content/Context;Ljava/lang/String;)Z
	.locals 5

	const-string v0, "com.google.android.gms"
	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
	: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
	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;
	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
	:cond_1
	invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
	move-result-object v1
	const/16 v4, 0x2000
	: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
	iget-boolean p0, p1, Landroid/content/pm/ApplicationInfo;->enabled:Z
	return p0
	: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