早教吧 育儿知识 作业答案 考试题库 百科 知识分享

vold.fstab怎么修改让他支持OTG?Copyright(c)2011,TheLinuxFoundation.Allrightsreserved.##Redistributionanduseinsourceandbinaryforms,withorwithout#modification,arepermittedprovidedthatthefollowingconditionsare#met:#

题目详情
vold.fstab怎么修改让他支持OTG?
Copyright (c)
2011, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# * Redistributions of source code must
retain the above copyright
# notice, this list of conditions
and the following disclaimer.
# * Redistributions in binary form
must reproduce the above
# copyright notice, this list of
conditions and the following
# disclaimer in the documentation
and/or other materials provided
# with the distribution.
# * Neither the name of The Linux
Foundation nor the names of its
# contributors may be used to
endorse or promote products derived
# from this software without
specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
# ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT OWNER OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#dev_mount sdcard /storage/sdcard1 auto /devices/platform/msm_sdcc.3/mmc_host
# modified by songxh For UMS Partiton begain
dev_mount sdcard /storage/sdcard0 29
/devices/platform/msm_sdcc.1/mmc_host/mmc0/mmc0:0001/block/mmcblk0
dev_mount sda /storage/UDiskA auto /devices/platform/msm_hsusb_host/usb2
dev_mount sdb /storage/UDiskB auto /devices/platform/msm_hsusb_host/usb2
dev_mount sdc /storage/UDiskC auto /devices/platform/msm_hsusb_host/usb2
dev_mount sdd /storage/UDiskD auto /devices/platform/msm_hsusb_host/usb2
dev_mount sde /storage/UDiskE auto /devices/platform/msm_hsusb_host/usb2
dev_mount sdf /storage/UDiskF auto /devices/platform/msm_hsusb_host/usb2
# modified by songxh For UMS Partiton end
▼优质解答
答案和解析
在vold.fstab的末尾添加如下代码:
# usb otg diskdev_mount usbotg /mnt/usbotg auto /devices/platform/mt_usb /devices/platform/musbfsh_hdrc