yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] andrewilley:
I assume the release version will be able to start/stop automatically, with no need for messing around with scripts?

So after a reboot, and/or whenever wi-fi is turned on (or the network reconnects when I get home, for example) the service should start running. Basically the same as the old Samba app.

I don't want to have to do anything on the phone, I just want the share to be there for me in order to connect from my PC whenever I'm within wi-fi range at home. A network whitelist would be good of course - I don't especially want the sharing service to be active while I'm connected to a hotspot in a random coffee shop!

Andre
[Android Apps and Games] chippyuk:
Ah ok! That is good new then, will see how it pans out. Thanks.

---------- Post added at 06:40 PM ---------- Previous post was at 06:28 PM ----------

It does that now, and apparently a whitelist is coming. But do you really want it running all the time when on your home wifi? The whole point of being able to control it with something like tasker is that you can set any conditions you like. For example only have it runing between 6pm and midnight, only have it active if your screen is turned on, it if is charging, or you could even have it only running if your PC or laptop are turned on. Having it running all the time will drain your battery quicker although I have not tested how much.

This is additional functionality for people who want to automate their phones to the next level. If you have not used tasker or a similar app I would highly recommend it.

---------- Post added at 06:54 PM ---------- Previous post was at 06:40 PM ----------

Not high priority (obviously) but it would be great to be able to change the Status Bar Icon. No disrespect at all to your icon choice but I can barely see it in the status bar when active.

Thanks.

---------- Post added at 06:55 PM ---------- Previous post was at 06:54 PM ----------

FEATURE REQUEST:

Not high priority (obviously) but it would be great to be able to change the Status Bar Icon. No disrespect at all to your icon choice but I can barely see it in the status bar when active.

Thanks.
[Android Apps and Games] andrewilley:
That's how I run the old Samba at the moment, yes (whitelisted for my home network). I just want it to be there whenever I need it really, in the same way that my NAS is for example. Although I do appreciate other people may want to automate its availability.

Andre
[Android Apps and Games] chippyuk:
Does it drain the battery much more than normal? May be worth a few tests!?!

I work from home most of the time so for me it is probably not viable battery wise to have it on all the time but some battery stats may convince! Will try some tests myself when I can :)
[Android Apps and Games] andrewilley:
Can't say I've noticed, but I've not checked. When the screen is off, wi-fi is meant to drop to a low-power background state I think (it did on my Desire-Z anyway).

Andre
[Android Apps and Games] Yufice:
That was probably it; it worked correctly after I uninstalled it a few times. Probably had some left over files or some process was running in the background.

I got it to work briefly yesterday without doing anything special, but it would only let me see "sdcard", which was actually the onboard storage for the phone. It wouldn't let me see the ACTUAL sdcard. After a while it timed out and I haven't been able to connect since.
[Android Apps and Games] chippyuk:
The SD card is the internal storage which on most phones is correct. Some android phones have an "additional" microSdCard which is actually referred to as extSDCard. Support for this is coming soon. :)
[Android Apps and Games] chippyuk:
Hey,

bcrook kindly posted how he got takser to send the intents but it was identical to how I have been doing it.

Anyway, something I should have done initially was to install SSHDroid and test it. So I did and the intents worked flawlessly via Tasker.

So, only conclusion is that SambaDroid is not working correctly yet from the phone itself.

Thanks.
[Android Apps and Games] Lar3s:
Amazing app. :good:

