summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--device.mk4
-rwxr-xr-xinit.tuna.rc1
-rw-r--r--overlay/frameworks/base/core/res/res/xml/storage_list.xml6
-rw-r--r--vold.fstab16
4 files changed, 27 insertions, 0 deletions
diff --git a/device.mk b/device.mk
index f13783e..7fcd4fb 100644
--- a/device.mk
+++ b/device.mk
@@ -207,3 +207,7 @@ $(call inherit-product-if-exists, vendor/samsung/tuna/device-vendor.mk)
BOARD_WLAN_DEVICE_REV := bcm4330_b2
WIFI_BAND := 802_11_ABG
$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4330/device-bcm.mk)
+
+# vold
+PRODUCT_COPY_FILES += \
+ device/samsung/tuna/vold.fstab:/system/etc/vold.fstab
diff --git a/init.tuna.rc b/init.tuna.rc
index 4823599..d8b5e62 100755
--- a/init.tuna.rc
+++ b/init.tuna.rc
@@ -7,6 +7,7 @@ on early-init
# for backwards compatibility
symlink /storage/sdcard0 /sdcard
symlink /storage/sdcard0 /mnt/sdcard
+ mkdir /mnt/usbdisk 0755 system system
on post-fs-data
# we will remap this as /storage/sdcard0 with the sdcard fuse tool
diff --git a/overlay/frameworks/base/core/res/res/xml/storage_list.xml b/overlay/frameworks/base/core/res/res/xml/storage_list.xml
index 0a03928..0ef57a7 100644
--- a/overlay/frameworks/base/core/res/res/xml/storage_list.xml
+++ b/overlay/frameworks/base/core/res/res/xml/storage_list.xml
@@ -38,4 +38,10 @@
android:primary="true"
android:emulated="true"
android:mtpReserve="100" />
+
+ <storage android:mountPoint="/mnt/usbdisk"
+ android:storageDescription="@string/storage_usb"
+ android:primary="false"
+ android:removable="true" />
+
</StorageList>
diff --git a/vold.fstab b/vold.fstab
new file mode 100644
index 0000000..daf5628
--- /dev/null
+++ b/vold.fstab
@@ -0,0 +1,16 @@
+## Vold 2.0 Generic fstab
+## - San Mehat (san@android.com)
+##
+
+#######################
+## Regular device mount
+##
+## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
+## label - Label for the volume
+## mount_point - Where the volume will be mounted
+## part - Partition # (1 based), or 'auto' for first usable partition.
+## <sysfs_path> - List of sysfs paths to source devices
+######################
+
+# USB storage device
+dev_mount usbdisk /mnt/usbdisk auto /devices/platform/omap/musb-omap2430