package o; import android.content.Context; import android.content.pm.PackageManager; import android.content.pm.Signature; import android.os.Build; import android.util.Log; /* loaded from: classes2.dex */ public final class dNR { private static final C16916sOz d = new C16916sOz("PhoneskyVerificationUtils"); public static boolean d(Context context) { try { if (context.getPackageManager().getApplicationInfo("com.android.vending", 0).enabled) { Signature[] signatureArr = context.getPackageManager().getPackageInfo("com.android.vending", 64).signatures; if (signatureArr == null || (signatureArr.length) == 0) { C16916sOz c16916sOz = d; Object[] objArr = new Object[0]; if (Log.isLoggable("PlayCore", 5)) { C16916sOz.c(c16916sOz.d, "Phonesky package is not signed -- possibly self-built package. Could not verify.", objArr); } } else { for (Signature signature : signatureArr) { String a = pdQ.a(signature.toByteArray()); if ("8P1sW0EPJcslw7UzRsiXL64w-O50Ed-RBICtay1g24M".equals(a)) { return true; } if ((Build.TAGS.contains("dev-keys") || Build.TAGS.contains("test-keys")) && "GXWy8XF3vIml3_MfnmSmyuKBpT3B0dWbHRR_4cgq-gA".equals(a)) { return true; } } } } } catch (PackageManager.NameNotFoundException unused) { } return false; } }