Merge "Avoid adding FORWARD_LOCK flag to an updated system app"

This commit is contained in:
Christopher Tate
2013-06-24 23:02:00 +00:00
committed by Gerrit Code Review

View File

@@ -3363,10 +3363,13 @@ public class PackageManagerService extends IPackageManager.Stub {
}
// The apk is forward locked (not public) if its code and resources
// are kept in different files.
// are kept in different files. (except for app in either system or
// vendor path).
// TODO grab this value from PackageSettings
if (ps != null && !ps.codePath.equals(ps.resourcePath)) {
parseFlags |= PackageParser.PARSE_FORWARD_LOCK;
if ((parseFlags & PackageParser.PARSE_IS_SYSTEM_DIR) == 0) {
if (ps != null && !ps.codePath.equals(ps.resourcePath)) {
parseFlags |= PackageParser.PARSE_FORWARD_LOCK;
}
}
String codePath = null;