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.