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

Commit e50bc6fd authored by Akira Numata's avatar Akira Numata Committed by David Pursehouse
Browse files

Default icon is shown after uninstalling updated priv-app

If updated pre-installed app is moved from "/system/app" to
"/system/priv-app" at FOTA, PackageManager does not update its
resource path correctly. This patch fixes it.

Change-Id: Iac793bcb8fd7c5bfbafd1876640b534c6da5dddf
parent d8435643
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4242,6 +4242,8 @@ public class PackageManagerService extends IPackageManager.Stub {
                                + " to " + scanFile);
                        updatedPkg.codePath = scanFile;
                        updatedPkg.codePathString = scanFile.toString();
                        updatedPkg.resourcePath = scanFile;
                        updatedPkg.resourcePathString = scanFile.toString();
                        // This is the point at which we know that the system-disk APK
                        // for this package has moved during a reboot (e.g. due to an OTA),
                        // so we need to reevaluate it for privilege policy.