implement PackageParser.getResourcesForApplication()

This method is needed for the FlowerFinder test APK
This commit is contained in:
Julian Winkler
2024-07-19 17:02:33 +02:00
parent 71bb6d96bd
commit 4ed3fbd385

View File

@@ -2748,7 +2748,7 @@ public class PackageManager {
* application could not be loaded (most likely because it was uninstalled). * application could not be loaded (most likely because it was uninstalled).
*/ */
public Resources getResourcesForApplication(ApplicationInfo app) throws NameNotFoundException { public Resources getResourcesForApplication(ApplicationInfo app) throws NameNotFoundException {
return null; return Context.this_application.getResources();
} }
/** /**
@@ -2767,14 +2767,14 @@ public class PackageManager {
* @see #getResourcesForApplication(ApplicationInfo) * @see #getResourcesForApplication(ApplicationInfo)
*/ */
public Resources getResourcesForApplication(String appPackageName) throws NameNotFoundException { public Resources getResourcesForApplication(String appPackageName) throws NameNotFoundException {
return null; return Context.this_application.getResources();
} }
/** /**
* @hide * @hide
*/ */
public Resources getResourcesForApplicationAsUser(String appPackageName, int userId) throws NameNotFoundException { public Resources getResourcesForApplicationAsUser(String appPackageName, int userId) throws NameNotFoundException {
return null; return Context.this_application.getResources();
} }
/** /**