diff options
author | David Thompson <david.w.thompson.321@gmail.com> | 2012-05-28 22:24:28 +0100 |
---|---|---|
committer | David Thompson <david.w.thompson.321@gmail.com> | 2012-05-29 01:38:14 +0100 |
commit | 99adcbda06807872bd10b883f9d7ee94ecc7aad0 (patch) | |
tree | e64fa39f4beacba0716959a03f33d49723523028 | |
parent | 4e37f92683c109bdd9db3398ee6433efb778ad02 (diff) | |
download | device_samsung_tuna-99adcbda06807872bd10b883f9d7ee94ecc7aad0.zip device_samsung_tuna-99adcbda06807872bd10b883f9d7ee94ecc7aad0.tar.gz device_samsung_tuna-99adcbda06807872bd10b883f9d7ee94ecc7aad0.tar.bz2 |
tuna: Automatically mount USB storage and show unmount button and storage usage in settings
mount point is /mnt/usbdisk
Change-Id: I636aa2f3f45be3d3ed2a120c90d67b13b467c2c9
-rw-r--r-- | device.mk | 4 | ||||
-rwxr-xr-x | init.tuna.rc | 1 | ||||
-rw-r--r-- | overlay/frameworks/base/core/res/res/xml/storage_list.xml | 6 | ||||
-rw-r--r-- | vold.fstab | 16 |
4 files changed, 27 insertions, 0 deletions
@@ -190,3 +190,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 4956b2e..a9bb0bc 100755 --- a/init.tuna.rc +++ b/init.tuna.rc @@ -5,6 +5,7 @@ on early-init mkdir /mnt/sdcard 0000 system system # for backwards compatibility symlink /mnt/sdcard /sdcard + mkdir /mnt/usbdisk 0755 system system on post-fs-data # we will remap this as /mnt/sdcard 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 043530d..edfb28a 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 |