Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

find out FUSE mountpoints

$
0
0
hi guys.

i'm developing the gentoo extractor of dSploit and i've found a problem.

now that user can choose a custom directory for the gentoo root,
we must ensure that we can make symlinks in that folder.

from android 4.2 and above, the storage infrastructure uses FUSE.
create symlink where the ext FS is mounted on is fine.
create symlink where the FUSE is mounted on will fail.

Code:

root@mako:/ # ln -s /system /storage/emulated/0/gentoo/test
link failed Function not implemented
root@mako:/ # ln -s /system /data/media/0/gentoo/test

this happens because /storage/emulated/0 is a fuse bind mount of /data/media/0.

i think that the solution is to find what is mounted where and how.

how can i get FUSE mounts ?
/proc/mount will show /dev/fuse as source block device.

i need to have something that say:

Code:

source destination
/data/media/0 /storage/emulated/0

in order to replace "/storage/emulated/0" with "/data/media/0" and got symlink to work

thanks in advance for any help and suggestion.

-- tux_mind

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>