package com.google.android.gms.common.wrappers; import android.content.Context; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.VisibleForTesting; import com.google.android.gms.common.annotation.KeepForSdk; @KeepForSdk /* loaded from: classes2.dex */ public class Wrappers { private static final Wrappers zza = new Wrappers(); @Nullable private PackageManagerWrapper zzb = null; @NonNull @KeepForSdk public static PackageManagerWrapper packageManager(@NonNull Context context) { return zza.zza(context); } @NonNull @VisibleForTesting public final synchronized PackageManagerWrapper zza(@NonNull Context context) { try { if (this.zzb == null) { if (context.getApplicationContext() != null) { context = context.getApplicationContext(); } this.zzb = new PackageManagerWrapper(context); } } catch (Throwable th) { throw th; } return this.zzb; } }