diff options
author | Kenny Root <kroot@google.com> | 2012-05-02 16:56:15 -0700 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2012-05-02 17:09:57 -0700 |
commit | bf023589b3d9994f43823c7cb0450d278b084f9b (patch) | |
tree | 6ed973d10a584b68efd2efd6654953ab158538c4 /core/tests | |
parent | e849230f444653e692024b4321044cb9f6188919 (diff) | |
download | frameworks_base-bf023589b3d9994f43823c7cb0450d278b084f9b.zip frameworks_base-bf023589b3d9994f43823c7cb0450d278b084f9b.tar.gz frameworks_base-bf023589b3d9994f43823c7cb0450d278b084f9b.tar.bz2 |
Fix some problems with ASECs
On devices that had external storage, permissions weren't set correctly
on non-forward-locked applications. Also, moving forward locked
applications didn't work since DefaultContainerService wasn't able to
read it.
Fixed some faulty unit tests as well.
Bug: 6427212
Change-Id: I5c1f0bf5278549069c78939f0708c4c43a7d4006
Diffstat (limited to 'core/tests')
-rwxr-xr-x | core/tests/coretests/src/android/content/pm/PackageManagerTests.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/core/tests/coretests/src/android/content/pm/PackageManagerTests.java b/core/tests/coretests/src/android/content/pm/PackageManagerTests.java index 8a5f8bb..77e4986 100755 --- a/core/tests/coretests/src/android/content/pm/PackageManagerTests.java +++ b/core/tests/coretests/src/android/content/pm/PackageManagerTests.java @@ -1229,9 +1229,8 @@ public class PackageManagerTests extends AndroidTestCase { installFromRawResource("install.apk", R.raw.install_loc_unspecified, PackageManager.INSTALL_FORWARD_LOCK | - PackageManager.INSTALL_EXTERNAL, true, true, - PackageManager.INSTALL_FAILED_INVALID_INSTALL_LOCATION, - PackageInfo.INSTALL_LOCATION_UNSPECIFIED); + PackageManager.INSTALL_EXTERNAL, true, false, -1, + PackageInfo.INSTALL_LOCATION_PREFER_EXTERNAL); } @LargeTest @@ -1626,8 +1625,8 @@ public class PackageManagerTests extends AndroidTestCase { int installFlags = PackageManager.INSTALL_FORWARD_LOCK; int moveFlags = PackageManager.MOVE_EXTERNAL_MEDIA; - boolean fail = true; - int result = PackageManager.MOVE_FAILED_FORWARD_LOCKED; + boolean fail = false; + int result = PackageManager.MOVE_SUCCEEDED; sampleMoveFromRawResource(installFlags, moveFlags, fail, result); } @@ -1950,7 +1949,7 @@ public class PackageManagerTests extends AndroidTestCase { PackageManager.INSTALL_FORWARD_LOCK, true, false, -1, - PackageInfo.INSTALL_LOCATION_PREFER_EXTERNAL); + PackageInfo.INSTALL_LOCATION_AUTO); } /* The following test functions verify install location for existing apps. |