Copy user info from PackageSetting as well

In order not to clobber the internal system's settings, we duplicate it
before putting it back into mPackages, but the PackageSetting has a
couple extra pieces of information that weren't being copied.

Bug: 3339279
Change-Id: I047087ac3477c7b2d5ce23e5e0a5e8c094bd0d3f
This commit is contained in:
Kenny Root
2011-01-11 10:08:01 -08:00
parent 65ba2c421c
commit 91c459ec7d

View File

@@ -7845,6 +7845,14 @@ class PackageManagerService extends IPackageManager.Stub {
copyFrom(orig); copyFrom(orig);
} }
public void copyFrom(PackageSetting base) {
super.copyFrom((PackageSettingBase) base);
userId = base.userId;
sharedUser = base.sharedUser;
pkg = base.pkg;
}
@Override @Override
public String toString() { public String toString() {
return "PackageSetting{" return "PackageSetting{"