OSDN Git Service

Remove deadlock in PackageManager when installing or upgrading packages.
authorSuchi Amalapurapu <asuchitra@google.com>
Tue, 15 Sep 2009 20:41:47 +0000 (13:41 -0700)
committerSuchi Amalapurapu <asuchitra@google.com>
Tue, 15 Sep 2009 23:42:20 +0000 (16:42 -0700)
commitee5ece4a4db46458207b93bce2d4c01459236376
treead5dd9223c4f798acabeb1de6115adb69c2837dc
parent1cd403eaac24e0e84619dea07e2d1d60e58e1fd2
Remove deadlock in PackageManager when installing or upgrading packages.
PM first creates a temporary file from the input package uri before installing it.
if the package uri points to a content uri, the content provider  has to be retrieved via the ActivityManager
which could cause deadlocks with the package manager locks being held.
Clean up by always copying or creating temporary files before acquiring these locks.
Fix issue when restoring a failed upgrade for third party apps.
services/java/com/android/server/PackageManagerService.java