OSDN Git Service

Add an accidentally removed call to update libs
authorSvetoslav Ganov <svetoslavganov@google.com>
Tue, 24 Jan 2017 00:36:40 +0000 (16:36 -0800)
committerSvetoslav Ganov <svetoslavganov@google.com>
Tue, 24 Jan 2017 00:36:43 +0000 (16:36 -0800)
Disabled system package may define a lib which its
update does not. When the update is uninstalled we
need to upate the libs so ppl can use the lib in
the now restored sys package.

Change-Id: I22e6aafde86838fa76aa74eda8dfe2c528f998aa

services/core/java/com/android/server/pm/PackageManagerService.java

index 6044561..56cc2a4 100644 (file)
@@ -17704,6 +17704,13 @@ public class PackageManagerService extends IPackageManager.Stub {
             return false;
         }
 
+        try {
+            // update shared libraries for the newly re-installed system package
+            updateSharedLibrariesLPr(newPkg, null);
+        } catch (PackageManagerException e) {
+            Slog.e(TAG, "updateAllSharedLibrariesLPw failed: " + e.getMessage());
+        }
+
         prepareAppDataAfterInstallLIF(newPkg);
 
         // writer