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:
@@ -7845,6 +7845,14 @@ class PackageManagerService extends IPackageManager.Stub {
|
||||
copyFrom(orig);
|
||||
}
|
||||
|
||||
public void copyFrom(PackageSetting base) {
|
||||
super.copyFrom((PackageSettingBase) base);
|
||||
|
||||
userId = base.userId;
|
||||
sharedUser = base.sharedUser;
|
||||
pkg = base.pkg;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "PackageSetting{"
|
||||
|
||||
Reference in New Issue
Block a user