yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] tramp20:
Sorry, I was mountain biking this morning and had no time to write.

Lan drive behaves as you programmed it :)

With your solution LD never starts the server if WLAN comes back.

IMHO this is not user friendly. I attached a screenshot how SambaDroid solved these settings.

If the phone display (not charging ofc) goes off, after a short time WLAN shuts off too (even if there are active connections to a PC) and if there are no permanent wakelocks (from LD. e.g.) the phone goes to deep sleep.

Shortly after WLAN is off SambaDroid (or Samba File Server) shuts down too with only some few wakelocks to detect if WLAN starts again.

When WLAN comes back SambaDroid starts after ~30 sec.
[Android Apps and Games] EasyGame7:
[MENTION=1902945]poppyto[/MENTION]

Here is it, thank you for helping

https://drive.google.com/open?id=1_JFpZahB6NQKugZi03kiZ7Q50XtDKJXM
[Android Apps and Games] poppyto:
It looks like there's a problem with your ROM, could you open a shell as su and type this command :

adb shell

su

stat /

Send it what's happen
[Android Apps and Games] EasyGame7:
[MENTION=1902945]poppyto[/MENTION]

Here is it

u0_a88@spirit4:/ $ adb shell

* daemon not running. starting it now on port 5038 *

* daemon started successfully *

error: device not found

1|u0_a88@spirit4:/ $ su

u0_a88@spirit4:/ # stat/

sh: stat/: not found

127|u0_a88@spirit4:/ #
[Android Apps and Games] poppyto:
You may probably missed the space between stat and /, please type, could you retype it please ?
[Android Apps and Games] poppyto:
Ok I found "stat" command is not shipped with AOSP Android, I will ship it with the app in the next release
[Android Apps and Games] korvin793:
I don't know that I must to do
[Android Apps and Games] poppyto:
I sent the 2.0 version, now the server auto stop when WLAN is down and restart when WLAN is up again.

On the new version (2.0), it include busybox => it should work for you now :)
[Android Apps and Games] EasyGame7:
Thank you, it works like a charm now.

But just for the first time I start it after reboot. If I stop the server and start it again, the dialog about "Window cannot access \\.." appears., the I have to reboot to make it works and keep the server for instant
[Android Apps and Games] tramp20:
Thank you. LD stops if WLAN goes down, no longer autostops if no connections to the PC: fine :)

But LD never comes back on one of my two Sony Z1c if WLAN is up again. The second one is ok.

I will make a fresh installation on the first, I had a similar problem with LD some time ago.

Thank you for your fast work :)

Edit: I did a clean installation of LD on the first Z1c but LD doesn't autostart if WLAN is up.

And this Z1c does not show an existing connection even I have access to three shares.

Does a debug file help?

I will try later.
[Android Apps and Games] poppyto:
There's a timeout of 30s on Explorer, when it can't connect, wait 30s and try to reconnect again.

Maybe the inactivity timeout closed the connection instead of Wifi off ?

In any case yes send a debug please :)
[Android Apps and Games] EasyGame7:
[MENTION=1902945]poppyto[/MENTION]

Wait a long time (about 10 minutes) and start the server again, but still the old dialog

[IMG="Dialog"]https://img.xda-cdn.com/PSQEJ3FCmhdNC3utcjqK3tY5DSk=/https%3A%2F%2Fxdaforums.com%2Fattachment.php%3Fattachmentid%3D4508503%26stc%3D1%26d%3D1527130189[/IMG]
[Android Apps and Games] poppyto:
After deep testing of Wifi off+on, I updated my code to 2.1 so I don't need debug for the moment => it should work really better now, let me know :)
[Android Apps and Games] tramp20:
The 2.1 is not yet arrived here, but on both smartphones the on/off works only sometimes. I will test later the 2.1.

Another little problem:

After a fresh installation LD could not see the subdirectories on all three shares, all were empty.

I got an error message (see screenshot).

I have ofc BusyBox pro v1.28.3 installed.

After a new start of LD all was ok again.
[Android Apps and Games] tramp20:
Yes, it works now very good but only (on two phones) after I did a restart of LD. Without this the result of WLAN off/on was unpredictable :(

Thank you again.
[Android Apps and Games] poppyto:
Mmm Ok, I forgot to install busybox when only browsing - for the moment it installs when the server is started - I will update today ;).

I will also do some test on a fresh install for Wifi On/Off check if something's wrong
[Android Apps and Games] tramp20:
I believe that autostop shuts down LD again, that is not correct because I cannot access or map the smartphone.

