commit | ee5ece4a4db46458207b93bce2d4c01459236376 | [log] [tgz] |
---|---|---|
author | Suchi Amalapurapu <asuchitra@google.com> | Tue Sep 15 13:41:47 2009 -0700 |
committer | Suchi Amalapurapu <asuchitra@google.com> | Tue Sep 15 16:42:20 2009 -0700 |
tree | ad5dd9223c4f798acabeb1de6115adb69c2837dc | |
parent | 1cd403eaac24e0e84619dea07e2d1d60e58e1fd2 [diff] |
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.