Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,785,865 Members 49,881 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
f3d0r
Old
(Last edited by f3d0r; 29th April 2011 at 08:51 AM.) Reason: Update v1.5a
#1  
f3d0r's Avatar
Member - OP
Thanks Meter 45
Posts: 64
Join Date: Feb 2007
Lightbulb [App] CifsManager v1.5a - Manage your CIFS/NFS network shares (28/04/2011)

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:	114667
Size:	29.3 KB
ID:	381337   Click image for larger version

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

Name:	settings_2.jpg
Views:	97522
Size:	30.6 KB
ID:	581531  
The Following 29 Users Say Thank You to f3d0r For This Useful Post: [ Click to Expand ]
 
f3d0r
Old
(Last edited by f3d0r; 28th April 2011 at 04:17 PM.) Reason: Update v1.5a
#2  
f3d0r's Avatar
Member - OP
Thanks Meter 45
Posts: 64
Join Date: 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
The Following 8 Users Say Thank You to f3d0r For This Useful Post: [ Click to Expand ]
 
xMFx
Old
#3  
Junior Member
Thanks Meter 0
Posts: 8
Join Date: Sep 2007
Location: Riga
Could you please add an input field for a domain?
 
d750
Old
#4  
Senior Member
Thanks Meter 7
Posts: 152
Join Date: May 2009
Location: Ústí nad Orlicí
Ok it's working but why module cifs.ko has to be manualy loaded. And why the stored settings disappears when app exit.
 
f3d0r
Old
#5  
f3d0r's Avatar
Member - OP
Thanks Meter 45
Posts: 64
Join Date: 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: [ Click to Expand ]
 
d750
Old
#6  
Senior Member
Thanks Meter 7
Posts: 152
Join Date: May 2009
Location: Ústí nad Orlicí
Ok kill the app or restart phone and settings are gone.
 
Chahk
Old
#7  
Chahk's Avatar
Senior Member
Thanks Meter 162
Posts: 1,254
Join Date: Apr 2009
Location: New York
Awesome app! Would it be possible to run insmod on cifs.ko at start-up to make sure it's loaded?
Galaxy S4 GPe (I9505G/jgedlte) - Stock (4.4.4), rooted, Xposed. Recovery: CWM 6.0.4.7.
Moto X GSM (SIM-unlocked) - stock 4.4.3.
Acer A500 tablet - ROM: OmniROM 4.4.2 V12 | Recovery: TWRP-based REV 2.0 beta2
LG G Pad 8.3 GPe (V510) - stock 4.4.4.
Pebble Steel - ROM: stock 2.3.
Amazon Fire TV - stock.
 
Johnex
Old
(Last edited by Johnex; 16th August 2010 at 04:17 PM.)
#8  
Member
Thanks Meter 9
Posts: 87
Join Date: Feb 2010
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.
 
sp00ge
Old
#9  
Member
Thanks Meter 1
Posts: 46
Join Date: Apr 2007
Quote:
Originally Posted by f3d0r View Post
@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.
 
thor2002ro
Old
(Last edited by thor2002ro; 16th August 2010 at 05:47 PM.)
#10  
thor2002ro's Avatar
Senior Member
Thanks Meter 518
Posts: 717
Join Date: Oct 2007
Location: 127.0.0.1

 
DONATE TO ME
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:	2412
Size:	395 Bytes
ID:	381510  
_________________________
Dropbox! So useful for sharing files among multiple computers and ANDROID Phone get 2.30GB storage -> LINK

Samsung Galaxy Note - [glow=red]Drowned[/glow]

Samsung Galaxy Note 2(EMMC FRIED THX SAMSUNG FOR THE GREAT EMMC FW.... ALSO NOTE TO SELF KERNEL FW PATCH ... USELESS!!!)
FW: Tegraowners JB ROM
Kernel: thor-kernel

Acer ICONIA A500 TAB WIFI Only
FW: Tegraowners 4.4.4 ROM
Recovery: touch recovery 2.0b1

Asus Google Nexus 7 Wifi
FW: Tegraowners JB-MR2 ROM

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

Advanced Search
Display Modes