It will be good if you post lang files on crowdin.net. :o It is fully works for me, and I want to help with translation to Russian/Ukrainian (previously, I've done it for FTPDroid).
[Android Apps and Games] berserker_devel:
Sorry for the delay but I was unable to finish the new beta last week, I hope to release the new version in a few days :(

I confirm that this will be supported in the next releases (I'm already working on this).

I added more logs in the next beta, I do not exclude a bug in the code.

Thanks for your support!

Once I'll cleanup the lang files, I'll publish those here :)
[Android Apps and Games] Magissia:
Hello, i'm glad to see that you plan a multi user support, do you plan a Active Directory support too ?
[Android Apps and Games] Ticklefish:
Well, this looks very interesting. I can't wait to try it out later!
[Android Apps and Games] BRK666:
thnaks m8, i will try it :good:
[Android Apps and Games] cooldude9119:
Hi mate nice app, but when I try to use it I get the same error as andrewilly, I get permission denied msg in windows, fit your info I run windows 7 ultimate x64, my phone is Xperia ray running stock based tweaked ICS rom.
[Android Apps and Games] donothurtme:
Same problem here, tried with 2 different Pcs too
[Android Apps and Games] tramp20:
Same here too:

running SambaDroid on CM10 JB (LG-P970) I can access the Smartphone from Windows (with known problems) but

running on Zeus 7.05 GB on the same phone I have no chance to connect from Windows (7 and 8 on several PCs).
[Android Apps and Games] t3vio:
Very interesting app. Will the "cannot find a valid wifi interface error" be fixed in the next beta? Im using a Note2. Thx
[Android Apps and Games] orb3000:
Closed

We have a GPL violation, Samba is released under the GPL. You mentioned that will would publish sources three weeks ago and that has not happened.

So thread will be closed until that happens
[Android Apps and Games] orb3000:
Re opened as OP agreed to include the necessary files at 1st post
[Android Apps and Games] tboooe:
I can't access my phone via \\sambadroid\sdcard even though I can see it in My Networks. However if I type in the IP address it works fine.
[Android Apps and Games] arcma:
no access

First of all thank you for developing SambaDroid!

I have the exact same problem as andrewilley. I cann't get access in any configuration. But "Samba Filesharing" works sometimes...

If I try to get without "\sdcard" it asks username/password if I try with "\sdcard" - simple message "no access".

In log: INFO: INTERNAL ERROR: Signal 11 in pid...

Motorola Atrix2, Android 4.0.4
[Android Apps and Games] berserker_devel:
I just want to paste here my reply about this (I wrote it yesterday in the "Samba Server for Android" topic since this one was locked without any notice to me and I hadn't the opportunity to reply here).

Please note that my original reply has been modified (with a post of another user that agreed with me), here it is the original one:

Peace :good:
[Android Apps and Games] floopyb:
Is there supposed to be external SD card support? Im on a SGS3 i9305 and im only getting the sdcard share, no access to the external SD card.
[Android Apps and Games] andrewilley:
Not as yet, we're all anxiously awaiting the next beta release which is meant to support this, amongst other things.

Andre
[Android Apps and Games] Aaandro:
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
[Android Apps and Games] schmitz82:
Thanks for your work! Finally a working samba server for jelly bean! Runs on my defy with cm10 with approximately 1 mb/s for small files (5 - 10 MB).

I hope there is soon a stable "pro" app in the market without ads.
[Android Apps and Games] TheMorpheus:
I was an happy user of this app until I've upgraded to CM10.1 (Android 4.2) and now it doesn't working anymore :crying:
[Android Apps and Games] berserker_devel:
Not in the next release but I don't exclude it once the app will be more stable :).

:eek:

Thanks for reporting that...by now I have no idea about the problem (with the next release you will be able to increase the log level, maybe it will be useful).
[Android Apps and Games] wavrunrx:
any idea when this new version is slated for rls ?
[Android Apps and Games] Osprey00:
Use a file manager (I love and recommend Solid Explorer) and browse to /data/data/berserker.android.apps.sambadroid/samba/var in the system root. Find the "nmbd" folder and check the permissions (in Solid Explorer, you press and hold on the folder name, choose Properties from the pop-up menu, then press the "Change" button). The permissions ought to be drwxr-xr-x (at least they are on my working 4.1 installation). If they're not, change the permissions to that and then try starting SambaDroid again. If you still get errors, try setting full permissions for the file that's inside that folder. If you still get errors after that, try setting full permissions for the "nmbd", "samba" and "samba.h" files (not folders) under the "var" folder, as well as for each of the folders under the "berserker.android.apps.sambadroid" folder. If one of these fixes it, make sure to say which so that Berserker's job is easier.

Berserker, I was able to duplicate TheMorpheus' error messages (and break the service) by taking away "group" and "others" permissions from the /data/data/berserker.android.apps.sambadroid/samba/var/nmbd folder (changing them from drwxr-xr-x to drwx------), so I think that the error revolves around the permissions for that folder (or, maybe, the entire berserker.android.apps.sambadroid folder tree) being set incorrectly on Android 4.2.

EDIT: On another hunch, I uninstalled SambaDroid, re-installed it and checked the /data/data/berserker.android.apps.sambadroid folder before running the app. Apparently, the lib folder is the only thing in there before SambaDroid runs for the first time. SambaDroid, therefore, creates all of the other files on first run. Perhaps Google changed default permissions for newly created files in the system root in 4.2 or something. If so, you may need to explicitly grant the necessary permissions, perhaps for more folders and files than just the "nmbd" folder.
[Android Apps and Games] berserker_devel:
I still need to fix some small things but it's ready :)

I don't make promises but I hope to release it by tomorrow.

Thanks for your analysis!

I'll have a look on it :good:
[Android Apps and Games] andrewilley:
Oh go on, make us a promise... :)

Andre
[Android Apps and Games] berserker_devel:
I had a look at the problem and Osprey00 is right but the problem is related to the owner too (not only permissions): in particular it should be set to "drwxr-xr-x" with the owner root.

I found the check in the samba sources here:

/* Check ownership and permission on existing directory */
if (!S_ISDIR(st.st_mode)) {
DEBUG(0, ("socket directory %s isn't a directory\n",
socket_dir));
goto out_umask;
}
if ((st.st_uid != sec_initial_uid()) ||
((st.st_mode & 0777) != dir_perms)) {
DEBUG(0, ("invalid permissions on socket directory "
"%s\n", socket_dir));
goto out_umask;
}

I'd like to see your permissions/owner for the folder, can you post a screenshot of the command "ls -l" inside /data/data/berserker.android.apps.sambadroid/samba/var please?

Here it is what I need:

​
[Android Apps and Games] TheMorpheus:
Thanks for your analisys, I've tried all you said but not luck!

Than I've unistalled and re-installed the program and it worked! Maybe it was just a problem with Titanium Backup.

Thanks again!!
[Android Apps and Games] Osprey00:
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).
[Android Apps and Games] berserker_devel:
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 :)

