I dug a little and found that viewing ADT File Explorer is limited to a class named
com.android.ddmlib.FileListingService
Inside it, you will see a list of approved top-level directories:
public final static String DIRECTORY_DATA = "data";
public final static String DIRECTORY_SDCARD = "sdcard";
public final static String DIRECTORY_MNT = "mnt";
public final static String DIRECTORY_SYSTEM = "system";
public final static String DIRECTORY_TEMP = "tmp";
public final static String DIRECTORY_APP = "app";
private final static String[] sRootLevelApprovedItems = {
DIRECTORY_DATA,
DIRECTORY_SDCARD,
DIRECTORY_SYSTEM,
DIRECTORY_TEMP,
DIRECTORY_MNT,
};
Later, this announcement will be held, and if it is on the approved list, you will see it in the File Explorer in Eclipse:
// 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 not in the approved list we skip this entry.
if (found == false) {
continue;
}
}
, , , , . ADT.
, :
adb shell ls -l
, Android-. .