summaryrefslogtreecommitdiffstats
path: root/core/tests
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2012-09-07 15:48:11 -0700
committerNick Kralevich <nnk@google.com>2012-09-07 15:48:11 -0700
commit7de350a91301985b7f2d9f28edde5aade8495d9b (patch)
tree9db121eeed2e9d947564d465670c093f48ef0616 /core/tests
parent37ee53420ce47860807eb8eaeb454c12fa46797b (diff)
downloadframeworks_base-7de350a91301985b7f2d9f28edde5aade8495d9b.zip
frameworks_base-7de350a91301985b7f2d9f28edde5aade8495d9b.tar.gz
frameworks_base-7de350a91301985b7f2d9f28edde5aade8495d9b.tar.bz2
installd: fix forward locking symlink
installd was not creating a compatibility symlink when installing a forward locked application. Fix. Bug: 7121527 Change-Id: Ied507ab2b759d8658af563e6ac8f0dbb0d286cce
Diffstat (limited to 'core/tests')
-rwxr-xr-xcore/tests/coretests/src/android/content/pm/PackageManagerTests.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/tests/coretests/src/android/content/pm/PackageManagerTests.java b/core/tests/coretests/src/android/content/pm/PackageManagerTests.java
index a1fd14e..607150a 100755
--- a/core/tests/coretests/src/android/content/pm/PackageManagerTests.java
+++ b/core/tests/coretests/src/android/content/pm/PackageManagerTests.java
@@ -395,6 +395,14 @@ public class PackageManagerTests extends AndroidTestCase {
assertTrue("The native library path (" + info.nativeLibraryDir
+ ") should start with " + SECURE_CONTAINERS_PREFIX,
info.nativeLibraryDir.startsWith(SECURE_CONTAINERS_PREFIX));
+ try {
+ String compatLib = new File(info.dataDir + "/lib").getCanonicalPath();
+ assertEquals("The compatibility lib directory should be a symbolic link to "
+ + info.nativeLibraryDir,
+ info.nativeLibraryDir, compatLib);
+ } catch (IOException e) {
+ fail("compat check: Can't read " + info.dataDir + "/lib");
+ }
} else {
assertFalse((info.flags & ApplicationInfo.FLAG_FORWARD_LOCK) != 0);
assertEquals(srcPath, appInstallPath);