​

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

I already implemented a fix for this situation in the 1.0.2 beta :)
[Android Apps and Games] chippyuk:
Great!

Thanks for the latest update!

First thing I noticed is that installing over the previous version gave an error that it could not create a folder (sorry did not notice the name) when trying to start the service. Just cleared the app data an uninstalled, then re-installed. All fixed.

Just to confirm, can now set specific path which is great but wanted to ask if the function "+" to add other shares and users is not implemented yet or is it an issue here?

Thanks again!

EDIT: Also, the send intents is working here now! Brilliant!

---------- Post added at 09:56 AM ---------- Previous post was at 09:24 AM ----------

First few issues I have come across;

1. Transfer speeds are very low, I am getting 150KB/s whereas With Samba Server I am getting at least 2.6MB/s. Log sent althogh only low log (I think) due to point 2.

2. Setting Debug mode to Medium or High kills my I9305, Tells me SambaDroid is not responding after a short period of time.

Thanks.
[Android Apps and Games] tramp20:
Thank you for the update.

I deinstalled the v1.01 and then installed the v1.02 but I had problems to get root access. I had to stop the app and to delete all datas and now I was asked for root access by supersu 0.98.

Now I am waiting for the paid version :)
[Android Apps and Games] fit333:
This will be amazing. Won't start on note2

