PackageSettingBase needs to copy volume UUID.

When copying all fields from one PackageSettingBase to another, we
also need to copy volumeUuid, which had previously been missed.

Without this, packages using sharedUserId that are installed on
adopted storage devices will be destroyed, since after reboot we
think they actually belong on internal storage (where volumeUuid is
null).

Bug: 25334169
Change-Id: I223361bd1e19e7d5dd78626682ac7c5cbecb9fa1
This commit is contained in:
Jeff Sharkey
2015-10-31 13:58:54 -07:00
parent a975732a83
commit 3b1c6e03f6

View File

@@ -239,6 +239,7 @@ abstract class PackageSettingBase extends SettingBase {
keySetData = base.keySetData; keySetData = base.keySetData;
verificationInfo = base.verificationInfo; verificationInfo = base.verificationInfo;
installerPackageName = base.installerPackageName; installerPackageName = base.installerPackageName;
volumeUuid = base.volumeUuid;
} }
private PackageUserState modifyUserState(int userId) { private PackageUserState modifyUserState(int userId) {