Post Reply

[App] CifsManager v1.5a - Manage your CIFS/NFS network shares (28/04/2011)

OP f3d0r

16th August 2010, 12:34 PM   |  #1  
f3d0r's Avatar
OP Member
Thanks Meter: 45
 
64 posts
Join Date:Joined: Feb 2007
I coded a small app to manage your CIFS/NFS network shares on your Android device. It allows you to conveniently mount/unmount your network accessible file resources and transparently access the files via your favourite Android app (playing music / videos, accessing documents etc.).

Elementary support for NFS2/3 shares is included since v1.1.

Prerequisites:
* device must be rooted
* kernel with CIFS support
* Android >= 1.6

Quote:

Most Frequently Asked Questions:

  • Q: When trying to mount a share I only get an error message saying something like...
    1. "Error running exec().Command: [su]"
      A: Most probably your device is not properly rooted or the su command is missing.
    2. "No such device".
      A: Your current kernel or rom lacks the necessary CIFS support. Try to find a matching kernel module (cifs.ko) or use a rom with explicit CIFS support.
    3. "mounting <yourshare> on <yourmountpoint> failed: No such file or directory"
      A: Your "Mount Point" simply does not exist and CifsManager is not able to automatically create it for you. As automatic Mount Point creation is not done with su rights, CifsManager can only create Mount Points in directories with permissions 777 or on your SD-Card.
  • Q: I have installed CifsManager but launching the app fails with something like "Application not installed on your phone"
    A: This is not a problem caused by CifsManager but a bug in your ROMs launcher. Look for an updated version of your launcher.
  • Q: I mounted my favorite share successfully but files with special characters are not displayed correctly.
    A: Try to use a kernel with explicit UTF-8 support or try to find/load the kernel module nls_utf8.ko.

Download:
This app is now available in the Android market.


Attention:
Do not download similar named APKs from anywhere else but Android market as doing so puts your device/data at serious risk (Malware, Spyware etc.).

Screenshots:


regards, F3d0r
Attached Thumbnails
Click image for larger version

Name:	share-list.jpg
Views:	115926
Size:	29.3 KB
ID:	381337   Click image for larger version

Name:	share-details_2.jpg
Views:	98333
Size:	30.1 KB
ID:	581530   Click image for larger version

Name:	settings_2.jpg
Views:	98777
Size:	30.6 KB
ID:	581531  
Last edited by f3d0r; 29th April 2011 at 08:51 AM. Reason: Update v1.5a
The Following 29 Users Say Thank You to f3d0r For This Useful Post: [ View ]
16th August 2010, 12:40 PM   |  #2  
f3d0r's Avatar
OP Member
Thanks Meter: 45
 
64 posts
Join Date:Joined: Feb 2007
Most Frequently Asked Questions:
  • Q: When trying to mount a share I only get an error message saying something like...
    1. "Error running exec().Command: [su]"
      A: Most probably your device is not properly rooted or the su command is missing.
    2. "No such device".
      A: Your current kernel or rom lacks the necessary CIFS support. Try to find a matching kernel module (cifs.ko) or use a rom with explicit CIFS support.
    3. "mounting <yourshare> on <yourmountpoint> failed: No such file or directory"
      A: Your "Mount Point" simply does not exist and CifsManager is not able to automatically create it for you. As automatic Mount Point creation is not done with su rights, CifsManager can only create Mount Points in directories with permissions 777 or on your SD-Card.
  • Q: I have installed CifsManager but launching the app fails with something like "Application not installed on your phone"
    A: This is not a problem caused by CifsManager but a bug in your ROMs launcher. Look for an updated version of your launcher.
  • Q: I mounted my favorite share successfully but files with special characters are not displayed correctly.
    A: Try to use a kernel with explicit UTF-8 support or try to find/load the kernel module nls_utf8.ko.


28/04/2011 - Changes in v1.5a:

- improved compatibility with various Launchers
- removed permission to write to external storage/sdcard
- username now mandatory share parameter (default value "guest")