Only major feature missing from android. Keep it up.
[Android Apps and Games] tramp20:
After returning from sleeping or manually start WiFi SambaDroid is starting but the app icon stays disappeared until I start the app manually.

Testing on CM10 now.

Edit: on FTPDroid there is a similar problem with the notification icon.

---------- Post added at 01:10 PM ---------- Previous post was at 12:15 PM ----------

The RO attribute is always there, so I can rarely use this app :(
[Android Apps and Games] berserker_devel:
That's strange...I'll investigate on this, thanks ;)

No issue there, that feature is already implemented (as well as multiusers and shares restrictions by users) but I'm still evaluating the functionality of the "pro" version.

:good:

I'll test the transfer issue in these days. In general don't set debug mode to High since it will be too verbose and the app will fill too much data in the log window (that's why the freeze).

The root issue is strange but I have no control over that, maybe it could be a problem related with supersu.

​

Are you a developer? Can you help me in debugging the code attached in the first post?

If you aren't a developer please try to set the option "Bind interfaces" to wlan0 and let me know if it works.

Thanks for reporting, I'll have a look on it.

Please can you post a screenshot of a "ls -l" of the folder where you copy the files?
[Android Apps and Games] chippyuk:
Thanks for the reply.

I have tried everything now and just cannot get decent transfer speeds compared to Samba Server.

Can others please post what sort of rates they are getting.

Also would it be possible to include different statu bar icons? Perhaps a WiFi symbol or similar as the current icon is pretty dark.
[Android Apps and Games] wjchen0:
Get right ip address in wifi mod.

But get ip address like "fe80::464:....",the right is "192.168.43.1".

I think you can use native c code detect ip address.

Read /proc/net/dev to see interfaces enabled.

Use ioctl to get ip addr.

I'm using i9100 and stock 4.1.2 rom.
[Android Apps and Games] andrewilley:
I just uninstalled the old beta and installed 1.0.2.

Love all the neat new options, but sadly it still doesn't actually work for me :(

I do see SAMBADROID in my Windows 7 network devices list, but double-clicking on it just brings up a connection error. Same with \\<IPaddress> and \\SAMBADROID and \\<IPaddress>\android and \\SAMBADROID\android. I do see log entries appearing in the Sambadroid log, so the app is being accessed, but no connection.

Also, it still kills my tablet (Galaxy Tab 10.1, ICS) if I launch the app with wi-fi turned off (requiring a forced reboot).

Let me know what logs would help you.

Andre
[Android Apps and Games] FadeFx:
I get some frequent service restarts for no visible reason

___________________________

tapatalked from Galaxy S3
[Android Apps and Games] lap777:
The (+) button doesn't work for me, I can't add a new user or a new folder. And the "..." to select user(s) of a shared folder is greyed out (maybe because there is only one user).
[Android Apps and Games] FadeFx:
I think those buttons are just stubs for not yet implemented functionality...

___________________________

tapatalked from Galaxy S3
[Android Apps and Games] mtechie:
Thanks a lot for the app.

v 1.0.1 did not work for me , access denied even though I could see the phone over the network and then after some time, I use to get SIGTERM 11 error.

v 1.0.2 does not work too, this time it says phone is not rooted, (my phone is rooted , and have other root apps working fine)

Could you take a look pls.
[Android Apps and Games] tramp20:
Hi berserker,

I assume you are not a windows user :)

I map in Windows a network drive as usual with:

net use p: \\LG-P970\sdcard /user:android ""

With your SambaDroid running on my smartphone all directories and files on drive p: have now the attribute read only and if I copy a file from p: to a windows pc the attribute read only is copied too.

With the old Samba Filesharing app the file and directory attributes are normal, only the archive bit is set.

This behavior is very annoying so I have to use your FTPDroid app.
[Android Apps and Games] yeppix:
Galaxy Nexus, CyanogenMod 10.1, doesn't work.

I see "service is starting" and at the end - "stopped". That's all.

