41 lines
1.7 KiB
Java
41 lines
1.7 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.content.pm.PackageManager;
|
||
|
import android.content.pm.Signature;
|
||
|
import android.os.Build;
|
||
|
import android.util.Log;
|
||
|
|
||
|
/* renamed from: o.xvw, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class C17581xvw {
|
||
|
private static final yax c = new yax("PhoneskyVerificationUtils");
|
||
|
|
||
|
public static boolean e(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) {
|
||
|
yax yaxVar = c;
|
||
|
Object[] objArr = new Object[0];
|
||
|
if (Log.isLoggable("PlayCore", 5)) {
|
||
|
yax.d(yaxVar.d, "Phonesky package is not signed -- possibly self-built package. Could not verify.", objArr);
|
||
|
}
|
||
|
} else {
|
||
|
for (Signature signature : signatureArr) {
|
||
|
String e = bEA.e(signature.toByteArray());
|
||
|
if ("8P1sW0EPJcslw7UzRsiXL64w-O50Ed-RBICtay1g24M".equals(e)) {
|
||
|
return true;
|
||
|
}
|
||
|
if ((Build.TAGS.contains("dev-keys") || Build.TAGS.contains("test-keys")) && "GXWy8XF3vIml3_MfnmSmyuKBpT3B0dWbHRR_4cgq-gA".equals(e)) {
|
||
|
return true;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
} catch (PackageManager.NameNotFoundException unused) {
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
}
|