diff options
author | Jeff Sharkey <jsharkey@android.com> | 2015-04-05 21:10:42 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2015-04-06 21:17:58 -0700 |
commit | b2b9ab8354da1485178cd8d8e9d89ac915b3f269 (patch) | |
tree | 3d58a32b4ef47c632e5aebebee34e143d1d8cc5a /test-runner | |
parent | b9223015261afdec7e8686b732b298b809bf87dc (diff) | |
download | frameworks_base-b2b9ab8354da1485178cd8d8e9d89ac915b3f269.zip frameworks_base-b2b9ab8354da1485178cd8d8e9d89ac915b3f269.tar.gz frameworks_base-b2b9ab8354da1485178cd8d8e9d89ac915b3f269.tar.bz2 |
Installing packages to expanded storage.
PackageManager now offers to load/unload packages when expanded
volumes are mounted/unmounted. Expanded storage volumes are still
treated as FLAG_EXTERNAL_STORAGE from a public API point-of-view,
but this change starts treating the INSTALL_EXTERNAL flag as
exclusively meaning ASEC containers.
Start tracking the UUID of the volume where a package is installed,
giving us a quick way to find relevant packages. When resolving an
install location, look across all expanded volumes and pick the one
with the largest free space. When upgrading an existing package,
continue preferring the existing volume. PackageInstaller now knows
how to stage on these volumes.
Add new movePackage() variant that accepts a target volume UUID
as destination, it will eventually move data too. Expose this
move command through "pm" command for testing.
Automount expanded volumes when they appear.
Bug: 19993667
Change-Id: I9ca2aa328b9977d34e8b3e153db4bea8b8d6f8e3
Diffstat (limited to 'test-runner')
-rw-r--r-- | test-runner/src/android/test/mock/MockPackageManager.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/test-runner/src/android/test/mock/MockPackageManager.java b/test-runner/src/android/test/mock/MockPackageManager.java index a204376..c8b6846 100644 --- a/test-runner/src/android/test/mock/MockPackageManager.java +++ b/test-runner/src/android/test/mock/MockPackageManager.java @@ -485,14 +485,19 @@ public class MockPackageManager extends PackageManager { throw new UnsupportedOperationException(); } - /** - * @hide - to match hiding in superclass - */ + /** {@hide} */ @Override public void movePackage(String packageName, IPackageMoveObserver observer, int flags) { throw new UnsupportedOperationException(); } + /** {@hide} */ + @Override + public void movePackageAndData(String packageName, String volumeUuid, + IPackageMoveObserver observer) { + throw new UnsupportedOperationException(); + } + @Override public String getInstallerPackageName(String packageName) { throw new UnsupportedOperationException(); |