[4.2 ->] Mount bind folders between sd and ext - Galaxy Tab 7.7 Themes and Apps

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!

Related

Share files between user accounts on same device (root required)

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.

[Q] Cannot delete file

I Downloaded a WinRAR file onto my S5 for my computer. It is in my downloads folder on the internal storage of my S5. I have deleted everything out of the folder itself but cannot delete the folder. It annoys me. When I try to delete it I get this dialog box:
"Error deleting folder" Cannot delete WinRAR 5.21 Final(x86-x64) Pre-Activated 100(weird Chinese symbol) an install: The storage is write protected.
Remove the write protection and try again.
I am not stupid...I've tried everything I could think of and cannot remove the write protection or anything. For some reason I think it may be because of the weird Chinese symbol that is after the "Pre-Activated 100"
I cannot rename it, modify it or anything. It is the only file I am having a problem with. Can anybody help me with my OCD?
Is your phone rooted? If yes, you can either use adb or just a terminal emulator app, and delete the cr.p of that file!
Edit: the command you're looking for:
su
cd /mnt/sdcard
rm -r Download
That will remove the Download folder along with all its content. (this is irreversible)

Writing shell scripts

I wrote a shell script that I saved in the root directory of the sdcard, however, file permissions were 660 and I could not find a way to make it executable. 'chmod +x' did not work, nor could SolidExplorer change permissions. Googling suggested that if I copied it to e.g. /data I could then change permissions, file permissions were indeed 760 after copying but did not stick when copying the file back to the sdcard and reverted to 660.
I can execute the shell script on the sdcard running it as 'sh script' but I'd rather have it executable as is.
Is this not possible?
Thanks.
You can't modify permissions a la Linux style on a non Linux file system.
Either copy it to a Linux partition or format the sd card with a Linux file system.
So the sdcard is not a Linux-style filesystem and I tried copying it to /data which showed the permissions I wanted but were lost when I copied the file back to the sdcard.
Do you have a suggestion how I can do this on my tabs2?
Thank you.

can not create file/folder in system area (phone already rooted)

I want to use root explorer to copy some file into some system folder,
root explorer can successful mount system as RW. but when I copy files, it failed and show "read-only".
the strange things is: I can rename or modify a file/ folder, for example: I can modify "build.prop" and save it successfully.
so the problem is: I can't create new files or folders, but I can modify existing file an folders?

chmod 777 impossible

Hi everyone
I need to change the permissions of a file.
unfortunately it was not possible I tried with various applications and I also tried in recovery twrp.
is there any way to make this change to the file?View attachment 4980703View attachment 4980705
Hello
the phone's file system does not allow within the SD card to give permissions to files or folder.
moving the file inside the root of the system I managed to give the permissions they needed

Categories

Resources