blob: e81824c860244b02f1d6209562341f01cfe944b2 [file] [log] [blame]
on init
# See storage config details at http://source.android.com/tech/storage/
mkdir /mnt/shell/emulated 0700 shell shell
mkdir /storage/emulated 0555 root root
mkdir /storage/emulated/legacy 0555 root root
export EXTERNAL_STORAGE /storage/emulated/legacy
export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
export EMULATED_STORAGE_TARGET /storage/emulated
# Support legacy paths
symlink /storage/emulated/legacy /sdcard
symlink /storage/emulated/legacy /mnt/sdcard
symlink /storage/emulated/legacy /storage/sdcard0
symlink /mnt/shell/emulated/0 /storage/emulated/legacy
# mount debugfs
mount debugfs /sys/kernel/debug /sys/kernel/debug
on post-fs-data
mkdir /data/media 0770 media_rw media_rw
on fs
mkdir /factory 0775 radio radio
mount_all /fstab.hisiliconhi4511
# virtual sdcard daemon running as media_rw (1023)
service sdcard /system/bin/sdcard /data/media /mnt/shell/emulated 1023 1023
class late_start
on boot
# create dhcpcd dir
mkdir /data/misc/dhcp 0770 dhcp dhcp
chmod 0770 /data/misc/dhcp
service faketsd /system/bin/faketsd
class main
user bluetooth
group bluetooth