Use PackageInfoUtils with null PackageSetting to set server-only flags
PackageImpl on the server side contains fields that are system server
specific, such as what partition the package was found on. These
fields are hidden from the core side, since they're irrelevant
for APKs that are not processed by PackageManagerService.
To mirror this, only the server side PackageInfoUtils sets the
flags related to theses server-side fields.
So when a PackageSetting is created, this server-side
PackageInfoUtils must be called, not the core side
PackageInfoWithoutStateUtils, with a null PackageSetting,
to set the related pkg(Private)Flags.
Bug: 150083410
Test: atest android.cts.backup.OtherSoundsSettingsHostSideTest
Test: atest com.android.server.pm.parsing
Change-Id: Ife39c83e243daf5d3583f04fce1c0f87c0e20585
1 file changed