Hi All,

I am also facing similar issue.
I have commented off emulated storage part & keeping only External Storage
part in the init script.

Here, the actual Sdcard is getting mounted as External Storage & when I
open the Gallery/Music application it crashes, saying unable to
getFatVolumeID..

Permission Denied to open /storage/sdcard0.

Any inputs??

Chris, I tried what you have mentioned, but no improvements.

But, while mounting it actual Sdcard as Secondary Storage & External
Storage, it is having lot of differences in the UID & GID.

AS Secondary Storage :

/dev/block/vold/179:1 /storage/sdcard1 vfat
rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1023,fmask=0702,dmask=0702,allow_utime=0020,
codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0
0
root@android:/ # ls -l /storage/

dr-xr-xr-x root     root              2000-01-01 00:00 emulated
lrwxrwxrwx root     root              2000-01-01 00:00 sdcard0 ->
/storage/emulated/legacy
d---rwxr-x system   media_rw          1970-01-01 00:00 sdcard1
root@android:/ #



As External Storage :

/dev/block/vold/179:1 /mnt/shell/emulated/0 vfat
rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0010,dmask=0010,allow_utime0
/dev/block/vold/179:1 /mnt/secure/asec vfat
rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0010,dmask=0010,allow_utime=00220
tmpfs /mnt/shell/emulated/0/.android_secure tmpfs
ro,relatime,size=0k,mode=000 0 0
root@android:/ # ls -l /storage/

dr-xr-xr-x root     root              2000-01-01 00:09 emulated
lrwxrwxrwx root     root              2000-01-01 00:09 sdcard0 ->
/storage/emulated/legacy
drwxrwxrwx system   system            2000-01-01 00:09 sdcard1


Any ideas?

Thanks in advance.


Regards,
Ramya


On Wed, Sep 4, 2013 at 1:43 AM, Hans-Christian Egtvedt <egtv...@samfundet.no
> wrote:

> Around Tue 03 Sep 2013 01:29:50 -0700 or thereabout, kadir yasar wrote:
>
> Hello,
>
> > I have a problem about Android Sdcard porting to our custom device. We
> cannot
> > mount the external real sdcard as permissionless and public filesystem
> > properly. Sdcard can be mounted to /storage/sdcard0/ directory, but apps
> create
> > private directories under this directory. Our requirement is to mount the
> > sdcard as permissionless public filesystem; in other words, all folders
> such as
> > Pictures, Downloads can be accessible by all apps. Our android release
> version
> > is JB 4.1.2 .
> >
> > Our vold.fstab configuration is correct and here is storage_list.xml file
> > content:
> >
> >  1. <StorageList xmlns:android="
> http://schemas.android.com/apk/res/android";>
> >  2.     <!-- external SD card -->
> >  3.     <storage android:mountPoint="/storage/sdcard0"
> >  4.             android:storageDescription="@string/storage_sd_card"
> >  5. android:primary="true"
> >  6.             android:removable="true"
> >  7.             android:maxFileSize="4096" />
> >  8. </StorageList>
> >
> > Unfortunately I could not find a solution in internet (xda developers and
> > android-porting googlegroups). If you have enough time, please help me.
>
> It doesn't matter how you configure the mount point, all external storage
> is
> defined to be locked up if you run Google's vold unmodified.
>
> Have a look at system/vold/Volume.cpp and scroll down to something similar
> to
> this chunk of code
>
> if (primaryStorage) {
>         // Special case the primary SD card.
>         // For this we grant write access to the SDCARD_RW group.
>         gid = AID_SDCARD_RW;
> } else {
>         // For secondary external storage we keep things locked up.
>         gid = AID_MEDIA_RW;
> }
>
> What you could do is to override this and set all storage gid to be
> AID_SDCARD_RW.
>
> --
> mvh
> Hans-Christian Egtvedt
>
> --
> --
> unsubscribe: android-porting+unsubscr...@googlegroups.com
> website: http://groups.google.com/group/android-porting
>
> ---
> You received this message because you are subscribed to the Google Groups
> "android-porting" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-porting+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-porting+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to