i was looking for a more easy option to push files to my android device than running a ftp server and run a ftp client on the pc, the best option in my mind would be to run a samba server on the device, which would enable both, linux and windows boxes, to pull and push files from and to the device, but it seems there is no such software available, i found a project about exactly this, but it seems dead at birth, no submits, nothing in there... for my part i am unable to code this by myself (otherwise i would type some code and not a lousy forum entry ), but i think if a talented dev would take this task it would benefit the whole comunity.
nice greets FadeFx
since i didnt check back here for long time i missed that the task is already done and a working solition is available.
hey there I was lookin for similar feature , its not exactly the sme well it is , but anyways , Estrong Explorer does the job for what you are tryin to do , ( ESexplorer) free inmarket . as long as phone is reg on network it will access your share
Hi, I just got Samba server (2.2.12) working on my HTC Hero. The daemons smbd+nmbd take up just under 4Mb memory when running (and opening a shared folder on the phone from a computer on the network will launch another smbd daemon, which is about 2.5Mb).
The main problem I'm having is slow xfer rates - seems to max out at 600 - 700Kb/s. Its the same if i SCP files though, so I dont think its a problem is with samba specifically...
I can provide a tarball with the files if you want to try it out (install & configuration is through a root shell, its all pretty basic at the moment).
By all means, I'd like to try it on my Nexus. Just finished a thread about changing Nexus One's hostname from default "localhost", and understood that besides my router, I can't do much with it on Windows network w/o DNS
Please post the files & instructions.
I've checked the most recent version and the one before it, on Nexus.
Both exhibit the same behavior.
1) When trying to unzip to SD card, everything's ok and the default file attributes are preserved. When extracting to /data/local, no matter which way is used, "executable" attributes aren't preserved - only RW attributes. chmod +rwx samba/bin/* doesn't help, and when trying to execute "samba-rc start" via Terminal on the phone, it shows: "ash: can't find samba-rc" (I'm using ash). Using "su samba-rc start" also doesn't help, it shows "permission denied".
2) Trying to execute smbpasswd - it asks for a new password and confirmation, and crashes with segmentation fault.
3) Trying to execute samba-rc from ADB SHELL didn't throw any error messages, but it didn't work either.
I've tried both running from the phone's terminal emulator and by adb shell (I don't open the shell continuously, I run each command separately - adb shell "command", this way I can dump the output to PC by adding > in the end).
/data/local/samba/bin/nmbd -i -d 99
Looks like it's working, both from phone's terminal emulator and from adb shell. I see the Nexus being discovered by Windows 7 workstation on network scan (I've personalized the name - read my thread in Nexus development section on how to do that). nmbd_log attached, to check that everything's ok.
/data/local/samba/bin/smbd -i -d 99
Here the things start getting more interesting.
1) If I try to connect, after some time the smbd stops by itself - looks like after 5 failed attempts the server auto-stops itself. That's not a good behavior, especially considering that while Windows prompts you for username and password to connect, it also keeps trying to auto-connect using the default username (that's where 5 attempts come from). The server shouldn't stop itself. smbd_log1 attached.
2) If I write the user on time, smbd crashes while trying to compare passwords. smbd_log2 attached.
With the shell script, can you try running it like:
sh -c "/data/local/samba/bin/samba-rc restart"
if that still doesnt work, as a further test, open two root sessions via adb shell, in one run the nmbd command, in the other run the smbd (both with same options as before) then try browsing again from your computer.
Note: dont let your phone go into sleep mode (keep the screen active so the display stays on).
I had a chance to play with both versions some more.
1) using su and no shell (not running ash) I can run samba-rc, and it executes correctly. Both processes (nmbd and smbd) show up in ps. To achieve that, I needed to chmod +rwx /samba/bin/* after unzipping.
2) nmbd works well, and the phone shows up on Windows network.
3) It still doesn't allow logging into it, and I believe the problem lies in smbpasswd executable, which still shows erroneous behavior:
Tried to login using default user bogan: "network resource not available" message coming from Windows upon entering login credentials. Phone stays on the network and can be accessed again, but login is still impossible.
Tried to change default user's password: smbpasswd asks for new password twice (without asking for the old one - which is wrong behavior!) and crashes with segmentation fault.
Tried removing /samba/private/smbpasswd file and creating a new one, using smbpasswd -add username. Worked, but no password was asked for the user.
Tried to change password for new username. The same as before - asked for new password twice, then crashed with segmentation fault.
When tried to login with the new user, it didn't show "network resource not available", but it kept asking for password (the dialog where username is already there, and only the password needs to be retyped). I didn't know the default password that smbpasswd creates, if any. Tried nothing, tried several basic options (root, same as username, etc), none worked.
I believe the problem might be smbpasswd not working correctly on Android 2.1.
If you are a flashaholic and an owner of the Sony Xperia U, you may be interested in the … more
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?