[APP][2.2+]SambaDroid 2.1.0

Search This thread

berserker_devel

Inactive Recognized Developer
Jan 20, 2011
367
266
25uktoo.jpg


SambaDroid is a native port for Android of the popular Samba for Linux.
This application allows you to share/manage files on your device easily from any PC of your network.




Once started, just type \\SAMBADROID in your computer, use 'android' as user and enjoy.

Please note that this application requires root

2.1.0 changelog:
  • Optimized layout for tablets
  • Fixed a problem with in-app purchase restore
  • Google Play Services updated
  • Minor UI changes
2.0.0 changelog:
  • complete UI rewrite!
  • sperimental x86/mips support
  • Samba updated to version 3.6.22
  • android.permission.ACCESS_SUPERUSER permission added
  • fixed the root popup issue
  • Explicit ethernet support
  • new option "Boot autostart"
  • improved users/shares management
  • extended notification support (pro)
  • Widget support (pro)
1.0.6 changelog:
  • new translations: Chinese, German, Hungarian, Italian, Russian and Spanish
  • new share option "read only" (pro)
  • added WiFi whitelist (pro)
  • fixed the "read only" bug with multiple shares
  • fixed su popup issue
FAQs:
  • q: Where can I find the modified Samba source code?
    a: Here it is.
  • q: Why my transfer speed decrease when I turn off the screen?
    a: Enable the option 'Lock Wifi'. If your device is running at least Android 2.3.x, you should get full speed transfer even when the screen is off, otherwise enable the option 'Lock screen' too.
  • q: How can I automate the application start/stop?
    a: Use the following broadcast intents:
    • START: berserker.android.apps.sambadroid.command.START
    • STOP: berserker.android.apps.sambadroid.command.STOP
    • If you are a Tasker user, please follow these steps (thanks to bcrook)
      1. Create a new Task (eg. Start SambaDroid) in Tasker
      2. Add a new action > Misc > Send Intent
      3. Set the action to berserker.android.apps.sambadroid.command.START , Cat = None, the rest you can leave as defaults
      4. Save the action and task
      5. Repeat for berserker.android.apps.sambadroid.command.STOP intent
      6. Create a profile to trigger the tasks (or launch w/ NFC or whatever you want)
      You can test the Task by clicking on the Task and clicking the Play icon in the lower right of the popup.

Download from Google Play


Support this project


If you want to translate SambaDroid into a new language:
  • download the attached file translate.zip
  • edit the xml inside the zip (strings.xml) in this way:

    Original line:
    <string name="ftp_user_invalid_password">Invalid password</string>
    Translated line:
    <string name="ftp_user_invalid_password">My translation of Invalid password</string>
    Please do not translate anything inside the "name" attribute:
    <string name="do not translate this">
    But only:
    <string name="my_key">Please translate only this part</string>
  • Attach in this topic a modified version of the file or send me a pm with the download link (please remember to indicate the new language!)

I'll be glad for every contribution :)

Available translations:
 

Attachments

  • translate_2.0.0.zip
    4.8 KB · Views: 1,010
Last edited:

tramp20

Senior Member
Jan 15, 2012
798
166
Rosenheim
Apps & Games
Thanks for the beta.
I starts fine but Windows wants to get a username (as in Samba filesharing) and a password.
So I cannot connect too.

Edit: the user root as suggested does not help.
 
Last edited:

erik501

Member
Aug 12, 2010
46
6
yes without password i can connect device from windows xp sp3 without problem navigate into my sdcard
when i change password example "ciao" and restart sambadroid i can't have access from pc.
Ps Galaxy Note with Rocket rom Jelly Bean v1
 
Last edited:

tramp20

Senior Member
Jan 15, 2012
798
166
Rosenheim
Apps & Games
yes without password i can connect device from windows xp sp3 without problem navigate into my sdcard

Yes now I tried this with success. Thank you.

What is the difference between Netbios name and Server string?
From Windows I always see SAMBADROID in the network neighborhood even I changed the server string. Is it hardcoded?
The NetBIOS name is not seen in Windows.

Please add a username for us windows user.
The logfile does not provide any information about failed logins.
 
Last edited:

gsustech

Member
Jun 28, 2007
11
0
Thanks for the beta and for finding time to reviving this app!

I'm having a problem starting the service on my Galaxy Note 2 with JellyBean as can be seen in the attached screenshot.

