diff options
author | Jeff Sharkey <jsharkey@android.com> | 2015-04-08 21:02:14 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2015-04-10 00:24:03 -0700 |
commit | b9f3674c11ed9c89b80a69f728cbc5f540b2ecde (patch) | |
tree | bef6b7bbd6eb34aa933aa137056a39cac46854aa /core/tests/coretests/src | |
parent | d119e52050aecffbc66f14d2e2af5e873211a6de (diff) | |
download | frameworks_base-b9f3674c11ed9c89b80a69f728cbc5f540b2ecde.zip frameworks_base-b9f3674c11ed9c89b80a69f728cbc5f540b2ecde.tar.gz frameworks_base-b9f3674c11ed9c89b80a69f728cbc5f540b2ecde.tar.bz2 |
Support moving apps to expanded storage.
Start deriving the data path for apps based on the volume UUID where
the app lives. This path is used for all higher-level APIs, giving
us a clean place to switch app storage.
When parsing a package, keep track of the volume UUID where it lives
and update PackageSetting once installed. For now continue treating
moves as installs, but we'll eventually clean this up to avoid the
additional dexopt pass. Wire up move to use the new installd command
to move private data between devices.
Cache LoadedApk only for the current user, since otherwise the data
dir points at the wrong path.
Bug: 19993667
Change-Id: I53336e3b147d5fd3130e6800869af172b628da37
Diffstat (limited to 'core/tests/coretests/src')
-rw-r--r-- | core/tests/coretests/src/android/content/pm/PackageManagerTests.java | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/core/tests/coretests/src/android/content/pm/PackageManagerTests.java b/core/tests/coretests/src/android/content/pm/PackageManagerTests.java index a59581b..279bfbf 100644 --- a/core/tests/coretests/src/android/content/pm/PackageManagerTests.java +++ b/core/tests/coretests/src/android/content/pm/PackageManagerTests.java @@ -576,14 +576,6 @@ public class PackageManagerTests extends AndroidTestCase { fail(pkgName + " shouldnt be installed"); } catch (NameNotFoundException e) { } - - UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); - List<UserInfo> users = um.getUsers(); - for (UserInfo user : users) { - String dataDir = PackageManager.getDataDirForUser(user.id, pkgName); - assertFalse("Application data directory should not exist: " + dataDir, - new File(dataDir).exists()); - } } class InstallParams { |