[TIP] Simple way to bind your directories - Directory Bind - RAZR i Themes and Apps

Hi friend's, if you want bind your files no /external1/ to /sdcard/, use this app..
You need only root acess and your configurations is easy.
http://forum.xda-developers.com/showthread.php?p=31620183

Related

[Q] Why can't I save in /sdcard/ but can save in /mnt/sdcard?

I am a new user, and just ROM'd my Motorola Milestone XT720 using the cinci Bell's 2.2 froyo update. The major problem that I am encountering is that market aps are not downloading files correctly. For example I try to add a podcast into my que using "google listen" and I get the following error:
"Error (/sdcard/com.google.andriod.apps.listen/downloads/f09cfbe (Permission Denied)"
Now I go into supermanger's filesystem, and I notice that /sdcard/ has no permissions at all. I try to add them, but nothing happens when I do. Itself, /sdcard/ is empty.
When I plug the phone into my PC, it can access the SDcard fine. In super manager however, it appears that the directory it is accessing is /mnt/sdcard.
It seems that programs assume that the SDcard is going to be located at /sdcard/ but it is really located at /mnt/sdcard. Is there any way to redirect them?
The normal mount location is /mnt/sdcard, /sdcard is just a symlink for convenience.
Apps should use the android api to determine the sdcard location
Environment.getExternalStorageDirectory();
See http://developer.android.com/reference/android/os/Environment.html
You could readding a symlink from /sdcard to /mnt/sdcard.
Regarding you changing the permissions, do you have root? If not you won't be able to change the permissions or create a symlink.
Do I have root?
Thanks for replying Dark3n.
I think I have root access, but in supermanager explorer, the root directory reads "/(r/o)" - does that "(r/o)" mean read only?
That would make sense of my problem - since I cannot delete, rename, or change the permissions on /sdcard/.
However, I'm pretty sure I have root access. I never rooted my phone after applying the ROM. I just ran superoneclick again, and it said the phone was rooted. Supermanager explorer has superuser permissions. Am I missing something?
I have root
I just installed Root Checker by Joeykrim - it verified root access and a busybox installation.
yes r/o means read only
So what do I do about it? Is this a limitation of the file explorer I'm using or my permissions? I'm not sure how to gain more permissions than superuser.
It would be a huge help if you let me know what steps I need to take. Sorry for being a noob!
ive the same problem but it's with gscript folder.
So I downloaded ES File Explorer, then went into the settings. I turned on the root function, and then used the option below it that said something like "mount root to enable write." I clicked that. ES File Explorer didn't have a change permission feature, so I held down the home button and switched over to supermanager explorer. Now the root directory read "/(r/w)." I was then able to change the permissions for /sdcard/.
The podcasts from google listen at the NPR app I was using were still not downloading properly. I rebooted the phone. Strangely, the permissions that I had just set in the root directory, and the test directory I created in root, were both gone. I don't know how that happens.
I tried using BeyondPod, which works for downloading to /mnt/sdcard/. I wonder if that means Google Listen and the NPR app (DroidShogun) were coded to save to /Sdcard/ rather than prompting the API for a path.

[Q] flashing files without system r/w access? adb? cwm?

hellos, in trying to get some ad block host files installed but there's no conventional way to write the files... can i use cwm or adb to push the host files?
i understand this isn't practical in terms of keeping the host files up to date but once the files are there 90-99% should be blocked for at least a few months which is good enough for me.
i had the same problem on my a510. after you mount it as rw, use chmod to give yourself write permissions the correct dir (/etc i think?), put the host file in place, then change the permissions back.
i did this with adb.
i cant remember what the permissions are suppose to be for /system and /etc after i messed with them, so i set them both to 755, and now AdFree works as advertised. where before i tinkered with permissions, it couldn't write the host file. i tired a couple adblock apps, and they all had the same write permission issue.
Rusty_Gunn said:
i had the same problem on my a510. after you mount it as rw, use chmod to give yourself write permissions the correct dir (/etc i think?), put the host file in place, then change the permissions back.
i did this with adb.
i cant remember what the permissions are suppose to be for /system and /etc after i messed with them, so i set them both to 755, and now AdFree works as advertised. where before i tinkered with permissions, it couldn't write the host file. i tired a couple adblock apps, and they all had the same write permission issue.
Click to expand...
Click to collapse
I'm using A700 and I've already tried editing permissions, didn't work.