And if I deactivate autostop then I have again the permanent wakelocks which prevent the phone to go to deep sleep.

Could you decrease the number of wakelocks to perhaps 5/minutes?

If the screen goes down Android should have a chance to go to deep sleep and shut down WLAN before the next wakelock of LD wants to wake the phone up (sorry for my simple description).

Something is not working correct together :(
[Android Apps and Games] poppyto:
This is what I coded, I think it should be ok ?

- if server is started and WLAN down
- Server stops
- Wakelock is released
- if WLAN up
- Server starts
- Wakelock is acquired again

- if server started and has no connections since Timeout
- Server stops
- Wakelock released
- no scenario of relaunching
[Android Apps and Games] tramp20:
Some minutes ago LD does not shut down when WiFi was off or does not return when WiFi comes back. I could try this many times.

Then I forced close LD (with the back key) and LD behaves normal again. I do not know how long :(

This looks for me that perhaps a variable in your app is not always synchronized to the real state.
[Android Apps and Games] poppyto:
Ok got the bug, my code only works if you push the nav (center) button instead of back button (which close the page) => I fix it now :)
[Android Apps and Games] poppyto:
I sent 2.2 version. The code for getting the WLAN status didn't work in service mode - specially when Wifi goes up again - it looks like a bug in ROM,

so I add a 30sec timer to check network by myself and after testing it works like a charm now, let me know ^^
[Android Apps and Games] tramp20:
Yes, it looks good now on 3 smartphones.

But my most important problem still exists.

Even without an active connection none of my phones goes to deep sleep when the screen shuts off (without charging). WiFi remains active because of the wakelocks of LD.

Your inactivity timer has to be disabled because without an active connection (and screen on) WLAN should remain on so that I can always reconnect to the phone without manually starting LD.

You wrote:

Code:

- if server is started and WLAN down

- Server stops

- Wakelock is released

- if WLAN up

- Server starts

- Wakelock is acquired again

That is ok but that is always me who stop/start WLAN and not the phone.

Look at the screenshots:

The first one shows 40 min unplugged, 0% deep sleep, ~36 min awake with screen off

the second shows 34 min wakelocks originated from LD.

In posting #60 I wrote a dump try to explain what LD could do:

Could you decrease the number of wakelocks to perhaps 5/minutes?

If the screen goes down Android should have a chance to go to deep sleep and shut down WLAN before the next wakelock of LD wants to wake the phone up (sorry for my simple description).

In the meantime with MacroDroid I shut down WLAN and LD in the evening.

And a little simple wish: LD should start minimized after booting.

Thank you.
[Android Apps and Games] poppyto:
I think I got a simple solution for you : Inactivity timer will start only when screen goes off, what do you think of that ?
[Android Apps and Games] tramp20:
Yes, this could be a (temporary) solution.
[Android Apps and Games] poppyto:
Why temporary ? (Do you have a better idea ? We are working around for days ^^ we should close the case)
[Android Apps and Games] tramp20:
Sorry for the (temporary) and thanks again for your work.
[Android Apps and Games] EasyGame7:
[MENTION=1902945]poppyto[/MENTION]

Sorry for bothering you again but the problem about "stop and start server" wasn't solved. I don't think the problem is about timeout...
[Android Apps and Games] poppyto:
I sent a new version 2.3, please check and let me know
[Android Apps and Games] EasyGame7:
It's me again, the problem's still exist. I don't know if it's just me but no one experience this problem.

Maybe it's just my personal problem, you do a great support for us, I can understand if it's just mine one and live with them...
[Android Apps and Games] poppyto:
I can't reproduce your issue, could you make a video ? (with an other phone)
[Android Apps and Games] mcuong:
Start the server from Shell command feature please!

UI opening is very slow :D

Anyway, thanks very much for your work.
[Android Apps and Games] UnderPL:
Does this app consume battery when the server is started but idle (no client accessing the phone files)? If yes, is it significant?

Also, the smb server appear on windows but I cannot explore it. I get:

[Main Instruction]
Windows cannot access \\OP3
[Content]
Check the spelling of the name. Otherwise, there might be a problem with your network. To try to identify and resolve network problems, click Diagnose.
Error code: 0x80070035
The network path was not found.

same thing happens, if I type my phone ip address/hostname in the explorer

My log here: https://www59.zippyshare.com/v/zbCc4aYu/file.html
[Android Apps and Games] mattb5906:
Windows cannot access xxx

This is the only Samba server app that I've used that hasn't crashed when starting it and visible in Windows Explorer Network :good: Definitely going to purchase now.

I was having the same issue as others with Windows being unable to view the shares (error 0x80070035).

I've tried the following:

Accessing it via the IP address.

Trying all three authentication types.

Renaming the hostname to something shorter.

Adding one of the folder paths to the end of the address. e.g. \\Hostname\InternalStorage\

Changing the workgroup.

After restarting my phone and the server I was able to access it using both the hostname and IP address when set to anonymous (no confirmation). It prompted for a username and password so I tried 'root' and no password which worked.

If I use anonymous with confirmation it popped up with about 4 connections that I had to allow, all from the loopback address and various ports in the 3876x range. As well as being annoying to accept (swipe down on toast notification on each one to see allow and forbid buttons), it didn't seem to work.

Managed to get the users with rights working as well now.

Very pleased!

Device is rooted using Magisk.

Debug log when it wasn't working:

https : / / drive.google.com/file/d/1EjCB6-7Yel1POaUBaR53zkra4GeqZt7T/view

Debug log when working:

https : / / drive.google.com/file/d/1nCYFf4YYdDqXBSWm9I0e805VKZTGiXqJ/view

One suggestion: could you add a password peak/visibility option to make it easier to check that the user password entered is correct
[Android Apps and Games] Mango4u:
Not detecting Licence

I installed the app on my phone, found it to be working well and bought the speed unlock there. then I proceeded to install it on my android tv thinking that the speed would be unlocked and it would be perfect to share all my files from but on my tv box it wont detect the licence and I also cant purchase it again so I'm stuck with the slow speeds on the device I actually want it unlocked. Please advise. :confused:
[Android Apps and Games] aRainman:
Good app, but have many bugs.

Not working by name (Windows 7 error 0x80070035) only by IP. Not working with files larger than 2 GB - I get corrupting files with CRC errors :( Please update you samba lib and you code for 64 bit sizes!!! :'( For test you need to create a file, for example, make video larger 2 GB on your Android and try to copy it to other device, for example Windows. :crying:
[Android Apps and Games] kenan11:
this is the thing i am looking for. iinstalled and worked. i will try a few days before paying for full version

thanks
[Android Apps and Games] homarr1:
Program really slow down phone (Huawei P10 with Oreo 8.0 rom rooted) while works without problem on LG G4 with custom 7.0 rom.

Besides these problems, program works (I'll better check in the next days).

Bye

Omar
[Android Apps and Games] Jasonhc:
Smb2.O
[Android Apps and Games] Jasonhc:
How do i put a supported hot spot on my galaxy j7

Or can i even do it since its straight talk
[Android Apps and Games] R3claim:
Hello,

are you planning to add Tasker support for this App?
[Android Apps and Games] poppyto:
Since my last message, I sent a lot of updates with bugfixes and add new features (v 3.9):

- Shortcuts for android 7.1+ and more (Start/Stop Server)

- Start the Service without launching the UI

What do you mean by "Tasker" support ? Is it shortcut ? if yes, so it's already available :)

It should already works I guess ? if the IP is class C I don't see why it should not work, please let me know
[Android Apps and Games] R3claim:
No, I mean the automation App Tasker (play.google.com/store/apps/details?id=net.dinglisch.android.taskerm)

I woud like to start the Service with it.
[Android Apps and Games] poppyto:
I add a plugin in 4.1 (it's available now) so you can start/stop/toggle the service.

In Tasker, add an action => Plugins => LANdrive and then you can change the action (start/stop/toggle)

Let me know if it's ok for you ?
[Android Apps and Games] R3claim:
Its Perfekt, thank you!
[Android Apps and Games] xbatibotx:
4.3 is available. and it says that I can use it even on a non-rooted phone. but I don't know how to map port.
[Android Apps and Games] poppyto:
I'll write a tutorial inside the app soon :)
[Android Apps and Games] xbatibotx:
Wow! Thanks! I will be waiting for that. Btw, I purchased Lan Drive app on my windows 10 phone too. And it's great!
[Android Apps and Games] xbatibotx:
updated the app. it has a tutorial now. Thanks alot! going to purchase the app!
[Android Apps and Games] poppyto:
Here we go, the 4.6 version add a tutorial to use LAN drive without root, enjoy :)
[Android Apps and Games] ccchan234:
hello~, samba is gpl-ed

may i ask where the author put the source code for the samba part?

thank you
[Android Apps and Games] poppyto:
It's not a Samba fork.
[Android Apps and Games] ccchan234:
oops!

then i suggest u mention it along as it makes

a different to sambadroid and "samba file sharing".

and certainly people like me will actively ask for source code as we think its a samba fork (while this is not)

thx
[Android Apps and Games] poppyto:
I use the Samba term because only few people use "SMB" :) so it's easier to find Lan drive if people are looking for samba server but I will add it in the description it's not the samba source code
[Android Apps and Games] ccchan234:
shd be smb/cifs i think?
[Android Apps and Games] xbatibotx:
I already manage to get it to work. And I purchased the app too. I noticed that on the windows ver, the comm between my pc and my phone is faster than the android ver. The android ver is way too slow for me. Maybe because my phone is not rooted and I am cloning my port too...?
[Android Apps and Games] getle:
Hello poppyto,

I purchased your app and it works perfectly. It is a good replacement for the outdated berserker samba app, but one thing I miss is a widget for start and stop the server (for example a play/stop button). Can you add this in a future version?

thank you
[Android Apps and Games] poppyto:
What is the average bandwidth on your Android and on Windows ? Also, what are the Wifi connexions for both Wifi 2.4Ghz or 5Ghz ? (It's exactly the same code for each OS)

Already done through shortcut (Oreo), hold your finger on the main icon then, the shortcut appear, then hold the shortcut and move it on the main screen
[Android Apps and Games] antlad:
Hi there

I've purchased the android app a few days ago. After last update it seems much slower for Win10 to open the shares in explorer. Opening shares from other android devices remains fast.

Any thoughts on the subject?

I have already gone through the process of enabling SMB1 and tried other possible "fixes" but no result. Before the last update shares would just pop up open in my pc. BTW, I am using a guest account, no password.
[Android Apps and Games] poppyto:
A new version 4.7 will be available in one hour, it should fix bugs and add a new feature

* Android New Feature : You can use Storage Access Framework to Add directories (like SDCard) if you are non-rooted

* Android Bugfix : Notifications connections with Android Oreo and + didn't show

* Android Bugfix : Launch after boot couldn't boot on some Android Versions

* Android Bugfix : Possible fix for Date Culture Thaï

* Android Bugfix : Compilation AOT could broke the connexion, recompiled with the last tools seems better
[Android Apps and Games] antlad:
Thanks a lot:) Problem fixed! Accessing shares from Windows file Explorer is fast once again.
[Android Apps and Games] poppyto:
A new version 4.9 will be available in one hour, it should fix bugs and add a new feature :

* Android new Feature : WiFi WhiteList for auto starting server when you are connecting to a whitelisted WiFi (try it in the settings of the app)

* Android bugfix : bigfix for starting server on old Android (works on JellyBean)

Example : You're coming at home, your phone is auto-connecting to Wifi, LanDrive detects the WiFi (SSID+BSSID) on your whitelist and launches automatically the SMB Server (as a service if you have the option selected).
[Android Apps and Games] poppyto:
A new version 5.0 is available, here the logchange :

* Android bugfix : Support files up to 2GB in enclosed directories ('InternalStorage','LanDrive', any enclosed directories), the bugs cames from Mono framework, I use the classic Java API instead and all is ok.
[Android Apps and Games] poppyto:
A new version 5.2 is available, here the logchange :

* New feature : Client for connectings to other Servers (SMB1 or SMB2). You can view/copy/paste/delete etc. From your device to other SMB servers.It handles connections to any port (other than 445! For android non root server by example)

* New feature : Copy/Cut/Paste with progression view

* New feature : Multi-Select lists with actions (copy/cut/paste/delete)

* New HomePage with SMB Server informations at the bottom

* Auto purpose TCP port other than 445 (1445) when it's already used (or Android non Root)

* A lot of bug fixed thanks to your feedback, thank for your help
[Android Apps and Games] Darkness04:
Hi Guys. I have some Problems with this app too. The new smb client in 5.2 is nice but if i want to copy a file from my phone (rooted galaxy S5 with stock rom latest android 6.01) to my win 10 or win 7 pc (tested both) i get an error massage (System InvalidCastException:Specified cast is not valid). Firewall is off and full permissions on the shared folder are avalible. if i want to copy the file to my fritz!Box (router) NAS there is no error. If i want to copy from win 10 to Phone there is no error.

Other Problem. If the Smb Server is startet i can copy files with 10-15 MB/s (2.4 ghz wlan) between phone and win10 pc it works great. but if i want to open a video file with vlc Player (like *.mp4) stored on phone it´s look like the bandwidth is too low. the mp4 file has a bitrate 17 Mbit/s = 2-3 MB/s. When i used another app (Named Samba Filsharing) for this Scenario, the Videosteaming works without dropouts. Perhaps this bugs can be sloved in the next update? Thank You very mutch.
[Android Apps and Games] poppyto:
Hi Darkness04, I tried to reproduce your bug without success, can you send me an email at [ contact at webrox fr ] I will send you the procedure to send me the debug file.

But I doubt you can copy at 10-15MB/s with 2.4ghz (it looks like 5Ghz), 2-3MB/s is the normal bitrate for 2.4Ghz and you can't expect much...(no magical thing it's the bandwidth)

As it looks you have several Wifi confs, are you sure VLC (launching from PC/Android/IOs ?) is using 5Ghz Wifi ?

Stephane
[Android Apps and Games] papatzis:
Hi to all especially to the dev of this app.

A little help because I don't know what is going on with me.

I have a Cube Tablet running android 6.0, a xiaomi smartphone running android 6.0 miui 10, and a Windows PC running 64 windows 7 Pro.

I had installed the LD to both tablet and smartphone. Both are rooted, and smartphone has root using magisk, tablet had RR rom with embedded root through developer options.

When I Press start to samaba server it is running Ok ( Start convert to Stop ) in my windows PC I have at once the shares from both tablet and smartphone but when I press on the share I have the OX80070035 error which I had read in previous posts.

Both devices have your latest version of LD, and when I try to find the share of the opposite device in Samba client Tab, I don't see it.

I also cannot access the shares with the ip like //192.168.1.100 that is noticed in the main page of LD neither with there name like //XIAOMI

I also want to tell you that I have at least 3-4 other samba shares like satelite recievers, a tv box with samba server, and a synology nas etc, all those shares are working OK in my Pc and also in tablet and smartphone.

Some time ago I had tried LD on both devices and it was working fine, but I don't recall if then I had android 6 in tablet an miui 9 in smartphone, because I had updated both roms.

Thanks in advance and sorry for the long post.
[Android Apps and Games] poppyto:
Could you copy paste this email and send it to [contact at webrox dot fr] I will help you ;)
[Android Apps and Games] papatzis:
Hi [MENTION=1902945]poppyto[/MENTION] I had sent it

