.class public Lcom/google/android/gms/common/wrappers/InstantApps; .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 # static fields .field private static zza:Landroid/content/Context; .field private static zzb:Ljava/lang/Boolean; .annotation build Landroidx/annotation/Nullable; .end annotation .end field # direct methods .method public constructor ()V .locals 0 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public static declared-synchronized isInstantApp(Landroid/content/Context;)Z .locals 4 .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 const-class v0, Lcom/google/android/gms/common/wrappers/InstantApps; monitor-enter v0 .line 1 :try_start_0 invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context; move-result-object v1 sget-object v2, Lcom/google/android/gms/common/wrappers/InstantApps;->zza:Landroid/content/Context; if-eqz v2, :cond_1 sget-object v3, Lcom/google/android/gms/common/wrappers/InstantApps;->zzb:Ljava/lang/Boolean; if-eqz v3, :cond_1 if-eq v2, v1, :cond_0 goto :goto_0 .line 2 :cond_0 invoke-virtual {v3}, Ljava/lang/Boolean;->booleanValue()Z move-result p0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 monitor-exit v0 return p0 :cond_1 :goto_0 const/4 v2, 0x0 .line 3 :try_start_1 sput-object v2, Lcom/google/android/gms/common/wrappers/InstantApps;->zzb:Ljava/lang/Boolean; invoke-static {}, Lcom/google/android/gms/common/util/PlatformVersion;->isAtLeastO()Z move-result v2 if-eqz v2, :cond_2 .line 4 invoke-virtual {v1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; move-result-object p0 invoke-virtual {p0}, Landroid/content/pm/PackageManager;->isInstantApp()Z move-result p0 invoke-static {p0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean; move-result-object p0 sput-object p0, Lcom/google/android/gms/common/wrappers/InstantApps;->zzb:Ljava/lang/Boolean; :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 goto :goto_1 .line 5 :cond_2 :try_start_2 invoke-virtual {p0}, Landroid/content/Context;->getClassLoader()Ljava/lang/ClassLoader; move-result-object p0 const-string v2, "com.google.android.instantapps.supervisor.InstantAppsRuntime" .line 6 invoke-virtual {p0, v2}, Ljava/lang/ClassLoader;->loadClass(Ljava/lang/String;)Ljava/lang/Class; .line 7 sget-object p0, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean; sput-object p0, Lcom/google/android/gms/common/wrappers/InstantApps;->zzb:Ljava/lang/Boolean; :try_end_2 .catch Ljava/lang/ClassNotFoundException; {:try_start_2 .. :try_end_2} :catch_0 .catchall {:try_start_2 .. :try_end_2} :catchall_0 goto :goto_1 .line 8 :catch_0 :try_start_3 sget-object p0, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean; sput-object p0, Lcom/google/android/gms/common/wrappers/InstantApps;->zzb:Ljava/lang/Boolean; .line 9 :goto_1 sput-object v1, Lcom/google/android/gms/common/wrappers/InstantApps;->zza:Landroid/content/Context; sget-object p0, Lcom/google/android/gms/common/wrappers/InstantApps;->zzb:Ljava/lang/Boolean; .line 10 invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z move-result p0 :try_end_3 .catchall {:try_start_3 .. :try_end_3} :catchall_0 monitor-exit v0 return p0 :catchall_0 move-exception p0 monitor-exit v0 throw p0 .end method