19/01/2011 - Changes in v1.5:

- added multi-module load support
-- it's now possible to configure and load multiple kernel modules via CifsManager
-- specify multiple modules in the "Path to cifs.ko" preference by separating them via a colon ( : ).
-- e.g. /system/lib/modules/cifs.ko:/system/lib/modules/nls_utf8.ko

- you can now review the list of loaded kernel modules via the "Modules..." button in the "Info..." dialog
-- if your kernel has cifs support built-in, the cifs will not show up there, this is no problem

- added a rudimentary check to try to prevent mounting shares on the sdcard if it is unavailable (mass-storage-mode).


10/14/2010 - Changes in v1.41:

- fixed problem with keeping track of shares with symbolic links in Mount Point


09/07/2010 - Changes in v1.4:

- added link to changelog in "About..." dialog
- now available in Android market


09/03/2010 - Changes in v1.31:

- added correct quoting for special characters (",',{,[,\...)
-- for Share Path, Mount Point, Username, Password
-- using NICE mount points like /mnt/cifs/S{\ pace and safe passwords possible now
-- eventual shell metacharacters in Options string have to be explicitly quoted

- re-added permission WRITE_EXTERNAL_STORAGE
-- so CifsManager is able to auto-create mount points on your SD-Card (without asking for root)
-- convenient and useful for feature crippled software like Rockplayer

Remark:
Do not mount/umount shares on your SD-Card when in Mass-Storage mode.
In other words: Avoid using mount points on your SD-Card if possible


09/01/2010 - Changes in v1.21:

- reworked the "Open Directory..." feature
-- should work with Estrongs (again) and Astro
-- due to the lack of a standard intent Estrongs is preferred if both file managers are installed
-- this command is available in a share's context menu when mounted

- changed the standard action for mounted shares to "Open Directory..."


08/31/2010 - Changes in v1.1:

- added elementary support for mounting NFS shares
-- specify the Share Path as <server>:<path> (e.g. 192.168.1.17:/mnt/Spajz)
-- Username and Password fields are ignored in this case

Remark:
- If you want to mount NFS shares you should have the basic knowledge to load the necessary kernel modules in an appropriate init script yourself.
- The newest version of EStrong FileExplorer lacks the necessary intent-filters to be launched with the "Open Directory..." context menu option.


08/20/2010 - Changes in v1.0:

- added option to directly open a Mount Point in file manager (browse directory)
-- works with popular file managers like EStrong or ASTRO

- added German language support
-- if you want to help translating the GUI to different languages please contact me

- removed menu option to refresh share states manually

Remark:
Unfortunately it's not possible to launch the file viewer of Rockplayer 1.0.31 (blame them). Rockplayer even lacks the necessary intent filters to be launched with a video file.


08/18/2010 - Changes in v0.99:

- added settings dialog to provide control over the following features:
-- default mount prefix (leave it at default if unsure about permissions/side-effects)
-- load cifs module on startup (on/off)
-- module load method (modprobe/insmod)
-- module location (when insmod is selected)

- Removed all references to sdcard to prevent side effects with USB-Mass-Storage mode
-- new default mount prefix is /mnt/cifs, try to avoid mounting shares on sdcard directories
-- /mnt/cifs should also work on devices with write disabled root filesystems like HTC Desire
-- fixed permission problems with mount points created by CifsManager (files not showing up in File Managers etc.)
-- moved persistent settings from sdcard to android default location (/data/data)

- added menu option to unmount all currently mounted cifs shares
- added menu option to refresh share states manually

- share states now synchronized with kernel mount list on activity resume


08/16/2010 - Changes in v0.93:


- Fixed problem in serialization code (shares should be saved correctly now)
- Try to automatically insert CIFS module (only on initial startup)
- added "options" value to Share settings so arbitrary additional mount options can be specified (separate options with comma ,)

Remark:
The type of supported additional options depend on your specific kernel/cifs-module settings.


08/16/2010 - Changes in v0.91:

- Mountpath will be created (if needed and possible)
- Settings are stored on SDCARD (/sdcard/cifs/cifsshares.dat)
- Added permission to write to SDCARD
Last edited by f3d0r; 28th April 2011 at 04:17 PM. Reason: Update v1.5a
The Following 8 Users Say Thank You to f3d0r For This Useful Post: [ View ]
16th August 2010, 01:49 PM   |  #3  
Junior Member
Flag Riga
Thanks Meter: 0
 
8 posts
Join Date:Joined: Sep 2007
More
Could you please add an input field for a domain?
16th August 2010, 01:55 PM   |  #4  
Senior Member
Flag Ústí nad Orlicí
Thanks Meter: 7
 
152 posts
Join Date:Joined: May 2009
More
Ok it's working but why module cifs.ko has to be manualy loaded. And why the stored settings disappears when app exit.
16th August 2010, 02:38 PM   |  #5  
f3d0r's Avatar
OP Member
Thanks Meter: 45
 
64 posts
Join Date:Joined: Feb 2007
@d750
Settings should not be lost on app restart...can't reproduce this.

@xMFx
This option will be added

Updated the apk to v0.91:

- Mountpath will be created (if needed and possible)
- Settings are stored on SDCARD (/sdcard/cifs/cifsshares.dat)
- Added permission to write to SDCARD
The Following 2 Users Say Thank You to f3d0r For This Useful Post: [ View ]
16th August 2010, 03:00 PM   |  #6  
Senior Member
Flag Ústí nad Orlicí
Thanks Meter: 7
 
152 posts
Join Date:Joined: May 2009
More
Ok kill the app or restart phone and settings are gone.
16th August 2010, 03:34 PM   |  #7  
Chahk's Avatar
Senior Member
Flag New York
Thanks Meter: 164
 
1,261 posts
Join Date:Joined: Apr 2009
More
Awesome app! Would it be possible to run insmod on cifs.ko at start-up to make sure it's loaded?
16th August 2010, 03:49 PM   |  #8  
Member
Thanks Meter: 9
 
87 posts
Join Date:Joined: Feb 2010
More
Yeah, loading the kernel module on startup is #1 priority to make this really good . If you are on the road, there is no way im typing insmod /system/lib/modules/2.6.34.2-cyanogenmod/kernel/fs/cifs/cifs.ko to load the module....

Also! Talk to kmobs or cyanogen, maybe they can pull this into cyanogenmod.
Last edited by Johnex; 16th August 2010 at 04:17 PM.
16th August 2010, 04:40 PM   |  #9  
Member
Thanks Meter: 1
 
46 posts
Join Date:Joined: Apr 2007
Quote:
Originally Posted by f3d0r

@d750
Settings should not be lost on app restart...can't reproduce this.

@xMFx
This option will be added

Updated the apk to v0.91:

- Mountpath will be created (if needed and possible)
- Settings are stored on SDCARD (/sdcard/cifs/cifsshares.dat)
- Added permission to write to SDCARD

I too had issues with the settings being lost on phone / app restart,
but your post highlighted I didn't have the /sdcard/cifs directory so
i can only presume it couldn't write the settings to the file to save them.
16th August 2010, 05:24 PM   |  #10  
thor2002ro's Avatar
Senior Member
127.0.0.1
Thanks Meter: 518
 
717 posts
Join Date:Joined: Oct 2007
Donate to Me
More
please do this at startup of the app
Code:
insmod /sdcard/cifs/cifs.ko
this way anyone can put their cifs module there and the app will work great
I think this is a priority to make the app really usable...

Edit:
I the mean time people can you Scripter app from market and scan with this app the QR code below it will run
Code:
insmod /sdcard/cifs/cifs.ko
Attached Thumbnails
Click image for larger version

Name:	cifs module.png
Views:	2425
Size:	395 Bytes
ID:	381510  
Last edited by thor2002ro; 16th August 2010 at 05:47 PM.

Post Reply Subscribe to Thread

Tags
android, cifs, nfs, samba, smb
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android Apps and Games by ThreadRank