OSDN Git Service

Allow to transfer+seal a install session
authorPhilip P. Moltmann <moltmann@google.com>
Wed, 19 Jul 2017 17:06:14 +0000 (10:06 -0700)
committerPhilip P. Moltmann <moltmann@google.com>
Mon, 7 Aug 2017 17:50:57 +0000 (10:50 -0700)
commit94deaf7725c418ec1950d810ab86f0d157ddf518
tree476cf9ae1f932fc5330547401b5947ed2c307e85
parent27106b97b3db88a2460b582fa61b5acc8c30fdd1
Allow to transfer+seal a install session

... so that one package can supply the data and another one can issue
the commit.

Also allow reading of sealed sessions.

Also lock more in PackageInstallerSession so that we can be sure the
session is not used by the old package anymore once transferred and that
all calls into the session work on consistent data.

Bug: 37281396
Test: cts-tradefed run cts-dev -m CtsContentTestCases --test=android.content.pm.cts.InstallSessionTransferTest
      Installed and uninstalled packages via the PackageInstaller app
      Installed and uninstalled packages via the Google Play Store

Change-Id: Id4b7a0071d703b7d18c9f5bf2bd15ebf67086d07
api/current.txt
api/system-current.txt
api/test-current.txt
core/java/android/content/pm/IPackageInstallerSession.aidl
core/java/android/content/pm/PackageInstaller.java
services/core/java/com/android/server/pm/PackageInstallerService.java
services/core/java/com/android/server/pm/PackageInstallerSession.java