- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
42 lines
1.4 KiB
Java
42 lines
1.4 KiB
Java
package com.google.android.gms.common.wrappers;
|
|
|
|
import android.content.Context;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import com.google.android.gms.common.annotation.KeepForSdk;
|
|
import com.google.android.gms.common.util.PlatformVersion;
|
|
|
|
@KeepForSdk
|
|
/* loaded from: classes2.dex */
|
|
public class InstantApps {
|
|
private static Context zza;
|
|
|
|
@Nullable
|
|
private static Boolean zzb;
|
|
|
|
@KeepForSdk
|
|
public static synchronized boolean isInstantApp(@NonNull Context context) {
|
|
Boolean bool;
|
|
synchronized (InstantApps.class) {
|
|
Context applicationContext = context.getApplicationContext();
|
|
Context context2 = zza;
|
|
if (context2 != null && (bool = zzb) != null && context2 == applicationContext) {
|
|
return bool.booleanValue();
|
|
}
|
|
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();
|
|
}
|
|
}
|
|
}
|