Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b450410 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Need to keep new package's cert when using original-package.

Fixes bug #2504353: Lost all widgets and shortcuts after upgrading form FRE68 to FRE69

Change-Id: I62bab66bbd90bf0956d1716bae1b6073d01e2d8a
parent 26b1ef95
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -7707,7 +7707,11 @@ class PackageManagerService extends IPackageManager.Stub {
                            resourcePath, vc, pkgFlags);
                    if (DEBUG_UPGRADE) Log.v(TAG, "Package " + name
                            + " is adopting original package " + origPackage.name);
                    // Note that we will retain the new package's signature so
                    // that we can keep its data.
                    PackageSignatures s = p.signatures;
                    p.copyFrom(origPackage);
                    p.signatures = s;
                    p.sharedUser = origPackage.sharedUser;
                    p.userId = origPackage.userId;
                    p.origPackage = origPackage;