PackageManager.getApplicationInfo(): don't pretend that other packages are installed

So that WhatsApp no longer thinks the task killer apps are installed.
This commit is contained in:
Julian Winkler
2025-10-18 21:12:52 +02:00
parent 7e7e6c0e6e
commit 72e86cba13

View File

@@ -1587,7 +1587,10 @@ public class PackageManager {
*/ */
public ApplicationInfo getApplicationInfo(String packageName, public ApplicationInfo getApplicationInfo(String packageName,
int flags) throws NameNotFoundException { int flags) throws NameNotFoundException {
if (package_info.packageName.equals(packageName))
return package_info.applicationInfo; return package_info.applicationInfo;
else
throw new NameNotFoundException(packageName);
} }
/** /**