I peviously have SambaFileSharing app + patch app installed but I uninstalled them before installing your beta.

Sent from my GT-N7100 using Tapatalk 2
 

Attachments

  • uploadfromtaptalk1351773793818.jpg
    uploadfromtaptalk1351773793818.jpg
    66.4 KB · Views: 5,205

berserker_devel

Inactive Recognized Developer
Jan 20, 2011
367
266
Thanks for the beta and for finding time to reviving this app!

I'm having a problem starting the service on my Galaxy Note 2 with JellyBean as can be seen in the attached screenshot.

I peviously have SambaFileSharing app + patch app installed but I uninstalled them before installing your beta.

Sent from my GT-N7100 using Tapatalk 2
Thanks for reporting this: it seems that we have here a problem with the installation (the service doesn't find the config file).
You can try to:
  • Edit options (just to override the new config file)
  • reinstall the application
  • post a screenshot of your directory structure inside /data/data/berserker.android.apps.sambadroid/samba (this could really help)
Please let me know :)
 

berserker_devel

Inactive Recognized Developer
Jan 20, 2011
367
266
I can't get it the server to start on my Nexus S 4G Running CM JB nightly

here is the log


iWrNywnj69N9Y.png
Can you please post the whole logs files? I'm realizing now that I had to automate this for the beta...
You can find the two log files under /data/data/berserker.android.apps.sambadroid/samba/var.

P.S.: I have no idea by now for the problem sorry...

Thanks for reporting this: it seems that we have here a problem with the installation (the service doesn't find the config file).
You can try to:
  • Edit options (just to override the new config file)
  • reinstall the application
  • post a screenshot of your directory structure inside /data/data/berserker.android.apps.sambadroid/samba (this could really help)
Please let me know :)

