OSDN Git Service

PackageSettingBase needs to copy volume UUID.
authorJeff Sharkey <jsharkey@android.com>
Sat, 31 Oct 2015 20:58:54 +0000 (13:58 -0700)
committerJeff Sharkey <jsharkey@android.com>
Sat, 31 Oct 2015 21:04:37 +0000 (14:04 -0700)
commit3b1c6e03f67ba8e4a4f4a98e996c7ceabf36affa
tree15fd0ef47f0858c1c935f74210597cc2f905c3a6
parenta975732a8302893a40cdc444f893bf09b7669173
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
services/core/java/com/android/server/pm/PackageSettingBase.java