1import init.smdk5250.usb.rc 2 3on init 4 # See storage config details at http://source.android.com/tech/storage/ 5 mkdir /mnt/shell/emulated 0700 shell shell 6 mkdir /storage/emulated 0555 root root 7 8 export EXTERNAL_STORAGE /storage/emulated/legacy 9 export EMULATED_STORAGE_SOURCE /mnt/shell/emulated 10 export EMULATED_STORAGE_TARGET /storage/emulated 11 12 # Support legacy paths 13 symlink /storage/emulated/legacy /sdcard 14 symlink /storage/emulated/legacy /mnt/sdcard 15 symlink /storage/emulated/legacy /storage/sdcard0 16 symlink /mnt/shell/emulated/0 /storage/emulated/legacy 17 18on post-fs-data 19 mkdir /data/media 0770 media_rw media_rw 20 21 setprop vold.post_fs_data_done 1 22 23on boot 24 mount debugfs /sys/kernel/debug /sys/kernel/debug 25 setprop ro.radio.noril yes 26 27 # HACK, suspend is broken. remove me when it's fixed 28 write /sys/power/wake_lock taken_from_init_smdk5250_rc 29 30 # Set up kernel tracing, but disable it by default 31 chmod 0222 /sys/kernel/debug/tracing/trace_marker 32 write /sys/kernel/debug/tracing/tracing_on 0 33 34 35on fs 36 mount_all /fstab.smdk5250 37 setprop ro.crypto.fuse_sdcard true 38 39# Permissions for backlight 40 chmod 0666 /sys/class/backlight/pwm-backlight.0/brightness 41 chown system system /sys/class/backlight/pwm-backlight.0/brightness 42 43# Permissions for Gscaler log level 44 chmod 0666 /sys/module/gsc/parameters/gsc_dbg 45 46# create filesystem if necessary 47service setup_fs /system/bin/setup_fs \ 48 /dev/block/mmcblk0p3 \ 49 /dev/block/mmcblk0p4 50 class core 51 user root 52 group root 53 oneshot 54 55# virtual sdcard daemon running as media_rw (1023) 56service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated 57 class late_start 58