Search code examples
androideclipseddms

DDMS Android File Explorer display dot folders


How do you get the File Explorer in DDMS to display folders that start with a dot.

For example, /mnt/.test does not show up in DDMS. Is there a way to display it?

I am aware that I can manipulate these files with adb shell. I'm asking if there is a way to do this with DDMS.

Edit: I submitted a patch to fix this in DDMS: https://android-review.googlesource.com/#/c/37801/ Basically you can rebuild ddmlib with the patch and drop it into eclipse and you will be able to see files and folders starting with a dot.

Edit 2: I've uploaded the patched ddmlib.jar since building Android just for this patch is a ton of work.

To use, you just need to figure out where eclipse is loading this jar from and put it there. On my windows machine it is eclipse\configuration\org.eclipse.osgi\bundles\355\1\.cp\libs.


Solution

  • It seems like at minimum you would need to do something like change

    Thread t = new Thread("ls " + entry.getFullPath()) { //$NON-NLS-1$
    

    to

    Thread t = new Thread("ls -a" + entry.getFullPath()) { //$NON-NLS-1$
    

    In the getChildren() method and a similar change to ls -la in the doLsAndThrow() method of com.android.ddmlib.FileListingService within the DDMS sources.

    You may also have to make changes elsewhere for results beginning with a . to be fully handled.

    (personally, I'll stick to the shell)