I was writting a script for enabling usb mass storage in marshmallow, which is working. The problem is that marshmallow has changed the way it handles access to sd card. This is when sd card is used as portable storage. i cant mount sd card with the right permissions and user group to /storage
In my case /dev/block/vold/public:179,65 is mounted on /mnt/media_rw/XXXX-XXXX (where XXXX-XXXX is my sd cards serial number) The owner and group for this is media_rw. I can mount sd card here with normal 'mount' commands.
"busybox mount -t vfat -o rw /dev/block/vold/public:179,65 /mnt/media_rw/XXXX-XXXX"
the permission masks and groups are missing from the above command,keeping it simple.
After this is done normally 'fuse mount' is used by android to mount sd card in /mnt/runtime/default, /mnt/runtime/read, /mnt/runtime/write and /storage with the correct permissions and user groups(sdcard_rw group).
This is where the problem lies. I cant do that with any command. The /system/bin/sdcard binary was used in older android versions from what i read. But in one of the init scripts i read a comment that sdcard binary is not to be used with lg.
probably that is why the command is not working.
i cant even use the mount command with the 'fuse' option.
so any help would be greatly appreciated.
Thanks
In my case /dev/block/vold/public:179,65 is mounted on /mnt/media_rw/XXXX-XXXX (where XXXX-XXXX is my sd cards serial number) The owner and group for this is media_rw. I can mount sd card here with normal 'mount' commands.
"busybox mount -t vfat -o rw /dev/block/vold/public:179,65 /mnt/media_rw/XXXX-XXXX"
the permission masks and groups are missing from the above command,keeping it simple.
After this is done normally 'fuse mount' is used by android to mount sd card in /mnt/runtime/default, /mnt/runtime/read, /mnt/runtime/write and /storage with the correct permissions and user groups(sdcard_rw group).
This is where the problem lies. I cant do that with any command. The /system/bin/sdcard binary was used in older android versions from what i read. But in one of the init scripts i read a comment that sdcard binary is not to be used with lg.
probably that is why the command is not working.
i cant even use the mount command with the 'fuse' option.
so any help would be greatly appreciated.
Thanks
from xda-developers http://ift.tt/1O7D2U0
via IFTTT
No comments:
Post a Comment