Thanks
[Android Apps and Games] 1727876:
Directory tree browsing speed

Hi [MENTION=1902945]poppyto[/MENTION].

I've installed the paid version but it's slow when browsing through a directory tree. For example it takes about one second to open just one folder, that sums up to a plenty of time during a day since the phone is actively used as a network flash memory drive. I have another network drive (on the same WiFi network) and folders get open almost instantly there... When opened directly on the phone, no delays too, so it's something Samba related.

Some details:

- Samsung Galaxy A5 2017, rooted

- WiFi 5GHz, the real file transfer rate is about 140 Mbit/s

- SMB v2 enabled, v1 disabled

- the client is Windows 10, the Get-SmbConnection command says Samba Dialect=2.1

Please look into and let me know if you need some extra info/details.

Thanks.
[Android Apps and Games] poppyto:
One second ? it seems weird to me, what is the sharing ? (Landrive/Root/USB/custom?)

The slower file system is Storage Access Framework (when you add a custom share from the Android File picker) but it's a "virtual" file system, not a direct access to the fs.

Let me know ^^
[Android Apps and Games] 1727876:
Not sure if I completely understood your question. That's an external SD card permanently inserted and shared as /storage/94F3-7453/. The phone is rooted with SuperSu Pro. The app is LAN drive.

I also tried to open an .xls file that is only 9kb, that takes 5-10 sec. Seems like something related to I/O for small files.

While I was testing I've noticed one more thing - MS Office temporary files ~*.* don't get automatically deleted on that network drive after the related files are closed, they just stay.
[Android Apps and Games] 1727876:
I think I got a bit closer :)

I've tried to ping the router from my laptop and from the phone, all good - the average respond time is 3 - 5 ms and stable. Then I've tried to ping in opposite direction (from the router to the phone) - and oops - the respond time was sometimes 500ms and more (even if the devices are only 1 meter from each other).

So it seems WiFi itself is fine but Android doesn't care to respond in timely manner.

PS: It doesn't happen when connecting via WiFi HotSpot - everything is fast again.

What could it be?
[Android Apps and Games] poppyto:
It's hard to know, it's a custom ROM, so maybe there's something wrong with the network layer in this ROM, I encourage you to try an other ROM and check if it's better :good: