what-the-bank/sources/com/google/android/gms/common/util/UidVerifier.java

28 lines
960 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.common.util;
import android.content.Context;
import android.content.pm.PackageManager;
import com.google.android.gms.common.GoogleSignatureVerifier;
import com.google.android.gms.common.wrappers.Wrappers;
/* loaded from: classes.dex */
public final class UidVerifier {
public static boolean isGooglePlayServicesUid(Context context, int i) {
if (!uidHasPackageName(context, i, "com.google.android.gms")) {
return false;
}
try {
return GoogleSignatureVerifier.getInstance(context).isGooglePublicSignedPackage(context.getPackageManager().getPackageInfo("com.google.android.gms", 64));
} catch (PackageManager.NameNotFoundException unused) {
return false;
}
}
public static boolean uidHasPackageName(Context context, int i, String str) {
return Wrappers.packageManager(context).zza(i, str);
}
private UidVerifier() {
}
}