[Howto] Guide to access & symlink network share via Cifs - Galaxy S III General

As noob I needed long time to reach my main rooting objectives which was to run Cifs in my SG3 in order to
(i) access network shares AND
(ii) create symbolic links to these network shares located on my Synology NAS
This is now working and i wanna share my experiences with people who needs step-by-step guide
My objective was to be able to use a music player app (i.e. PowerAMP), while the music are located in my NAS (not in the phone or any external card)
I first began applying the hints of viulian in this thread . It did not work because my firmware (see below) is not supported.
My last successful try included the following steps:
- Re-flash stock ROM/Kernel
- Install CF-Root (includes SuperSU, ClockWorkMod Recovery, CWM Manager)
- Download/Install SuperSU Pro
- Check root in ES file Explorer (seemed to be OK)
- Create BackUp using CWM (into extSdCard)
- Run TriangleAway (to reset flash counter)
- Restore BackUp (to reset device status to normal)
- Install app Mobile ODIN Pro
- Download & flash SiyahKernel (incl. adbd insecure & Cifs Module) using Mobile ODIN Pro. Now I can see cifs.ko under /lib/modules/
- Install CifsManager
- Install BusyBox using app BusyBox Pro (i don't know if this step was really necessary for my purpose ?)
Furthermore i create a new share entry in CifsManager with these details
- Share path = 192.168.178.20/music
- Mount Point = /mnt/extSdCard/music/cifs
- User name = xxxxxx
- Password = yyyyyy
Hint: the default folder in CifsManager setting for the cifs.ko location is /system/lib/modules/ . You must change this to /lib/modules/. This is the folder used by Siyah kernel installation
Now i could mount the shares via CifsManager. Then i got a green point above right. A click on the mount entry will open folder /mnt/cifs/music in ES file explorer. From now on even the SG3 standard file explorer will show you the NAS music files under the folder /mnt/extSdCard/music/cifs.
Some info about my SG3
- Baseband Version: I9300XXLF5
- Bild Number: IMM76D.I9300XXALF06
- Kernel Version: 3.0.36.Siyah-s3-v1.3.8a
Good luck trying !!!!

bass.n said:
As noob I needed long time to reach my main rooting objectives which was to run Cifs in my SG3 in order to
(i) access network shares AND
(ii) create symbolic links to these network shares located on my Synology NAS
....
Click to expand...
Click to collapse
Does this still work for you? I just got a new tablet, and can't get Poweramp to see anything but the onboard flash. Arg, wish they'd left the library requester alone!

Related

Tested cifs.ko and nls_utf8.ko (from factory kernel)

Just for interested people, I have compiled cifs.ko and nls_utf8.ko from US version SGHI897 kernel (from samsung opensource website). This package has been tested under JF6, (out-of-box settings, but rooted). Key notes:
0. mount with -o iocharset=utf8, -t cifs
1. use "busybox" to do "mv or cp or mount or umount"
2. use direct "#" prompt to do "insmod"
3. better use GScript after you have tested these ko's
hiway123 said:
Just for interested people, I have compiled cifs.ko and nls_utf8.ko from US version SGHI897 kernel (from samsung opensource website). This package has been tested under JF6, (out-of-box settings, but rooted). Key notes:
0. mount with -o iocharset=utf8, -t cifs
1. use "busybox" to do "mv or cp or mount or umount"
2. use direct "#" prompt to do "insmod"
3. better use GScript after you have tested these ko's
Click to expand...
Click to collapse
I have absolutely no idea what you are talking about, other than it means someone's gonna come up with SOMETHING new to play with here....... =)
techmik67 said:
I have absolutely no idea what you are talking about, other than it means someone's gonna come up with SOMETHING new to play with here....... =)
Click to expand...
Click to collapse
coz, from searching the forum, there is no cifs and utf8 support for captivate. The first is used when using captivate to mount remote windows share folders. In other words, you can use rockplayer on captivate to browser media files on windows desktop. For some reasons, there could be encoding problem to view these media files' names, such as asian characters. Then the second one is needed.
hiway123 said:
coz, from searching the forum, there is no cifs and utf8 support for captivate. The first is used when using captivate to mount remote windows share folders. In other words, you can use rockplayer on captivate to browser media files on windows desktop. For some reasons, there could be encoding problem to view these media files, such as asian characters. Then the second one is needed.
Click to expand...
Click to collapse
I can definitely see why UTF8 is important, though I have no idea what to do with these files to be honest. also, linux-based system that doesn't support UTF8, really?
Kaik541 said:
I can definitely see why UTF8 is important, though I have no idea what to do with these files to be honest. also, linux-based system that doesn't support UTF8, really?
Click to expand...
Click to collapse
Don't quite understand your meaning, sorry. But anyway, just for interested people...
the module works great thanks for your effort.
network pimp... android novice.
hiway123, i pulled down your make of cifs.ko; loaded it in a network folder on my ext sdcard, but am not sure what to do now. (insmod, etc)
I attempted a few mount commands, and a few other linux norm paths, but I think I am lost here. Can you give a 1, 2, step of how to run the mount command? your post was rather cryptic. (i know i know, for the interested only! well definitely interested...)
*Note* I downloaded this nifty app: CIFSmanager app from the market, and it is open enough that it allows for the user to direct path for the cifs module (insmod path) to the file you compiled (again which is now on my sdcard) it seemed to be happy with it, but gave me some other error I believe had something to do with it not being root. (phone is rooted, have several apps with root level access... however haven't yet figured out how to run certain individual apps as root, that don't automatically try to obtain root access. blah blah blah, another project.)
anyhoot - i would love to be able to mount a vfs on this bird! had the captivate for about a month and love'n it! I got tons of media I'd like to stream over the network and found a few nice apps (ARCmedia / rocket, etc.) that i tested (direct copy to sd) and played my .flv files just fine! :-D
now all i need to do it trick the system into thinking my network paths are mounted resources. (Everything else works well, I can access network shares, view pictures, docs, standard video that the default video player can play fine.) So next step is to learn what YOU know.
sorry for the long post! - th x
tucxforever said:
hiway123, i pulled down your make of cifs.ko; loaded it in a network folder on my ext sdcard, but am not sure what to do now. (insmod, etc)
I attempted a few mount commands, and a few other linux norm paths, but I think I am lost here. Can you give a 1, 2, step of how to run the mount command? your post was rather cryptic. (i know i know, for the interested only! well definitely interested...)
*Note* I downloaded this nifty app: CIFSmanager app from the market, and it is open enough that it allows for the user to direct path for the cifs module (insmod path) to the file you compiled (again which is now on my sdcard) it seemed to be happy with it, but gave me some other error I believe had something to do with it not being root. (phone is rooted, have several apps with root level access... however haven't yet figured out how to run certain individual apps as root, that don't automatically try to obtain root access. blah blah blah, another project.)
anyhoot - i would love to be able to mount a vfs on this bird! had the captivate for about a month and love'n it! I got tons of media I'd like to stream over the network and found a few nice apps (ARCmedia / rocket, etc.) that i tested (direct copy to sd) and played my .flv files just fine! :-D
now all i need to do it trick the system into thinking my network paths are mounted resources. (Everything else works well, I can access network shares, view pictures, docs, standard video that the default video player can play fine.) So next step is to learn what YOU know.
sorry for the long post! - th x
Click to expand...
Click to collapse
I have a samba server in LAN, say at 192.168.1.1. So, I do these steps:
1. unzip my package to your computer, there are two ko files. Then use USB cable to transfer these two files to your phone in /sdcard folder.
2. on the phone, I used "terminal emulator", run "su" into root mode, make new folders like "busybox mkdir /system/lib/modules", you may try other directory name, I don't think that does a matter. Move the two ko files from /sdcard to this newly created folder, remember to use "busybox mv" command.
3. create a mount point on your phone, "mkdir /sdcard/smb" for example. or "busybox mkdir" I cannot remember.
4. insert modules, using "insmod /system/lib/modules/cifs.ko" and "insmod /system/lib/modules/nls_utf8.ko", remember these commands must be run everytime after you reboot your phone, so I use Gscript to create a shortcut, it's very convenient.
5. mount server's samba share folder in the phone, using "busybox mount -t cifs //192.168.1.1/your_share_folder /sdcard/smb -v -o user=yourusername,pass=yourpasswd,iocharset=utf8".
6. now, you can use rockplayer to browse into /sdcard/smb on your phone to view what is shared.
7. It is better to umount your folder once you finish transferring files. Then simply do "busybox umount /sdcard/smb".
Actually, only commands 5-7 are needed after your first attempt. Of course, if you have not done step 4 after a reboot, you need to do that step as well. I use Gscript in market to create shortcuts to these 4-7 commands. That's more convenient instead of typing on such small screen.
Have you tried this with any of the Custom ROMs in this section? If so, which ones work? Can you tell me how to compile a CIFS.KO?
Can it be compiled against the ROMs supplied here?
Thanks in advance,
Freaking brilliant, was exactly what I was looking for...thanks OP!
*edit*
Should mention, I used the posted .KO with stock rogers rom (i896) and it seems to be working flawlessly from my testing so far. I've even been able to stream some lower bitrate HD video and have it run smoothly and consistantly
insmod: init_module '/system/lib/modules/cifs.ko' failed (Exec format error)
something wrong?
i use SetiroN's kernel... and I9000 Froyo - maybe that is the reason?
Id assume that the kernel you are using isn't compatible and the module will have to be compiled for it.
Sent from my SAMSUNG-SGH-I896
love the rom just wish had few diff tweaks

Build.prop Worktool for Windows (v1.7 - July 26 2011)

Script is standalone : you can download latest version without upgrading from previous version
v1.6 > Big update on 3G+ tweak addon, more powerful and much faster
Build.prop Worktool - A powerful but safe build.prop manager/editor
Hi !
Okay guys, since I know how powerful the build.prop can be, I love to play with it.
But I was bored to edit using Root Explorer, or using ADB command-line...
So... Let me present you my outrageously complicated (internally) script to manage your build.prop right from your computer, with ease, fun and safety !
GENERAL :
For any Windows NT kernel (Developped under Windows 7 x64... so should work everywhere )
Portable and ready to use - No installation required, all files included (ADB with drivers also)
Lightweight (<3Mb unzipped, because of ADB very big lol)
Tested on XPERA x10i but should work on ANY Android powered device (if your ROM uses a build.prop located into /system/)
KEY FEATURES :
Easy open/edit your build.prop in your default text editor
Backup creation/management
Save backup on your computer and/or on your device
Safe (Automatic backup generator - Manages up to 2 backup files, exhaustive log file)
Automatic permissions management
Add-on capability : possible to add automated installation scripts to tweak your build.prop
List of present add-ons : 3G+ enhancement tweak
Very clean : deletes all temporary files, auto start/stop ADB server and kills the process when useless
Convenient : direct access to this thread, easy to use
v1.6+ : (beta) Build.prop XPlorer, to check with ease your build.prop
I based the main script on my 3G+ enhancement script, available on the official thread.
** As usual... Use at your own risk **
Test, comment, criticize, if you find anything, just drop a comment or PM
FAQ
FAQ​- Supported devices
It is first developped for Sony Ericsson XPERIA x10, but it should work on any Android device with these requirements :
* Rooted
* File system is mounted Read/Write.
* Build.prop is located into /system/ and named "build.prop"
Sony Ericsson XPERIA x10 : fully working
Samsung Galaxy S2 : half working (file system is read-only...)
- How it's working ?
The script works generally in this way :
It downloads from your device your build.prop and creates two temporary backups.
Then, it opens one of the temporary backup into notepad, to let you edit all you want.
Once file closed/saved, the file is reconfigured automatically, then sent back to your device.
The script allows you next to keep, on wish, the remaining backup and to reboot your device.
- Is this safe ?
The script makes a backup of your build.prop every time you try to access it. There's also human-friendly log file to help you identify problems with ease.
There is also NO automatic upload to your device : the script will always ask you before if you want to upload the new build.prop to your device. Even if you upload it, backup is stored and can even be stored safely on your device for future use.
- Is this all automatic ?
Yes. The script makes backups by itself, reboot your device for you (if you wish), and of course change permissions. But don't worry : it will ask your approval for any important process
- The 3G tweak makes my connection unstable !
The Manager is based on my 3G+ enhancement script, using "Full Mode". In the original script, there is also a "Lite Mode" for some networks (like AT&T) I included in v1.3.
To make your network stable, the script will disable the two lines below :
ro.ril.enable.dtm=1 (will be turned to 0)
ro.ril.enable.a53=1 (will be turned to 0)
To get full details about the 3G+ tweak, check the thread :
http://forum.xda-developers.com/showthread.php?t=951765
Why is there "so many" different batch files ?
It's easier for me to improve/maintain the batch by splitting it into different functions. There's a main script, and subroutines called when needed.
Of course, all the subroutines, including addons, are programmed to be run only from main script. You can run any subroutine separately, but it will mostly crash and create useless files not being deleted. Always run the main script, and do no try to run separately subroutine - not dangerous, but 100% useless/buggy.
- It's not working.
* Make sure your device is :
** ROOTED,
** Full external access to system (su command) [if not, will drop errors like "Operations not permitted" or "file system is mounted read only")
** USB Debugging is enabled,
** Connected using USB and all USB drivers are installed/working.
* You might need administrative privileges in Windows to fully run the program.
* If you're running your device from recovery, you may need to mount /system/ folder before running the script (Partition tools > Mount /system).
- It's still not working.
* Drop a message in the official thread.
* If you get errors about file system Read only, try to run your device in Recovery mode, and fix permissions.
- Will the script create lots of files/make a big drive footprint ?
I hate programs creating lots of temp files. So, the script was developped to create files AND to clean/remove them all once everything is done. Even if it crashes without removing files, you just need to restart the script - it will clean all previous temporary files.
If ADB is run, it WILL be fully closed once everything is done. Server will be killed, then ADB process (named adb.exe) will be killed. Your system will be as clean as it was before running the script.
The script is of course fully portable : there's no installation needed. You can put the script where you want, but you just need to keep all script files/folders in the same folder.
In a future release, I'll add something to purge the log file.
- Which OS is supported ?
It's developped in Windows 7 x64. You should be able to fully run it on any 2000+ Windows NT OS.
As it is NT script, it will work only on Windows computer. It will also not work properly on pure DOS (it's using NT commands and Windows-related commands not included in older Windows NT systems, like NT4).
Report if you tested it on other Microsoft OS (NT 4, Windows 95, 98 or 2000, Dos 6.22...)
- I wanna contribute.
Just right click the .cmd/bat files, edit them with Notepad or anything you want
You can also send me a message (thread or PM) if you notice some piece of code I can improve with other commands (I don't know DOS commands enough )
v1.0 (11/5/2011) = initial release
v1.1 (13/5/2011) = removed BFC tags, updated error 2 (ADB get-state, to help you identify problem), removed 3G tweak returns error 3 if not present (addon = not necessary), added template.bat to create add-ons, improved launcher.bat (add-on primitive detection), added add-on installation detector (displays backup/reboot options only when add-on was installed), corrected folder "\" bug
v1.2 (13 may formely 14/5/2011) = added automated deleter/file checker for 3G+ tweak. Still early stage but looks to work. Automated batch thanks to http://www.dostips.com
v1.3 (16/5/2011) = added 3G+ enhancement lite mode (for networks like AT&T) and removed 1 step on auto deletion, fixed bug of false error when trying to download from device a build.prop.bak not existing, added management options to Backup (send local backup to device, delete backup on device), solved backup internal error
v1.4 (29/5/2011) = fixed window console size, enhanced menus, faster script closing, log file generator, several bugs fixed, enhanced help (readme in Notepad, direct open XDA thread in Firefox), added adb.exe process killer
v1.5 (6/6/2011) = added console title, fixed some menu bugs, updated Readme, weblinks now open in the default user browser, build.prop will now open in default notepad editor, improved interface, fixed unexpected exit bug, added contact me using default email (still experimental)
v1.6 (15/6/2011) = improved ADB process killing, deeply improved 3G tweak script with sed and no more TXT file, readme opens in your default editor, improved interface, updated template, unified common subroutines into BAKengine.bat, user-friendly explorer of build.prop (not great for now), deleted Substengine (deprecated), "0" in menues now refers to Go Back/Exit, improved missing engines detection, added general temp/log file purger/deleter ** To celebrate The Legend of Zelda series 25th Anniversary, my script is now tagged "Powered by Hyrule DOS"
DETAILLED 3G Addon update :
- detects presence of previous installation and files
- Sed command : fastest detection and subtitute of lines
- Optimized for fastest operation and fully clean build.prop file
- Several stuff...
External SED support thanks to GNU Utilities for win32 @ http://unxutils.sourceforge.net/
v1.7 (26/7/2011) = fixed no deletion of TEMP folder/files, fixed ADB command not found, new entries for XPlorer
Known bugs :
* (Main) Will not detect if build.prop.bak and build.prop.old are the same (not very important, I'll improve this later)
* Report anything you find
Developper/Advanced user addendum
(Write in progress)
Backup management
The script creates up to two backups, localed in main directory :
- build.prop.bak
- build.prop.old
Build.prop.old is generated if the script detects there's an existing build.prop.bak, to avoid accidental loss of it.
Build.prop.old is the final backup, and WILL BE DELETED if detected. The script manages backups like this :
1. If an existing build.prop.bak is present...
>> Script will detect for build.prop.old presence - if it exists, it will be deleted,
>> the build.prop.bak will be renamed to build.prop.old.
2. If there is no build.prop.bak detected...
>> Script will generate a build.prop.bak.
ADB Error detection
Error 2 (device not connected) works using a trick - it's not really related to device state.
In fact, the script will attempt to connect your device to download your build.prop. Once it is done - or not - the script checks if a local build.prop file was created. If it's not present, it means ADB encountered an error - about 90% because device is not connected - and will display error 2.
Keep in mind then there is small chance that your error does NOT come of device not connected : administrative privileges missing (don't allow the script to create the file), drivers buggy, ...)
Hi,
I cant use your WorkTool V1.6
It says ADB cmd not found.
v1.7 out, sorry for delay, I prepared it few days ago then I forgot to upload ^^
Really good work
Perceval from Hyrule said:
FAQ​- Supported devices
It is first developped for Sony Ericsson XPERIA x10, but it should work on any Android device with these requirements :
* Rooted
* File system is mounted Read/Write.
* Build.prop is located into /system/ and named "build.prop"
Sony Ericsson XPERIA x10 : fully working
Samsung Galaxy S2 : half working (file system is read-only...)
- How it's working ?
The script works generally in this way :
It downloads from your device your build.prop and creates two temporary backups.
Then, it opens one of the temporary backup into notepad, to let you edit all you want.
Once file closed/saved, the file is reconfigured automatically, then sent back to your device.
The script allows you next to keep, on wish, the remaining backup and to reboot your device.
- Is this safe ?
The script makes a backup of your build.prop every time you try to access it. There's also human-friendly log file to help you identify problems with ease.
There is also NO automatic upload to your device : the script will always ask you before if you want to upload the new build.prop to your device. Even if you upload it, backup is stored and can even be stored safely on your device for future use.
- Is this all automatic ?
Yes. The script makes backups by itself, reboot your device for you (if you wish), and of course change permissions. But don't worry : it will ask your approval for any important process
- The 3G tweak makes my connection unstable !
The Manager is based on my 3G+ enhancement script, using "Full Mode". In the original script, there is also a "Lite Mode" for some networks (like AT&T) I included in v1.3.
To make your network stable, the script will disable the two lines below :
ro.ril.enable.dtm=1 (will be turned to 0)
ro.ril.enable.a53=1 (will be turned to 0)
To get full details about the 3G+ tweak, check the thread :
http://forum.xda-developers.com/showthread.php?t=951765
Why is there "so many" different batch files ?
It's easier for me to improve/maintain the batch by splitting it into different functions. There's a main script, and subroutines called when needed.
Of course, all the subroutines, including addons, are programmed to be run only from main script. You can run any subroutine separately, but it will mostly crash and create useless files not being deleted. Always run the main script, and do no try to run separately subroutine - not dangerous, but 100% useless/buggy.
- It's not working.
* Make sure your device is :
** ROOTED,
** Full external access to system (su command) [if not, will drop errors like "Operations not permitted" or "file system is mounted read only")
** USB Debugging is enabled,
** Connected using USB and all USB drivers are installed/working.
* You might need administrative privileges in Windows to fully run the program.
* If you're running your device from recovery, you may need to mount /system/ folder before running the script (Partition tools > Mount /system).
- It's still not working.
* Drop a message in the official thread.
* If you get errors about file system Read only, try to run your device in Recovery mode, and fix permissions.
- Will the script create lots of files/make a big drive footprint ?
I hate programs creating lots of temp files. So, the script was developped to create files AND to clean/remove them all once everything is done. Even if it crashes without removing files, you just need to restart the script - it will clean all previous temporary files.
If ADB is run, it WILL be fully closed once everything is done. Server will be killed, then ADB process (named adb.exe) will be killed. Your system will be as clean as it was before running the script.
The script is of course fully portable : there's no installation needed. You can put the script where you want, but you just need to keep all script files/folders in the same folder.
In a future release, I'll add something to purge the log file.
- Which OS is supported ?
It's developped in Windows 7 x64. You should be able to fully run it on any 2000+ Windows NT OS.
As it is NT script, it will work only on Windows computer. It will also not work properly on pure DOS (it's using NT commands and Windows-related commands not included in older Windows NT systems, like NT4).
Report if you tested it on other Microsoft OS (NT 4, Windows 95, 98 or 2000, Dos 6.22...)
- I wanna contribute.
Just right click the .cmd/bat files, edit them with Notepad or anything you want
You can also send me a message (thread or PM) if you notice some piece of code I can improve with other commands (I don't know DOS commands enough )
v1.0 (11/5/2011) = initial release
v1.1 (13/5/2011) = removed BFC tags, updated error 2 (ADB get-state, to help you identify problem), removed 3G tweak returns error 3 if not present (addon = not necessary), added template.bat to create add-ons, improved launcher.bat (add-on primitive detection), added add-on installation detector (displays backup/reboot options only when add-on was installed), corrected folder "\" bug
v1.2 (13 may formely 14/5/2011) = added automated deleter/file checker for 3G+ tweak. Still early stage but looks to work. Automated batch thanks to http://www.dostips.com
v1.3 (16/5/2011) = added 3G+ enhancement lite mode (for networks like AT&T) and removed 1 step on auto deletion, fixed bug of false error when trying to download from device a build.prop.bak not existing, added management options to Backup (send local backup to device, delete backup on device), solved backup internal error
v1.4 (29/5/2011) = fixed window console size, enhanced menus, faster script closing, log file generator, several bugs fixed, enhanced help (readme in Notepad, direct open XDA thread in Firefox), added adb.exe process killer
v1.5 (6/6/2011) = added console title, fixed some menu bugs, updated Readme, weblinks now open in the default user browser, build.prop will now open in default notepad editor, improved interface, fixed unexpected exit bug, added contact me using default email (still experimental)
v1.6 (15/6/2011) = improved ADB process killing, deeply improved 3G tweak script with sed and no more TXT file, readme opens in your default editor, improved interface, updated template, unified common subroutines into BAKengine.bat, user-friendly explorer of build.prop (not great for now), deleted Substengine (deprecated), "0" in menues now refers to Go Back/Exit, improved missing engines detection, added general temp/log file purger/deleter ** To celebrate The Legend of Zelda series 25th Anniversary, my script is now tagged "Powered by Hyrule DOS"
DETAILLED 3G Addon update :
- detects presence of previous installation and files
- Sed command : fastest detection and subtitute of lines
- Optimized for fastest operation and fully clean build.prop file
- Several stuff...
External SED support thanks to GNU Utilities for win32 @ http://unxutils.sourceforge.net/
v1.7 (26/7/2011) = fixed no deletion of TEMP folder/files, fixed ADB command not found, new entries for XPlorer
Known bugs :
* (Main) Will not detect if build.prop.bak and build.prop.old are the same (not very important, I'll improve this later)
* Report anything you find
Click to expand...
Click to collapse
Hey mate...
lovely piece of work..!
saved me hours at my work...
thanks a lot works flawlessly on
sony xperia tipo dual with cm 10
Ur da bomb
As you probably already know, you are DA BOMB, BABY!
I just [snicker] used your tool to save my rather idiotic...er, 'brain' from suffering through a dumb, hard night re-flashing SlimKat 4.4.2 back onto my LG Optimus G e970 just to fix something I should've never done to begin with (change screen density to make it easier to read, of course, but without really knowing what I was doing)...
aherm...well, anyway, here I sit at a pre-midnight hour thanking you profusely, sir, because, as I said at the start...
UR DA BOMB!!!
Here's hoping you get bored a lot more often...it's a keeper, fer sure.:victory:
Good work dude... Nice toolkit, loved it very much... I am integrating your tool into my new upcoming toolkit. Dont worry i am not gonna steal it, will just use it. Will surely give you proper credits for that
Does this work with the stock recovery without root?
My device: Xperia XA2
thanks for this useful helper. i know how to modify build.prop - thats not the reason why i came here. what i don't know is the meaning of all this different entries in build.prop for example ro.expect.recovery_id - which there was a catalog with information about included in a build.prop Tweak GUI
sorry but the program cant detect/ acces build.prop
my device is rooted, has debugging on and is connected via USB
plz help

[GUIDE] Mount Windows or Linux share on Kindle using CifsManager

NOTE: These instructions may be outdated. If you've installed a recent ROM, the cifs drivers are probably built in, and you should be able to use Cifsmanager as long as the "Load cifs module" option is checked.
These are my notes for mounting a remote Windows share on my Kindle Fire. Note that this also works with CM7.
Why do this? My usage example is so I don't have to manually copy comics down to the Kindle for reading with Perfect Viewer. I can read them directly via Wifi on my Kindle. It's also a lot easier to manage the files on the PC.
Root is required
CifsManager Free
https://market.android.com/details?id=ws.plattner.cifsmanager&hl=en
Drivers
http://forum.xda-developers.com/showthread.php?t=1396960
Big thanks to riverzhou for providing these files!
Steps
1. Install root if necessary - find another guide for this
2. Ensure a proper share is available from PC
3. Install CifsManager - note, not available on Amazon appstore, so will have to install from Android Market, or side load
4. Copy drivers to /sdcard/cifs
5. CifsManager
Load cifs module -> checked
Load via insmod -> checked
Path to cifs.ko: /sdcard/cifs/slow-work.ko:/sdcard/cifs/cifs.ko
Use IP for share, like this: 192.168.15.100/sharename
Create folder on sdcard for mount point, like /sdcard/comics
Ectoplasmic said:
These are my notes for mounting a remote Windows share on my Kindle Fire. I have it working, and will tidy up the steps as time passes.
Why do this? My usage example is so I don't have to manually copy comics down to the Kindle for reading with Perfect Viewer. I can read them directly via Wifi on my Kindle. It's also a lot easier to manage the files on the PC.
Root is required
CifsManager Free
https://market.android.com/details?id=ws.plattner.cifsmanager&hl=en
Drivers
http://forum.xda-developers.com/showthread.php?t=1396960
Big thanks to riverzhou for providing these files!
Steps
1. Install root if necessary - find another guide for this
2. Ensure a proper share is available from PC
3. Install CifsManager - note, not available on Amazon appstore, so will have to install from Android Market, or side load
4. Copy drivers to /sdcard/cifs
5. CifsManager
Load cifs module -> checked
Load via insmod -> checked
Path to cifs.ko: /sdcard/cifs/slow-work.ko:/sdcard/cifs/cifs.ko
Use IP for share, like this: 192.168.15.100/sharename
Create folder on sdcard for mount point, like /sdcard/comics
Click to expand...
Click to collapse
Worked out pretty good for me! Thanks
I just tried this... worked well for me as well.
Nice, now if only I can get rooted again after the 6.2.1 update, I'll be able to follow my own guide again
Can someone explain how to set up the computer side of this? I got the Fire side working (I think), but I'm not sure how to get a remote share working under Windows.
brian112358: it really depends on your version of windows.
Ectoplasmic: You're Awesome. You just single handedly gave my kfire 2TB of resources while on my home network.
brian112358 said:
Can someone explain how to set up the computer side of this? I got the Fire side working (I think), but I'm not sure how to get a remote share working under Windows.
Click to expand...
Click to collapse
I was having problems with my Windows shared folder as well. After trying all kinds of variations on my path name I eventually started from scratch, but instead of manually entering my mount paths I let CifsManager do it for me. Then everything worked as it should, even though my manual entries were exactly the same as the automated ones. Go figure.
Anyway, I'm on a 32-bit Windows 7. First, find the folder you want to share and Right-Click>Properties>Sharing>Advanced Sharing>Check the Share this Folder box>Ok. Take note of the name. (Mine was "Downloads")
The share path for my folder is now:
192.168.1.101/Downloads
In CifsManager I followed the OP's instructions for setting the driver paths, but I did not create a folder for the mount point on the KF. Instead, I set Mount point prefix to: /mnt/sdcard/cifs. I then added a New Share Path and only entered the following:
Share Path: 192.168.1.101/Downloads
*Tap on Mount Point field and it should auto fill
That's it. CifsManager then created a new folder: /mnt/sdcard/cifs/Downloads. I do not have a password login for my pc so I left user as "guest" and password blank. Works perfectly now. Like I said, everything was exactly the same as my manual entries, but for some reason it works now
Hope that helps.
golucky said:
brian112358: it really depends on your version of windows.
Ectoplasmic: You're Awesome. You just single handedly gave my kfire 2TB of resources while on my home network.
Click to expand...
Click to collapse
Glad it's working. I also noticed a little better Wifi performance since the 6.2.1 update, at least with this app.
This is really handy to have. Saves a lot of trouble copying files to the Kindle. This is the sort of thing that needs to be baked into custom roms.
Followed the steps in the OP. Only thing is I'm still getting the same errors that I got before adding the drivers provided.
if I use the IP of the share I get : Mounting the share has failed with an error. mount: No such device or address. (I can browse to the IP/path with ESFE)
if I use the network name I get: Mounting the share has failed with an error. mount: Invalid argument.
I tried to insmod the cifs.ko via terminal and it threw an error code there too. "Exec format error"
I'm running NRG's ICS CM9 ROM 6/23 with Hashcode's 3.x kernel (dated Jun 8 in About tablet info)
Edit: or could it be the drivers just don't like the 3.x kernel. Leaning towards that after a little more reading.
ProfEngr said:
Followed the steps in the OP. Only thing is I'm still getting the same errors that I got before adding the drivers provided.
if I use the IP of the share I get : Mounting the share has failed with an error. mount: No such device or address. (I can browse to the IP/path with ESFE)
if I use the network name I get: Mounting the share has failed with an error. mount: Invalid argument.
I tried to insmod the cifs.ko via terminal and it threw an error code there too. "Exec format error"
I'm running NRG's ICS CM9 ROM 6/23 with Hashcode's 3.x kernel (dated Jun 8 in About tablet info)
Edit: or could it be the drivers just don't like the 3.x kernel. Leaning towards that after a little more reading.
Click to expand...
Click to collapse
I just installed cifs from the market. Did not bother with the drivers and cifs connected with my server the first time. I am on twa's job ROM.
ghost_og said:
I was having problems with my Windows shared folder as well. After trying all kinds of variations on my path name I eventually started from scratch, but instead of manually entering my mount paths I let CifsManager do it for me. Then everything worked as it should, even though my manual entries were exactly the same as the automated ones. Go figure.
Anyway, I'm on a 32-bit Windows 7. First, find the folder you want to share and Right-Click>Properties>Sharing>Advanced Sharing>Check the Share this Folder box>Ok. Take note of the name. (Mine was "Downloads")
The share path for my folder is now:
192.168.1.101/Downloads
In CifsManager I followed the OP's instructions for setting the driver paths, but I did not create a folder for the mount point on the KF. Instead, I set Mount point prefix to: /mnt/sdcard/cifs. I then added a New Share Path and only entered the following:
Share Path: 192.168.1.101/Downloads
*Tap on Mount Point field and it should auto fill
That's it. CifsManager then created a new folder: /mnt/sdcard/cifs/Downloads. I do not have a password login for my pc so I left user as "guest" and password blank. Works perfectly now. Like I said, everything was exactly the same as my manual entries, but for some reason it works now
Hope that helps.
Click to expand...
Click to collapse
Hi -
I set mine up just like this ... and it did indeed create the mount point /mnt/sdcard0/cifs/comic. I get the little green circle on CifsManager ..BUT.. when I click on the mount, CifsManager gives me this error: This feature depends on an installed file manager (astro/estrongs).
I do have Astro installed, and also Perfect Viewer (comic reader). I can navigate to /mnt/sdcard0/cifs/comic via root-manager and I see my comics, but can't load them. If I try to load them via any other method (while cifs mounted) I get file not found.
What could be the problem please ??
Thanks
Not sure if this will help anyone. I just came back to this thread thinking I needed the syntax for installing the drivers. Turns out I didn't.
Every relatively modern ROM I've installed (CM9, CM10) has not needed drivers, either on my KF, or my Samsung. However, I found it necessary to ensure "Load cifs module" is checked in the CifsManager settings.
Also, if you're using PerfectViewer, something I didn't know for quite a while is that you can actually browse and read from network shares directly from the app. Use the "open file" method and not the bookshelf, change from Local to Lan and go from there.
I still like to use CifsManager for various reasons

[Q] Mounting a Network Attached Storage drive to Kindle fire

Hello, I'm trying to mount my university's network drive known as netfiles to my kindle fire either through an app or some other means.
Here are the specifications of such a drive:
These files are stored on a network attached storage (NAS) platform known as "NetFiles." NetFiles utilizes the SMB/CIFS protocol to provide shared access to networked storage, allowing both Windows and Mac users to store and share files with one another."
Now I have done this on my PC laptop rather easily before but I am unsure of how I would go about doing so for my android kindle fire, which is Linux based I suppose?
They provided the following:
For reference the method for Windows is:
After you login to the University network [both my laptop and kindle fire are logged into the university network], NetFiles can be reached via this path (Click Start > Run in WinXP or Start > Start Search field in Windows Vista/7): \\netfiles\users\<letter>\<netid> where <letter> is the first letter of your <netid>.
Click to expand...
Click to collapse
and
I'm a Linux user, how do I mount my NetFiles volume?
With this command from the shell (logged in as the "root" user):
smbmount //netfiles/users netfiles -o username=<netid> workgroup=richmond
Click to expand...
Click to collapse
Now I've accessed the shell before using adb and my kindle is rooted so that does look possible but I won't be able to try that for at least another day as I left my cable somewhere else.
HOWEVER, the school does offer access even when not on the network or offcampus through VPN. And they provide a downloadable VPN profile for me to use and configure. So I guess my last overall questions are:
1. Should I consider the Kindle Fire OS to be Linux based when looking for general methods for such things?
2. Should the provided method with shell and root access work?
3. Are there any VPN Client apps of note that I should look for?
Install File Expert to get on SMB shares. Always has worked great for me.
The Kindle Fire is Android-based, which is Linux-based. Install busybox and many of the commands should work. You can also install something like ConnectBot if you don't want to wait until you have access to adb and a cable.
As for mounting the network share, I'm not sure if smbmount is installed. Using an app like CIFS Manager would be easier (you need either a custom kernel or the cifs kernel mods, both available on this forum, and be sure to put a .nomedia file somewhere so a poorly written app doesn't attempt to scan the whole remote share). An alternative is to use something like Ghost Commander or the aforementioned File Expert to browse the shares.
For VPNs, it depends on the type of VPN. OpenVPN can be downloaded (also needs a tun kernel mod or custom kernel). PPTP is part of stock android, and it'd probably be easier to use cyanogen mod if you need to use it.
I connect to my NAS (and also my pc) with ES File Explorer. It uses SMB. I just select NEW>Server and put in the ip address (actually just the name of my unRAID server) and hit connect. It works great. Once you set up the server it saves the ip address or name and you just select LAN, pick what you want to connect to and BLAM you are connected.
using ES File Explorer - can i use a video player of my choice? I understand there are video players that can play several format videos (just cant remember which ones)...
I think FileExpert's built-in player might be able to stream from a network share (last I checked only one file explorer had that feature). If you want to stream with any media player, use CIFS Manager. If you want to copy the video to your Kindle Fire then play it locally, any of the file explorers listed will do.
izomiac said:
I think FileExpert's built-in player might be able to stream from a network share (last I checked only one file explorer had that feature). If you want to stream with any media player, use CIFS Manager. If you want to copy the video to your Kindle Fire then play it locally, any of the file explorers listed will do.
Click to expand...
Click to collapse
+1 on CIFS Manager, especially if you want to use specific apps for certain file types. Here's the guide to set it up on the Kindle.
https://lh6.ggpht.com/xAPu77wHdSLx_uyQ_GKTiKNB21h4t_jZMtq0LGDxRTPxEu12Eo4nyItN5M5ycwiMBvKS
I can't figure out what IP I'm supposed to be putting for this, as its not something from my actual computer but my University network, to which both my laptop and kindle fire are connected.
Actually my friend brought back my cable!
Here's the problem
when not adb rooted, I lack the permissions after entering shell to do the following:
smbmount //netfiles/users netfiles -o username=<mynetid> workgroup=richmond
But when I retry with adb root I get a # instead of a $ and it does not recognize the command smbmount.
Is there anything I'm doing wrong?
qryptiq said:
using ES File Explorer - can i use a video player of my choice? I understand there are video players that can play several format videos (just cant remember which ones)...
Click to expand...
Click to collapse
Yes, I forgot to mention I needed to use MX Video player with ES File Explorer to stream video.
im gonna give it another go and see if i can get any further
You shouldn't have to put an IP address in, the hostname ought to work. It also looks like smbmount is mostly depreciated by mount.cifs, which you call with "mount -t cifs" (this is what CIFS Manager does behind the scenes).
i have been using es file explorer to connect to all my SMB shares. and using moboplayer to open videos stored on those smb shares. works awesome.
moboplayer:
https://market.android.com/details?id=com.clov4r.android.nil
es file explorer:
https://market.android.com/details?id=com.estrongs.android.pop
matthew.fiore said:
i have been using es file explorer to connect to all my SMB shares. and using moboplayer to open videos stored on those smb shares. works awesome.
Click to expand...
Click to collapse
You are streaming without cifs mounting and injecting the kernal module? I HAVE to use cifs to stream otherwise it would copy the videos over the network first.
I'm starting to think the adb shell method didn't work because I didn't realize that my device OTA updated to 6.2.2 and I lost root.
izomiac said:
You shouldn't have to put an IP address in, the hostname ought to work. It also looks like smbmount is mostly depreciated by mount.cifs, which you call with "mount -t cifs" (this is what CIFS Manager does behind the scenes).
Click to expand...
Click to collapse
i dont even know what the hostname should be...i have all of the information i need i feel i just dont know where to put it...
If the smbmount command was "smbmount //netfiles/users netfiles -o username=<mynetid> workgroup=richmond" then your share path is "//netfiles/users" and the mount point is a directory of your choosing. Username/Password should be self explanatory. Options might be necessary after you get it setup if you find that only the root user can browse the directory or something.
I think this clears things up, I'll try this later tonight.

[Tutorial] Stream videos on Cifs / SMB share using CifsManager (req. ADB & Root)

Here's something a lot of people are trying to do and are asking questions about, so I tought it would be nice to put it on all in one thread.
Works with Stock firmware and kernel! - NOOB A-B-C EDITION for Windows-
Requirements:
Root access;
Android SDK installation - ADB commands;
What to do:
1- Download this file (Thanks pershoot!) and unzip it.
2- Now copy it into the SDK's "platform-tools" folder. (Default path for a x64 Windows computer should be something like "C:/Program Files (x86)/Android/android-sdk/platform-tools/"
3- Enable USB debug (Settings / Applications / Development) on your Tab and plug it into your computer.
4- On your PC ( ), open a Command Prompt. (Start Menu / Program Files / Accessories)
5- Browse to your /platform-tools folder. (Type in a couple "cd.." [Enter] "cd.." [Enter] to be sure youre at root , then type in "cd Program Files (x86)/Android/android-sdk/platform-tools")
6- Type in
"adb shell" [Enter]
"su" [Enter]
"mkdir /mnt/sdcard/Movies/CIFS" [Enter] // This is your mounting point. I recommend to use an empty folder within "Movies" 'cause it'll be easier to use with the Video Player app
"mkdir /data/local/modules" [Enter]
"push cifs.ko /data/local/modules" [Enter]
"chmod 755 /data/local/modules" [Enter]
"chmod 644 /data/local/modules/cifs.ko" [Enter]
"insmod /data/local/modules/cifs.ko" [Enter]
7- You can now unplug your device and install CifsManager;
8- In CifsManager, select "Menu" (Right of "screenshot button") / Settings
- Check "Load cifs module"
- Check "Load via insmod"
- Path to cifs.ko will be "/data/local/modules/cifs.ko"
9- Configure a new share in CifsManager correctly (IP address/folder to mount, mount point should be "mnt/sdcard/Movies/CIFS" or whatever you chose.)
That should be it; I'm now able to flawlessly stream 720p movies directly from my NAS over WiFi. Rooted Stock UXKK2 ROM & Kernel (Android 3.2)
Thank you, come again!
I stream from cifs/samba (windows) shares using es file explorer and bs player. Browse the lan tab to my shares and open the file. No root required. I also use wild media server and upnp.
Sent from my GT-P7510 using xda premium
Another vote for upnp here. I have a nas with a server on it and with bubble upnp and mx player I haven't found a file that I can't play.
Twonkey is a good and really simple to set up upnp server. Check it out.
Right; but the difference is that with this trick, all those smb/cifs shares will appear within your Tab's own storage; and will be accessible by all apps!
For example, the wonderful Mizuu Media manager now thinks my Tab has something like 12tb of storage; and I have hundreds of movies and tv shows with all the covers, screencaps, fanarts, trailers, actors and movie info and shyt exactly like in XBMC on my computer. See a couple screenshots
It actually is fully compatible with XBMC .nfos and stuff; if you backed it up in separate files. =)
The thing is this will work with ANY app; add zillions of mp3's to your library, or ebooks.. etc..
wewewi999 said:
Right; but the difference is that with this trick, all those smb/cifs shares will appear within your Tab's own storage; and will be accessible by all apps!
For example, the wonderful Mizuu Media manager now thinks my Tab has something like 12tb of storage; and I have hundreds of movies and tv shows with all the covers, screencaps, fanarts, trailers, actors and movie info and shyt exactly like in XBMC on my computer. See a couple screenshots
It actually is fully compatible with XBMC .nfos and stuff; if you backed it up in separate files. =)
The thing is this will work with ANY app; add zillions of mp3's to your library, or ebooks.. etc..
Click to expand...
Click to collapse
Very cool advantage. Any performance boost when mounting with your method versus browsing via file managers like ES?
GorillaPimp said:
Very cool advantage. Any performance boost when mounting with your method versus browsing via file managers like ES?
Click to expand...
Click to collapse
In fact access through CIFS.ko a bit slower. I did not compare it with ES but with Ghost file manager.
Transfer rate with CIFS.ko is about 1.1 MB per second.
Ghost file manager - 1.4 MB per second.
I like ES because it's creating SMB shares on a fly and let you open up file with corresponding apps, so movie can be opened with video player and would stream.
I use plex.. It works great.
Sent from my SPH-D710 using Tapatalk
Is this working with Seagate Goflex satellite? Has anyone tried this? Thank you.
Will mapped folders show up in Mass Storage Device Mode?
Thanks for the wonder tutorial.
Can I asked if the phone is plugged into another PC or host as a Mass Storage Device, will the mapped folders also show up?
I thought it would be interesting if it does and I can plug it directly to the USB port of my TV where it could play the media files directly as a USB drive.
Thanks.
Ignore me, misread the last post.
Andre
Thanks for your guide, I've cifs.ko, kernel support of this and cifs manager.
I've a bad problem with a not latin char, so i tried add nls_utf8.ko modules but dont works
Any idea? Thanks
I'm also using cifs manager but a lot of my MP3 don't show artist, title a.o. means when mounted it can't read the id3tag...somebody an idea??
Sent from my GT-P7500 using xda app-developers app
Sorry duplicare post
Hi. I would like to mount some shared folders on my android 4.0.4 (Samsung galaxy tab 10.1 - P7500) but when I use this tutorial the CMD on laptop (windows 7) says:
sh/system/bin: push: not found
So I tried almost everything to get cifs.ko moved to data/local/modules but there is not much I can do. Can you help me out? What I do wrong?
Also ADB cant list my device (the list is empty) even though I tried installing many drivers (google, KIES, samsung). It got listed only oce but then it was "error: device offline" Please help me out.
Thanks in advance,
Matt
OK. So I used root explorer instead of ADB and moved cifs.ko to data/local/modules. Unfortunately it can't be installed thru insmod because there is another error (exec error). Any clues? Pleeease...
anybody know of a way to mount cifs over 3g/4g??
OK. So I used root explorer instead of ADB and moved cifs.ko to data/local/modules. Unfortunately it can't be installed thru insmod because there is another error (exec error). Permissions are set correctly. Wrong cifs? Any clues? Pleeease...
cavemandaveman said:
anybody know of a way to mount cifs over 3g/4g??
Click to expand...
Click to collapse
can be accomplished with a VPN connection to your file server and the vpn built into android.
Need some help too
I have a Belkin N750 as a router. It comes with Twonky as a media server. On the Allshare devices I have at home I'm not able to play MP4 videos with subtitles and that's when my android devices come in handy.
Using ES File Explorer and MX Player I'm able to play MP4 videos with subtitles from my NAS.
For that I use a Razr XT910 and a Samsung GT N8000.
This setup works very well as long as it runs on ICS.
Recently I upgraded my GT N8000 to JB and it stopped working.
Now it has to download the video before start playing.
Does anyone know what I have to do to have it working back as it used to be?
Thanks.
Help with the question above anyone?

Categories

Resources