Commit graph

20 commits

Author SHA1 Message Date
Ruslan Tkhakokhov
f5fc69d1c2 Network browsing (#25)
Add basic network browsing support.

The embedded "master browser" functionality embedded in libsmbclient is the only way to browse as of now, but the code is structured to be extendable for other mechanisms of browsing.

This fixes #5.
2017-07-25 18:04:54 -07:00
Xu Tan
ae3b679a9c Increase buffer size to 1MB. (#24)
This should increase transmission speed in modern network settings.
2017-07-18 15:02:29 -07:00
Xu Tan
b16d629dc5 Expose smb.conf to external storage. (#21)
* Consolidate ShareManager into the unified init process.

* Remove misc.xml

* Expose smb.conf to external storage.

Some clean-up on initialization code. Fix a bug that doesn't restart SMB
client after configuration is updated.

* Use the right TAG.

* Guard a log behind debug flag.
2017-07-13 17:30:50 -07:00
Garfield Tan
6b1a97b626 Consolidate ShareManager into the unified init process. 2017-07-13 14:18:23 -07:00
Garfield Tan
bf0350776c Disable debug & verbose logging on release builds. 2017-07-13 11:14:03 -07:00
Garfield Tan
54096c3249 Reconstruct the init process to make sure smb.conf is respected.
This fixes #18.
2017-07-12 14:44:08 -07:00
Garfield Tan
495631e724 Call super.onCreate() in Application.
Just in case Application#onCreate() does something, though as of now it
does nothing for real.
2017-07-11 15:25:21 -07:00
Garfield Tan
61bc8e3389 Stop building for Lollipop.
This closes #13.
2017-07-08 18:14:56 -07:00
Garfield Tan
f667f46dce Allow SMBv3.
SMBv2 is already enforced in previous commit.

This fixed #7.
2017-07-07 17:53:24 -07:00
Garfield Tan
58a8e50eb2 Update NDK to use unified headers.
Fixed issue #11.
2017-07-07 15:23:49 -07:00
Garfield Tan
fc0eebc1de Fix a bug that doesn't pass maxLen to read. 2017-07-07 12:18:40 -07:00
Adam Baxter
01bde4ab53 Set minimum protocol to SMB2 (#10)
This sets the default configuration to use at least SMB2, instead of defaulting to SMB1. You may want to look into the sub versions of SMB2 to see if this default is correct.
2017-07-06 20:58:54 -07:00
Garfield Tan
b9d90368bc Fix a bug that exposes non-thread-safe access for reading dir. 2017-07-06 19:02:14 -07:00
Garfield Tan
a35d17f4e7 Plumb through notification when write finishes to O file descriptor. 2017-07-06 18:47:13 -07:00
Garfield Tan
061d34895d Some bug fixes and tiny improvements upon seekable files. 2017-07-06 16:20:00 -07:00
Garfield Tan
0c5030a704 Separate directory loading into steps to avoid blocking samba thread. 2017-07-06 16:17:43 -07:00
Ruslan Tkhakokhov
228ca3f9d7 Implement seekability for file descriptors (#6)
* Implement seekability for file descriptors
2017-07-06 12:50:13 -07:00
Garfield Tan
ef48c1647e Wrap MessageValues in try-resources.
So that they will be recycled to reduce some GC pressure.
2017-06-30 16:21:30 -07:00
Garfield Tan
e8188b9564 Change default project name & update README. 2017-06-19 14:58:26 -07:00
Garfield Tan
47ef315796 Initial commit. 2017-06-19 14:38:40 -07:00