Commit graph

35 commits

Author SHA1 Message Date
Xu Tan
d211ab6e01 Update build tools. (#45)
Upgrade build tools.
2017-10-20 14:59:07 -07:00
Xu Tan
1cf95a5b2d Add share format hint and fix a bug. (#43)
The bug crashes the app if the providing share path is "\".

This fixes #16 and #22.
2017-09-21 14:42:33 -07:00
Ruslan Tkhakokhov
b1db7559d1 Merge pull request #38 from rthakohov/browsing-list
Browsing list
2017-09-11 15:09:17 -07:00
rthakohov
12eb8f2fad Move browsing functionality to the launch activity
The input for share URI has a drop-down list displaying discovered
shares.
2017-09-11 15:05:58 -07:00
Ruslan Tkhakokhov
751d538af4 Merge pull request #34 from rthakohov/eject-root
Eject root
2017-08-18 14:32:56 -07:00
rthakohov
fb00658664 Support root ejection
Provides a control to unmount shares pinned to the left pane of the
Files App.

This fixes #3.
2017-08-18 14:30:37 -07:00
Ruslan Tkhakokhov
5b32f0dc18 Merge pull request #32 from rthakohov/credential-encryption
Credential encryption
2017-08-15 13:11:17 -07:00
rthakohov
e0e5d1179e Implmenet credential encryption
Encrypt server credentials using Android KeyStore rather than storing
them in plain text.

This fixes #33.
2017-08-15 13:06:11 -07:00
Ruslan Tkhakokhov
cde6c2ae83 Merge pull request #31 from rthakohov/authentication
Authentication on demand
2017-08-09 09:06:45 -07:00
rthakohov
b47e7db24a Implement on-demand authentication
Add the UI and logic to ask for credentials if the user tries to access a protected share while browsing. Give an option of just authenticating and saving the credentials for future use or also pinning the share to the left pane.
2017-08-09 09:03:38 -07:00
Xu Tan
815b5b8568 Add prerequisite on Ubuntu
To avoid future confusion on building on other platforms.
2017-08-03 09:46:14 +09:00
Ruslan Tkhakokhov
6cd5c59f3d Merge pull request #29 from rthakohov/identation-fix
Fix identation in SambaDocumentsProvider
2017-07-27 16:16:48 -07:00
rthakohov
d12c7ebdb8 Fix identation in SambaDocumentsProvider 2017-07-27 16:10:57 -07:00
Ruslan Tkhakokhov
baf3ba19f4 Merge pull request #28 from rthakohov/network-browsing-broadcast
Network browsing via broadcasting
2017-07-27 15:50:37 -07:00
rthakohov
65f6f67995 Support network browsing via NetBIOS broadcast
If the master browsing approach fails, use NetBIOS broadcast to discover
Samba servers as a fallback.
2017-07-27 15:45:06 -07:00
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