commit | 5952c67d33fb738816b0dcf3716bf431c2b7afd8 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Mon Jul 11 11:34:44 2011 -0700 |
committer | Brian Muramatsu <btmura@google.com> | Tue Jul 12 10:49:59 2011 -0700 |
tree | 4640e54d5a2bbad95066788c0228250b384c8c70 | |
parent | 421642dd58a7dc145f3f3c0fc87c9d6e45a2a804 [diff] |
Don't fail if vold.fstab doesn't exist. Bug: 5014713 Change-Id: Iddd7837833599327982fd7a1371ecc4078e3af6e
diff --git a/tests/tests/security/src/android/security/cts/VoldExploitTest.java b/tests/tests/security/src/android/security/cts/VoldExploitTest.java index 38eece7..12b4392 100644 --- a/tests/tests/security/src/android/security/cts/VoldExploitTest.java +++ b/tests/tests/security/src/android/security/cts/VoldExploitTest.java
@@ -115,6 +115,9 @@ private static Set<String> getSysFsPath(String file) throws IOException { Set<String> retval = new HashSet<String>(); File netlink = new File(file); + if (!netlink.canRead()) { + return retval; + } Scanner scanner = null; try { scanner = new Scanner(netlink);