what-the-bank/sources/com/google/android/gms/common/wrappers/InstantApps.java

35 lines
1.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.common.wrappers;
import android.content.Context;
import com.google.android.gms.common.util.PlatformVersion;
/* loaded from: classes.dex */
public class InstantApps {
private static Context zza;
private static Boolean zzb;
public static boolean isInstantApp(Context context) {
Boolean bool;
synchronized (InstantApps.class) {
Context applicationContext = context.getApplicationContext();
Context context2 = zza;
if (context2 == null || (bool = zzb) == null || context2 != applicationContext) {
zzb = null;
if (PlatformVersion.isAtLeastO()) {
zzb = Boolean.valueOf(applicationContext.getPackageManager().isInstantApp());
} else {
try {
context.getClassLoader().loadClass("com.google.android.instantapps.supervisor.InstantAppsRuntime");
zzb = Boolean.TRUE;
} catch (ClassNotFoundException unused) {
zzb = Boolean.FALSE;
}
}
zza = applicationContext;
return zzb.booleanValue();
}
return bool.booleanValue();
}
}
}