I have a KFHD7 tate running CM11. As it is mainly used by my kids I created a restricted profile for them. It works ok for games, as access to apps can be controlled by the owner account and they have their own user data. I wanted to share some media files between different accounts (mainly movies) so I have been reading different approaches to this and finally did the following:
- Created a directory called pub under /data/media/legacy, chmod 775 for permissions and chown media_rw:media_rw for ownership. I put media files there, and did same permission/ownership changes on them (it seems that 775 permissions and media_rw:media_rw ownership is automatically assigned to folders and 664 to files when copied to FAT mounted SDCARD userspace, included its pub folder).
- Created a directory called pub under /data/media/0 and /data/media/10 (each user storage). Again, did the same permission and ownership as before.
- I first tried to create symlinks from each user pub directory to legacy one, but even the symlinks worked they were not accessible to media apps, I guess that because user storage is finally mounted as FAT via FUSE, so symlinks do not work. So I finally mounted legacy/pub directory on each one of the users pub directories, and this works for me. As I want this to be mounted on every restart, I have used FolderMount app from Google Play.
I am not sure if this is the best solution, but it works for me and wanted to share with everybody, just in case someone is wondering how to share files between user accounts.
Related
My app-private dir (running Apps2SD) became corrupt, a repair ext operation has removed the directory. Now, I can re-create it, but I don't know the proper permissions to CHMOD it, so that it is properly set up.
This also meant I lost my protected apps, which really sucks, but I have backups I can reinstall from.
Who knows what permissions I need to pass to it? I am in recovery mode right now with adb shell.
Thanks
EDIT - got it (hopefully).
chown 1000:1000 app-private
chmod 0771 app-private
seems to have the permissions set right, now to boot up and see if it works right.
I modified the Key Ring Reward Cards app for use on the nook. The e-Ink screen of the nook touch means that even old scanners will be able to scan the barcodes that are displayed.
The attached apk is the latest version (as of 2011.11.30) of the Key Ring Reward Cards app. I reverse-compiled the code via apktool, then modified the android manifest so that the camera feature is no longer required. I recompiled it, and signed it with a newly generated certificate (because the nook won't install an app if it isn't signed; it doesn't seem to care who signed it though).
To install this app on your rooted nook touch, you first need to copy over a couple files to your system partition. These two can be obtained from the latest gapps zip file. These two files are required by the application. Even though they are for embedded google maps, they are NOT installed when you install the google maps app and must therefore be installed manually.
Download the latest gapps file. Search google for "gapps" (I can't link because I'm a new user)
Extract the following two files from the gapps zip
/system/etc/permissions/com.google.android.maps.xml
/system/framework/com.google.android.maps.jar
Connect to your nook touch via adb
Remount your system partition as read-write
adb shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
Push the two files to their respective locations
adb push com.google.android.maps.xml /system/etc/permissions/
adb push com.google.android.maps.jar /system/framework/
Reboot your nook
Install the attached apk (via adb install or copying to an sd-card and opening the apk from es file explorer)
Note: the app freezes if you try to add a new key card. Use their web interface or your phone to add a card. Viewing and editing the cards on the nook should be fine.
I hope I'm not violating any rules by attaching the apk, since this app is completely free and I am simply removing the restriction of a built-in camera.
Works great!
Thanks
yerlizard said:
Works great!
Thanks
Click to expand...
Click to collapse
Glad to help out.
Modified App No Longer Needed
It looks like they developers have changed the program in order to accomodate users lacking a camera. This means the Android Play (Market) version installs natively on a rooted nook now!
When you add a card with the nook, it simply asks for the barcode number,whereas on a camera-equipped device it would let you scan a barcode. Thank you so much, developers of this app! I was really happy to find out today that this works.
From beta3 I can't delete symlink. It's important for me because I actually using phone instead of flashing.
I tried->
1.root explorer
-> delete /data/data
-> copy /datadata ->/data
-> change name to /data/data
No effect, after reboot symlink restore
2. Same thing but with terminal
3. serch fstab, init, for script that making ln -s
4. delte from xbin ln program
nothing made any effect. Symlink always back after reboot.
I found at /sbin script setupdata....
But I can't delete/change it, every reboot it's restoring itself.
Sorry, I don't have an answer for you, but I really need this too. I didn't even install that many apps and everything is FC'ing because datadata is full. It seems it's not just app data as well, because I was browsing the folder with root explorer, and every time I clicked on a folder (within datadata), the available space went down some more. On CM7 my phone was fast enough without the symlink, so an option to remove it would be nice.
Since Android 4.2 and the intro of multiusers there is a problem with bind folders across sdcards, making any attempt on mount bind folders as root would result in visible to root only.
Solution is to fool Android with temporary hijack debuggerd to create the mount binds for us. Thanks Chainfire for this workaround!
* Download both files and rename without .txt
* edit debuggerd.mnt to suit your needs (using any other dir then /emulated/legacy/ will result in read only if browsing folders from sdcard0)
* move debuggerd.mnt to /system/bin
* move mount.sh to any place with execute permissions
* execute mount.sh with any preferred method.
cheers!
As the name suggests, this module allows you to mount multiple filesystems (such as CIFS/SMB and NFS). I created this for my personal use, but thought I'd share it in case others find it useful. It's not particularly robust (e.g. config files are naively sourced), but it gets the job done. Enjoy!
GitHub
Hi,
Thanks for sharing. And this new mounded volume would be available widely in any file explorer at mount_target="/mnt/cifs-share"?
BR,
amplatfus
Yes (hopefully!), assuming the rest of the mount params are correct for your CIFS share. Your file explorer needs to allow you to navigate there, though. E.g. I know Solid Explorer has the option.
Or, you could try specifying mount_target="/data/media/0/cifs-share" instead, which should correspond to /sdcard/cifs-share. (You can't set mount_target to /sdcard/cifs-share directly, though -- it won't work, I think because /sdcard represents an emulated FAT32 filesystem, and you can't mount to FAT32.)
Hope it works for you!