From b9f3674c11ed9c89b80a69f728cbc5f540b2ecde Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Wed, 8 Apr 2015 21:02:14 -0700 Subject: 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 --- .../coretests/src/android/content/pm/PackageManagerTests.java | 8 -------- 1 file changed, 8 deletions(-) (limited to 'core/tests') 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 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 { -- cgit v1.1