[Q] Dynamic symlinking/mounting (Multi user roms)

Hello,
On "old" roms we can use directory bind app to easily mount external storage's folder and make the apps think they are internal (move game's data somwhere else)
Directory bind is unsupported since some time, means it won't handle multi user from latest version of Android, is there anything we can do to dynamicly mount/symlink a folder depending on current user, or at least make it work for main(or all) users ? (it can be with an app, or with a script, if possible a script running on it own, by the system, and not an app that will afterward run the script)
Regards

Android: How do I Get Read-Only Access to System & Data Partition Without Rooting?

Android: How do I Get Read-Only Access to System & Data Partition Without Rooting?
Hi everyone. I have an Android 7 device. It's not rooted. I need a file manager/utility that allows me to view the files & folders of the root directory; specifically the System and Data partitions. I don't need 'Write' permissions, just Read-Only. I want to copy some files. In other words, I don't want to root the device. I just need read-only access. I would prefer a file manager type app but I'm open to other methods.
I have tried Solid Explorer. It shows the System Partition but not the Data partition. Thanks.
TheoFitchner said:
Hi everyone. I have an Android 7 device. It's not rooted. I need a file manager/utility that allows me to view the files & folders of the root directory; specifically the System and Data partitions. I don't need 'Write' permissions, just Read-Only. I want to copy some files. In other words, I don't want to root the device. I just need read-only access. I would prefer a file manager type app but I'm open to other methods.
I have tried Solid Explorer. It shows the System Partition but not the Data partition. Thanks.
Click to expand...
Click to collapse
Try root browser:
https://play.google.com/store/apps/details?id=com.jrummy.root.browserfree
@RaiZProduction
Thanks for your comment. However, I have tried Root Browser as well as FX File Explorer but still no success. I want to copy some files from an app's folder in /data/data/app folder
Both apps simply list the folders in /data/data but when I open the folder of any app, its contents are not displayed in Root Browser and in FX Browser, I get the message Access Denied. See the attached images.
I don't know how to use ABD. I'm searching for a command manual.
TheoFitchner said:
I don't know how to use ABD. I'm searching for a command manual.
Click to expand...
Click to collapse
https://www.google.co.uk/search?q=a.....69i57j0l5.2270j0j1&sourceid=chrome&ie=UTF-8

Mount binding SD card folder works for moving WhatsApp media

¿Why do people use xposed or foldermount? It is pretty easy to accomplish a binding mount.
BTW, I tried foldermount and it failed because it didn't fix permissions
And link2SD didn't even try moving the WhatsApp media
Here we go: (commands run from adb, could use terminal):
First, move your WhatsApp content to the sd card. (I moved /data/media/0/WhatsApp/* to /data/sdext2/WhatsApp/)
Now fix permissions (and ownership)
Code:
chown -R root:root /data/sdext2/WhatsApp
chmod -Rv 777 /data/sdext2WhatsApp
Now, mount the sdcard folder into the internal memory folder
Code:
mount -o bind /data/sdext2/WhatsApp /data/media/0/WhatsApp
Considering
/data/sdext2 is a mounted external sdcard. This means that the folder is accessible. Makes sense since you just created /data/sdext2/WhatsApp to move the WhatsApp media into there.
/data/media/0/WhatsApp is the WhatsApp folder It is the original location of the WhatsApp media and MUST EXIST check its permissions, too, btw, just in case. Always try the real location ignore /storage/emulated/0/WhatsApp or any other symlink or emulated
Now restart whatsapp and test. Working means you can access your downloaded pictures and you can download new ones. Either that or, In which way is it not working?
If it works ok, make the code line which mounts the folder to be run on startup. I pasted it in my /system/etc/init.d folder because my rom supports it. If you are following this guide, you probably know how to make code run on startup.
It is so easy, why are people installing apps or frameworks for something SO FREAKIN' EASY!?
BTW, whatsapp couldn't use symlink. That's why I had to use a foldermount.
tested on: lollipop 5.0, samsung i9500, halcyon rom and kernel
pppppp said:
¿Why do people use xposed or foldermount? It is pretty easy to accomplish a binding mount.
tested on: lollipop 5.0, samsung i9500, halcyon rom and kernel
Click to expand...
Click to collapse
Did you by any chance get to test with pie? Or are you still on ancient lollipop?

Categories

Resources