3

I've had a look around the web for an answer to this with no joy.

In my Eclipse (Helios) in DDMS mode I can't use the file explorer tab for looking at files on my device. If I start up an emulator it work fine but for my device its blank. I'm using CM7 on a HTC Desire

The closest to an answer was here but I'm not sure if its really a solution. I'm a bit wary.

Tim
  • 5,767
  • 9
  • 45
  • 60
  • YOu have to root your phone for that –  Nov 23 '11 at 15:01
  • 1
    It is rooted (using CM7). But I shouldn't need root anyway for file explorer to work. So I'm wondering it is actually a CM7 issue – Tim Nov 23 '11 at 15:10
  • Tim, that sounds like exactly the solution. CM7's ls command does not have sorting, copying an AVD's toolbox and re-linking ls worked for that guy, did you try it? – Jack Nov 23 '11 at 15:19
  • yep... just did that (see answer below) .. . I initially thought there was an `ls` command already and I was afraid to mess with it. Thanks for your help guys – Tim Nov 23 '11 at 15:25

2 Answers2

9

Problem solved.

I actually looked into /system/bin on the device and noticed there was no ls in the first place so I put a symbolic link in to toolbox (like how its set up in the emulator) and it works now.

In detail:

  • Reboot device into ClockworkMod recovery (via Rom Manager)
  • Mount /system via ClockworkMod options
  • In a terminal on your computer connect to the device with adb shell
  • cd /system/bin
  • ln -s toolbox ls
  • reboot

And now I can see the files

Tim
  • 5,767
  • 9
  • 45
  • 60
  • 1
    I had to copying "toolbox" from emulator and linking "ls" to it. See details instructions here: solved by copying "toolbox" from emulator and linking "ls" to it NOTE: Follow exact instructions, especially don't miss the "chmod +x toolbox" part – tamsler Jan 29 '12 at 21:47
  • @tamsler please edit your comment so the url works. Click on the 'help' link to see how to include hyperlinks. thanks – Tim Jan 29 '12 at 21:54
  • I'm using galaxy S2 with MIUI-GALNET mod. Although I've followed everything stated in the link and also in this answer, File Explorer still remain blank. ADB have no problem detecting my device, it's just the file explorer that is not showing anything. – Creniale Feb 01 '12 at 10:03
  • 2
    here is more detailed tutorial: [http://forum.cyanogenmod.com/topic/30765-solved-ls-command-for-eclipse-file-explorer/] – FrEaKmAn Mar 29 '12 at 21:14
  • My rooted viewsonic gtab not able to boot after above steps, crashes after boot animation and stops (it's runing in Adams honeycomb) – LOG_TAG Jun 20 '12 at 10:48
0

Just close the emulator and execute again.

AndroidRaji
  • 907
  • 14
  • 26