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
This commit is contained in:
committed by
David Pursehouse
parent
d843564331
commit
e50bc6fd29
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user