You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
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:
@@ -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 {
|
||||||
return package_info.applicationInfo;
|
if (package_info.packageName.equals(packageName))
|
||||||
|
return package_info.applicationInfo;
|
||||||
|
else
|
||||||
|
throw new NameNotFoundException(packageName);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user