summaryrefslogtreecommitdiffstats
path: root/core/tests/coretests
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2012-09-06 13:18:37 -0700
committerKenny Root <kroot@google.com>2012-09-10 11:54:36 -0700
commitddbe50df2ca70700a46e5849347989b520d1113e (patch)
tree7419836bff89eb85edf825fc26339515869b08fb /core/tests/coretests
parent3c1a20118739fd6765e128c5d9c39c01d22a89e7 (diff)
downloadframeworks_base-ddbe50df2ca70700a46e5849347989b520d1113e.zip
frameworks_base-ddbe50df2ca70700a46e5849347989b520d1113e.tar.gz
frameworks_base-ddbe50df2ca70700a46e5849347989b520d1113e.tar.bz2
Move native libraries to /data/app-lib
Instead of unpacking libraries into /data/data/<appname>/lib, unpack them into /data/app-lib so that multi-user applications can use the same libraries. Change-Id: I636dafb5a9eea8cf5a41f1360698e7695455f385
Diffstat (limited to 'core/tests/coretests')
-rwxr-xr-xcore/tests/coretests/src/android/content/pm/PackageManagerTests.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/tests/coretests/src/android/content/pm/PackageManagerTests.java b/core/tests/coretests/src/android/content/pm/PackageManagerTests.java
index 1868d1c..785842f 100755
--- a/core/tests/coretests/src/android/content/pm/PackageManagerTests.java
+++ b/core/tests/coretests/src/android/content/pm/PackageManagerTests.java
@@ -72,6 +72,8 @@ public class PackageManagerTests extends AndroidTestCase {
public final long WAIT_TIME_INCR = 5 * 1000;
+ private static final String APP_LIB_DIR_PREFIX = "/data/app-lib/";
+
private static final String SECURE_CONTAINERS_PREFIX = "/mnt/asec/";
private static final int APP_INSTALL_AUTO = PackageHelper.APP_INSTALL_AUTO;
@@ -433,7 +435,7 @@ public class PackageManagerTests extends AndroidTestCase {
assertEquals(srcPath, appInstallPath);
assertEquals(publicSrcPath, appInstallPath);
assertStartsWith("Native library should point to shared lib directory",
- dataDir.getPath(),
+ new File(APP_LIB_DIR_PREFIX, info.packageName).getPath(),
info.nativeLibraryDir);
assertDirOwnerGroupPerms(
"Native library directory should be owned by system:system and 0755",