OSDN Git Service

Treat moving app as installing in new location.
authorJeff Sharkey <jsharkey@android.com>
Sun, 24 Aug 2014 21:45:56 +0000 (14:45 -0700)
committerJeff Sharkey <jsharkey@android.com>
Tue, 26 Aug 2014 17:09:27 +0000 (10:09 -0700)
commit381d94b712605112b35d7f70064b0d18bd877877
treebfef044bd8a0581b277da7eb9329b80edf9184d9
parent941a8ba1a6043cf84a7bf622e44a0b4f7abd0178
Treat moving app as installing in new location.

Moving apps to/from SD cards has historically been neglected, meaning
it can easily break.  This happened most recently for split APKs,
64-bit native code, and multiArch support.

To make this easier to maintain, treat move as a no-op upgrade,
following the inheriting code path that split APKs depends on.

Also clean up scary places where different flavors of flags were
being combined, and remove unused flags.  Fix media broadcasts to be
sent based on existing app storage location.

New API to abandon install session without opening it.

Bug: 17158495
Change-Id: Ia33bf8f6fdaae099124dfe534f0e320b37bc8e16
api/current.txt
core/java/android/content/pm/IPackageInstaller.aidl
core/java/android/content/pm/PackageInstaller.java
services/core/java/com/android/server/pm/PackageInstallerService.java
services/core/java/com/android/server/pm/PackageManagerService.java