OSDN Git Service

Only parse an APK once
authorTodd Kennedy <toddke@google.com>
Wed, 6 Apr 2016 21:08:14 +0000 (14:08 -0700)
committerTodd Kennedy <toddke@google.com>
Wed, 6 Apr 2016 22:16:43 +0000 (15:16 -0700)
commitd9d438ac4e851275abb4ddc6671f74701e07b4fc
treeb8fee0af903207a48e783253c52f30c51135c746
parent347bb9a3cf53595b8beed17574cec9c0072aa819
Only parse an APK once

During package installation, we were parsing the APK twice; once
in the context of the PackageInstaller and once in the context
of the PackageManager. Instead, the installer should just pass
the certificates to be used further in the process.

If the PackageManager doesn't receive certificates [or, if there's
an error using them], it will fallback to re-parsing the APK.

Bug: 27502465
Change-Id: I94ce551af54eaa9916228e933134debe50867d21
core/java/android/content/pm/PackageParser.java
services/core/java/com/android/server/pm/PackageInstallerSession.java
services/core/java/com/android/server/pm/PackageManagerService.java