3
0

galaxys2-common: Update external storage configuration

As explained in: https://source.android.com/devices/storage/config.html

Change-Id: I0f3b470413f3676302277f09563fd360d1486911
This commit is contained in:
Caio Schnepper 2015-11-15 23:42:52 -02:00 committed by Gerrit Code Review
parent 139ef47e40
commit 5df889f687

View File

@ -2,29 +2,14 @@ import init.smdk4210.usb.rc
import init.gps.rc import init.gps.rc
on init on init
export EXTERNAL_STORAGE /storage/sdcard0
export SECONDARY_STORAGE /storage/sdcard1
mkdir /mnt/media_rw/sdcard0 0700 media_rw media_rw
mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw
mkdir /mnt/media_rw/usbdisk0 0700 media_rw media_rw
mkdir /storage/sdcard0 0770 root root
mkdir /storage/sdcard1 0770 root root
mkdir /storage/usbdisk0 0770 root root
mkdir /efs 0771 radio system mkdir /efs 0771 radio system
mkdir /preload 0771 system system mkdir /preload 0771 system system
mkdir /mnt 0775 root system mkdir /mnt 0775 root system
mkdir /mnt/.lfs 0755 root root mkdir /mnt/.lfs 0755 root root
# for backwards compatibility # for backwards compatibility
symlink /storage/sdcard0 /sdcard symlink /sdcard /mnt/sdcard
symlink /storage/sdcard0 /mnt/sdcard symlink /sdcard /storage/sdcard
symlink /storage/sdcard1 /extSdCard
symlink /storage/sdcard1 /mnt/extSdCard
symlink /storage/usbdisk0 /usbdisk0
symlink /storage/usbdisk0 /mnt/usbdisk0
# Disable CFQ slice idle delay # Disable CFQ slice idle delay
write /sys/block/mmcblk0/queue/iosched/slice_idle 0 write /sys/block/mmcblk0/queue/iosched/slice_idle 0
@ -428,18 +413,6 @@ service bugreport /system/bin/dumpstate -d -p -B \
oneshot oneshot
keycodes 114 115 116 keycodes 114 115 116
service fuse_sdcard0 /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/sdcard0 /storage/sdcard0
class late_start
disabled
service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/sdcard1 /storage/sdcard1
class late_start
disabled
service fuse_usbdisk0 /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/usbdisk0 /storage/usbdisk0
class late_start
disabled
## CyanogenMod Performance Profiles ## CyanogenMod Performance Profiles
# Powersave # Powersave
on property:sys.perf.profile=0 on property:sys.perf.profile=0