I've had my S7 slim for about a month now and the one thing that really bothered me is the USB OTG that's supposed to work but doesn't. I've been using ES Explorer and Q5 USB Manager until now, but I was still curious about this.
This device does support USB OTG and the automount entry in /etc/vold.fstab is:
dev_mount udisk /mnt/udisk auto /devices/platform/msm_hsusb_host.1/usb1
Browsing to /sys/devices/platform there are two folders: "msm_hsusb_host.0" and "msm_hsusb_host.1". Under "msm_hsusb_host.1" there is a folder named "usb1". This folder is always here whether the USB drive is plugged in or not.
Under "msm_hsusb_host.0" there is a folder named "usb2" that only shows up when I plug in a USB drive using an OTG cable.
I then changed the automount entry in vold.fstab to read:
dev_mount udisk /mnt/udisk auto /devices/platform/msm_hsusb_host.0/usb2
After rebooting, the device now automatically mounts the USB drive when it is plugged in. A USB tab now appears on the stock File Manager and you can browse the files on the USB drive from there. By USB drive I mean a thumb drive and not a USB hard drive, although with external power this may also work.
Your device will have to be rooted to do this and I changed and saved the vold.fstab file using ES Note Editor in ES File Explorer (making a backup of the file first is probably a good idea).
I'm no expert at Android/Linux but so far this solution is working for me.
This device does support USB OTG and the automount entry in /etc/vold.fstab is:
dev_mount udisk /mnt/udisk auto /devices/platform/msm_hsusb_host.1/usb1
Browsing to /sys/devices/platform there are two folders: "msm_hsusb_host.0" and "msm_hsusb_host.1". Under "msm_hsusb_host.1" there is a folder named "usb1". This folder is always here whether the USB drive is plugged in or not.
Under "msm_hsusb_host.0" there is a folder named "usb2" that only shows up when I plug in a USB drive using an OTG cable.
I then changed the automount entry in vold.fstab to read:
dev_mount udisk /mnt/udisk auto /devices/platform/msm_hsusb_host.0/usb2
After rebooting, the device now automatically mounts the USB drive when it is plugged in. A USB tab now appears on the stock File Manager and you can browse the files on the USB drive from there. By USB drive I mean a thumb drive and not a USB hard drive, although with external power this may also work.
Your device will have to be rooted to do this and I changed and saved the vold.fstab file using ES Note Editor in ES File Explorer (making a backup of the file first is probably a good idea).
I'm no expert at Android/Linux but so far this solution is working for me.