msm8916 Android4.4.4 核心板上有MicroUSB口,电路板上有USB口,两个口都能接U盘,但是同时只能使用其中一个,想同时使用2个U盘。(MicroUSB通过OTG连接U盘)。 有关脚本如下: vold.fstab文件
dev_mount sdcard /storage/sdcard1 auto /devices/msm_sdcc.2/mmc_host
# MTP
#dev_mount sdcard2 /mnt/sdcard/external_sd auto /devices/platform/msm_sdcc.3/mmc_host
init.qcom.rc 文件
on init
# Set permissions for persist partition
mkdir /persist 0771 system system
# See storage config details at http://source.android.com/tech/storage/
mkdir /mnt/shell/emulated 0700 shell shell
mkdir /storage 0050 system sdcard_r
mkdir /storage/emulated 0555 root root
mkdir /storage/emulated/legacy 0555 root root
mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw
mkdir /mnt/media_rw/sdcard2 0700 media_rw media_rw
mkdir /mnt/media_rw/usbotg 0700 media_rw media_rw
mkdir /mnt/media_rw/uicc0 0700 media_rw media_rw
mkdir /mnt/media_rw/uicc1 0700 media_rw media_rw
mkdir /storage/sdcard1 0700 root root
mkdir /storage/sdcard2 0700 root root
mkdir /storage/uicc0 0700 root root
mkdir /storage/uicc1 0700 root root
mkdir /storage/usbotg 0700 root root
fstab.qcom文件
on init
# Set permissions for persist partition
mkdir /persist 0771 system system
# See storage config details at http://source.android.com/tech/storage/
mkdir /mnt/shell/emulated 0700 shell shell
mkdir /storage 0050 system sdcard_r
mkdir /storage/emulated 0555 root root
mkdir /storage/emulated/legacy 0555 root root
mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw
mkdir /mnt/media_rw/sdcard2 0700 media_rw media_rw
mkdir /mnt/media_rw/usbotg 0700 media_rw media_rw
mkdir /mnt/media_rw/uicc0 0700 media_rw media_rw
mkdir /mnt/media_rw/uicc1 0700 media_rw media_rw
mkdir /storage/sdcard1 0700 root root
mkdir /storage/sdcard2 0700 root root
mkdir /storage/uicc0 0700 root root
mkdir /storage/uicc1 0700 root root
mkdir /storage/usbotg 0700 root root
export EXTERNAL_STORAGE /storage/emulated/legacy
export SECONDARY_STORAGE /storage/sdcard1
export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
export EMULATED_STORAGE_TARGET /storage/emulated
....
# Mounting of persist is moved to 'on emmc-fs' and 'on fs' sections
# We chown/chmod /persist again so because mount is run as root + defaults
chown system system /persist
chmod 0771 /persist
chmod 0664 /sys/devices/platform/msm_sdcc.1/polling
chmod 0664 /sys/devices/platform/msm_sdcc.2/polling
chmod 0664 /sys/devices/platform/msm_sdcc.3/polling
chmod 0664 /sys/devices/platform/msm_sdcc.4/polling
# Chown polling nodes as needed from UI running on system server
chown system system /sys/devices/platform/msm_sdcc.1/polling
chown system system /sys/devices/platform/msm_sdcc.2/polling
chown system system /sys/devices/platform/msm_sdcc.3/polling
chown system system /sys/devices/platform/msm_sdcc.4/polling
如果还需要了解哪个文件的麻烦请告诉我。 另外我在电脑上修改过的vold.fstab文件,是否需要将空格键值替换成tab键值,然后通过adb传过去。 谢谢
好神奇啊
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。