Also i can't add new user or change existing one ("android") - i can't push button "+" trying to add new user.
[Android Apps and Games] 4nubis:
Works fine on my Galaxy Nexus 4.2 stock (rooted). Also works fine on my Android-TV-Box 4.1. :D:good:

On my Android-TV-Box i use an USB-Ethernet-Adapter, then its impossible to activate the Wifi. So is it possible to expand the app that i can use it with ethernet?
[Android Apps and Games] Osprey00:
Are you using v1.0.2 and did you have v1.0.1 installed before? Try uninstalling SambaDroid and re-installing v1.0.2. If you still get the error, it'd be helpful to Berserker for you to pull up SambaDroid's log, take a screenshot and attach it.

As for adding a new user or deleting the existing one, I think that those are dummy buttons that don't do anything yet. You can edit the existing user by long-pressing it. You apparently can't change the name, but you can set a password.
[Android Apps and Games] wavrunrx:
same here.

also the previous beta worked just fine, but with beta 2, the server wont even start, see link below:

https://dl.dropbox.com/u/66962/Misc/2012-12-01%2018.41.23.png
[Android Apps and Games] t3vio:
I changed the Bind interfaces to wlan0 and sdroid is now working so far perfectly on my Note 2.
[Android Apps and Games] berserker_devel:
In the last beta I tried some different settings in building Samba, maybe the transfer speed could be related to those recent changes (what about the previous beta?). I'll have a look too on the status bar icon, can you suggest another one?

Well that's strange, I use the "plain" Android API to get the IP address. NKD is not a problem but I'd like to see what's not working there...

Can you suggest a code snippet that works on your device? I can post my implementation to compare it.

Please can you send me your logs using the new command "send logs"?

Please can you change the debug level to medium and send me your logs?

The command is simply disabled :D

As I wrote before this is because I'm still evaluating the functionalities of the "pro" version but the implementation is already done.

Here it is some screens:

​

Please can you try to uninstall/reinstall the application? It seems that the new beta has some "upgrade" problems :crying:

I'm a multiplatform user where platform != apple :laugh:

Sorry but I didn't explained myself correctly: I'd like to see your files permissions not from Windows but from the device itself.

If you have experience with adb, you can simply write (once your device is connected to your pc):

adb shell
cd <your_dir>
ls -l

Another solution is to use a terminal emulator of course. Please let me know

Did you upgrade from the previous version? As I wrote before, please uninstall and reinstall the application.

Please disable the option "Require WiFi" and let me know if it works. If it doesn't, you have probably to play with the option "Bind interfaces".

I'd really like to solve this problem without having to manually write this option by "hand", any chance from you to debug the code in the first post? :fingers-crossed::fingers-crossed:
[Android Apps and Games] t3vio:
How do I run the testwifi.java? Im not a dev, just a Android User ;-D
[Android Apps and Games] swayjd:
stopped working for me with stock 4.2.1 (rooted of course). But it works with cm10.1.

So it works with CM but not AOSP. It's a Gnex.

Any idea?

update, so with 1.0.2, the server starts but I cannot access it through windows. I can, however, access through another android. In Windows I get a message saying "Logon Failure: account currently disabled." Could this be because it is trying to enter the Root username that the app used before? I have no idea how to change it though. It simply wont ask me for credentials, just errors out.

update #2, ok changed the netbios name and it worked.
[Android Apps and Games] FadeFx:
Doing so made the app lag a lot so it was unusable as soon as the service started and crashed after a while... :( not possible to get the logs

_________________________

tapatalked from GalaxyS
[Android Apps and Games] andrewilley:
Full debug mode just locked up my tablet after I tried to connect to Samba a couple of times (Windows screenshots attached, another full reset on the tablet needed) so I've tried medium level. The odd thing is that there is definitely some valid communication going on (the PC's network name appears in logs for example).

The "Send Log" option is greyed out though, and there's too much detail to send as screenshots. Where is the logfile located, and I'll grab it directly? (I can't see anything helpful in the app's system directory)

Andre