[Nexus Player Original Android Development] chibluboy:
local network mount / cifs manager / Nexus player

After a lot of research I was able to find a solution to create a network mount in the local "/data" folder on my Nexus Player.

Here are the steps I used:

Apps I used to make this happen:

ES File Explorer	https://play.google.com/store/apps/details?id=com.estrongs.android.pop

cifsManager	http://xdaforums.com/showpost.php?p=53760495&postcount=537

BusyBox	https://github.com/meefik/busybox/releases

Terminal Emulator	https://play.google.com/store/apps/details?id=jackpal.androidterm

Tasker	https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm

In my instructions, I use "stuff" as a drive name. I actually have 2 drives indicated in screen shots Android & T_Drive

1.	Make sure the network drive is properly shared, making note of the

IP Address, path, username/password to access the drive.

2.	Test the connection by using ES File Explorer (Network option) to connect to the network drive.

If you can connect to the drive, then you can mount the drive using cifsManager

3.	Using cifsManager v1.5a, add a new share (below is an example - "stuff" is my drive name):

Share Path	192.168.1.1/stuff

Mount Point	/data/stuff

Username	your network username

Password	your network password

Options	leave blank

4.	Once completed, you should see the main cifsManager screen with your share connection

with a gray x button to the far right, use your mouse and select your drive, the

button should turn green (SU screen may pop up to allow) **see pic 1 View attachment 3270289

** if this fails, you may need to sideload Busybox (Stephen) and try step #3 again.

5.	ALMOST THERE but not quite, you may think you are done but this is where the main issue

I was having. To test to see if the drive is mounted as a local folder use ES File Explorer

(LOCAL option this time) go to the "/" DEVICE directory, then DATA and scroll down until

you see your drive. Open your folder and it will be empty. **see pic 2View attachment 3270290

This is where I did some research and found the solution! see the 3 links below for reference:

http://xdaforums.com/showthread.php?t=2106480

http://xdaforums.com/nexus-7/help/nfs-mounts-filesystem-permissions-t2961875

http://freaktab.com/forum/tv-player-support/rk3188-devices/16086-how-i-got-cifs-mounts-to-work

6.	Script time :) If you don't already have a terminal emulator installed, Install

Terminal Emulator from Google Play. Open it and type in the following

su

setenforce Permissive

su --mount-master -c mount -rw -o username=user,password=pass, -t cifs //192.168.1.1/stuff //data/stuff

make sure you enter YOUR username and password! not 'user' or 'pass'

7.	Close ES Explorere all the way down and reopen it back to the "/" DEVICE directory, then DATA

and scroll down to your drive/folder (stuff) and you should see all of the contents on the

mounted drive **see pic 3 View attachment 3270291

8.	We now have to change the permissions of the DATA folder **see pic 4 View attachment 3270292

make sure all the READ/WRITE/EXECUTE boxes are checked

(I just had to re-check Other READ/WRITE)

**SHAZAM** Now you have a "local" mapped network drive that can be seen natively by ANY app! **UPDATE** some apps still may not be able to see this mount. See this post for reference http://xdaforums.com/showpost.php?p=60304971&postcount=549

UPDATE see post #610

Technically we are done but step 6 will have to be executed everytime you reboot your Nexus Player. I am brand new to

all of this scripting mumbo jumbo, I am definitely no expert. I used the TASKER app found on Google Play to

create a "Network Mount" task and widget to execute the script(s) in step #6. **see pic 5 View attachment 3270312

Final screen shot with widget View attachment 3270313

If anyone can show me how to automatically run a script after a reboot I'd be very happy, my brain is fried LOL :) FIXED see post #539

I hope these steps help anyone else looking to mount a network drive/folder.