summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2015-10-31 13:58:54 -0700
committerThe Android Automerger <android-build@google.com>2015-11-02 13:21:07 -0800
commita8d422531759f786e53b5bf1dbc0eb942545e514 (patch)
tree81e7e4220996febb5c8a36d4b51e07c0e573406d /services
parent9c648bdc359af7600675f85367e22f3d47998694 (diff)
downloadframeworks_base-a8d422531759f786e53b5bf1dbc0eb942545e514.zip
frameworks_base-a8d422531759f786e53b5bf1dbc0eb942545e514.tar.gz
frameworks_base-a8d422531759f786e53b5bf1dbc0eb942545e514.tar.bz2
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
Diffstat (limited to 'services')
-rw-r--r--services/core/java/com/android/server/pm/PackageSettingBase.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/pm/PackageSettingBase.java b/services/core/java/com/android/server/pm/PackageSettingBase.java
index bbdfe31..78328f5 100644
--- a/services/core/java/com/android/server/pm/PackageSettingBase.java
+++ b/services/core/java/com/android/server/pm/PackageSettingBase.java
@@ -239,6 +239,7 @@ abstract class PackageSettingBase extends SettingBase {
keySetData = base.keySetData;
verificationInfo = base.verificationInfo;
installerPackageName = base.installerPackageName;
+ volumeUuid = base.volumeUuid;
}
private PackageUserState modifyUserState(int userId) {