fix google package spoofing for packages not using the google app key(e40562460c)
This commit is contained in:
parent
999bab674e
commit
9e46e845d2
1 changed files with 1 additions and 0 deletions
|
|
@ -83,6 +83,7 @@ public class PackageUtils {
|
|||
String[] packagesForUid = context.getPackageManager().getPackagesForUid(Binder.getCallingUid());
|
||||
if (packagesForUid != null && packagesForUid.length != 0) {
|
||||
for (String packageName : packagesForUid) {
|
||||
packageName = PackageSpoofUtils.spoofPackageName(context.getPackageManager(), packageName);
|
||||
if (isGooglePackage(context, packageName) || GMS_PACKAGE_NAME.equals(packageName))
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue