granularity level: instruction

		.class public abstract Lx/g;
.super Ljava/lang/Object;
.source "SourceFile"


.field public static final a:Ljava/util/concurrent/atomic/AtomicBoolean;
.field public static final b:Ljava/util/concurrent/atomic/AtomicBoolean;


.method public 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, Lx/g;->a: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, Lx/g;->b:Ljava/util/concurrent/atomic/AtomicBoolean;
	return-void
.end method

.method public static a(Landroid/content/Context;)Z
	.locals 4

	:try_start_0
	invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
	move-result-object v0
	invoke-virtual {v0}, Landroid/content/pm/PackageManager;->getPackageInstaller()Landroid/content/pm/PackageInstaller;
	move-result-object v0
	invoke-virtual {v0}, Landroid/content/pm/PackageInstaller;->getAllSessions()Ljava/util/List;
	move-result-object v0
	:try_end_0
	.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
	invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
	move-result-object v0
	:cond_0
	invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
	move-result v1
	const/4 v2, 0x1
	const-string v3, "com.google.android.gms"
	if-eqz v1, :cond_1
	invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v1
	check-cast v1, Landroid/content/pm/PackageInstaller$SessionInfo;
	invoke-virtual {v1}, Landroid/content/pm/PackageInstaller$SessionInfo;->getAppPackageName()Ljava/lang/String;
	move-result-object v1
	invoke-virtual {v3, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
	move-result v1
	if-eqz v1, :cond_0
	return v2
	:cond_1
	invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
	move-result-object p0
	const/16 v0, 0x2000
	:try_start_1
	invoke-virtual {p0, v3, v0}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
	move-result-object p0
	iget-boolean p0, p0, Landroid/content/pm/ApplicationInfo;->enabled:Z
	:try_end_1
	.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_1 .. :try_end_1} :catch_0
	return p0
	:catch_0
	const/4 p0, 0x0
	return p0
.end method