PackageParser: fix use-after-release

This commit is contained in:
Mis012 2025-01-02 22:40:26 +01:00
parent 7354864e34
commit 7aea3a6920

View file

@ -988,11 +988,13 @@ public class PackageParser {
pkg.mSharedUserLabel = sa.getResourceId(
com.android.internal.R.styleable.AndroidManifest_sharedUserLabel, 0);
}
sa.recycle();
pkg.installLocation = sa.getInteger(
com.android.internal.R.styleable.AndroidManifest_installLocation,
PARSE_DEFAULT_INSTALL_LOCATION);
sa.recycle();
pkg.applicationInfo.installLocation = pkg.installLocation;
/* Set the global "forward lock" flag */