aboutsummaryrefslogtreecommitdiffstats
path: root/ddms/libs
diff options
context:
space:
mode:
authorOmari Stephens <xsdg@android.com>2012-04-11 16:49:27 -0700
committerOmari Stephens <xsdg@android.com>2012-04-11 17:17:34 -0700
commit9111d3953d094a9c14fe13975f2d24cfa67a84f6 (patch)
tree98db9d97db94a56be1c9bfee5e3d9cff4dacd136 /ddms/libs
parent07c599b19a27b92e9102dd21cc65938d6dd0ee67 (diff)
downloadsdk-9111d3953d094a9c14fe13975f2d24cfa67a84f6.zip
sdk-9111d3953d094a9c14fe13975f2d24cfa67a84f6.tar.gz
sdk-9111d3953d094a9c14fe13975f2d24cfa67a84f6.tar.bz2
Get rid of the file path whitelist.
The whitelist doesn't seem to serve any purpose currently, but does prevent legitimate attempts to access paths that aren't in the whitelist. Bug: 6325674 Change-Id: I0fbd44bb440a2b28010a9ca5c5ebd625130de628
Diffstat (limited to 'ddms/libs')
-rw-r--r--ddms/libs/ddmlib/src/com/android/ddmlib/FileListingService.java24
1 files changed, 0 insertions, 24 deletions
diff --git a/ddms/libs/ddmlib/src/com/android/ddmlib/FileListingService.java b/ddms/libs/ddmlib/src/com/android/ddmlib/FileListingService.java
index 5d569a2..8cfac8f 100644
--- a/ddms/libs/ddmlib/src/com/android/ddmlib/FileListingService.java
+++ b/ddms/libs/ddmlib/src/com/android/ddmlib/FileListingService.java
@@ -54,14 +54,6 @@ public final class FileListingService {
/** Application folder. */
public final static String DIRECTORY_APP = "app"; //$NON-NLS-1$
- private final static String[] sRootLevelApprovedItems = {
- DIRECTORY_DATA,
- DIRECTORY_SDCARD,
- DIRECTORY_SYSTEM,
- DIRECTORY_TEMP,
- DIRECTORY_MNT,
- };
-
public static final long REFRESH_RATE = 5000L;
/**
* Refresh test has to be slightly lower for precision issue.
@@ -438,22 +430,6 @@ public final class FileListingService {
// get the name
String name = m.group(7);
- // if the parent is root, we only accept selected items
- if (mParentEntry.isRoot()) {
- boolean found = false;
- for (String approved : sRootLevelApprovedItems) {
- if (approved.equals(name)) {
- found = true;
- break;
- }
- }
-
- // if it's not in the approved list we skip this entry.
- if (found == false) {
- continue;
- }
- }
-
// get the rest of the groups
String permissions = m.group(1);
String owner = m.group(2);