So bad :( I tested the functionality before releasing the beta (but not only on boot...).
Does it work if you disable/enable the WiFi?
 

swayjd

Senior Member
Aug 10, 2011
271
39
Dublin
Works perfectly on my Gnex CM10.

Just started the app and the server started running, didn't need to change any options, it just worked out of the box. Thanks a lot for this!
 

gsustech

Member
Jun 28, 2007
11
0
Thanks for the reply. I tried editing the settings, reinstalling and disable+enable wifi but still have the same type of errors.
Attached you can find some further screenshots including the contents of the folder you mentioned.

I noticed that on the first run it gives the error "cannot find a valid WiFi interface" as can be seen in the screenshot.

Thanks for your time and help!

Sent from my GT-N7100 using Tapatalk 2
 

Attachments

  • uploadfromtaptalk1351791387056.jpg
    uploadfromtaptalk1351791387056.jpg
    69.9 KB · Views: 771
  • uploadfromtaptalk1351791397450.jpg
    uploadfromtaptalk1351791397450.jpg
    64.8 KB · Views: 768

wavrunrx

Senior Member
Jul 14, 2011
955
398
any chance we can have an option to auto-run the server @ boot ?
how about an on/off widget ?
any chance we can navigate to / and not just sdcard ?

:D
 
Last edited:
  • Like
Reactions: swayjd and Rob2222

Top Liked Posts

  • There are no posts matching your filters.
  • 58
    25uktoo.jpg


    SambaDroid is a native port for Android of the popular Samba for Linux.
    This application allows you to share/manage files on your device easily from any PC of your network.




    Once started, just type \\SAMBADROID in your computer, use 'android' as user and enjoy.

    Please note that this application requires root

    2.1.0 changelog:
    • Optimized layout for tablets
    • Fixed a problem with in-app purchase restore
    • Google Play Services updated
    • Minor UI changes
    2.0.0 changelog:
    • complete UI rewrite!
    • sperimental x86/mips support
    • Samba updated to version 3.6.22
    • android.permission.ACCESS_SUPERUSER permission added
    • fixed the root popup issue
    • Explicit ethernet support
    • new option "Boot autostart"
    • improved users/shares management
    • extended notification support (pro)
    • Widget support (pro)
    1.0.6 changelog:
    • new translations: Chinese, German, Hungarian, Italian, Russian and Spanish
    • new share option "read only" (pro)
    • added WiFi whitelist (pro)
    • fixed the "read only" bug with multiple shares
    • fixed su popup issue
    FAQs:
    • q: Where can I find the modified Samba source code?
      a: Here it is.
    • q: Why my transfer speed decrease when I turn off the screen?
      a: Enable the option 'Lock Wifi'. If your device is running at least Android 2.3.x, you should get full speed transfer even when the screen is off, otherwise enable the option 'Lock screen' too.
    • q: How can I automate the application start/stop?
      a: Use the following broadcast intents:
      • START: berserker.android.apps.sambadroid.command.START
      • STOP: berserker.android.apps.sambadroid.command.STOP
      • If you are a Tasker user, please follow these steps (thanks to bcrook)
        1. Create a new Task (eg. Start SambaDroid) in Tasker
        2. Add a new action > Misc > Send Intent
        3. Set the action to berserker.android.apps.sambadroid.command.START , Cat = None, the rest you can leave as defaults
        4. Save the action and task
        5. Repeat for berserker.android.apps.sambadroid.command.STOP intent
        6. Create a profile to trigger the tasks (or launch w/ NFC or whatever you want)
        You can test the Task by clicking on the Task and clicking the Play icon in the lower right of the popup.

    Download from Google Play


    Support this project


    If you want to translate SambaDroid into a new language:
    • download the attached file translate.zip
    • edit the xml inside the zip (strings.xml) in this way:

      Original line:
      <string name="ftp_user_invalid_password">Invalid password</string>
      Translated line:
      <string name="ftp_user_invalid_password">My translation of Invalid password</string>
      Please do not translate anything inside the "name" attribute:
      <string name="do not translate this">
      But only:
      <string name="my_key">Please translate only this part</string>
    • Attach in this topic a modified version of the file or send me a pm with the download link (please remember to indicate the new language!)

    I'll be glad for every contribution :)

    Available translations:
    6
    Like the good old samba filesharing:)
    I'm on 10-20121106 -NIGHTLY-i9100

    speeds creeped from few hunders KB/sec to almost 2MB/sec, tried with 700MB file.
    Missing the second sd card though

    If anyone is interested, just to make life easier (ie lazier) added sdcard network location to right click - send to , sending files with 2 clicks to your phone
    Just add the sdcard network location shortcut (or whatever folder shortcut on your sdcard) to %APPDATA%\Microsoft\Windows\SendTo
    shortcut address should be something like \\SAMBADROID\sdcard\whateverfolder
    6
    New beta available!

    Changelog 1.0.2:
    • share path is now configurable
    • guests users are now configurable
    • new command to report log files
    • new options "require wifi" (useful if you need to configure the services on other interfaces than wlan)
    • new option "bind interfaces"
    • new option "autostart service"
    • fixed missing codepages in the package dir
    • fixed a possibile bug when the application is restored (thanks to TheMorpheus and Osprey00)
    • reduced package size
    • lots of other stuffs I don't remember

    In the first post I attached the code used by SambaDroid to detected the WiFi listening interface (that actually doesn't work on the Galaxy Note 2).
    I need someone that help me in debugging the code :)
    unclesamweneedyou.png


    P.S.: please note that the default username has changed in this version to 'android'

    You figured out a solution on your own by re-installing it, but if I pointed you in the right direction, you're welcome. Another solution, if Berserker's hunch is right, would've been to change the owner of the "nmbd" folder to "root" via Solid Explorer (on the same page as the "Change" button that I mentioned earlier) or other file manager. Anyways, the problem was even simpler than realized. I take it that you had Android 4.1 (CM10) with SambaDroid installed, backed everything up with Titanium Backup, flashed Android 4.2 (CM10.1), then restored your backup. Like you said, it could be an issue with Titanium Backup not restoring ownership rights or permissions correctly for SambaDroid's folders and files. If so, it doesn't sound like a huge, huge problem, but, maybe, as a workaround for users' sakes, SambaDroid could check for and fix incorrect permissions (or, at least, somehow detect a problem and recommend a re-installation).
    I already implemented a fix for this situation in the 1.0.2 beta :)
    4
    It works if selinux is set to permissive. Tested on CM13 klteduos
    3
    Version 2.0.0 just published on Google Play!

    Changelog:
    • complete UI rewrite!
    • sperimental x86/mips support
    • Samba updated to version 3.6.22
    • android.permission.ACCESS_SUPERUSER permission added
    • fixed the root popup issue
    • Explicit ethernet support
    • new option "Boot autostart"
    • improved users/shares management
    • extended notification support (pro)
    • Widget support (pro)